/* ==========================================================================
   Seydelmann One-Pager – Stylesheet
   Design reference: Claude Design handoff "Seydelmann One-Pager" (dc.html)
   Tokens taken 1:1 from README.md of the handoff.
   ========================================================================== */

/* ---------- Fonts (self-hosted, no Google Fonts request) ----------
   Variable-font woff2 files, Latin subset (covers de/en incl. Umlaute/ß).
   Downloaded once from Google Fonts (Cormorant Garamond v21, Inter v20). */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/cormorant-garamond-latin-variable.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/inter-latin-variable.woff2') format('woff2');
}

:root {
  /* Colors */
  --color-navy: #1C3766;
  --color-navy-dark: #101f3a;
  --color-red: #e30613;
  --color-red-hover: #c00510;
  --color-red-bright: #ff5a63;
  --color-cream: #faf7ef;
  --color-cream-alt: #f3f0e8;
  --color-text: #2b2b2b;
  --color-muted: #5f594e;
  --color-caption: #7a7468;
  --color-rule-1: #e6e0d2;
  --color-rule-2: #d8d2c4;
  --color-rule-3: #c9c2b2;
  --color-success-bg: #eef3e8;

  /* Typography */
  --font-display: 'Cormorant Garamond', Garamond, serif;
  --font-body: 'Inter', -apple-system, 'Segoe UI', sans-serif;

  /* Layout */
  --content-width: 1180px;
  --section-padding-x: clamp(18px, 4vw, 44px);
  --section-padding-y: clamp(44px, 6vw, 84px);

  /* Header height, kept in sync at runtime by site.js */
  --header-offset: 78px;
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

/* <picture> wraps every content <img> (WebP + JPG fallback, see assets/img).
   NOTE: we deliberately do NOT use `picture { display: contents }` here —
   Safari has a long-standing bug where a display:contents <picture> loses
   its flex/grid sizing (width, aspect-ratio, object-fit on the nested img
   render at native/wrong size). Instead, every "X img" sizing rule below
   has a matching "X picture" rule: picture becomes the actual flex/grid
   item (sized like the old img was), and the nested img is just told to
   fill it 100% while object-fit/object-position stay on the img itself. */

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-cream);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--color-red); text-decoration: none; }
a:hover { color: var(--color-red-hover); }

img { display: block; max-width: 100%; }

ul { list-style: none; }

button { font: inherit; }

.container {
  max-width: var(--content-width);
  margin: 0 auto;
  padding-left: var(--section-padding-x);
  padding-right: var(--section-padding-x);
}

.section {
  border-top: 1px solid var(--color-rule-1);
}

.section > .container {
  padding-top: var(--section-padding-y);
  padding-bottom: var(--section-padding-y);
}

.section--alt { background: var(--color-cream-alt); }
.section--navy { background: var(--color-navy); color: #fff; }
.section--navy-dark { background: var(--color-navy-dark); color: #fff; }
.section--first { border-top: none; }

.eyebrow {
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--color-red);
  font-weight: 700;
}

.eyebrow--on-navy { color: var(--color-red-bright); }

.section-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.08;
  color: var(--color-navy);
  margin-top: 14px;
}

.section--navy .section-title,
.section--navy-dark .section-title { color: #fff; }

.section-lede {
  margin-top: 18px;
  max-width: 62ch;
  font-size: 16px;
  line-height: 1.7;
}

/* Anchored sections need offset for the sticky header */
section[id] { scroll-margin-top: var(--header-offset); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(250, 247, 239, .94);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-rule-1);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: clamp(10px, 3vw, 40px);
  flex-wrap: wrap;
  row-gap: 8px;
  padding-top: clamp(10px, 1.4vw, 14px);
  padding-bottom: clamp(10px, 1.4vw, 14px);
}

.site-header__logo {
  height: clamp(34px, 6.4vw, 78px);
  flex: none;
}

