/* =========================================================
   Nicolai Haas Swim Lab — styles.css
   Editorial / sportlich-technisch / mobile-first
   ========================================================= */

:root {
  /* ---- Color tokens ---- */
  --ink:        #0E1620;   /* deep navy/graphite */
  --ink-2:      #131D29;
  --ink-3:      #1A2532;
  --line-dark:  rgba(255,255,255,0.10);

  --paper:      #F2EEE6;   /* warm off-white */
  --paper-2:    #ECE7DC;
  --paper-3:    #E4DECF;
  --line-light: rgba(14,22,32,0.12);

  --teal:       #5AB0B5;   /* cool water accent */
  --teal-deep:  #2E8C92;
  --teal-soft:  rgba(90,176,181,0.14);

  --champagne:  #D9C49A;   /* premium secondary */
  --champagne-2:#C9B284;

  --text-on-dark:        #ECE7DC;
  --text-on-dark-muted:  rgba(236,231,220,0.66);
  --text-on-light:       #0E1620;
  --text-on-light-muted: rgba(14,22,32,0.62);

  --danger:     #C9544E;

  /* ---- Type ---- */
  --font-display: 'Fraunces', 'Times New Roman', serif;
  --font-body:    'Inter', 'Satoshi', -apple-system, BlinkMacSystemFont, sans-serif;

  /* ---- Spatial ---- */
  --container: 1180px;
  --gutter: clamp(20px, 4vw, 40px);
  --section-y: clamp(72px, 10vw, 132px);
  --radius-sm: 6px;
  --radius:    14px;
  --radius-lg: 22px;

  /* ---- Motion ---- */
  --ease: cubic-bezier(.2,.7,.2,1);
}

/* =========================================================
   Reset + base
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.62;
  color: var(--text-on-light);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }

h1,h2,h3,h4 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.012em;
  line-height: 1.08;
  margin: 0 0 0.4em;
}
h1 em, h2 em { font-style: italic; font-weight: 400; color: var(--teal-deep); }
.section-dark h1 em, .section-dark h2 em { color: var(--champagne); }
p { margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--paper);
  padding: 10px 14px; z-index: 1000;
}
.skip-link:focus { left: 12px; top: 12px; }

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  padding: 14px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background .25s var(--ease), color .25s var(--ease),
              border-color .25s var(--ease), transform .2s var(--ease);
  white-space: nowrap;
}
.btn:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }

.btn-primary {
  background: var(--ink);
  color: var(--paper);
}
.btn-primary:hover { background: var(--teal-deep); }
/* On any dark surface, switch primary CTA to teal-on-ink for contrast */
.section-dark .btn-primary,
.hero .btn-primary,
.sticky-cta .btn-primary {
  background: var(--teal);
  color: var(--ink);
}
.section-dark .btn-primary:hover,
.hero .btn-primary:hover,
.sticky-cta .btn-primary:hover { background: var(--champagne); color: var(--ink); }

.btn-ghost {
  background: transparent;
  color: var(--paper);
  border-color: rgba(236,231,220,0.35);
}
.btn-ghost:hover { border-color: var(--paper); background: rgba(236,231,220,0.06); }

.btn-ghost-dark {
  background: transparent;
  color: var(--ink);
  border-color: rgba(14,22,32,0.25);
}
.btn-ghost-dark:hover { border-color: var(--ink); background: rgba(14,22,32,0.04); }

.btn-white {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}
.btn-white:hover,
.btn-white:focus-visible {
  background: var(--cream);
  border-color: var(--cream);
  color: var(--ink);
}

.btn-block { width: 100%; }

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* =========================================================
   Header / Nav
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(14,22,32,0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--paper);
  border-bottom: 1px solid var(--line-dark);
}
.nav-row,
.nav-wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; color: inherit;
}
.brand .logo { width: 38px; height: 38px; color: var(--paper); }
.site-footer .brand .logo { color: var(--paper); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-line-1 {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.02em;
}
.brand-line-2 {
  font-family: var(--font-body);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--text-on-dark-muted);
  margin-top: 4px;
}

