/* ==========================================================================
   Verwana — Nachfolge für Hausverwaltungen
   Design System & Stylesheet (Identisch zu Projency-Farbwelt)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Typography / Local Font Faces
   -------------------------------------------------------------------------- */

/* Ancizar Sans — Headings */
@font-face {
  font-family: 'Ancizar Sans';
  src: url('assets/fonts/AncizarSans.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Ancizar Sans';
  src: url('assets/fonts/AncizarSans-Italic[wght].ttf') format('truetype');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

/* Asta Sans — Paragraphs, secondary text & UI */
@font-face {
  font-family: 'Asta Sans';
  src: url('assets/fonts/AstaSans.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* Poiret One — Art-Déco Wordmark (Logo only) */
@font-face {
  font-family: 'Poiret';
  src: url('assets/fonts/PoiretOne.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* --------------------------------------------------------------------------
   2. Design Tokens & CSS Custom Properties
   -------------------------------------------------------------------------- */
:root {
  --teal: #18828E;
  /* Primär / Akzente / Icon */
  --teal2: #4D8B95;
  /* Sekundär / Zähler / Muted Teal */
  --teald: #0F5E67;
  /* Tiefes Teal / Headlines / Dunkle Flächen */
  --ink: #1F2A2C;
  /* Fließtext Anthrazit */
  --mut: #5C6B6D;
  /* Sekundärtext Grau */
  --bg: #FBFAF7;
  /* Hintergrund Elfenbein */
  --card: #FFFFFF;
  /* Kacheln & Formularfelder Weiß */
  --line: #E7E2D8;
  /* Haarlinien & Rahmen Warmgrau */
  --tint: #EFF5F5;
  /* Helles Teal / Ruhiges Band */
  --gold: #B98A3C;
  /* Akzentlinie & Zahlen Gold */

  --font-heading: 'Ancizar Sans', 'Segoe UI', sans-serif;
  --font-sans: 'Asta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-logo: 'Poiret', 'Century Gothic', sans-serif;
}

/* --------------------------------------------------------------------------
   3. Reset & Base Typography
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 86px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.01em;
  color: var(--teald);
}

.serif-it {
  font-family: var(--font-heading);
  font-style: italic;
}

p.body {
  font-size: 17px;
  color: #3A4749;
  margin-top: 14px;
}

.body-lg {
  font-size: 18px;
  color: #2A3739;
}

.lead {
  font-size: 23px;
  line-height: 1.5;
  color: #2A3739;
  max-width: 60ch;
}

.lead-light {
  color: #CFE0E2;
  font-size: 19px;
  max-width: 62ch;
  margin-top: 14px;
  line-height: 1.5;
}

.kicker {
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--teal);
}

.eyebrow {
  margin-bottom: 16px;
}

.rule {
  width: 54px;
  height: 2px;
  background: var(--gold);
  margin: 22px 0;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

img,
svg {
  display: block;
}

/* --------------------------------------------------------------------------
   4. Layout Containers & Grid Systems
   -------------------------------------------------------------------------- */
.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 28px;
}

section {
  padding: 78px 0;
}

.band {
  background: var(--tint);
}

.band-d {
  background: var(--teald);
  color: #EAF3F4;
}

.band-d h2 {
  color: #FFFFFF;
}

.band-d .kicker {
  color: #8FC0C5;
}

.sec-h {
  font-size: 34px;
  margin-bottom: 8px;
}

.sec-h-sm {
  font-size: 28px;
}

.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  top: -60px;
  left: 20px;
  background: var(--teal);
  color: #FFFFFF;
  padding: 10px 18px;
  z-index: 1000;
  font-weight: 600;
  font-size: 14px;
  border-radius: 0 0 4px 4px;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
  outline: none;
}

/* --------------------------------------------------------------------------
   5. Buttons & Interactive Elements
   -------------------------------------------------------------------------- */
.btn {
  display: inline-block;
  background: var(--teal);
  color: #FFFFFF;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: 0.02em;
  padding: 14px 26px;
  border-radius: 2px;
  transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  border: none;
  cursor: pointer;
  text-align: center;
}

.btn:hover {
  background: var(--teald);
  color: #FFFFFF;
}

.btn:active {
  transform: translateY(1px);
}

.btn-ghost {
  background: transparent;
  color: var(--teald);
  border: 1px solid var(--line);
}

.btn-ghost:hover {
  background: var(--tint);
}

.btn-light {
  background: #FFFFFF;
  color: var(--teald);
}

.btn-light:hover {
  background: #EAF3F4;
  color: var(--teald);
}

.btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   6. Header & Navigation
   -------------------------------------------------------------------------- */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 250, 247, 0.88);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.2s ease;
}

header.scrolled {
  box-shadow: 0 4px 18px rgba(15, 94, 103, 0.07);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 88px;
}

.nav.wrap {
  max-width: 1320px;
}

.brand-logo {
  width: 176px;
  height: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 24px;
}

nav.links {
  display: flex;
  gap: 32px;
  align-items: center;
}

nav.links a {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--mut);
  letter-spacing: 0.02em;
  position: relative;
  padding: 4px 0;
}

nav.links a:hover,
nav.links a.active {
  color: var(--teald);
}

nav.links a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--teal);
}

