/* ============================================================
   deepblue exposervice — Stylesheet
   Mobile-first · keine Build-Tools nötig · reines modernes CSS
   ============================================================ */

/* ---------- Schriften: lokal eingebunden (DSGVO-konform) ---------- */
@font-face {
  font-family: 'Poppins';
  src: url('../assets/fonts/poppins-300.woff2') format('woff2');
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('../assets/fonts/poppins-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('../assets/fonts/poppins-500.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../assets/fonts/inter-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../assets/fonts/inter-500.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../assets/fonts/inter-600.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}

/* ---------- Design-Tokens: zentrale Stellschrauben ---------- */
:root {
  /* Markenfarben (aus dem Logo abgeleitet) */
  --deep-blue:      #0C1B5E;   /* Primärfarbe / Logo-Blau */
  --deep-blue-dark: #070F38;   /* Footer, Overlays */
  --azure:          #2E6BE6;   /* CTA-Akzent */
  --azure-dark:     #1F55C4;   /* CTA-Hover */
  --azure-light:    #5B8DF5;   /* Akzent auf dunklem Grund */
  --ice:            #F5F7FB;   /* helle Sektionsflächen */
  --slate:          #59627A;   /* Fließtext */
  --line:           #E4E9F4;   /* Hairlines, Platzhalterflächen */
  --white:          #FFFFFF;

  /* Typografie */
  --font-head: 'Poppins', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  /* Layout */
  --container: 1160px;
  --radius: 10px;
  --header-h: 76px;
  --section-pad: clamp(4.5rem, 10vw, 8rem);
  --shadow-soft: 0 10px 40px rgba(12, 27, 94, 0.10);
}

/* ---------- Reset & Basis ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--slate);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

::selection { background: var(--azure); color: var(--white); }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--azure);
  outline-offset: 3px;
}

h1, h2, h3 {
  font-family: var(--font-head);
  color: var(--deep-blue);
  line-height: 1.2;
  font-weight: 300;
}

h1 { font-size: clamp(2.5rem, 7.5vw, 5rem); line-height: 1.08; letter-spacing: -0.015em; }
h2 { font-size: clamp(1.9rem, 4.2vw, 3rem); letter-spacing: -0.01em; }
h3 { font-size: 1.15rem; font-weight: 400; }

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

.container {
  width: min(var(--container), 100% - 2.5rem);
  margin-inline: auto;
}

.section { padding-block: var(--section-pad); }

/* Sprunglink: erst bei Tastaturfokus sichtbar */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0.5rem;
  z-index: 200;
  background: var(--deep-blue);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
}
.skip-link:focus { left: 0.5rem; }

/* ---------- Sektionsköpfe (editorial, mit Logo-Linien-Motiv) ---------- */
.sec-head { margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }

.sec-meta {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}
.sec-num {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  color: var(--azure);
}
.sec-line { flex: 1; height: 1px; background: var(--line); }  /* die Linie aus dem Logo */
.sec-tag {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--slate);
}

.sec-row { display: grid; gap: 1.25rem; }
.sec-lead { max-width: 30rem; }

@media (min-width: 900px) {
  .sec-row { grid-template-columns: 1.25fr 1fr; align-items: end; }
  .sec-lead { justify-self: end; }
}

/* dunkle Variante (Kontakt-Sektion) */
.sec-head--light h2 { color: var(--white); }
.sec-head--light .sec-line { background: rgba(255, 255, 255, 0.16); }
.sec-head--light .sec-tag { color: rgba(255, 255, 255, 0.55); }
.sec-head--light .sec-num { color: var(--azure-light); }
.sec-head--light .sec-lead { color: rgba(255, 255, 255, 0.72); }

/* ---------- Konstruktionsraster (Blueprint-Motiv, dunkle Flächen) ---------- */
.bp-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 72px 72px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  padding: 0.7rem 1.5rem;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn svg { transition: transform 0.2s ease; }
.btn:hover svg { transform: translateX(4px); }

.btn--primary { background: var(--azure); color: var(--white); }
.btn--primary:hover { background: var(--azure-dark); }

.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
}
.btn--ghost:hover { border-color: var(--white); background: rgba(255, 255, 255, 0.08); }