.nav-desktop { display: none; align-items: center; gap: 26px; }
.nav-desktop a {
  text-decoration: none;
  font-size: 14px;
  color: var(--text-on-dark-muted);
  transition: color .2s var(--ease);
}
.nav-desktop a:hover { color: var(--paper); }
.nav-desktop a.nav-cta {
  color: var(--ink);
  background: var(--teal);
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
}
.nav-desktop a.nav-cta:hover { background: var(--champagne); }

.nav-toggle {
  width: 42px; height: 42px;
  display: inline-flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 5px;
  background: transparent; border: 1px solid var(--line-dark);
  border-radius: 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block; width: 18px; height: 1.5px; background: var(--paper);
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav-mobile {
  display: flex; flex-direction: column;
  padding: 14px var(--gutter) 22px;
  border-top: 1px solid var(--line-dark);
  background: var(--ink-2);
}
.nav-mobile[hidden] { display: none; }
.nav-mobile a {
  padding: 14px 0;
  text-decoration: none;
  color: var(--paper);
  font-size: 17px;
  border-bottom: 1px solid var(--line-dark);
}
.nav-mobile a:last-child { border-bottom: none; }
.nav-mobile a.nav-cta {
  margin-top: 14px;
  background: var(--teal);
  color: var(--ink);
  text-align: center;
  border-radius: 999px;
  padding: 14px;
  border-bottom: none;
  font-weight: 600;
}

@media (min-width: 880px) {
  .nav-desktop { display: flex; }
  .nav-toggle { display: none; }
  .nav-mobile { display: none !important; }
}

/* =========================================================
   Sections
   ========================================================= */
.section {
  padding: var(--section-y) 0;
  position: relative;
}
.section-dark {
  background: var(--ink);
  color: var(--text-on-dark);
}
.section-dark .section-title,
.section-dark h3 { color: var(--paper); }
.section-cream { background: var(--paper-2); }

.section-eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--teal-deep);
  margin: 0 0 24px;
}
.section-eyebrow.light { color: var(--teal); }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 500;
  margin-bottom: 18px;
  max-width: 22ch;
}
.section-title.light { color: var(--paper); }

.section-sub {
  font-size: 17px;
  color: var(--text-on-light-muted);
  max-width: 60ch;
  margin: 0 0 48px;
}
.section-sub.light { color: var(--text-on-dark-muted); }

/* Two-column editorial layout */
.two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
}
@media (min-width: 880px) {
  .two-col {
    grid-template-columns: 1fr 1.3fr;
    gap: 72px;
    align-items: start;
  }
  .two-col.reverse .col-left { order: 2; }
}
.two-col .section-title { margin-bottom: 0; }

/* Editorial portrait in About section */
.about-portrait {
  margin: 32px 0 0;
  position: relative;
  max-width: 300px;
}
.about-portrait::after {
  content: "";
  position: absolute;
  inset: 14px -14px -14px 14px;
  border: 1px solid var(--line-light);
  border-radius: var(--radius-lg);
  z-index: -1;
}
.about-portrait img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px -28px rgba(14, 22, 32, 0.45);
}
@media (min-width: 880px) {
  .about-portrait { margin-top: 40px; max-width: 340px; }
}
.lede {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.1vw, 24px);
  font-weight: 400;
  line-height: 1.4;
  color: var(--text-on-light);
  margin-bottom: 1em;
}
.lede.light { color: var(--paper); }
.note {
  font-size: 14px;
  color: var(--text-on-light-muted);
  padding: 14px 16px;
  border-left: 2px solid var(--champagne-2);
  background: var(--paper-3);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-top: 24px;
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  background: var(--ink);
  color: var(--text-on-dark);
  padding: clamp(80px, 14vw, 160px) 0 clamp(72px, 11vw, 128px);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line-dark);
}
.hero-bg {
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: .9;
}
.water-lines {
  width: 100%; height: 100%;
  animation: drift 22s linear infinite;
}
@keyframes drift {
  0%   { transform: translateX(0); }
  50%  { transform: translateX(-3%); }
  100% { transform: translateX(0); }
}
@media (prefers-reduced-motion: reduce) {
  .water-lines { animation: none; }
}

