*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --cream: #f5f4f0; --dark: #1a1a1a; --mid: #555;
  --light: #888; --border: rgba(0,0,0,0.08);
  --font: 'Barlow', 'Helvetica Neue', sans-serif;
}
body { font-family: var(--font); background: var(--cream); color: var(--dark); font-weight: 300; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── HEADER ── */
.sub-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.2rem 2.5rem;
  background: rgba(245,244,240,0.96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
}
.sub-logo { width: 56px; height: auto; display: block; }
.sub-nav { display: flex; gap: 2.5rem; align-items: center; }
.sub-nav a { font-size: 0.65rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--light); transition: color .2s; }
.sub-nav a:hover { color: var(--dark); }
.sub-cta { background: var(--dark) !important; color: var(--cream) !important; padding: 0.6rem 1.4rem !important; }
.sub-cta:hover { opacity: 0.8; color: var(--cream) !important; }

/* ── LAYOUT ── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 2.5rem; }

/* ── PAGE HERO ── */
.page-hero { padding: 9rem 0 4rem; border-bottom: 1px solid var(--border); margin-bottom: 5rem; }
.page-label { font-size: 0.65rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--light); display: block; margin-bottom: 1.2rem; }
.page-hero h1 { font-size: clamp(2.5rem,6vw,5rem); font-weight: 200; text-transform: uppercase; letter-spacing: 0.02em; line-height: 1; }
.page-hero p { font-size: 1rem; color: var(--mid); margin-top: 1.5rem; max-width: 560px; line-height: 1.7; }

/* ── SECTION ── */
.section { padding: 5rem 0; border-top: 1px solid var(--border); }
.section-label { font-size: 0.65rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--light); display: block; margin-bottom: 2.5rem; }
.section h2 { font-size: clamp(1.8rem,3.5vw,3rem); font-weight: 200; text-transform: uppercase; letter-spacing: 0.02em; margin-bottom: 3rem; }