.btn--sm { padding: 0.5rem 1.1rem; font-size: 0.875rem; }
.btn--lg { padding: 0.85rem 1.9rem; font-size: 1rem; }
.btn--block { display: flex; width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* Logo: Bilddatei bevorzugt, Text-Variante als automatischer Fallback */
.brand { display: inline-flex; align-items: center; }
.brand:hover { text-decoration: none; }

.brand-img { height: 40px; width: auto; }
.brand-img--dark { display: none; }             /* dunkles Logo: erst nach Scroll */
.site-header.scrolled .brand-img--dark { display: block; }
.site-header.scrolled .brand-img--light { display: none; }

.brand-text {
  display: none;                                 /* nur sichtbar, wenn Logodatei fehlt */
  font-family: var(--font-head);
  font-size: 1.15rem;
  letter-spacing: 0.01em;
  color: var(--white);
  align-items: center;
  gap: 0.5rem;
}
.brand-text i {
  width: 1px;
  height: 1.1em;
  background: currentColor;
  display: inline-block;
}
.brand-text::first-line { font-weight: 500; }
.site-header.scrolled .brand-text { color: var(--deep-blue); }

/* Fallback aktiv: Bilder aus, Text an */
.brand.logo-fallback .brand-img { display: none !important; }
.brand.logo-fallback .brand-text { display: inline-flex; }

/* Navigation */
.site-nav { display: flex; align-items: center; gap: 1.9rem; }
.site-nav a:not(.btn) {
  position: relative;
  color: var(--white);
  font-weight: 500;
  font-size: 0.95rem;
}
.site-nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.site-nav a:not(.btn):hover { text-decoration: none; }
.site-nav a:not(.btn):hover::after { transform: scaleX(1); }

/* Sprachumschalter (DE / EN) — Trennstrich greift das Logo-Motiv auf */
.lang-switch { display: flex; align-items: center; gap: 0.5rem; }
.lang-switch a:not(.btn) { font-size: 0.85rem; letter-spacing: 0.08em; opacity: 0.55; }
.lang-switch a:not(.btn):hover,
.lang-switch a[aria-current] { opacity: 1; }
.lang-switch i {
  width: 1px;
  height: 0.95em;
  background: currentColor;
  opacity: 0.35;
}

/* Nach dem Scrollen: weißer Balken, dunkle Schrift */
.site-header.scrolled {
  background: var(--white);
  box-shadow: 0 1px 0 var(--line), 0 8px 30px rgba(12, 27, 94, 0.06);
}
.site-header.scrolled .site-nav a:not(.btn) { color: var(--deep-blue); }

/* Burger-Button (nur mobil) */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 0.5rem;
  cursor: pointer;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.site-header.scrolled .nav-toggle span,
.site-header.nav-open .nav-toggle span { background: var(--deep-blue); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  background: var(--deep-blue);           /* Fläche, falls hero.jpg fehlt */
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-bg.img-missing { display: none; }

/* Deep-Blue-Overlay für Lesbarkeit auf jedem Foto */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(12, 27, 94, 0.88) 30%, rgba(7, 15, 56, 0.62) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-block: calc(var(--header-h) + 3rem) 6rem;
}

.hero-kicker {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}
.hero-kicker::before {
  content: "";
  width: 56px;
  height: 1px;
  background: var(--azure-light);
  flex-shrink: 0;
}

.hero h1 { color: var(--white); max-width: 22ch; }

/* Konturschrift als typografischer Akzent */
.hero h1 em { font-style: normal; }
@supports (-webkit-text-stroke: 1px white) {
  .hero h1 em {
    -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.92);
    color: transparent;
  }
}

.hero-sub {
  color: rgba(255, 255, 255, 0.75);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  max-width: 34rem;
  margin: 1.5rem 0 2.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* Scroll-Linie statt Pfeil */
.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 44px;                 /* Tap-Fläche */
  height: 84px;
  display: flex;
  justify-content: center;
}
.hero-scroll span {
  position: relative;
  width: 1px;
  height: 100%;
  background: rgba(255, 255, 255, 0.18);
  overflow: hidden;
}
.hero-scroll span::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--white);
  transform: translateY(-100%);
  animation: scroll-line 2.4s ease-in-out infinite;
}
@keyframes scroll-line {
  45%  { transform: translateY(0); }
  100% { transform: translateY(100%); }
}

/* ---------- Laufband (Messestandorte) ---------- */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  padding-block: 1.1rem;
  background: var(--white);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 48s linear infinite;
}
.marquee-group {
  display: flex;
  align-items: center;
  gap: 2.75rem;
  padding-right: 2.75rem;
}
.marquee-group span {
  font-family: var(--font-head);
  font-weight: 300;
  font-size: 0.95rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--deep-blue);
  opacity: 0.5;
  white-space: nowrap;
}
.marquee-group i { color: var(--azure); font-style: normal; opacity: 0.7; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Kennzahlen ---------- */
.trust { padding-block: clamp(3rem, 6vw, 4.5rem); }

.trust-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}