.hero-inner { position: relative; z-index: 1; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--text-on-dark-muted);
  border: 1px solid var(--line-dark);
  padding: 8px 14px;
  border-radius: 999px;
  margin-bottom: 28px;
}
.eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 4px rgba(90,176,181,0.18);
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(40px, 7.4vw, 92px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--paper);
  margin: 0 0 28px;
  max-width: 16ch;
}
.hero-title em {
  font-style: italic;
  color: var(--champagne);
  font-weight: 400;
}
.hero-sub {
  font-size: clamp(17px, 1.7vw, 20px);
  max-width: 56ch;
  color: var(--text-on-dark-muted);
  margin: 0 0 36px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 60px;
}

.trust-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line-dark);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  overflow: hidden;
}
.trust-grid li {
  background: var(--ink);
  padding: 20px 22px;
  display: flex; flex-direction: column; gap: 6px;
}
.trust-num {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.6vw, 30px);
  color: var(--paper);
  letter-spacing: -0.01em;
}
.trust-lbl {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-on-dark-muted);
}
@media (min-width: 720px) {
  .trust-grid { grid-template-columns: repeat(4, 1fr); }
}

/* =========================================================
   POSITIONING
   ========================================================= */
.section-positioning { background: var(--paper); }

/* =========================================================
   PROBLEM
   ========================================================= */
.problem-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 24px;
}
@media (min-width: 720px) { .problem-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px){ .problem-grid { grid-template-columns: repeat(4, 1fr); } }

.problem-card {
  background: var(--ink-2);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: 28px 24px 24px;
  position: relative;
  transition: transform .3s var(--ease), border-color .3s var(--ease);
}
.problem-card:hover { transform: translateY(-2px); border-color: rgba(90,176,181,0.45); }
.pc-num {
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--teal);
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 14px;
}
.problem-card h3 {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--paper);
  margin: 0 0 8px;
}
.problem-card p {
  font-size: 15px;
  color: var(--text-on-dark-muted);
  margin: 0;
}
.problem-foot {
  margin-top: 36px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(17px, 1.8vw, 21px);
  color: var(--champagne);
  max-width: 62ch;
}

/* =========================================================
   OFFERS
   ========================================================= */