.primary-nav {
  display: flex;
  column-gap: clamp(10px, 2vw, 26px);
  row-gap: 14px;
  margin-left: clamp(0px, 4vw, 56px);
  flex-wrap: wrap;
  font-size: clamp(11px, 1.2vw, 13px);
  letter-spacing: .06em;
  text-transform: uppercase;
}

.primary-nav a { color: var(--color-muted); }
.primary-nav a:hover { color: var(--color-navy); }

/* ---------- Nav toggle (hamburger, smartphone only) ---------- */
.nav-toggle {
  display: none;
  flex: none;
  border: 0;
  background: none;
  padding: 6px;
  margin-left: 2px;
  color: var(--color-navy);
  cursor: pointer;
}

.nav-toggle__icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon-close { display: block; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }

  .primary-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    row-gap: 0;
    column-gap: 0;
    margin-left: 0;
    background: var(--color-cream);
    border-bottom: 1px solid var(--color-rule-1);
    box-shadow: 0 12px 24px rgba(16, 31, 58, .12);
    padding: 4px clamp(18px, 4vw, 44px) 12px;
  }

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

  .primary-nav a {
    padding: 13px 0;
    border-bottom: 1px solid var(--color-rule-1);
  }

  .primary-nav a:last-child { border-bottom: 0; }
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: none;
  margin-left: auto;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: .08em;
}

.lang-switch button {
  border: 0;
  background: transparent;
  color: #b0a99e;
  padding: 4px 2px;
  cursor: pointer;
  text-underline-offset: 3px;
}

.lang-switch button[aria-current="true"] {
  color: var(--color-navy);
  text-decoration: underline;
}

.lang-switch__sep { color: var(--color-rule-3); font-size: 11px; }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(48px, 8vw, 96px); padding-bottom: clamp(32px, 5vw, 56px); }

.hero__eyebrow {
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--color-red);
  font-weight: 700;
  margin-bottom: 22px;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(38px, 7vw, 80px);
  line-height: 1.02;
  letter-spacing: -.015em;
  color: var(--color-navy);
}

.hero h1 b {
  color: var(--color-red);
  font-weight: 600;
}

.hero__lead {
  margin-top: 26px;
  max-width: 60ch;
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.65;
  color: var(--color-muted);
  font-weight: 300;
}

.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 34px;
}

.btn {
  display: inline-block;
  padding: 14px 26px;
  font-size: 14px;
  letter-spacing: .04em;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn--primary { background: var(--color-navy); color: #fff; }
.btn--primary:hover { background: var(--color-navy-dark); color: #fff; }

.btn--secondary { border-color: var(--color-rule-3); color: var(--color-text); background: transparent; }
.btn--secondary:hover { border-color: var(--color-navy); color: var(--color-navy); }

.btn--cta { background: var(--color-red); color: #fff; }
.btn--cta:hover { background: var(--color-red-hover); color: #fff; }

.hero__strip {
  display: flex;
  gap: 10px;
  margin-top: clamp(36px, 5vw, 60px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 2px;
}

.hero__strip::-webkit-scrollbar { display: none; }

/* Desktop: 4 images at full size always fit the container width (see
   README), so no scrolling/slider needed there — just a static row.
   Mobile keeps the swipe slider (images at 78vw don't fit in one row). */
@media (min-width: 861px) {
  .hero__strip {
    overflow-x: visible;
    scroll-snap-type: none;
  }
}

.hero__strip picture {
  display: block;
  flex: 0 0 clamp(180px, 19vw, 240px);
  width: clamp(180px, 19vw, 240px);
  aspect-ratio: 1;
  scroll-snap-align: start;
}

.hero__strip picture img { display: block; width: 100%; height: 100%; object-fit: cover; }

.hero__strip picture img[data-fit="snack"] { object-position: center 62%; }

/* On mobile, match the peek width of the .process-steps sliders below
   (clamp(200px, 78vw, 260px)) so both feel like the same slider pattern
   instead of the hero cards reading small/dense in comparison. Stays
   square (aspect-ratio: 1) — these are product macro shots, not the
   step-sequence photos, so no caption/time label here. */
@media (max-width: 860px) {
  .hero__strip picture {
    flex-basis: clamp(200px, 78vw, 260px);
    width: clamp(200px, 78vw, 260px);
  }
}

/* ---------- Intro (two column) ---------- */
.intro-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(24px, 4vw, 56px);
}

.intro-grid__rule {
  height: 2px;
  width: 54px;
  background: var(--color-red);
  margin-top: 20px;
}

.intro-grid__copy {
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 16px;
  line-height: 1.7;
}

/* ---------- Applications ---------- */
.app-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.08;
  color: var(--color-navy);
  max-width: 20ch;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: clamp(20px, 3vw, 40px);
  margin-top: 36px;
}

.app-card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--color-navy);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--color-rule-2);
}

.app-card ul {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 14.5px;
  line-height: 1.45;
}

.app-card li {
  padding-left: 16px;
  position: relative;
}

.app-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 5px;
  height: 5px;
  background: var(--color-red);
}

