/* ============================================================
   IMMOBILIEN IMPULS, Design System (Liquid Glass)
   Dunkle, edle Basis · Liquid-Glass-Komponenten · Gold sparsam
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* base */
  --ink: #0b1017;
  --navy: #111824;
  --navy-2: #16202e;
  --navy-3: #1d2a3b;
  --panel: #131c28;

  /* text */
  --cream: #eef1f5;
  --cream-2: #d7dde6;
  --steel: #9aa6b5;
  --steel-2: #7c8696;
  --muted: #8693a3;

  /* accents, gold sparsam, blue/red aus dem Logo */
  --gold: #c9a86a;
  --gold-2: #ddc28d;
  --gold-deep: #8a6f3e;
  --blue: #4a93d4;
  --blue-deep: #2f7bb6;
  --red: #d05646;

  /* glass */
  --glass: rgba(255,255,255,0.055);
  --glass-2: rgba(255,255,255,0.085);
  --glass-line: rgba(255,255,255,0.14);
  --glass-line-strong: rgba(255,255,255,0.22);
  --hairline: rgba(255,255,255,0.10);

  --shadow-lg: 0 30px 80px -40px rgba(0,0,0,0.85);
  --shadow-md: 0 18px 50px -30px rgba(0,0,0,0.8);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --maxw: 1240px;
  --radius: 22px;
  --radius-lg: 28px;
}