.offers {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 16px;
}
@media (min-width: 720px)  { .offers { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .offers { grid-template-columns: repeat(3, 1fr); } }

.offer {
  position: relative;
  background: #fff;
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  padding: 28px 26px 26px;
  display: flex; flex-direction: column;
  transition: transform .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.offer:hover {
  transform: translateY(-3px);
  border-color: rgba(14,22,32,0.28);
  box-shadow: 0 18px 40px -28px rgba(14,22,32,0.35);
}
.offer-free { background: var(--ink); color: var(--text-on-dark); border-color: var(--line-dark); }
.offer-free h3 { color: var(--paper); }
.offer-free .offer-pitch, .offer-free .offer-list li { color: var(--text-on-dark-muted); }
.offer-free .offer-list li::before { background: var(--teal); }
.offer-free .offer-price { color: var(--champagne); }

.offer-feature {
  border-color: var(--teal);
  background: linear-gradient(180deg, #fff 0%, #FBFAF6 100%);
}
.offer-flag {
  position: absolute; top: -10px; left: 24px;
  background: var(--teal);
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  padding: 5px 10px;
  border-radius: 999px;
}

.offer header { margin-bottom: 16px; }
.offer-tag {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--teal-deep);
  display: inline-block;
  margin-bottom: 10px;
}
.offer-free .offer-tag { color: var(--teal); }
.offer h3 {
  font-family: var(--font-display);
  font-size: 26px;
  margin: 0;
  line-height: 1.1;
}
.offer-pitch {
  font-size: 15px;
  color: var(--text-on-light-muted);
  margin: 0 0 18px;
}

.offer-list {
  list-style: none;
  padding: 0; margin: 0 0 22px;
  display: flex; flex-direction: column; gap: 8px;
}
.offer-list li {
  position: relative;
  padding-left: 22px;
  font-size: 14.5px;
  color: var(--text-on-light);
}
.offer-list li::before {
  content: "";
  position: absolute; left: 0; top: 9px;
  width: 12px; height: 1.5px;
  background: var(--teal-deep);
}

.offer-foot {
  margin-top: auto;
  display: flex; flex-direction: column;
  gap: 14px;
  padding-top: 18px;
  border-top: 1px solid var(--line-light);
}
.offer-free .offer-foot { border-top-color: var(--line-dark); }
.offer-price {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  color: var(--ink);
}
.offer-price small {
  display: block;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-on-light-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-top: 4px;
}
.offer-free .offer-price { color: var(--champagne); }
.offer-free .offer-price small { color: var(--text-on-dark-muted); }

@media (min-width: 480px) {
  .offer-foot { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* Coming soon */
.coming-soon {
  margin-top: 48px;
  padding: 28px 26px;
  border: 1px dashed var(--line-light);
  border-radius: var(--radius);
  background: var(--paper-3);
}
.coming-soon h3 {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--text-on-light-muted);
  margin: 0 0 14px;
}
.coming-soon ul {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
@media (min-width: 720px) { .coming-soon ul { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px){ .coming-soon ul { grid-template-columns: repeat(4, 1fr); } }
.coming-soon li {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 12px;
  font-size: 15px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-light);
}
.coming-soon li em {
  font-family: var(--font-display);
  font-size: 13px;
  font-style: italic;
  color: var(--text-on-light-muted);
}

/* =========================================================
   COMMUNITY funnel
   ========================================================= */
.funnel-steps {
  list-style: none; padding: 0; margin: 24px 0;
  display: flex; flex-direction: column; gap: 12px;
}
.funnel-steps li {
  padding: 16px 18px;
  background: var(--paper);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  font-size: 16px;
}
.funnel-steps strong { color: var(--teal-deep); margin-right: 6px; }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.cta-row.center { justify-content: center; margin-top: 32px; }

/* =========================================================
   OPEN WATER cards
   ========================================================= */
.ow-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 18px;
}
@media (min-width: 720px) { .ow-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px){ .ow-grid { grid-template-columns: repeat(4, 1fr); } }
.ow-card {
  padding: 26px 24px;
  background: transparent;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  position: relative;
}
.ow-card::before {
  content: "";
  position: absolute; top: 0; left: 22px; right: 22px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--teal), transparent);
  opacity: .6;
}
.ow-card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  margin: 0 0 8px;
  color: var(--paper);
}
.ow-card p {
  font-size: 15px;
  margin: 0;
  color: var(--text-on-dark-muted);
}

/* =========================================================
   INSIGHTS
   ========================================================= */
.insights-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 12px;
}
@media (min-width: 720px) { .insights-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px){ .insights-grid { grid-template-columns: repeat(3, 1fr); } }
.insight-card {
  padding: 26px 24px;
  background: #fff;
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  display: flex; flex-direction: column;
  transition: transform .25s var(--ease), border-color .25s var(--ease);
}
.insight-card:hover {
  transform: translateY(-2px);
  border-color: rgba(14,22,32,0.25);
}
.ins-tag {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--teal-deep);
  margin-bottom: 12px;
}
.insight-card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  margin: 0 0 10px;
  line-height: 1.18;
}
.insight-card p {
  font-size: 15px;
  color: var(--text-on-light-muted);
  margin: 0 0 14px;
}
.ins-meta {
  margin-top: auto;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-on-light-muted);
}
.ins-link {
  margin-top: auto;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  color: var(--teal-deep);
  border-bottom: 1px solid var(--teal-deep);
  align-self: flex-start;
  padding-bottom: 2px;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.ins-link:hover { color: var(--ink); border-color: var(--ink); }
.ins-button {
  appearance: none;
  border-top: 0;
  border-right: 0;
  border-left: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
  text-align: left;
}
.insight-empty {
  background: var(--paper-3);
  border-style: dashed;
}

/* =========================================================
   ABOUT facts
   ========================================================= */
.about-facts {
  margin: 28px 0 0;
  display: flex; flex-direction: column;
  border-top: 1px solid var(--line-light);
}
.about-facts > div {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line-light);
}
@media (min-width: 640px) {
  .about-facts > div {
    grid-template-columns: 160px 1fr;
    gap: 24px;
    align-items: baseline;
  }
}
.about-facts dt {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-on-light-muted);
  font-weight: 600;
  margin: 0;
}
.about-facts dd {
  margin: 0;
  font-size: 16px;
  color: var(--text-on-light);
}