/* Mobile Hamburger Toggle */
.mobile-menu-btn {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 8px 10px;
  cursor: pointer;
  color: var(--teald);
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.mobile-menu-btn:hover {
  background: var(--tint);
}

.mobile-menu-btn svg {
  width: 22px;
  height: 22px;
}

/* --------------------------------------------------------------------------
   7. Hero Section
   -------------------------------------------------------------------------- */
.hero {
  padding: 52px 0 64px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  max-width: 1320px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.85fr);
  gap: clamp(40px, 5vw, 76px);
  align-items: center;
}

.hero-copy {
  padding: 28px 0;
}

.hero .eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 460px;
  margin-bottom: 28px;
  font-size: 10px;
  letter-spacing: 0.16em;
  line-height: 1.7;
  color: var(--teald);
}

.hero .eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--gold);
  flex-shrink: 0;
}

.hero h1 {
  font-size: clamp(48px, 4.8vw, 68px);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.04;
  color: #173f42;
}

.hero h1 em {
  font-weight: 400;
  color: var(--teal);
}

.hero-closing {
  display: block;
}

.hero .sub {
  font-size: 17px;
  color: #536260;
  max-width: 49ch;
  margin: 28px 0 30px;
  line-height: 1.8;
}

.hero .cta-row {
  display: flex;
  gap: 18px 24px;
  flex-wrap: wrap;
  align-items: center;
}

.hero-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 18px 22px;
  background: var(--teald);
  font-size: 13px;
  letter-spacing: 0;
  border-radius: 3px;
}

.hero-primary:hover {
  background: #103f44;
}

.hero-primary svg,
.hero-secondary svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.hero-secondary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  font-size: 13px;
  font-weight: 500;
  color: var(--teald);
  text-decoration: underline;
  text-decoration-color: #b7c6c3;
  text-underline-offset: 6px;
}

.hero-secondary:hover {
  text-decoration-color: var(--teald);
}

.hero-note {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 27px;
  font-size: 11.5px;
  letter-spacing: 0.025em;
  color: var(--mut);
}

.hero-note svg {
  width: 17px;
  height: 19px;
  color: var(--teald);
  flex-shrink: 0;
}

.hero-visual {
  position: relative;
  align-self: stretch;
  min-height: 565px;
  margin: 0 0 20px;
}

.hero-visual::before {
  content: '';
  position: absolute;
  inset: 28px -18px -20px 28px;
  background: #e8eeea;
}

.hero-image {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% center;
}

.hero-image-frame {
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  pointer-events: none;
}

.hero-monogram {
  position: absolute;
  left: -30px;
  bottom: 32px;
  width: 84px;
  height: 84px;
  padding: 18px;
  display: grid;
  place-items: center;
  background: var(--bg);
  box-shadow: 0 6px 24px #123d4020;
}

.hero-monogram img {
  width: 100%;
  height: auto;
}

/* --------------------------------------------------------------------------
   8. Story Sections (Ausgangslage & Wer wir sind)
   -------------------------------------------------------------------------- */
.story-section>.wrap {
  max-width: 1120px;
}

.story-section {
  padding: 64px 0 72px;
}