.app-figures {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin-top: 36px;
}

.app-figures picture { display: block; width: 100%; aspect-ratio: 16 / 9; }

.app-figures picture img { display: block; width: 100%; height: 100%; object-fit: cover; }

.app-figures figcaption {
  margin-top: 7px;
  font-size: 12.5px;
  font-style: italic;
  color: var(--color-caption);
}

/* ---------- Process ---------- */
.process-label {
  margin-top: 34px;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--color-red);
  font-weight: 700;
}

.process-label--first { margin-top: 34px; }

.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.process-steps picture { display: block; width: 100%; aspect-ratio: 1.4; }

.process-steps picture img { display: block; width: 100%; height: 100%; object-fit: cover; }

.process-steps__time {
  margin-top: 7px;
  font-size: 12px;
  color: var(--color-red);
  font-weight: 700;
  letter-spacing: .08em;
}

.process-steps__caption {
  font-size: 12.5px;
  font-style: italic;
  color: var(--color-caption);
}

/* Below 860px the grid would wrap the 4 steps into stacked rows; a
   horizontal swipe slider (same pattern as .hero__strip) reads better
   than a tall stack on a phone. */
@media (max-width: 860px) {
  .process-steps {
    display: flex;
    grid-template-columns: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding-bottom: 2px;
  }

  .process-steps::-webkit-scrollbar { display: none; }

  .process-steps > div {
    flex: 0 0 clamp(200px, 78vw, 260px);
    scroll-snap-align: start;
  }
}

.feature-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(18px, 2.6vw, 34px);
  margin-top: 36px;
  border-top: 1px solid var(--color-rule-2);
  padding-top: 26px;
}

.feature-cols h4 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--color-navy);
}

.feature-cols p {
  margin-top: 8px;
  font-size: 14.5px;
  line-height: 1.6;
}

.pull-quote {
  margin-top: 30px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(18px, 2.2vw, 24px);
  color: var(--color-navy);
}

.pull-quote--on-navy {
  color: #fff;
  border-top: 1px solid rgba(255, 255, 255, .24);
  padding-top: 18px;
  margin-top: 34px;
}

/* ---------- Technology ---------- */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(24px, 4vw, 48px);
  margin-top: 36px;
}

.tech-card picture {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  background: var(--color-cream-alt);
  padding: 12px;
}

.tech-card picture img { display: block; width: 100%; height: 100%; object-fit: contain; }

.tech-card h3 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  margin-top: 16px;
}

.tech-card__spec {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--color-red-bright);
  margin-top: 6px;
}

.tech-card p {
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, .86);
}

/* ---------- Detail (FlexMix) ---------- */
.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(24px, 4vw, 48px);
  margin-top: 32px;
  align-items: start;
}

.detail-grid picture { display: block; width: 100%; aspect-ratio: 4 / 3; }

.detail-grid picture img { display: block; width: 100%; height: 100%; object-fit: cover; }

.detail-grid p { font-size: 16px; line-height: 1.7; }
.detail-grid b { color: var(--color-navy); }