/* ── CARDS ── */
.cards-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.info-card { background: #fff; padding: 2.5rem; box-shadow: 0 2px 20px rgba(0,0,0,0.06); transition: transform .3s, box-shadow .3s; }
.info-card:hover { transform: translateY(-3px); box-shadow: 0 8px 40px rgba(0,0,0,0.1); }
.info-card .card-num { font-size: 0.58rem; letter-spacing: 0.25em; color: #bbb; display: block; margin-bottom: 1.2rem; }
.info-card h3 { font-size: 1rem; font-weight: 300; text-transform: uppercase; letter-spacing: 0.05em; color: var(--dark); margin-bottom: 0.8rem; }
.info-card p { font-size: 0.85rem; color: var(--mid); line-height: 1.75; }

/* ── BUTTONS ── */
.btn-dark { display: inline-block; background: var(--dark); color: var(--cream); padding: 0.85rem 2rem; font-size: 0.65rem; letter-spacing: 0.18em; text-transform: uppercase; transition: opacity .2s; }
.btn-dark:hover { opacity: 0.8; }
.btn-outline { display: inline-block; font-size: 0.65rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--dark); border-bottom: 1px solid rgba(0,0,0,0.3); padding-bottom: 3px; transition: border-color .2s; }
.btn-outline:hover { border-color: var(--dark); }
.actions { display: flex; gap: 1.5rem; flex-wrap: wrap; margin-top: 2.5rem; }

/* ── PROFILE (team page) ── */
.profile-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 6rem; padding: 0 0 5rem; align-items: start; }
.profile-photo-wrap { position: sticky; top: 8rem; aspect-ratio: 3/4; overflow: hidden; background: #e0ddd8; }
.profile-photo { width: 100%; height: 100%; object-fit: cover; object-position: center top; filter: grayscale(100%); }
.profile-fallback { display: none; align-items: center; justify-content: center; height: 100%; font-size: 4rem; font-weight: 200; color: #bbb; }
.profile-name { font-size: clamp(1.8rem,3vw,2.8rem); font-weight: 200; text-transform: uppercase; margin-bottom: 0.4rem; }
.profile-title { font-size: 0.65rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--light); display: block; margin-bottom: 2.5rem; }
.profile-quote { border-left: 2px solid rgba(0,0,0,0.12); padding-left: 1.4rem; margin: 0 0 2.5rem; font-size: 1.05rem; font-style: italic; font-weight: 200; color: var(--dark); line-height: 1.55; }
.profile-block { margin-bottom: 2.5rem; }
.block-label { font-size: 0.6rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--light); display: block; margin-bottom: 1rem; padding-bottom: 0.7rem; border-bottom: 1px solid var(--border); }
.profile-block p { font-size: 0.9rem; color: var(--mid); line-height: 1.8; margin-bottom: 0.8rem; }
.profile-list li { font-size: 0.88rem; color: var(--mid); padding: 0.5rem 0; border-bottom: 1px solid rgba(0,0,0,0.05); }
.profile-list li::before { content: '— '; color: #ccc; }
.profile-actions { display: flex; gap: 1.5rem; flex-wrap: wrap; margin-top: 2.5rem; }
.values-section { padding: 5rem 0; border-top: 1px solid var(--border); }
.values-section > h2 { font-size: clamp(1.5rem,3vw,2.2rem); font-weight: 200; text-transform: uppercase; margin-bottom: 3rem; }

/* ── LEISTUNGEN ── */
.services-list { display: grid; gap: 1px; background: var(--border); border: 1px solid var(--border); }
.service-item { background: #fff; padding: 3rem 2.5rem; display: grid; grid-template-columns: 60px 1fr; gap: 2rem; align-items: start; transition: background .2s; }
.service-item:hover { background: #faf9f7; }
.service-num { font-size: 0.6rem; letter-spacing: 0.25em; color: #bbb; padding-top: 4px; }
.service-item h3 { font-size: 1.1rem; font-weight: 300; text-transform: uppercase; letter-spacing: 0.05em; color: var(--dark); margin-bottom: 0.8rem; }
.service-item p { font-size: 0.88rem; color: var(--mid); line-height: 1.8; }

/* ── BEWERTUNG ── */
.bewertung-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.bewertung-embed { background: #fff; padding: 2.5rem; box-shadow: 0 2px 20px rgba(0,0,0,0.06); min-height: 400px; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 1.5rem; text-align: center; }
.bewertung-embed p { font-size: 0.88rem; color: var(--mid); line-height: 1.7; }

/* ── OBJEKTE ── */
.objekte-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.objekt-card { background: #fff; overflow: hidden; box-shadow: 0 2px 16px rgba(0,0,0,0.06); transition: transform .3s, box-shadow .3s; }
.objekt-card:hover { transform: translateY(-3px); box-shadow: 0 8px 32px rgba(0,0,0,0.1); }
.objekt-img { aspect-ratio: 4/3; background: #e0ddd8; overflow: hidden; }
.objekt-img img { width: 100%; height: 100%; object-fit: cover; }
.objekt-body { padding: 1.5rem; }
.objekt-tag { font-size: 0.55rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--light); display: block; margin-bottom: 0.6rem; }
.objekt-body h3 { font-size: 0.95rem; font-weight: 300; text-transform: uppercase; margin-bottom: 0.5rem; }
.objekt-price { font-size: 1.2rem; font-weight: 300; color: var(--dark); }

/* ── BLOG ── */
.blog-list { display: grid; gap: 1px; background: var(--border); border: 1px solid var(--border); }
.blog-item { background: #fff; padding: 2.5rem; display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: start; transition: background .2s; }
.blog-item:hover { background: #faf9f7; }
.blog-meta { font-size: 0.6rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--light); margin-bottom: 0.8rem; display: block; }
.blog-item h2 { font-size: 1.05rem; font-weight: 300; letter-spacing: 0.03em; margin-bottom: 0.6rem; }
.blog-item p { font-size: 0.85rem; color: var(--mid); line-height: 1.7; }
.blog-arrow { font-size: 1.2rem; color: #ccc; align-self: center; }

/* ── FOOTER ── */
.sub-footer { background: var(--dark); color: rgba(240,237,232,0.4); padding: 2rem 0; margin-top: 6rem; }
.footer-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; font-size: 0.65rem; letter-spacing: 0.08em; }
.footer-row a { color: rgba(240,237,232,0.4); margin-left: 1.5rem; transition: color .2s; font-size: 0.65rem; }
.footer-row a:hover { color: #f0ede8; }

/* ── MOBILE HAMBURGER ── */
.sub-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  align-items: flex-end;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 0;
  z-index: 9001;
  position: relative;
}
.sub-hamburger span {
  display: block;
  height: 1px;
  background: var(--dark);
  transition: width .3s, opacity .3s, transform .3s;
}
.sub-hamburger span:nth-child(1) { width: 22px; }
.sub-hamburger span:nth-child(2) { width: 16px; }
.sub-hamburger span:nth-child(3) { width: 22px; }
.sub-hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); width: 22px; }
.sub-hamburger.open span:nth-child(2) { opacity: 0; }
.sub-hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); width: 22px; }

/* ── MOBILE NAV OVERLAY ── */
.sub-nav-mobile {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(245,244,240,0.98);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 2.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity .4s cubic-bezier(.4,0,.2,1), visibility .4s;
}
.sub-nav-mobile.open { opacity: 1; visibility: visible; }
.sub-nav-mobile-inner {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.sub-nav-mobile a {
  font-size: clamp(2rem,9vw,3.5rem);
  font-weight: 200;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--dark);
  line-height: 1.4;
  display: block;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .5s cubic-bezier(.16,1,.3,1), transform .5s cubic-bezier(.16,1,.3,1), color .2s;
}
.sub-nav-mobile a:hover { color: var(--light); }
.sub-nav-mobile.open a { opacity: 1; transform: translateY(0); }
.sub-nav-mobile.open a:nth-child(1) { transition-delay: .05s; }
.sub-nav-mobile.open a:nth-child(2) { transition-delay: .10s; }
.sub-nav-mobile.open a:nth-child(3) { transition-delay: .15s; }
.sub-nav-mobile.open a:nth-child(4) { transition-delay: .20s; }
.sub-nav-mobile.open a:nth-child(5) { transition-delay: .25s; }
.sub-nav-mobile.open a:nth-child(6) { transition-delay: .30s; }
.sub-nav-mobile a:last-child {
  margin-top: 1.5rem;
  font-size: clamp(0.8rem,3vw,1rem);
  letter-spacing: 0.22em;
  border-bottom: 1px solid rgba(0,0,0,0.2);
  padding-bottom: 4px;
  display: inline-block;
}

/* ── RESPONSIVE ── */
@media (max-width: 860px) {
  .cards-grid, .objekte-grid { grid-template-columns: repeat(2,1fr); }
  .profile-grid, .bewertung-grid { grid-template-columns: 1fr; gap: 3rem; }
  .profile-photo-wrap { position: static; aspect-ratio: 4/3; }
  .sub-nav { display: none; }
  .sub-hamburger { display: flex; }
  .container { padding: 0 1.5rem; }
  .page-hero { padding: 7rem 0 3rem; margin-bottom: 3rem; }
  .sub-header { padding: 1rem 1.5rem; }
  .section { padding: 3rem 0; }
}
@media (max-width: 560px) {
  .cards-grid, .objekte-grid { grid-template-columns: 1fr; }
  .service-item { grid-template-columns: 1fr; gap: 0.5rem; }
  .page-hero h1 { font-size: clamp(2rem,10vw,3rem); }
  .sub-footer { margin-top: 3rem; }
  .footer-row { flex-direction: column; text-align: center; gap: 0.8rem; }
  .footer-row a { margin-left: 0.8rem; }
}

/* ── COOKIE BANNER (Sub-Seiten) ── */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 99998;
  background: rgba(6,6,10,0.97); backdrop-filter: blur(12px);
  border-top: 1px solid rgba(240,237,232,0.08);
  transform: translateY(100%); transition: transform 0.5s cubic-bezier(0.16,1,0.3,1);
  font-family: var(--font);
}
.cookie-banner--visible { transform: translateY(0); }
.cookie-banner--hidden  { transform: translateY(100%); }
.cookie-inner {
  max-width: 1100px; margin: 0 auto; padding: 1.5rem 2.5rem;
  display: flex; align-items: center; gap: 3rem;
}
.cookie-text p { font-size: 0.8rem; color: rgba(240,237,232,0.55); line-height: 1.65; margin-bottom: 0.3rem; }
.cookie-text p strong { color: rgba(240,237,232,0.9); font-weight: 400; }
.cookie-text a { color: rgba(240,237,232,0.7); border-bottom: 1px solid rgba(240,237,232,0.25); }
.cookie-actions { display: flex; gap: 0.75rem; flex-shrink: 0; }
.cookie-btn {
  font-family: var(--font); font-size: 0.6rem; letter-spacing: 0.18em;
  text-transform: uppercase; padding: 0.7rem 1.6rem; border: none; cursor: pointer;
  transition: opacity 0.2s; white-space: nowrap;
}
.cookie-btn--accept  { background: #f0ede8; color: #06060a; }
.cookie-btn--decline { background: transparent; color: rgba(240,237,232,0.5); border: 1px solid rgba(240,237,232,0.2); }
.cookie-btn:hover { opacity: 0.8; }
@media (max-width: 700px) {
  .cookie-inner { flex-direction: column; gap: 1.2rem; padding: 1.5rem; }
  .cookie-actions { width: 100%; }
  .cookie-btn { flex: 1; text-align: center; }
}

/* ── LENA CHATBOT (Sub-Seiten) ── */
#lena-widget { position: fixed; bottom: 2rem; right: 2rem; z-index: 9998; }
.lena-toggle {
  width: 60px; height: 60px; border-radius: 50%; border: none; cursor: pointer;
  background: #1a1a2e; box-shadow: 0 4px 24px rgba(0,0,0,0.35); position: relative;
  overflow: hidden; transition: transform 0.3s cubic-bezier(0.16,1,0.3,1), box-shadow 0.3s;
}
.lena-toggle:hover { transform: scale(1.08); box-shadow: 0 8px 32px rgba(0,0,0,0.4); }
.lena-toggle--open { transform: scale(0.9); }
.lena-toggle-avatar { width: 100%; height: 100%; }
.lena-toggle-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: center top; border-radius: 50%; }
.lena-toggle-fallback {
  display: none; width: 100%; height: 100%; border-radius: 50%;
  background: linear-gradient(145deg,#1a1a2e,#0f3460);
  align-items: center; justify-content: center;
  font-size: 1.4rem; font-weight: 200; color: #a0c0ff;
}
.lena-toggle-pulse {
  position: absolute; inset: -4px; border-radius: 50%;
  border: 2px solid rgba(80,128,255,0.4); animation: lena-pulse 2.5s ease-in-out infinite;
}
@keyframes lena-pulse {
  0%,100% { transform: scale(1); opacity: 0.6; }
  50%      { transform: scale(1.15); opacity: 0; }
}
.lena-panel {
  position: absolute; bottom: 72px; right: 0; width: 340px;
  background: #fff; border-radius: 2px; box-shadow: 0 16px 64px rgba(0,0,0,0.2);
  display: flex; flex-direction: column; overflow: hidden;
  opacity: 0; visibility: hidden; transform: translateY(12px) scale(0.96);
  transform-origin: bottom right;
  transition: opacity .3s cubic-bezier(.16,1,.3,1), transform .3s cubic-bezier(.16,1,.3,1), visibility .3s;
}
.lena-panel--open { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.lena-header { background: #06060a; padding: 1rem 1.2rem; display: flex; align-items: center; justify-content: space-between; }
.lena-header-info { display: flex; align-items: center; gap: 0.75rem; }
.lena-avatar-sm { width: 38px; height: 38px; border-radius: 50%; overflow: hidden; background: linear-gradient(145deg,#1a1a2e,#0f3460); flex-shrink: 0; }
.lena-avatar-sm img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.lena-avatar-sm-fallback { display: none; width: 100%; height: 100%; align-items: center; justify-content: center; font-size: 1rem; font-weight: 200; color: #a0c0ff; }
.lena-header-info strong { display: block; font-size: 0.85rem; font-weight: 400; color: #f0ede8; }
.lena-header-info span   { font-size: 0.6rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(160,192,255,0.7); }
.lena-close { background: none; border: none; color: rgba(240,237,232,0.4); font-size: 0.9rem; cursor: pointer; padding: 4px; transition: color 0.2s; }
.lena-close:hover { color: #f0ede8; }
.lena-messages { flex: 1; overflow-y: auto; padding: 1.2rem; display: flex; flex-direction: column; gap: 0.8rem; max-height: 320px; background: #f9f8f6; }
.lena-msg { max-width: 85%; }
.lena-msg p { font-size: 0.85rem; line-height: 1.6; color: #1a1a1a; background: #fff; padding: 0.7rem 0.9rem; box-shadow: 0 1px 4px rgba(0,0,0,0.08); margin: 0; }
.lena-msg--user { align-self: flex-end; }
.lena-msg--user p { background: #1a1a1a; color: #f0ede8; }
.lena-msg--bot  { align-self: flex-start; }
.lena-typing { display: flex; gap: 5px; padding: 0.8rem 1rem; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,0.08); width: fit-content; }
.lena-typing span { width: 6px; height: 6px; border-radius: 50%; background: #aaa; animation: lena-dot 1.2s ease-in-out infinite; }
.lena-typing span:nth-child(2) { animation-delay: 0.2s; }
.lena-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes lena-dot { 0%,80%,100% { transform: scale(0.6); opacity: 0.4; } 40% { transform: scale(1); opacity: 1; } }
.lena-input-row { display: flex; border-top: 1px solid rgba(0,0,0,0.08); background: #fff; }
.lena-input-row input { flex: 1; border: none; outline: none; padding: 0.9rem 1rem; font-family: var(--font); font-size: 0.88rem; color: #1a1a1a; background: transparent; }
.lena-input-row input::placeholder { color: #bbb; }
#lenaSend { background: #1a1a1a; color: #f0ede8; border: none; cursor: pointer; padding: 0 1.1rem; transition: opacity 0.2s; }
#lenaSend:hover { opacity: 0.8; }
/* Quick-Buttons */
.lena-quick-btns { display: flex; flex-direction: column; gap: 0.4rem; margin-top: 0.75rem; }
.lena-quick {
  background: none; border: 1px solid rgba(0,0,0,0.12);
  font-family: var(--font); font-size: 0.75rem;
  color: #444; padding: 0.5rem 0.8rem; text-align: left; cursor: pointer;
  transition: background .2s, border-color .2s;
}
.lena-quick:hover { background: #f5f4f0; border-color: rgba(0,0,0,0.25); }
.lena-toggle-label {
  position: absolute; bottom: -22px; left: 50%; transform: translateX(-50%);
  font-size: 0.58rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(0,0,0,0.4); white-space: nowrap; pointer-events: none;
}
/* Lead-Formular */
.lena-lead-form { display: flex; flex-direction: column; gap: 0.55rem; background: #fff; padding: 1rem; width: 100%; border-top: 2px solid #1a1a1a; }
.lena-lead-title { font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: #888; margin-bottom: 0.2rem; }
.lena-lead-input { border: 1px solid rgba(0,0,0,0.15); padding: 0.65rem 0.8rem; font-family: var(--font); font-size: 0.85rem; color: #1a1a1a; background: #faf9f7; outline: none; width: 100%; transition: border-color .2s; }
.lena-lead-input:focus { border-color: #1a1a1a; }
.lena-lead-submit { background: #1a1a1a; color: #f0ede8; border: none; cursor: pointer; font-family: var(--font); font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase; padding: 0.75rem 1rem; transition: opacity .2s; text-align: center; margin-top: 0.3rem; }
.lena-lead-submit:hover { opacity: 0.82; }
.lena-lead-hint { font-size: 0.68rem; color: #bbb; line-height: 1.5; }
.lena-lead-card { max-width: 100%; width: 100%; }
.lena-lead-success { padding: 0.75rem; }
.lena-lead-success p { font-size: 0.85rem; color: #1a1a1a; margin-bottom: 0.5rem; }
.lena-lead-termin { display: inline-block; margin-top: 0.5rem; background: #1a1a1a; color: #f0ede8; font-size: 0.62rem; letter-spacing: 0.15em; text-transform: uppercase; padding: 0.65rem 1.2rem; }
.lena-termin-link { display: inline-block; color: #1a1a1a; border-bottom: 1px solid rgba(0,0,0,0.3); padding-bottom: 2px; font-size: 0.82rem; }
.lena-termin-btn { display: block; text-align: center; background: #1a1a1a; color: #f5f4f0; padding: 0.75rem 1rem; font-size: 0.62rem; letter-spacing: 0.15em; text-transform: uppercase; text-decoration: none; transition: opacity .2s; }
.lena-termin-btn:hover { opacity: 0.85; }

@media (max-width: 560px) {
  #lena-widget { bottom: 1.2rem; right: 1rem; }
  .lena-panel  { width: calc(100vw - 2rem); right: 0; }
  .lena-toggle { width: 52px; height: 52px; }
}