.trust-item {
  border-left: 1px solid var(--line);
  padding-left: 1.5rem;
}

.trust-num {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 300;
  color: var(--deep-blue);
  line-height: 1.05;
}
.trust-num b { color: var(--azure); font-weight: 300; }
.trust-label { font-size: 0.95rem; }

@media (min-width: 640px) {
  .trust-grid { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
}

/* ---------- Leistungen (nummerierte Zeilen, bewusst nicht klickbar) ---------- */
.service-list { border-top: 1px solid var(--line); }

.service-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.5rem 1.75rem;
  align-items: start;
  padding: clamp(1.75rem, 4vw, 2.5rem) clamp(0.25rem, 1vw, 1rem);
  border-bottom: 1px solid var(--line);
}

.service-num {
  font-family: var(--font-head);
  font-weight: 300;
  font-size: 1rem;
  color: var(--azure);
  padding-top: 0.4rem;
}

.service-body h3 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); }
.service-body p { max-width: 44rem; margin-top: 0.5rem; font-size: 0.97rem; }

/* ---------- Referenzen ---------- */
.work { background: var(--ice); }

/* Kundenzeile („Trusted by …") über dem Projekt-Grid */
.client-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
}
.client-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--slate);
}
.client-names {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.1rem;
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 1.1rem;
  color: var(--deep-blue);
}
.client-names i {
  width: 1px;
  height: 1em;
  background: var(--deep-blue);
  opacity: 0.3;
}

.work-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.625rem;
}

.work-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3 / 2;
  background: var(--line);
}

.work-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.work-item:hover img { transform: scale(1.045); }

/* Bild fehlt → gestrichelte Drop-Fläche mit Dateinamen */
.work-item.is-placeholder {
  background: var(--white);
  border: 1px dashed #C6D0E4;
}
.work-item.is-placeholder img,
.work-item.is-placeholder figcaption { display: none; }
.work-item.is-placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 24 24' fill='none' stroke='%239AA6C4' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3Ccircle cx='8.5' cy='8.5' r='1.5'/%3E%3Cpath d='M21 15l-5-5L5 21'/%3E%3C/svg%3E")
    center 42% no-repeat;
}
.work-item.is-placeholder::after {
  content: attr(data-file);
  position: absolute;
  left: 50%;
  top: 58%;
  transform: translateX(-50%);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: #9AA6C4;
}

/* Bildunterschrift: schiebt sich beim Hover ein, mobil immer sichtbar */
.work-item figcaption {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 1;
  padding: 2.25rem 1.25rem 1rem;
  background: linear-gradient(180deg, rgba(7, 15, 56, 0) 0%, rgba(7, 15, 56, 0.88) 100%);
  color: var(--white);
  display: flex;
  flex-direction: column;
  line-height: 1.4;
}
.work-item figcaption strong { font-weight: 500; }
.work-item figcaption span { font-size: 0.85rem; color: rgba(255, 255, 255, 0.72); }

@media (hover: hover) {
  .work-item figcaption {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }
  .work-item:hover figcaption,
  .work-item:focus-within figcaption { opacity: 1; transform: translateY(0); }
}

/* ---------- Messesets: Preiskarten ---------- */
.sets { background: var(--ice); }

.sets-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.set-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 2rem 1.75rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.set-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.set-card--featured { border: 2px solid var(--azure); }

.set-badge {
  position: absolute;
  top: -0.8rem;
  left: 1.75rem;
  background: var(--azure);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.32rem 0.85rem;
  border-radius: 6px;
}

.set-name {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 1.35rem;
  color: var(--deep-blue);
}
.set-size { color: var(--slate); font-size: 0.9rem; margin-top: 0.2rem; }

.set-price {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  margin: 1.4rem 0 0.2rem;
  font-family: var(--font-head);
  color: var(--deep-blue);
}
.set-price .from { font-size: 0.9rem; color: var(--slate); font-weight: 400; }
.set-price b { font-size: 2.3rem; font-weight: 400; line-height: 1; }

.set-vat { font-size: 0.78rem; color: var(--slate); margin-bottom: 0.25rem; }

