/* Lokal gehostete Schriften (ehemals Google Fonts) – kein Drittanbieter-Request. */
@font-face{
  font-family:'Montserrat';
  font-style:italic;
  font-weight:300;
  font-display:swap;
  src:url('/assets/fonts/montserrat-300-italic-latin-ext.woff2') format('woff2');
  unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face{
  font-family:'Montserrat';
  font-style:italic;
  font-weight:300;
  font-display:swap;
  src:url('/assets/fonts/montserrat-300-italic-latin.woff2') format('woff2');
  unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face{
  font-family:'Montserrat';
  font-style:normal;
  font-weight:300;
  font-display:swap;
  src:url('/assets/fonts/montserrat-300-latin-ext.woff2') format('woff2');
  unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face{
  font-family:'Montserrat';
  font-style:normal;
  font-weight:300;
  font-display:swap;
  src:url('/assets/fonts/montserrat-300-latin.woff2') format('woff2');
  unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face{
  font-family:'Montserrat';
  font-style:normal;
  font-weight:400;
  font-display:swap;
  src:url('/assets/fonts/montserrat-400-latin-ext.woff2') format('woff2');
  unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face{
  font-family:'Montserrat';
  font-style:normal;
  font-weight:400;
  font-display:swap;
  src:url('/assets/fonts/montserrat-400-latin.woff2') format('woff2');
  unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face{
  font-family:'Montserrat';
  font-style:normal;
  font-weight:700;
  font-display:swap;
  src:url('/assets/fonts/montserrat-700-latin-ext.woff2') format('woff2');
  unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face{
  font-family:'Montserrat';
  font-style:normal;
  font-weight:700;
  font-display:swap;
  src:url('/assets/fonts/montserrat-700-latin.woff2') format('woff2');
  unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face{
  font-family:'Unna';
  font-style:italic;
  font-weight:400;
  font-display:swap;
  src:url('/assets/fonts/unna-400-italic-latin-ext.woff2') format('woff2');
  unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face{
  font-family:'Unna';
  font-style:italic;
  font-weight:400;
  font-display:swap;
  src:url('/assets/fonts/unna-400-italic-latin.woff2') format('woff2');
  unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face{
  font-family:'Unna';
  font-style:normal;
  font-weight:400;
  font-display:swap;
  src:url('/assets/fonts/unna-400-latin-ext.woff2') format('woff2');
  unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face{
  font-family:'Unna';
  font-style:normal;
  font-weight:400;
  font-display:swap;
  src:url('/assets/fonts/unna-400-latin.woff2') format('woff2');
  unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Ergänzungen, die nicht aus Tailwind-Utilities kommen
   (dynamische Header-Zustände, Dropdowns, Mobile-Menü, Hero-Animation) */

/* ── Header: transparent oben, dunkel beim Scrollen ── */
.site-header { background: transparent; }
.site-header.is-scrolled {
  background: linear-gradient(160deg, #001a3a 0%, #002652 55%, #0b3a67 100%);
  box-shadow: 0 2px 18px rgba(0,0,0,0.12);
  backdrop-filter: blur(10px);
  padding-top: 0.625rem;
  padding-bottom: 0.625rem;
}
.site-header .site-logo { height: 3rem; }              /* verkleinert */
.site-header.is-scrolled .site-logo { height: 2.25rem; }
/* Mobile: Logo und Header-Höhe etwas kleiner (feste px, da 1rem hier 19,5px ist) */
@media (max-width: 1023.98px) {
  .site-header { padding-top: 12px; padding-bottom: 12px; }
  .site-header.is-scrolled { padding-top: 8px; padding-bottom: 8px; }
  .site-header .site-logo { height: 34px; }
  .site-header.is-scrolled .site-logo { height: 28px; }
}

/* ── Desktop-Dropdowns (CSS-Hover statt JS) ── */
.nav-item { position: relative; }
.nav-dropdown {
  position: absolute; top: 100%; left: 0; margin-top: 0.5rem;
  min-width: 220px; background: #002652;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  padding: 0.5rem 0;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.nav-item:hover > .nav-dropdown,
.nav-item:focus-within > .nav-dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.nav-item:hover > a .nav-chevron { transform: rotate(180deg); }

/* ── Animierter Burger-Button (nur unterhalb xl sichtbar) ── */
.burger {
  display: none; align-items: center; justify-content: center;
  width: 44px; height: 44px; margin-right: -8px;
  background: none; border: 0; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
@media (max-width: 1279.98px) { .burger { display: inline-flex; } }
.burger-box { position: relative; width: 26px; height: 16px; }
.burger-line {
  position: absolute; left: 0; width: 100%; height: 2px;
  background: #fff; border-radius: 2px;
  transition: transform .3s ease, opacity .2s ease;
}
.burger-line:nth-child(1) { top: 0; }
.burger-line:nth-child(2) { top: 50%; transform: translateY(-50%); }
.burger-line:nth-child(3) { bottom: 0; }
.burger.is-open .burger-line:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); }
.burger.is-open .burger-line:nth-child(2) { opacity: 0; }
.burger.is-open .burger-line:nth-child(3) { bottom: 50%; transform: translateY(50%) rotate(-45deg); }

/* ── Mobile-Menü: Vollbild-Overlay ── */
.mobile-menu {
  position: fixed; inset: 0; z-index: 40;
  background: linear-gradient(160deg, #001a3a 0%, #002652 55%, #0b3a67 100%);
  opacity: 0; visibility: hidden; transform: translateY(-12px);
  transition: opacity .35s ease, transform .35s ease, visibility .35s;
  overflow-y: auto; overscroll-behavior: contain;
}
.mobile-menu.open { opacity: 1; visibility: visible; transform: translateY(0); }
/* Volle Breite; horizontaler Gutter kommt aus den Container-Klassen im Markup
   (px-6 md:px-10, identisch zum Header), damit Menüpunkte mit Logo/X fluchten */
.mobile-menu-inner { padding-top: 5rem; padding-bottom: 3rem; }

.mobile-item { opacity: 0; transform: translateY(10px); }
.mobile-menu.open .mobile-item { animation: mobileIn .45s cubic-bezier(.2,.7,.3,1) forwards; }
.mobile-menu.open .mobile-item:nth-child(1) { animation-delay: .04s; }
.mobile-menu.open .mobile-item:nth-child(2) { animation-delay: .09s; }
.mobile-menu.open .mobile-item:nth-child(3) { animation-delay: .14s; }
.mobile-menu.open .mobile-item:nth-child(4) { animation-delay: .19s; }
.mobile-menu.open .mobile-item:nth-child(5) { animation-delay: .24s; }
.mobile-menu.open .mobile-item:nth-child(6) { animation-delay: .29s; }
.mobile-menu.open .mobile-item:nth-child(7) { animation-delay: .34s; }
.mobile-menu.open .mobile-item:nth-child(8) { animation-delay: .39s; }
@keyframes mobileIn { to { opacity: 1; transform: translateY(0); } }

.mobile-item { border-bottom: 1px solid rgba(255,255,255,0.09); }
.mobile-row { display: flex; align-items: center; }
/* Versalien, kleiner, Regular 400 (überschreibt das globale nav a { 700 }) */
.mobile-link {
  flex: 1; display: block;
  font-size: 17px; line-height: 1.3; color: #fff;
  font-weight: 400; text-transform: uppercase; letter-spacing: 0.1em;
  padding: 1rem 0; transition: color .2s ease;
}
.mobile-link:hover { color: #F3D5B5; }

/* Ausklapp-Button (Chevron) */
.mobile-expand {
  /* margin-right wie beim Burger (-8px), damit Chevron und X fluchten */
  flex: none; width: 44px; height: 44px; margin-right: -8px;
  display: flex; align-items: center; justify-content: center;
  background: none; border: 0; color: rgba(255,255,255,0.55); cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.mobile-expand:hover { color: #F3D5B5; }
.mobile-expand svg { transition: transform .3s ease; }
.mobile-item.open .mobile-expand svg { transform: rotate(180deg); }

/* Untermenü: einklappbar */
.mobile-subs { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.mobile-item.open .mobile-subs { max-height: 60vh; }
.mobile-subs-inner { padding: 0.25rem 0 1rem; }
.mobile-sub {
  display: block; font-size: 13px; color: rgba(255,255,255,0.55);
  font-weight: 400; text-transform: uppercase; letter-spacing: 0.08em;
  padding: 0.5rem 0 0.5rem 1.1rem; border-left: 1px solid rgba(255,255,255,0.12); margin-left: 2px;
  transition: color .2s ease, border-color .2s ease;
}
.mobile-sub:hover { color: #fff; border-color: #F3D5B5; }

@media (prefers-reduced-motion: reduce) {
  .mobile-menu, .burger-line { transition: none; }
  .mobile-menu.open .mobile-item { animation: none; opacity: 1; transform: none; }
}

/* ── Formulare: Honeypot-Feld für Menschen unsichtbar ── */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}

/* ── Zweispaltige Listen: Parallel-Modus ──
   Beide Spalten teilen sich dieselben Grid-Zeilen (Subgrid), damit
   gegenüberliegende Punkte auf gleicher Höhe stehen – auch wenn ein Punkt
   umbricht. Auf Mobile (unter md) lösen sich die Spalten auf und stapeln
   nacheinander: linke Liste mit ihrem Kopf, dann die rechte. */
.listen-parallel { display: grid; grid-template-columns: 1fr; row-gap: 0.75rem; }
.listen-parallel .listen-col { display: contents; }
.listen-rightlabel { margin-top: 1.75rem; }
@media (min-width: 768px) {
  .listen-parallel { grid-template-columns: 1fr 1fr; column-gap: 2.5rem; }
  .listen-parallel .listen-col {
    display: grid;
    grid-template-rows: subgrid;
    grid-row: 1 / -1;
    row-gap: 0.75rem;
    align-content: start;
  }
  .listen-rightlabel { margin-top: 0; }
}
@media (min-width: 1024px) { .listen-parallel { column-gap: 4rem; } }

/* ── Hero: sanfte Bildbewegung ── */
@keyframes slowDrift {
  from { transform: scale(1.025) translate(0, 0); }
  to   { transform: scale(1.06) translate(-1.5%, -1%); }
}
.hero-img { animation: slowDrift 48s ease-in-out infinite alternate; }

/* ── BIVIA-Werte (Über uns) ── */
.bivia-line { background: rgba(243,213,181,0.2); transition: background .3s ease; }
.bivia-circle .bivia-ring {
  background: #002652;
  box-shadow: 0 0 0 1px rgba(243,213,181,0.2);
  transition: box-shadow .3s ease, transform .3s cubic-bezier(.22,1,.36,1);
}
.bivia-circle .bivia-word { display: none; }
.bivia-circle:hover .bivia-ring {
  transform: scale(1.18);
  box-shadow: 0 0 0 3px #F3D5B5, 0 12px 40px rgba(243,213,181,0.25);
}
.bivia-circle:hover .bivia-letter { display: none; }
.bivia-circle:hover .bivia-word { display: block; }
/* benachbarte Linien hervorheben */
.bivia-circle:hover + .bivia-line,
.bivia-line:has(+ .bivia-circle:hover) { background: #F3D5B5; }

/* ── BIVIA-Werte (Block) – Klick/Tap-Auswahl, mobil-tauglich ── */
.bivia-letter-circle {
  background-color: #002652;
  box-shadow: inset 0 0 0 1px rgba(243,213,181,0.4);
}
.bivia-letter-circle .bivia-ltr {
  background: linear-gradient(135deg, #F3D5B5, #F3D5B5);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.bivia-letter-circle:hover { box-shadow: inset 0 0 0 1.5px #F3D5B5; }
.bivia-letter-circle.is-active {
  background-color: #F3D5B5;
  box-shadow: 0 14px 32px rgba(0,40,85,0.20);
}
.bivia-letter-circle.is-active .bivia-ltr {
  background: none;
  -webkit-text-fill-color: #002652;
  color: #002652;
}
.bivia-letter-circle:focus-visible { outline: 2px solid #F3D5B5; outline-offset: 3px; }
.bivia-panel { transition: opacity 0.25s ease; }
@media (prefers-reduced-motion: reduce) {
  .bivia-letter-circle,
  .bivia-panel { transition: none; }
}

/* ── Akkordeon (Karriere / FAQ) ── */
.acc-item .acc-answer { display: none; }
.acc-item.open .acc-answer { display: block; }
.acc-item.open .acc-chevron { transform: rotate(180deg); }

/* ── Emmeti-Kreislauf (Dienstleistungen) ── */
.kreis-node { cursor: pointer; }
.kreis-node .kn-main,
.kreis-node .kn-ring,
.kreis-node .kn-glow { transition: fill .25s ease, stroke-width .25s ease, opacity .25s ease; }
.kreis-node:hover .kn-main { fill: #002652; }
.kreis-node:hover .kn-ring { stroke-width: 2.5; }
.kreis-node:hover .kn-glow { opacity: 0.12; }

/* ── Beteiligungen-Slider (Dienstleistungen) ── */
.bet-tab-bar { background: transparent; }
.bet-tab-label { color: #002652; opacity: 0.5; }
.bet-tab.active { background: rgba(243,213,181,0.06); }
.bet-tab.active .bet-tab-bar { background: #F3D5B5; }
.bet-tab.active .bet-tab-label { color: #F3D5B5; opacity: 1; }

/* ── Referenzen: Projekte / News-Slider ── */
/* Projekt-Tabs (Bild-Reiter) */
.ptab { color: #6b7280; border-bottom: 2px solid #e5e7eb; }
.ptab.active { color: #F3D5B5; background: rgba(243,213,181,0.07); border-bottom-color: #F3D5B5; }

/* Projekt-Navigation unten */
.proj-nav-bar { background: transparent; }
.proj-nav-title { color: #002652; opacity: 0.4; }
.proj-nav.active { background: rgba(45,81,159,0.05); }
.proj-nav.active .proj-nav-bar { background: #002652; }
.proj-nav.active .proj-nav-title { color: #002652; opacity: 1; }

/* News-Dots */
.news-dot { width: 16px; background: #002652; opacity: 0.2; }
.news-dot.active { width: 32px; background: #F3D5B5; opacity: 1; }

/* Projekt-Block: Akkordeon (natives <details>) */
.proj-acc > summary { list-style: none; }
.proj-acc > summary::-webkit-details-marker { display: none; }
.proj-acc-icon { transition: transform 0.25s ease; }
.proj-acc[open] .proj-acc-icon { transform: rotate(45deg); }

/* Slider-Block: leichtes Aufblenden, Slide kommt sanft von links beim Wechsel */
.slider-anim .news-slide:not(.hidden) {
  animation: slider-slide-in 0.8s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}
@keyframes slider-slide-in {
  from { opacity: 0; transform: translateX(-22px); }
  to   { opacity: 1; transform: translateX(0); }
}
@media (prefers-reduced-motion: reduce) {
  .slider-anim .news-slide:not(.hidden) { animation: none; }
}

/* Bild-Slider-Dots */
.img-dot { background: rgba(255,255,255,0.4); }
.img-dot.active { background: #F3D5B5; }

/* ── Kreislauf-Block (Scroll-Rotation) ── */
.kreislauf-node-label {
  hyphens: auto;
  -webkit-hyphens: auto;
  overflow-wrap: break-word;
}
/* Knoten: Navy-Kreis, weisse Schrift, ohne Umrandung (Markenlook) */
.kreislauf-node-circle {
  position: relative;
  background-color: #002652;
  border: none;
  color: #ffffff;
  box-shadow: 0 8px 22px rgba(0,40,85,0.16);
  transition: transform 0.7s ease-out, box-shadow 0.4s ease,
              background-color 0.7s ease-out, color 0.7s ease-out;
}
.kreislauf-node-circle:not(.is-focus):hover {
  transform: scale(1.06);
  box-shadow: 0 12px 28px rgba(0,40,85,0.22);
}
/* Aktiver Knoten: Gold */
.kreislauf-node-circle.is-focus {
  transform: scale(1.3);
  background-color: #F3D5B5;
  color: #002652;
  box-shadow: 0 16px 34px rgba(0,40,85,0.24);
}
/* Dunkle Section (navy Hintergrund): Knoten abheben statt im Navy zu verschwinden */
.kreislauf-dark .kreislauf-node-circle {
  background-color: rgba(255,255,255,0.07);
  color: #ffffff;
}
.kreislauf-dark .kreislauf-node-circle.is-focus {
  background-color: #F3D5B5;
  color: #002652;
}
.kreislauf-arrow-path {
  transition: d 0.7s ease-out;
  /* Kein rundes Linienende: der runde Cap ragte seitlich unter der
     Pfeilspitze hervor und wirkte wie ein Punkt vor jedem Pfeil. */
  stroke-linecap: butt;
}
/* Sichtbarer Fokusring für Tastatur-Navigation (Accessibility) */
.kreislauf-node-circle:focus-visible {
  outline: 2px solid #F3D5B5;
  outline-offset: 3px;
}
/* Reduced Motion respektieren: Übergänge aus, Zustände wechseln ohne Animation */
@media (prefers-reduced-motion: reduce) {
  .kreislauf-nodes,
  .kreislauf-node-spin,
  .kreislauf-node-circle,
  .kreislauf-panel,
  .kreislauf-arrow-path {
    transition: none !important;
  }
}
/* Unterhalb des lg-Breakpoints (Kreis oben, Text darunter gestapelt) soll der
   fokussierte Knoten unten in der Bahn stehen statt rechts, da das zur
   Mobile-Anordnung passt und auf den ersten Blick klarer erkennbar ist. */
@media (max-width: 1023.98px) {
  .kreislauf-nodes { --focus-offset: 90deg; }
}

/* ── Aktuelles / News-Karten (group-hover & line-clamp sind nicht
   kompiliert, daher hier als eigenes CSS) ── */
.news-card-img { transition: transform .7s ease; will-change: transform; }
.news-card:hover .news-card-img { transform: scale(1.04); }
.news-card-title { transition: color .3s ease; }
.news-card:hover .news-card-title { color: hsl(var(--primary)); }
.news-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@media (prefers-reduced-motion: reduce) {
  .news-card-img { transition: none; }
  .news-card:hover .news-card-img { transform: none; }
}

/* ── Footer CTA-Button: dezentes Anheben beim Hover ── */
.footer-cta:hover { transform: translateY(-2px); }
.footer-cta { transition: transform .25s ease, filter .25s ease; }
.footer-cta:hover { filter: brightness(1.05); }
@media (prefers-reduced-motion: reduce) {
  .footer-cta:hover { transform: none; }
}

/* ── Rechtstexte / Writer-Editor: Ausgabe formatieren ── */
.legal-prose { color: hsl(var(--muted-foreground)); line-height: 1.7; }
.legal-prose h1, .legal-prose h2, .legal-prose h3, .legal-prose h4 {
  font-family: Unna, serif; color: hsl(var(--foreground)); line-height: 1.2; font-weight: 400;
}
.legal-prose h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin: 0 0 1.1rem; }
.legal-prose h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 2.2rem 0 0.8rem; }
.legal-prose h3 { font-size: 1.25rem; margin: 1.6rem 0 0.5rem; }
.legal-prose h4 { font-size: 1.05rem; margin: 1.3rem 0 0.4rem; }
.legal-prose p { margin: 0 0 1rem; }
.legal-prose ul, .legal-prose ol { margin: 0 0 1rem; padding-left: 1.4rem; }
.legal-prose ul { list-style: disc; }
.legal-prose ol { list-style: decimal; }
.legal-prose li::marker { color: #2d519f; }
.legal-prose li { margin: 0.3rem 0; }
.legal-prose a { color: #2d519f; text-decoration: none; transition: color .2s ease; }
.legal-prose a:hover { color: #F3D5B5; }
.legal-prose strong { font-weight: 700; color: hsl(var(--foreground)); }
.legal-prose em { font-style: italic; }
.legal-prose hr { border: 0; border-top: 1px solid hsl(var(--border)); margin: 2rem 0; }
.legal-prose > :first-child { margin-top: 0; }
.legal-prose > :last-child { margin-bottom: 0; }

/* ── Kontaktformular: Datei-Upload-Button ── */
.contact-file { padding-top: 0.55rem; padding-bottom: 0.55rem; cursor: pointer; }
.contact-file::file-selector-button {
  margin-right: 0.85rem; padding: 0.45rem 0.9rem; border: 0; cursor: pointer;
  background: #002652; color: #fff; font-size: 0.68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em; transition: background .2s ease;
}
.contact-file::-webkit-file-upload-button {
  margin-right: 0.85rem; padding: 0.45rem 0.9rem; border: 0; cursor: pointer;
  background: #002652; color: #fff; font-size: 0.68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em; transition: background .2s ease;
}
.contact-file::file-selector-button:hover { background: #0b3a67; }
.contact-file::-webkit-file-upload-button:hover { background: #0b3a67; }
/* Mobile: Button volle Breite → Datei-Info bricht in die nächste Zeile */
@media (max-width: 639.98px) {
  .contact-file::file-selector-button { display: block; width: 100%; margin: 0 0 0.6rem; }
  .contact-file::-webkit-file-upload-button { display: block; width: 100%; margin: 0 0 0.6rem; }
}

/* ── Projekt-Block: Layout über Grid-Bereiche, damit auf Mobile das Bild
   IMMER zwischen Überschrift/Untertitel und Fließtext steht ── */
.projekt-grid {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas: "head" "img" "body";
  column-gap: 4rem;
  row-gap: 1.5rem;
  align-items: start;
}
.projekt-grid > .projekt-head { grid-area: head; }
.projekt-grid > .projekt-img  { grid-area: img; }
.projekt-grid > .projekt-body { grid-area: body; }
@media (min-width: 1024px) {
  .projekt-grid {
    grid-template-columns: 1fr 1fr;
    row-gap: 0;
    grid-template-areas:
      "head img"
      "body img";
  }
  .projekt-grid.projekt-img-left {
    grid-template-areas:
      "img head"
      "img body";
  }
  /* Kopf und Body liegen auf Desktop in derselben Spalte → Abstand dazwischen */
  .projekt-grid > .projekt-head { margin-bottom: 1.5rem; }
}

/* ── Automatische Silbentrennung für lange Hero-Titel ── */
.hyphenate {
  -webkit-hyphens: auto;
  hyphens: auto;
  overflow-wrap: break-word;
}

/* Einheitlicher Button-Hover (gefüllte CTAs: Gold & Navy) */
.btn-cta { transition: transform .2s ease, filter .2s ease, box-shadow .2s ease; }
.btn-cta:hover { transform: translateY(-2px); filter: brightness(1.04); }
@media (prefers-reduced-motion: reduce) { .btn-cta:hover { transform: none; } }

/* Slider-Link („Verantwortung"): hellblau, ohne Unterstrich, beim Hover dunkler */
.slider-link { color: #2d519f; transition: color .2s ease; }
.slider-link:hover { color: #002652; }

/* Hilfsklassen: nicht im kompilierten Build enthalten */
.mt-auto { margin-top: auto; }
@media (min-width: 768px) { .md\:text-right { text-align: right; } }

/* Überschrift oben auf Cap-Höhe trimmen, damit sie mit einem daneben
   liegenden Bild (z. B. Dienstleistung-Block) oben bündig ist.
   Moderne Browser: exakt via text-box-trim; sonst optischer Fallback. */
.head-trim { margin-top: -0.2em; }
@supports (text-box-trim: trim-start) {
  .head-trim {
    margin-top: 0;
    text-box-trim: trim-start;
    text-box-edge: cap alphabetic;
  }
}

/* ── Wählbare Section-Hintergründe (weiß / hellgold / hellblau / dunkelblau) ──
   Zentral über die geteilte PHP-Funktion emSection() gesetzt. Klassen sind hier
   fest definiert, damit Tailwinds Purge sie nicht entfernt. */
.sec-white { background-color: #ffffff; }
.sec-gold  { background-color: #FBF1E6; }
.sec-blue  { background-color: #EEF2FA; }
.sec-navy  { background-color: #002652; }
/* Auf dunkelblauem Grund automatisch helle Schrift für Standard-Textfarben */
.sec-navy, .sec-navy p, .sec-navy li { color: rgba(255,255,255,0.72); }
.sec-navy h1, .sec-navy h2, .sec-navy h3, .sec-navy h4, .sec-navy h5, .sec-navy h6 { color: #ffffff; }

/* ── Einheitliche Sub-Head über Überschriften ──
   Gleicher Abstand, gleiche Größe, Laufweite dezent (nicht extra weit).
   Auf hellem Grund (weiss/hellblau/hellgold) das kräftige Blau #2D519F
   (gut lesbar), auf dunkelblau der Marken-Sandton #F3D5B5. */
.subhead {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.72rem;
  line-height: 1.3;
  letter-spacing: 0.05em;      /* dezent, nicht extra weit */
  text-transform: uppercase;
  color: #2D519F;              /* kräftiges Blau – lesbar auf hellem Grund */
  margin-bottom: 0.85rem;
}
.subhead-on-dark { color: #F3D5B5; }   /* Gold auf dunkelblau/Bild */