.story-section .two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px clamp(40px, 5vw, 72px);
}

.story-section .two>div:first-child {
  display: contents;
}

.story-title {
  grid-column: 1;
  grid-row: 2;
  align-self: end;
  min-width: 0;
}

.story-section .two>div:last-child {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  min-width: 0;
}

.story-section .two>div:last-child>p {
  margin: 0;
}

.story-section .sec-h {
  max-width: 100%;
  font-size: clamp(32px, 2.8vw, 40px);
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin-bottom: 0;
  overflow-wrap: break-word;
}

.story-section .lead,
.story-section .body {
  max-width: 58ch;
}

.story-icon {
  grid-column: 1;
  grid-row: 1;
  width: 112px;
  height: 112px;
  margin: 0;
  color: var(--teald);
}

.story-icon svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.story-icon__orbit {
  fill: rgba(255, 255, 255, 0.38);
  stroke: rgba(15, 94, 103, 0.24);
  stroke-width: 1.25;
  stroke-dasharray: 5 8;
  transform-box: view-box;
  transform-origin: 48px 48px;
  animation: story-orbit 18s linear infinite;
}

.story-icon__dot {
  fill: var(--gold);
  transform-box: view-box;
  transform-origin: 48px 48px;
  animation: story-orbit 18s linear infinite;
}

.story-icon__glyph {
  stroke: currentColor;
  stroke-width: 2.25;
  transform-box: fill-box;
  transform-origin: center;
  animation: story-float 4.6s ease-in-out infinite;
}

.story-icon__accent {
  stroke: var(--gold);
}

#wer .story-icon__orbit {
  fill: rgba(239, 245, 245, 0.72);
}

@keyframes story-orbit {
  to {
    transform: rotate(360deg);
  }
}

@keyframes story-float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-3px);
  }
}

/* --------------------------------------------------------------------------
   9. Team Pillars (Was wir mitbringen)
   -------------------------------------------------------------------------- */
.team-section {
  padding: 96px 0;
  background: #123f43;
  position: relative;
  isolation: isolate;
}

.team-section::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse at 100% 0%, #20585b 0%, transparent 60%);
}

.team-section>.wrap {
  max-width: 1320px;
}

.team-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  gap: 56px;
  padding-bottom: 38px;
  border-bottom: 1px solid #ffffff26;
}

.team-intro .kicker {
  color: #b7d5d2;
  font-size: 10px;
  letter-spacing: 0.2em;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.team-intro .kicker::before {
  content: '';
  width: 28px;
  height: 1px;
  background: #d5b477;
}

.team-intro .sec-h {
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 0;
  text-wrap: balance;
}

.team-intro .lead-light {
  margin: 0;
  max-width: 55ch;
  font-size: 16px;
  line-height: 1.75;
  color: #c6d9d6;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 36px;
}

.pillar {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  column-gap: 20px;
  align-content: start;
  align-items: center;
  background: #f8f9f5;
  border: 1px solid #ffffff80;
  border-radius: 6px;
  padding: 32px;
}

.pillar .pi {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid #d8e4de;
  border-radius: 50%;
  background: #edf2ec;
  color: var(--teald);
}

.pillar .pi svg {
  width: 26px;
  height: 26px;
}

.pillar .pk {
  font-family: var(--font-sans);
  font-size: 10px;
  letter-spacing: 0.14em;
  line-height: 1.7;
  text-transform: uppercase;
  color: #536e68;
  font-weight: 600;
}

.pillar h3 {
  grid-column: 1 / -1;
  margin: 24px 0 12px;
  color: #17494b;
  font-size: clamp(24px, 2.2vw, 29px);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.2;
  text-wrap: balance;
}

.pillar p {
  grid-column: 1 / -1;
  color: #526360;
  font-size: 15.5px;
  line-height: 1.75;
  max-width: 60ch;
}

@media (max-width: 820px) {
  .team-section {
    padding: 64px 0;
  }

  .team-intro {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-bottom: 28px;
  }

  .team-intro .lead-light {
    max-width: 65ch;
  }

  .pillars {
    gap: 16px;
    margin-top: 28px;
  }

  .pillar {
    padding: 26px;
    column-gap: 14px;
  }
}

@media (max-width: 480px) {
  .team-section {
    padding: 52px 0;
  }

  .team-intro .lead-light {
    font-size: 15px;
  }

  .pillar .pk {
    letter-spacing: 0.1em;
  }
}

/* --------------------------------------------------------------------------
   10. Promise Cards (Unser Versprechen)
   -------------------------------------------------------------------------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.card {
  background: var(--card);
  border: none;
  border-radius: 4px;
  padding: 28px 26px;
}

.card-mark {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.card-ico {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--tint);
  color: var(--teald);
  flex: none;
}

.card-ico svg {
  width: 22px;
  height: 22px;
}

.card .n {
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--teal);
  font-weight: 600;
}

.card h3 {
  font-size: 21px;
  margin: 0 0 8px;
}

.card p {
  font-size: 15px;
  color: var(--mut);
  line-height: 1.55;
}

.card-dark {
  background: var(--teald);
}

.card-dark .card-ico {
  background: rgba(205, 250, 255, 0.14);
  color: #CDFAFF;
}

.card-dark .n {
  color: #CDFAFF;
}

.card-dark h3 {
  color: #FFFFFF;
}

.card-dark p {
  color: #CFE0E2;
}

/* --------------------------------------------------------------------------
   10. Criteria (Was wir suchen)
   -------------------------------------------------------------------------- */
.suchen {
  display: grid;
  grid-template-columns: minmax(16rem, 22rem) minmax(0, 1fr);
  gap: 48px 72px;
  align-items: start;
}

.suchen-intro .sec-h {
  max-width: 12ch;
}

.suchen-intro .body {
  max-width: 36ch;
}

.crit {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 0;
}

.crit li {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  padding: 18px 18px;
  background: #ffffff;
  border-radius: 4px;
  font-size: 16px;
  line-height: 1.45;
  color: #2A3739;
}

.crit .c {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--tint);
  color: var(--teald);
  flex: none;
}