.set-features {
  list-style: none;
  margin: 1.5rem 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0.75rem;
}
.set-features li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.65rem;
  align-items: start;
  font-size: 0.92rem;
  line-height: 1.5;
}
.set-features li.note {
  grid-template-columns: 1fr;
  color: var(--slate);
  font-weight: 500;
  font-size: 0.88rem;
}
.set-features svg { color: var(--azure); flex-shrink: 0; margin-top: 0.15rem; }

/* Bild pro Set (Render/Foto) — Platzhalter mit Fallback */
.set-media {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  overflow: hidden;
  background: var(--ice);
  margin-bottom: 1.5rem;
}
.set-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.set-media.is-placeholder { border: 1px dashed #C6D0E4; }
.set-media.is-placeholder img { display: none; }
.set-media.is-placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 24 24' fill='none' stroke='%239AA6C4' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3Ccircle cx='8.5' cy='8.5' r='1.5'/%3E%3Cpath d='M21 15l-5-5L5 21'/%3E%3C/svg%3E")
    center 40% no-repeat;
}
.set-media.is-placeholder::after {
  content: attr(data-file);
  position: absolute;
  left: 0;
  right: 0;
  top: 58%;
  text-align: center;
  font-size: 0.78rem;
  color: #9AA6C4;
}

/* Ein zentraler CTA statt drei Karten-Buttons */
.sets-cta { text-align: center; margin-top: clamp(2rem, 4vw, 3rem); }

@media (min-width: 880px) {
  .sets-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- „Wächst mit Ihnen" — Partnerschaft ---------- */
.grow-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}
.grow-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(46, 107, 230, 0.1);
  color: var(--azure);
  margin-bottom: 1rem;
}
.grow-item h3 { margin-bottom: 0.4rem; }
.grow-item p { font-size: 0.95rem; }
.grow-item a { font-weight: 500; }

@media (min-width: 760px) {
  .grow-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Kontakt (dunkle Sektion mit Konstruktionsraster) ---------- */
.contact {
  position: relative;
  background: var(--deep-blue);
  overflow: hidden;
}
.contact .container { position: relative; z-index: 1; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
}

.contact-intro p { color: rgba(255, 255, 255, 0.72); max-width: 26rem; }

.contact-details {
  list-style: none;
  margin-top: 2rem;
  display: grid;
  gap: 0.9rem;
}
.contact-details li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--white);
}
.contact-details a { color: inherit; }
.contact-details svg { flex-shrink: 0; color: var(--azure-light); }

/* Formular-Karte (bewusst hell — der Fokuspunkt der Sektion) */
.contact-form {
  background: var(--white);
  border-radius: calc(var(--radius) + 6px);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  box-shadow: 0 24px 70px rgba(4, 9, 35, 0.45);
}

.field { margin-bottom: 1.1rem; }

.field label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--deep-blue);
  margin-bottom: 0.35rem;
}
.field label small { font-weight: 400; color: var(--slate); }

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 0.95rem;
  color: var(--deep-blue);
  background: var(--ice);
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 0.7rem 0.9rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.field textarea { resize: vertical; min-height: 110px; }

.field input:focus,
.field textarea:focus {
  outline: none;
  background: var(--white);
  border-color: var(--azure);
  box-shadow: 0 0 0 3px rgba(46, 107, 230, 0.18);
}