/* =========================================================
   CASES
   ========================================================= */
.cases-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 12px;
}
@media (min-width: 720px) { .cases-grid { grid-template-columns: repeat(3, 1fr); } }
.case-card {
  padding: 28px 26px;
  background: var(--paper-2);
  border: 1px dashed var(--line-light);
  border-radius: var(--radius);
}
.case-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--ink);
  background: var(--champagne);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.case-card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  margin: 0 0 10px;
  line-height: 1.2;
}
.case-card p {
  font-size: 15px;
  color: var(--text-on-light-muted);
  margin: 0 0 14px;
}

/* =========================================================
   FAQ
   ========================================================= */
.faq-list {
  display: flex; flex-direction: column;
  margin-top: 16px;
  border-top: 1px solid var(--line-light);
}
.faq-list details {
  border-bottom: 1px solid var(--line-light);
  padding: 20px 0;
}
.faq-list summary {
  list-style: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: clamp(18px, 1.8vw, 22px);
  font-weight: 500;
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 24px;
  color: var(--ink);
  position: relative;
  padding-right: 32px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  position: absolute; right: 0; top: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 26px;
  line-height: 1;
  color: var(--teal-deep);
  transition: transform .3s var(--ease);
}
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p {
  margin: 14px 0 0;
  font-size: 16px;
  color: var(--text-on-light-muted);
  max-width: 70ch;
}

/* =========================================================
   FORM
   ========================================================= */
.anfrage-form {
  background: var(--ink-2);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  display: flex; flex-direction: column;
  gap: 18px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-on-dark-muted);
}
.field input,
.field textarea,
.field select {
  font-family: var(--font-body);
  font-size: 15px;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--line-dark);
  border-radius: 10px;
  padding: 12px 14px;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--teal);
  background: var(--ink-3);
}
.field textarea { resize: vertical; min-height: 84px; }
.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width: 600px) { .grid-2 { grid-template-columns: 1fr 1fr; } }

.form-hint {
  font-size: 12px;
  color: var(--text-on-dark-muted);
  margin: 0;
  text-align: center;
}
.btn:disabled {
  opacity: 0.62;
  cursor: wait;
}

.contact-direct {
  list-style: none; padding: 0; margin: 24px 0 0;
  display: flex; flex-direction: column; gap: 10px;
}
.contact-direct li {
  display: flex; gap: 14px; align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-dark);
}
.contact-direct span {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-on-dark-muted);
  min-width: 96px;
}
.contact-direct a {
  color: var(--paper);
  text-decoration: none;
  border-bottom: 1px solid var(--teal);
  padding-bottom: 1px;
}
.contact-direct a:hover { color: var(--teal); }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: var(--ink);
  color: var(--text-on-dark);
  padding: 72px 0 100px;
  border-top: 1px solid var(--line-dark);
}
.site-footer .brand { color: var(--paper); margin-bottom: 14px; }
.site-footer .foot-tag {
  font-size: 14px;
  color: var(--text-on-dark-muted);
  max-width: 28ch;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
}
@media (min-width: 720px) {
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; }
}
.footer-grid h4 {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--text-on-dark-muted);
  margin: 0 0 14px;
}
.footer-grid a, .foot-muted {
  display: block;
  text-decoration: none;
  color: var(--paper);
  font-size: 14px;
  padding: 6px 0;
}
.footer-grid a:hover { color: var(--teal); }
.foot-muted { color: var(--text-on-dark-muted); }

/* =========================================================
   TOPIC MODAL
   ========================================================= */