.crit .c svg {
  width: 20px;
  height: 20px;
}

@media (max-width: 820px) {
  .suchen {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .crit {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   11. Process Steps (So läuft es ab)
   -------------------------------------------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 44px;
}

.step .sn {
  font-family: var(--font-heading);
  font-size: 40px;
  color: var(--teal2);
  line-height: 1;
}

.step h3 {
  font-size: 19px;
  margin: 12px 0 8px;
}

.step p {
  font-size: 14.5px;
  color: var(--mut);
  line-height: 1.55;
}

/* --------------------------------------------------------------------------
   12. FAQ Section
   -------------------------------------------------------------------------- */
.faq {
  margin-top: 36px;
  border-top: 1px solid var(--line);
}

details {
  border-bottom: 1px solid var(--line);
}

summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 0;
  font-family: var(--font-heading);
  font-size: 20px;
  color: var(--teald);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  user-select: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary .pl {
  color: var(--teal);
  font-family: var(--font-sans);
  font-size: 22px;
  font-weight: 400;
  transition: transform 0.25s ease;
  line-height: 1;
}

details[open] summary .pl {
  transform: rotate(45deg);
}

details p {
  padding: 0 0 22px;
  font-size: 16px;
  color: #3A4749;
  max-width: 70ch;
}

/* --------------------------------------------------------------------------
   13. Contact Section & Form
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.contact-intro {
  color: #CFE0E2;
  font-size: 17px;
  margin-top: 14px;
  max-width: 46ch;
}

.contact-form {
  margin-top: 26px;
}

.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mut);
  margin-bottom: 6px;
}

.contact-form .field label {
  color: #CFE0E2;
}

.field input,
.field textarea {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--ink);
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(24, 130, 142, 0.2);
}

.two-f {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact-side .li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.contact-side .li .lb {
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal2);
}

.contact-side .li .vv {
  font-size: 17px;
  color: #EAF3F4;
}

.contact-discretion {
  font-size: 15px;
  color: #BCD6D8;
}

.person {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-top: 26px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.person .av {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 22px;
  color: #FFFFFF;
  flex-shrink: 0;
}

.person-name {
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-size: 19px;
  font-weight: 600;
}

.person-role {
  color: #9FC0C2;
  font-size: 14px;
}

.ok {
  display: none;
  background: var(--tint);
  border: 1px solid var(--teal2);
  border-radius: 3px;
  padding: 14px 16px;
  font-size: 15px;
  color: var(--teald);
  margin-top: 14px;
  line-height: 1.5;
  animation: fadeIn 0.3s ease;
}

.ok.show {
  display: block;
}

.ok.is-error {
  background: #F8EFE8;
  border-color: #B98A3C;
  color: #6B3A1F;
}

.form-hp,
.form-hp[hidden] {
  display: none !important;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --------------------------------------------------------------------------
   14. Legal Modal (Impressum & Datenschutz)
   -------------------------------------------------------------------------- */
body.modal-open {
  overflow: hidden;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal-overlay.is-active,
.modal-overlay:not([hidden]) {
  opacity: 1;
  visibility: visible;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 94, 103, 0.52);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
}

.modal-window {
  position: relative;
  z-index: 2;
  background: #FFFFFF;
  width: 100%;
  max-width: 680px;
  max-height: 86vh;
  border-radius: 8px;
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(15, 94, 103, 0.28), 0 4px 18px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  transform: translateY(16px) scale(0.97);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.modal-overlay.is-active .modal-window,
.modal-overlay:not([hidden]) .modal-window {
  transform: translateY(0) scale(1);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  flex-shrink: 0;
}

.modal-tabs {
  display: flex;
  gap: 8px;
}

.modal-tab {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 8px 18px;
  border-radius: 4px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--mut);
  cursor: pointer;
  transition: all 0.2s ease;
}

.modal-tab:hover {
  color: var(--teald);
  background: var(--tint);
}

.modal-tab.active {
  background: #FFFFFF;
  color: var(--teald);
  border-color: var(--line);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.modal-tab:focus-visible,
.modal-close:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

.modal-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #FFFFFF;
  color: var(--mut);
  cursor: pointer;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: var(--tint);
  color: var(--teald);
  border-color: var(--teal);
  transform: rotate(90deg);
}

.modal-body {
  padding: 30px 32px 36px;
  overflow-y: auto;
  line-height: 1.7;
  flex: 1 1 auto;
}

.modal-body::-webkit-scrollbar {
  width: 6px;
}

.modal-body::-webkit-scrollbar-track {
  background: #FAFAFA;
}

.modal-body::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 3px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
  background: var(--teal2);
}

.modal-panel {
  display: none;
}

.modal-panel.active {
  display: block;
  animation: modalFadeIn 0.25s ease;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-panel h2 {
  font-size: 26px;
  margin-bottom: 6px;
}

.modal-panel h3 {
  font-size: 16px;
  margin: 22px 0 6px;
  color: var(--teald);
}

.modal-panel p,
.modal-panel address {
  font-size: 14.5px;
  color: #3A4749;
  font-style: normal;
  line-height: 1.75;
}

.modal-panel a {
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.modal-panel a:hover {
  color: var(--teald);
}

.modal-panel .ph {
  color: var(--gold);
  font-weight: 600;
}

.legal-basis {
  margin-top: 10px;
  font-size: 14px;
  color: var(--mut);
}

.legal-meta {
  margin-top: 12px;
  font-size: 13.5px;
  color: var(--mut);
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  padding: 14px 24px;
  border-top: 1px solid var(--line);
  background: var(--bg);
  flex-shrink: 0;
}

.modal-footer .btn {
  padding: 10px 22px;
  font-size: 13.5px;
}

/* --------------------------------------------------------------------------
   16. Footer
   -------------------------------------------------------------------------- */
footer {
  background: #12292B;
  color: #9FB3B4;
  padding: 52px 0 40px;
  font-size: 13.5px;
}

.foot-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
  flex-wrap: wrap;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 26px;
  margin-bottom: 22px;
}

.foot-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.foot-brand img {
  display: block;
  width: 160px;
  height: auto;
}

.foot-links {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
}

.foot-links a:hover {
  color: #FFFFFF;
}

.foot-bot {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  color: #6E8586;
}

.foot-bot a {
  color: #6E8586;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.foot-bot a:hover {
  color: #FFFFFF;
}

/* --------------------------------------------------------------------------
   17. Responsive Media Queries
   -------------------------------------------------------------------------- */
@media (max-width: 820px) {
  nav.links {
    display: none;
    position: absolute;
    top: 88px;
    left: 0;
    right: 0;
    background: #FBFAF7;
    flex-direction: column;
    padding: 24px 28px;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
    gap: 18px;
    align-items: flex-start;
  }

  nav.links.is-open {
    display: flex;
  }

  nav.links a {
    font-size: 16px;
    padding: 6px 0;
    width: 100%;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .two {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .story-section .two {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .story-section .two>div:last-child {
    grid-column: 1;
    grid-row: 3;
    justify-content: flex-start;
    gap: 16px;
  }

  .story-section .sec-h {
    font-size: clamp(30px, 5vw, 38px);
  }

  .story-icon {
    width: 96px;
    height: 96px;
    margin-bottom: 0;
  }

  .sec-h {
    font-size: 28px;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .two-f {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {

  .pillars {
    grid-template-columns: 1fr;
  }

  .pillar {
    padding: 26px 24px;
  }

  .crit {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .modal-overlay {
    padding: 12px;
  }

  .modal-window {
    max-height: 90vh;
  }

  .modal-header {
    padding: 12px 16px;
  }

  .modal-tab {
    padding: 6px 12px;
    font-size: 13px;
  }

  .modal-body {
    padding: 20px 16px 24px;
  }
}

@media (max-width: 480px) {
  .wrap {
    padding: 0 20px;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .story-section {
    padding: 60px 0;
  }

  .story-icon {
    width: 84px;
    height: 84px;
    margin: 0;
  }

  .nav-cta .btn {
    padding: 10px 16px;
    font-size: 13.5px;
  }


}

/* Hero and header adapt independently from the page content grid. */
@media (max-width: 1100px) {
  nav.links {
    gap: 20px;
  }

  .hero-grid {
    gap: 36px;
    grid-template-columns: 1.2fr 0.8fr;
  }

  .hero h1 {
    font-size: 54px;
  }

  .hero .cta-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
}

@media (max-width: 820px) {
  .nav {
    gap: 16px;
  }

  .brand {
    margin-right: auto;
  }

  .mobile-menu-btn {
    order: 3;
    min-width: 44px;
    min-height: 44px;
  }

  .hero {
    padding: 32px 0 48px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .hero-copy {
    padding: 12px 0 0;
  }

  .hero h1 {
    font-size: clamp(44px, 7.8vw, 64px);
  }

  .hero .sub {
    max-width: 58ch;
  }

  .hero .cta-row {
    flex-direction: row;
    align-items: center;
    gap: 16px 24px;
  }

  .hero-visual {
    min-height: 340px;
    margin-left: 20px;
    margin-right: 14px;
  }

  .hero-image {
    object-position: center 58%;
  }

  .hero-monogram {
    width: 72px;
    height: 72px;
    left: -20px;
    bottom: 24px;
    padding: 16px;
  }
}

@media (max-width: 480px) {
  .nav {
    height: 76px;
    gap: 12px;
  }

  .brand-logo {
    width: 124px;
  }

  .nav-cta .btn {
    font-size: 11px;
    padding: 12px 10px;
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  nav.links {
    top: 76px;
  }

  .hero .eyebrow {
    font-size: 9px;
    gap: 10px;
    letter-spacing: 0.12em;
    margin-bottom: 24px;
  }

  .hero .eyebrow::before {
    width: 20px;
  }

  .hero h1 {
    font-size: clamp(37px, 10.5vw, 50px);
  }

  .hero .sub {
    font-size: 15px;
    line-height: 1.75;
    margin: 24px 0;
  }

  .hero .cta-row {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .hero-secondary {
    justify-content: center;
  }

  .hero-note {
    font-size: 10.5px;
    margin-top: 18px;
  }

  .hero-visual {
    min-height: 280px;
  }
}

@media (max-width: 380px) {
  .nav {
    gap: 8px;
  }

  .brand-logo {
    width: 108px;
  }

  .nav-cta .btn {
    font-size: 10px;
    padding-inline: 8px;
  }
}

header a:focus-visible,
.hero a:focus-visible,
.mobile-menu-btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 5px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .story-icon__orbit,
  .story-icon__dot,
  .story-icon__glyph {
    animation: none;
  }
}