/* Dropdown (Set-Auswahl) — gleicher Look wie die Textfelder */
.field select {
  width: 100%;
  font: inherit;
  font-size: 0.95rem;
  color: var(--deep-blue);
  background-color: var(--ice);
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 0.7rem 2.5rem 0.7rem 0.9rem;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2359627A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.field select:focus {
  outline: none;
  background-color: var(--white);
  border-color: var(--azure);
  box-shadow: 0 0 0 3px rgba(46, 107, 230, 0.18);
}

/* Checkbox-Zeile (Datenschutz) */
.field--checkbox {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.6rem;
  align-items: start;
}
.field--checkbox input { margin-top: 0.3rem; accent-color: var(--azure); }
.field--checkbox label { font-weight: 400; color: var(--slate); font-size: 0.85rem; margin: 0; }
.field--checkbox .field-error { grid-column: 1 / -1; }

/* Validierungszustände */
.field-error {
  display: none;
  font-size: 0.8rem;
  color: #C0392B;
  margin-top: 0.3rem;
}
.field.has-error .field-error { display: block; }
.field.has-error input,
.field.has-error textarea { border-color: #C0392B; }

/* Statuszeile unter dem Absenden-Button */
.form-status { display: none; margin-top: 1rem; font-size: 0.9rem; text-align: center; }
.form-status.is-success { display: block; color: #1E7A46; }
.form-status.is-error { display: block; color: #C0392B; }

/* Honeypot: für Menschen unsichtbar, Bots füllen es aus */
.hp-field { position: absolute; left: -5000px; opacity: 0; height: 0; }

button[disabled] { opacity: 0.6; cursor: wait; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--deep-blue-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7);
  padding-block: 2.25rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.footer-brand {
  font-family: var(--font-head);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.footer-brand i { width: 1px; height: 1.1em; background: currentColor; display: inline-block; }

.footer-nav { display: flex; gap: 1.5rem; }
.footer-nav a { color: rgba(255, 255, 255, 0.7); font-size: 0.9rem; }
.footer-nav a:hover { color: var(--white); }

.footer-copy { font-size: 0.85rem; }

/* ---------- Unterseiten (Impressum / Datenschutz) ---------- */
.legal-page { padding: calc(var(--header-h) + 3rem) 0 4rem; min-height: 60vh; }
.legal-page h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 1.5rem; }
.legal-page h2 { font-size: 1.2rem; font-weight: 500; margin: 2rem 0 0.5rem; }
.legal-page p { max-width: 44rem; }

/* Header auf Unterseiten: immer weiß */
.site-header.header-solid {
  background: var(--white);
  box-shadow: 0 1px 0 var(--line);
}
.site-header.header-solid .site-nav a:not(.btn) { color: var(--deep-blue); }
.site-header.header-solid .brand-text { color: var(--deep-blue); }
.site-header.header-solid .nav-toggle span { background: var(--deep-blue); }
.site-header.header-solid .brand-img--dark { display: block; }
.site-header.header-solid .brand-img--light { display: none; }

/* ---------- Scroll-Einblendungen ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Reduzierte Bewegung respektieren */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-scroll span::after { animation: none; }
  .marquee-track { animation: none; }
  .work-item img { transition: none; }
}

/* ---------- Tablet & Desktop ---------- */
@media (min-width: 640px) {
  .work-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }

  .work-item--wide { grid-column: span 2; }
}

@media (min-width: 900px) {
  /* Row 1 & 2: wide left + 2 stacked right */
  .work-grid {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    grid-template-rows: repeat(4, minmax(clamp(100px, 11vw, 150px), auto));
    gap: 0.5rem;
  }

  .work-item {
    aspect-ratio: unset;
    min-height: 0;
    height: 100%;
  }

  .work-item:nth-child(1) { grid-column: 1; grid-row: 1 / 3; }
  .work-item:nth-child(2) { grid-column: 2; grid-row: 1; }
  .work-item:nth-child(3) { grid-column: 2; grid-row: 2; }
  .work-item:nth-child(4) { grid-column: 1; grid-row: 3 / 5; }
  .work-item:nth-child(5) { grid-column: 2; grid-row: 3; }
  .work-item:nth-child(6) { grid-column: 2; grid-row: 4; }

  .contact-grid { grid-template-columns: 1fr 1.1fr; gap: 4.5rem; }
}

/* ---------- Mobile Navigation ---------- */
@media (max-width: 767px) {
  .nav-toggle { display: flex; }

  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 1.25rem 1.25rem;
    box-shadow: 0 20px 40px rgba(12, 27, 94, 0.12);

    /* geschlossen: ausgeblendet */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  }

  .site-header.nav-open .site-nav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  /* im offenen Menü: dunkle Links, Trennlinien, keine Hover-Striche */
  .site-nav a:not(.btn) {
    color: var(--deep-blue) !important;
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--line);
  }
  .site-nav a:not(.btn)::after { display: none; }
  .site-nav .btn { margin-top: 1rem; }

  /* Sprachumschalter im mobilen Menü: zentriert, ohne Zeilen-Optik */
  .site-nav .lang-switch { justify-content: center; margin-top: 1.1rem; }
  .site-nav .lang-switch a:not(.btn) { padding: 0; border-bottom: 0; }

  /* offenes Menü braucht weißen Header-Balken */
  .site-header.nav-open { background: var(--white); }
  .site-header.nav-open .brand-text { color: var(--deep-blue); }
  .site-header.nav-open .brand-img--dark { display: block; }
  .site-header.nav-open .brand-img--light { display: none; }

  /* Burger → X */
  .site-header.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .site-header.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .site-header.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