body.modal-open {
  overflow: hidden;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(5, 10, 16, 0.72);
  backdrop-filter: blur(10px);
}
.modal-backdrop[hidden] {
  display: none;
}
.modal-card {
  position: relative;
  width: min(620px, 100%);
  max-height: min(760px, calc(100vh - 44px));
  overflow: auto;
  background: var(--ink-2);
  color: var(--paper);
  border: 1px solid var(--line-dark);
  border-radius: 28px;
  padding: clamp(24px, 5vw, 38px);
  box-shadow: 0 34px 120px -30px rgba(0, 0, 0, 0.72);
}
.modal-card h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4.5vw, 48px);
  line-height: 1.04;
  letter-spacing: -0.045em;
  margin: 0 0 22px;
  max-width: 12ch;
}
.modal-card .section-eyebrow {
  color: var(--teal);
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid var(--line-dark);
  background: var(--ink);
  color: var(--paper);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
.modal-close:hover,
.modal-close:focus-visible {
  border-color: var(--teal);
  outline: none;
}
.topic-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* =========================================================
   LEGAL / POLICIES
   ========================================================= */
.legal-section {
  background: var(--paper);
  color: var(--ink);
  padding: 64px 0;
  border-top: 1px solid rgba(14,22,32,0.12);
}
.legal-section-alt {
  background: var(--cream);
}
.legal-grid {
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: 760px;
}
.legal-main {
  min-height: 60vh;
}
.legal-section h1,
.legal-section h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 6px 0 0;
  overflow-wrap: break-word;
  hyphens: auto;
}
.legal-copy {
  max-width: 70ch;
  color: var(--muted);
}
.legal-copy p {
  margin: 0 0 18px;
}
.legal-copy strong {
  color: var(--ink);
}
.legal-copy a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--teal);
}
.legal-note {
  padding: 16px 18px;
  border: 1px solid rgba(14,22,32,0.14);
  border-radius: 18px;
  background: rgba(255,255,255,0.45);
  font-size: 14px;
}

/* =========================================================
   STICKY MOBILE CTA
   ========================================================= */
.sticky-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(14,22,32,0) 0%, rgba(14,22,32,0.85) 38%, var(--ink) 100%);
  display: block;
  transform: translateY(0);
  transition: transform .35s var(--ease), opacity .25s var(--ease);
}
.sticky-cta.is-hidden { transform: translateY(120%); opacity: 0; pointer-events: none; }
@media (min-width: 880px) { .sticky-cta { display: none; } }

/* Add bottom padding on mobile so content isn't covered */
@media (max-width: 879px) {
  body { padding-bottom: 84px; }
}

/* =========================================================
   TOAST
   ========================================================= */
.toast {
  position: fixed;
  left: 50%; bottom: 110px;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink-3);
  color: var(--paper);
  border: 1px solid var(--teal);
  padding: 14px 20px;
  border-radius: 999px;
  font-size: 14px;
  z-index: 100;
  opacity: 0;
  transition: opacity .25s var(--ease), transform .35s var(--ease);
  max-width: calc(100% - 32px);
  text-align: center;
  box-shadow: 0 20px 50px -20px rgba(0,0,0,0.5);
}
.toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
@media (min-width: 880px) {
  .toast { bottom: 32px; }
}

/* =========================================================
   COOKIE BANNER
   ========================================================= */
.cookie-banner {
  position: fixed;
  left: var(--gutter);
  right: var(--gutter);
  top: 76px;
  bottom: auto;
  z-index: 120;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: center;
  background: rgba(14,22,32,0.96);
  color: var(--paper);
  border: 1px solid var(--line-dark);
  border-radius: 24px;
  padding: 18px;
  box-shadow: 0 24px 80px -24px rgba(0,0,0,0.65);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner strong {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
  letter-spacing: 0.04em;
}
.cookie-banner p {
  margin: 0;
  color: var(--text-on-dark-muted);
  font-size: 14px;
  line-height: 1.5;
}
.cookie-banner .btn {
  justify-self: start;
}
@media (min-width: 880px) {
  .cookie-banner {
    left: auto;
    right: 28px;
    top: 84px;
    bottom: auto;
    width: min(520px, calc(100vw - 56px));
    grid-template-columns: 1fr auto;
  }
}

/* =========================================================
   Reveal on scroll
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* =========================================================
   Selection
   ========================================================= */
::selection {
  background: var(--teal);
  color: var(--ink);
}