html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; scroll-behavior: smooth; }
body {
  background: var(--ink);
  color: var(--cream);
  font-family: 'Jost', system-ui, sans-serif;
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
::selection { background: var(--gold); color: var(--ink); }

h1,h2,h3,h4 { font-family: 'Marcellus', serif; font-weight: 400; line-height: 1.08; letter-spacing: 0.004em; }

/* page ambient background */
.page-bg {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(120% 80% at 85% -5%, rgba(74,147,212,0.10), transparent 55%),
    radial-gradient(90% 70% at 5% 100%, rgba(201,168,106,0.08), transparent 60%),
    linear-gradient(180deg, #0e151f 0%, #0b1017 60%, #090d14 100%);
}
.page-grain {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ============ GLASS PRIMITIVE ============ */
.glass {
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
  backdrop-filter: blur(22px) saturate(165%);
  -webkit-backdrop-filter: blur(22px) saturate(165%);
  border: 1px solid var(--glass-line);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.16), var(--shadow-md);
}

/* ============ LAYOUT ============ */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-left: clamp(20px, 4vw, 48px); padding-right: clamp(20px, 4vw, 48px); }
section { position: relative; }
.section-pad { padding: clamp(72px, 9vw, 130px) 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: 'Jost', sans-serif; font-size: 12.5px; font-weight: 500;
  letter-spacing: 0.26em; text-transform: uppercase; color: var(--gold);
}
.eyebrow::before { content: ""; width: 24px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.eyebrow.center::after { content: ""; width: 24px; height: 1px; background: linear-gradient(90deg, var(--gold), transparent); }

.section-head { max-width: 720px; }
.section-head.center { margin: 0 auto; text-align: center; }
.section-head h2 { font-size: clamp(30px, 4.4vw, 50px); color: #f4f1ea; margin: 18px 0 0; text-wrap: balance; }
.section-head p { margin-top: 18px; font-size: clamp(15.5px, 1.6vw, 18px); color: var(--cream-2); opacity: 0.86; text-wrap: pretty; }
.section-head.center p { margin-left: auto; margin-right: auto; max-width: 62ch; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: 'Jost', sans-serif; font-size: 14.5px; font-weight: 500; letter-spacing: 0.01em;
  padding: 14px 26px; border-radius: 100px; border: 1px solid transparent;
  transition: 0.35s var(--ease); white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; }
.btn-gold { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.btn-gold:hover { background: var(--gold-2); transform: translateY(-2px); box-shadow: 0 18px 38px -16px rgba(201,168,106,0.5); }
.btn-light { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 18px 38px -18px rgba(255,255,255,0.4); }
.btn-glass {
  background: var(--glass-2); color: var(--cream);
  backdrop-filter: blur(14px) saturate(150%); -webkit-backdrop-filter: blur(14px) saturate(150%);
  border-color: var(--glass-line-strong);
}
.btn-glass:hover { background: rgba(255,255,255,0.14); border-color: rgba(255,255,255,0.34); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--cream); border-color: rgba(255,255,255,0.26); }
.btn-ghost:hover { border-color: var(--gold); background: rgba(201,168,106,0.08); }
.btn-lg { padding: 16px 32px; font-size: 15.5px; }
.btn-sm { padding: 10px 18px; font-size: 13px; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 500; color: var(--gold); transition: gap 0.3s var(--ease); }
.link-arrow svg { width: 16px; height: 16px; transition: transform 0.3s var(--ease); }
.link-arrow:hover { gap: 12px; }
.link-arrow:hover svg { transform: translateX(2px); }

/* ============ HEADER ============ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between; gap: 22px;
  padding: 18px clamp(18px, 4vw, 48px);
  transition: background 0.45s var(--ease), padding 0.45s var(--ease), border-color 0.45s var(--ease), box-shadow 0.45s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(11,16,23,0.72);
  backdrop-filter: blur(20px) saturate(160%); -webkit-backdrop-filter: blur(20px) saturate(160%);
  padding-top: 12px; padding-bottom: 12px;
  border-bottom: 1px solid var(--hairline);
  box-shadow: 0 20px 50px -34px rgba(0,0,0,0.9);
}
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-logo { height: 64px; width: auto; display: block; transition: height 0.4s var(--ease); background: #fff; padding: 7px 13px; border-radius: 13px; box-shadow: 0 8px 24px -12px rgba(0,0,0,0.55); }
.site-header.scrolled .brand-logo { height: 56px; }
.brand .emblem { width: 46px; height: 35px; flex-shrink: 0; }
.brand .wordmark { display: flex; flex-direction: column; line-height: 0.98; }
.brand .wordmark .l1 { font-family: 'Cormorant Garamond', serif; font-weight: 600; font-size: 21px; letter-spacing: 0.04em; color: var(--cream); }
.brand .wordmark .l2 { font-family: 'Cormorant Garamond', serif; font-weight: 600; font-style: italic; font-size: 18px; letter-spacing: 0.06em; color: var(--gold); margin-top: -3px; }

.nav { display: flex; align-items: center; gap: 22px; }
.nav a { font-size: 14px; font-weight: 400; letter-spacing: 0.01em; color: var(--cream-2); position: relative; padding: 4px 0; opacity: 0.84; transition: opacity 0.3s, color 0.3s; white-space: nowrap; }
.nav a::after { content: ""; position: absolute; left: 0; bottom: -2px; height: 1px; width: 0; background: var(--gold); transition: width 0.35s var(--ease); }
.nav a:hover, .nav a.active { opacity: 1; color: #fff; }
.nav a:hover::after, .nav a.active::after { width: 100%; }

/* nav dropdown (Verkaufen) */
.nav .nav-item { position: relative; display: flex; align-items: center; }
.nav .nav-item > a.nav-parent { display: inline-flex; align-items: center; gap: 6px; }
.nav-caret { width: 12px; height: 12px; opacity: 0.7; transition: transform 0.3s var(--ease); }
.nav .nav-item:hover .nav-caret { transform: rotate(180deg); }
.nav .nav-item::after { content: ""; position: absolute; top: 100%; left: -10px; right: -10px; height: 16px; }
.dropdown {
  position: absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-50%) translateY(6px);
  min-width: 250px; padding: 8px; border-radius: 16px;
  background: rgba(13,19,27,0.94); backdrop-filter: blur(22px) saturate(160%); -webkit-backdrop-filter: blur(22px) saturate(160%);
  border: 1px solid var(--glass-line); box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; gap: 2px;
  opacity: 0; visibility: hidden; transition: opacity 0.3s var(--ease), transform 0.3s var(--ease); z-index: 120;
}
.nav .nav-item:hover .dropdown { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.dropdown a { font-size: 14px; color: var(--cream-2); padding: 11px 14px; border-radius: 10px; white-space: nowrap; opacity: 0.92; transition: 0.2s; }
.dropdown a::after { display: none; }
.dropdown a:hover { background: rgba(201,168,106,0.14); color: var(--gold-2); opacity: 1; }
.dropdown a.active { color: var(--gold-2); background: rgba(201,168,106,0.10); }

/* mobile sub-links */
.mobile-menu .mm-sub { display: flex; flex-direction: column; padding: 4px 0 10px 14px; gap: 2px; border-bottom: 1px solid var(--hairline); }
.mobile-menu a.mm-sublink { font-family: 'Jost', sans-serif; font-size: 16px; color: var(--cream-2); opacity: 0.8; padding: 9px 0; }
.mobile-menu a.mm-sublink:hover { color: var(--gold); }

.header-right { display: flex; align-items: center; gap: 12px; }
.lang-toggle {
  display: inline-flex; align-items: center; border-radius: 100px; overflow: hidden;
  border: 1px solid var(--glass-line-strong); background: var(--glass);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.lang-toggle button { background: transparent; border: none; color: var(--steel); font-size: 12px; font-weight: 500; letter-spacing: 0.06em; padding: 7px 11px; transition: 0.25s; }
.lang-toggle button.on { color: var(--ink); background: var(--gold); }
.tel-link { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--cream-2); white-space: nowrap; }
.tel-link svg { width: 15px; height: 15px; stroke: var(--gold); fill: none; }
.icon-btn {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--cream);
  padding: 9px 15px; border-radius: 100px; border: 1px solid var(--glass-line-strong); background: var(--glass);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transition: 0.3s var(--ease);
}
.icon-btn svg { width: 15px; height: 15px; stroke: currentColor; fill: none; }
.icon-btn:hover { background: var(--glass-2); border-color: rgba(255,255,255,0.32); }

.burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; background: none; border: 0; -webkit-appearance: none; appearance: none; color: inherit; }
.burger span { width: 24px; height: 1.6px; background: var(--cream); transition: 0.3s; border-radius: 2px; }

/* mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 99; display: flex; flex-direction: column;
  background: rgba(11,16,23,0.96); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  padding: clamp(88px, 21vw, 104px) clamp(22px, 8vw, 48px) 40px; gap: 4px;
  transform: translateX(100%); transition: transform 0.5s var(--ease); pointer-events: none;
  overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
}
body.menu-open { overflow: hidden; }
.mobile-menu.open { transform: none; pointer-events: auto; }
.mobile-menu a.mm-link { font-family: 'Marcellus', serif; font-size: 26px; color: var(--cream); padding: 14px 0; border-bottom: 1px solid var(--hairline); }
.mobile-menu a.mm-link:hover { color: var(--gold); }
.mobile-menu .mm-foot { margin-top: 28px; display: flex; flex-direction: column; gap: 14px; }

/* ============ FOOTER ============ */
.site-footer { border-top: 1px solid var(--hairline); padding: clamp(56px, 7vw, 92px) 0 36px; background: linear-gradient(180deg, transparent, rgba(0,0,0,0.4)); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 44px; }
.footer-col h4 { font-family: 'Jost', sans-serif; font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; }
.footer-col a, .footer-col p { display: block; font-size: 14.5px; color: var(--cream-2); opacity: 0.82; margin-bottom: 11px; transition: opacity 0.25s, color 0.25s; }
.footer-col a:hover { opacity: 1; color: var(--gold); }
.footer-brand p { opacity: 0.7; max-width: 34ch; }
.footer-certs { display: flex; gap: 12px; margin-top: 20px; flex-wrap: wrap; }
.footer-cert { font-size: 11px; letter-spacing: 0.08em; color: var(--steel); border: 1px solid var(--hairline); border-radius: 8px; padding: 7px 11px; background: var(--glass); }
.footer-bottom { margin-top: 54px; padding-top: 24px; border-top: 1px solid var(--hairline); display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.footer-bottom p, .footer-bottom a { font-size: 12.5px; color: var(--steel); }
.footer-bottom a:hover { color: var(--gold); }
.footer-legal { display: flex; gap: 20px; flex-wrap: wrap; }

/* ============ UTIL ============ */
.glass-card {
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,0.075), rgba(255,255,255,0.028));
  backdrop-filter: blur(20px) saturate(160%); -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--glass-line);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.14), var(--shadow-md);
}
.divider-x { width: 60px; height: 1px; background: var(--gold); position: relative; }
.divider-x::before { content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%) rotate(45deg); width: 5px; height: 5px; background: var(--gold); margin-left: -2px; }