.detail-facts {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 26px;
}

.detail-facts > div {
  border-top: 1px solid var(--color-rule-2);
  padding-top: 14px;
}

.detail-facts h4 {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  color: var(--color-navy);
}

.detail-facts p {
  margin-top: 5px;
  font-size: 14.5px;
  line-height: 1.55;
}

/* ---------- Audience ---------- */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: clamp(20px, 3vw, 40px);
  margin-top: 34px;
  max-width: 900px;
}

.audience-card {
  border-left: 2px solid var(--color-red);
  padding-left: 20px;
}

.audience-card h4 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--color-navy);
}

.audience-card p {
  margin-top: 8px;
  font-size: 14.5px;
  line-height: 1.6;
}

/* ---------- Benefits ---------- */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(20px, 3vw, 40px);
  margin-top: 34px;
}

.benefit-card__num {
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: 600;
  color: var(--color-red);
  line-height: .9;
}

.benefit-card h4 {
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 600;
  color: var(--color-navy);
  margin-top: 10px;
}

.benefit-card p {
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.6;
}

/* ---------- Rework ---------- */
.rework-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(20px, 3vw, 40px);
  align-items: stretch;
  margin-top: 30px;
}

.rework-grid picture { display: block; width: 100%; height: 100%; min-height: 280px; }

.rework-grid picture img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 45%; }

.rework-routes {
  display: flex;
  flex-direction: column;
  gap: 22px;
  height: 100%;
}

.rework-route__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--color-red);
}

.rework-route h4 {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  color: var(--color-navy);
  margin-top: 4px;
}

.rework-route p {
  margin-top: 6px;
  font-size: 14.5px;
  line-height: 1.55;
}

.rework-callout {
  background: var(--color-cream);
  border-left: 4px solid var(--color-red);
  padding: 16px 20px;
  margin-top: auto;
  font-size: 15px;
  line-height: 1.6;
}

.rework-callout b { color: var(--color-navy); }

/* ---------- Why Seydelmann ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(24px, 4vw, 52px);
  align-items: center;
}

.why-grid h2 { max-width: 24ch; }

.why-grid p { margin-top: 18px; font-size: 16px; line-height: 1.7; max-width: 60ch; }
.why-grid p b { color: var(--color-navy); }

.why-grid__facts {
  color: var(--color-muted);
  font-size: 15px;
  border-top: 1px solid var(--color-rule-2);
  padding-top: 16px;
}

.why-grid picture { display: block; width: 100%; aspect-ratio: 4 / 3; }

.why-grid picture img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(24px, 4vw, 48px);
  align-items: stretch;
}

.contact-col { display: flex; flex-direction: column; }

.contact-col h2 { font-size: clamp(30px, 4vw, 52px); line-height: 1.06; }

.contact-col p { margin-top: 18px; font-size: 16px; line-height: 1.7; color: rgba(255, 255, 255, .85); max-width: 52ch; }

.contact-person {
  margin-top: auto;
  margin-bottom: calc(8px + 1.7em * 0.78);
  background: var(--color-navy);
  padding: 16px;
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.contact-person picture { display: block; width: 86px; height: 108px; flex: none; }

.contact-person picture img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 18%; }

.contact-person__meta { min-width: 180px; }

.contact-person__label {
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .6);
}

.contact-person__name {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  margin-top: 4px;
}

.contact-person__role { font-size: 12px; opacity: .9; margin-top: 2px; }

.contact-person__reach {
  font-size: 12.5px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, .22);
}

.contact-person__reach a { color: #fff; text-decoration: underline; }

.contact-figure picture { display: block; width: 100%; flex: 1 1 auto; min-height: 300px; }

.contact-figure picture img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 58%; }

.contact-figure figcaption {
  margin-top: 8px;
  font-size: 12.5px;
  line-height: 1.7;
  font-style: italic;
  color: rgba(255, 255, 255, .7);
}

/* ---------- Footer ---------- */
.site-footer {
  background: #d3232a;
  color: #fff;
  position: relative;
}

.site-footer__socials {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  align-items: center;
}

.site-footer__socials a { color: #fff; display: inline-flex; }

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(28px, 4vw, 56px);
  margin-top: clamp(36px, 5vw, 64px);
}

.footer-grid h3 {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.footer-address {
  margin-top: 26px;
  font-size: 17px;
  line-height: 1.65;
}

.footer-contacts {
  margin-top: 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-contacts > div,
.footer-links-plain > div {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 17px;
  line-height: 1.6;
}

.footer-contacts a,
.footer-links-plain a { color: #fff; }

.footer-contacts svg,
.footer-links-plain svg { flex: none; opacity: .95; }

.footer-links-plain {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-legal {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-legal > div {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 17px;
  line-height: 1.75;
}

.footer-legal a { color: #fff; }
.footer-legal span { opacity: .9; }

.back-to-top {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 66px;
  height: 66px;
  background: #3d2b30;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.back-to-top:hover { color: #fff; opacity: .85; }

/* ---------- CTA tag ---------- */
.cta-tag {
  position: fixed;
  right: 0;
  top: 52%;
  transform: translateY(-50%);
  z-index: 60;
  border: 0;
  cursor: pointer;
  background: var(--color-red);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 22px 13px;
  writing-mode: vertical-rl;
  box-shadow: -2px 0 14px rgba(0, 0, 0, .18);
}

.cta-tag:hover { background: var(--color-red-hover); color: #fff; }

/* ---------- Contact modal ---------- */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 70;
}

.modal.is-open { display: block; }

.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(16, 31, 58, .55);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

.modal__panel {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: min(460px, 100%);
  background: var(--color-cream);
  overflow-y: auto;
  padding: clamp(24px, 3vw, 40px);
  box-shadow: -8px 0 40px rgba(16, 31, 58, .28);
}

.modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  border: 0;
  background: transparent;
  cursor: pointer;
  color: var(--color-muted);
  padding: 6px;
  line-height: 0;
}

.modal__close:hover { color: var(--color-red); }

.modal__panel h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.1;
  color: var(--color-navy);
  margin-top: 10px;
}

.modal__panel > .eyebrow { margin-top: 0; }

.modal__lead {
  margin-top: 12px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--color-muted);
}

.contact-form {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--color-navy);
  font-weight: 700;
}

.contact-form__required {
  color: var(--color-red);
  margin-left: 1px;
}

.contact-form input,
.contact-form textarea {
  border: 1px solid var(--color-rule-3);
  background: #fff;
  padding: 11px 12px;
  font-family: inherit;
  font-size: 15px;
  color: var(--color-text);
}

.contact-form textarea { line-height: 1.5; resize: vertical; }

.contact-form label.contact-form__consent {
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
  text-transform: none;
  font-weight: 400;
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: normal;
  color: var(--color-text);
}

.contact-form__consent input[type="checkbox"] {
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: var(--color-navy);
}

.contact-form__consent a { text-decoration: underline; }

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--color-navy);
  outline: none;
}

.contact-form__submit {
  margin-top: 4px;
  align-self: flex-start;
}

.contact-form__success {
  display: none;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--color-navy);
  background: var(--color-success-bg);
  border-left: 4px solid var(--color-red);
  padding: 12px 14px;
}

.contact-form__success.is-visible { display: block; }

.contact-form__success.is-error {
  background: #fbe9e7;
  color: var(--color-red-hover);
}

/* ---------- Utility ---------- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Spamschutz-Honeypot: fuer Menschen unsichtbar, Bots fuellen es trotzdem aus */
.contact-form__hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Fehlermeldung des Formulars (getrennt vom Erfolgskasten, damit sich Texte nicht vermischen) */
.contact-form__error {
  display: none;
  margin-top: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  background: #fbe9e7;
  color: #8a1c0f;
  font-size: 0.95rem;
}
.contact-form__error.is-visible { display: block; }