.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============ RESPONSIVE BASE — Tablet & Mobile ============ */

/* Tablet & darunter (≤1024px): Desktop-Nav → Burger */
@media (max-width: 1024px) {
  .tel-link { display: none; }
  .nav,
  .header-right .lang-toggle,
  .header-right .icon-btn.cta-desktop { display: none; }
  .burger { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px 40px; }
}

/* Mobile (≤767px) */
@media (max-width: 767px) {
  .site-header { padding: 13px clamp(16px, 5vw, 22px); gap: 12px; }
  .brand-logo { height: 50px; padding: 6px 11px; border-radius: 11px; }
  .site-header.scrolled { padding-top: 11px; padding-bottom: 11px; }
  .site-header.scrolled .brand-logo { height: 44px; }

  .section-pad { padding: clamp(52px, 13vw, 88px) 0; }

  /* fingerfreundliche Touch-Targets */
  .btn { padding: 14px 22px; min-height: 46px; }
  .btn-lg { padding: 15px 26px; min-height: 50px; font-size: 15.5px; }
  .lang-toggle button { padding: 10px 16px; }

  /* iOS-Zoom beim Fokus vermeiden (Eingaben ≥ 16px) */
  input, select, textarea { font-size: 16px; }

  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 14px; }
}

@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
}
