/* ==========================================================================
   LOCAL FONTS (DSGVO-safe)
   ========================================================================== */

/* inter-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  src: url('/assets/fonts/inter-v20-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* inter-italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Inter';
  font-style: italic;
  font-weight: 400;
  src: url('/assets/fonts/inter-v20-latin-italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* inter-500 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  src: url('/assets/fonts/inter-v20-latin-500.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* inter-500italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Inter';
  font-style: italic;
  font-weight: 500;
  src: url('/assets/fonts/inter-v20-latin-500italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* sora-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Sora';
  font-style: normal;
  font-weight: 400;
  src: url('/assets/fonts/sora-v17-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* sora-600 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Sora';
  font-style: normal;
  font-weight: 600;
  src: url('/assets/fonts/sora-v17-latin-600.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* sora-700 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Sora';
  font-style: normal;
  font-weight: 700;
  src: url('/assets/fonts/sora-v17-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}


:root{
  --bg: #f5f2ee;
  --surface: #ffffff;
  --text: #0b1b2b;
  --muted: rgba(11,27,43,.72);
  --border: rgba(11,27,43,.10);

  --primary: #0e2a4b; /* blau */
  --accent:  #c79a2a; /* gold */

  --radius: 18px;
  --shadow: 0 14px 40px rgba(11,27,43,.12);

  --max: 1160px;

  /* wichtig: Header-Höhe zentral steuern */
  --header-h: 86px;
  --header-h-compact: 64px;
}

html{
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
}

/* falls ein Anchor direkt angesprungen wird (auch von kontakt.php) */
:target{
  scroll-margin-top: calc(var(--header-h) + 18px);
}

*{ box-sizing:border-box; }
html,body{ 
  margin:0; padding:0; 
  overflow-x: hidden;
}

body{
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  /* Platz schaffen für fixed Header */
  padding-top: var(--header-h);
}

/* Globale Link-Stile */
a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease;
  border-bottom: 1px solid transparent;
}

a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* 1. Globale Links (NUR für den Content-Bereich) */
/* Wir schließen die Navigation explizit aus, damit dort nichts unterstrichen wird */
main a:not(.btn) {
  color: var(--primary);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: all 0.2s ease;
}

main a:not(.btn):hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* Links innerhalb von Fließtext (z.B. in Sektionen oder FAQs) 
   Hier sollten sie deutlicher erkennbar sein */
.section p a, 
.rule-list li a,
details p a {
  font-weight: 600;
  border-bottom: 1px solid rgba(199, 154, 42, 0.3); /* Subtiles Gold */
}

.section p a:hover {
  border-bottom-color: var(--accent);
  background-color: rgba(199, 154, 42, 0.05); /* Ganz zarter Highlight-Effekt */
}

img{ max-width:100%; height:auto; display:block; }

.container{
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 22px;
}

/* Header */
/* .site-header{
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3000;
  background: rgba(245,242,238,0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background .22s ease, border-color .22s ease, backdrop-filter .22s ease;
} */

/* Standard-Zustand für alle Seiten (Unterseiten) */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3000;
  background: rgba(255, 255, 255, 0.95); /* Direkt weiß/solid für Unterseiten */
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: all .22s ease;
}

/* NUR auf der Landingpage am Anfang transparent machen */
.is-home .site-header.is-hero {
  background: transparent;
  backdrop-filter: none;
  border-bottom-color: rgba(255,255,255,0.12);
}

/* Falls gescrollt wird, auf der Home-Seite wieder solid machen */
.is-home .site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.92);
  border-bottom-color: var(--border);
}


/* Transparent header on top of the fullframe hero */
.site-header.is-hero{
  background: transparent;
  backdrop-filter: none;
  border-bottom-color: rgba(255,255,255,0.12);
}

.site-header.is-hero .nav-link{ color: rgba(255,255,255,0.92); }
.site-header.is-hero .nav-link.is-current{ color: #fff; }
.site-header.is-hero .nav-toggle span{ background: #fff; }

/* As soon as you scroll: switch to white header */
.site-header.is-scrolled{
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--border);
}

.site-header.is-scrolled .nav-link{ color: var(--text); }
.site-header.is-scrolled .nav-toggle span{ background: var(--text); }
.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 18px;
  padding: 14px 0;
  min-height: var(--header-h);
}

.brand{ display:flex; align-items:center; gap: 10px; text-decoration:none; }

.nav{
  display:flex;
  align-items:center;
  gap: 10px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

.nav-link{
  position: relative;
  color: var(--text);
  text-decoration: none;
  padding: 10px 10px;
  font-weight: 650;
  transition: color .2s ease;
  border-bottom: none !important; /* Verhindert die globale Linie */
}

.nav-link:hover {
  color: var(--accent);
  /* Kein border-bottom hier, da wir die Goldlinie nur im Active-State wollen */
}


/* Active State: Goldlinie */
.nav-link.is-current{
  color: var(--primary);
}

.nav-link.is-current::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 4px; /* Deine bestehende Logik */
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

/* Smooth shrink on scroll */
body.nav-compact{
  --header-h: var(--header-h-compact);
}

.site-header,
.header-inner,
.brand img{
  transition: all .18s ease;
}

/* make the inner row tighter */
body.nav-compact .header-inner{
  padding: 8px 0;
  min-height: var(--header-h);
}

/* shrink logo */
.brand img{
  height: 44px;       /* normal */
  width: auto;        /* override fixed width attr */
}

body.nav-compact .brand img{
  height: 34px;       /* compact */
}


/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 12px 16px;
  border-radius: 14px;
  text-decoration:none;
  border: 1px solid var(--border);
  font-weight: 750;
  gap: 10px;
}
.btn-primary{
  background: var(--primary);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 5px 10px rgba(14,42,75,25%);
}
.btn-primary:hover{ filter: brightness(1.05); }
.btn-ghost{
  background: transparent;
  color: var(--primary);
  border-color: rgba(14,42,75,18);
}

/* Typography + spacing */
main{ 
  min-height: 60vh;
  flex: 1;
}
.section{ padding: 78px 0; }
h1,h2,h3{ line-height: 1.12; margin: 0 0 14px; letter-spacing: -0.015em; }
h1{ font-size: clamp(2.2rem, 4vw, 3.2rem); }
h2{ font-size: clamp(1.5rem, 2.2vw, 2.1rem); }
h3{ font-size: 1.15rem; }

h2{
  position: relative;
  display: inline-block;
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: clamp(2rem, 3vw, 2.6rem);
  color: #262D4C;
  margin-bottom: 1.2rem;
}

h2::after{
  content: "";
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 48px;               /* Länge der Linie */
  height: 4px;
  background: rgba(222,173,5,.85);
  border-radius: 2px;
}

.section-lead{
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  line-height: 1.7;
  color: rgba(38,45,76,.75);
  max-width: 720px;
}


p{ margin: 0 0 14px; }
.lead{ font-size: 1.12rem; color: var(--muted); max-width: 68ch; }
.small{ font-size: .92rem; color: var(--muted); }
.micro{ font-size: .85rem; color: var(--muted); }

/* Cards */
.card{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
}
.grid-3{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 16px;
}
.grid-2{
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 16px;
}

/* Footer */
/* .site-footer{
  border-top: 1px solid var(--border);
  padding: 28px 0;
  background: rgba(255,255,255,35);
}
.footer-inner{
  display:flex;
  justify-content:space-between;
  gap: 18px;
  flex-wrap:wrap;
  align-items:flex-start;
}
.footer-brand{ font-weight: 900; letter-spacing: -0.02em; }
.footer-right a{
  color: var(--muted);
  text-decoration:none;
  margin-left: 14px;
}
.footer-right a:hover{ color: var(--text); } */



/* FOOTER UPDATE */
.site-footer {
  background: var(--primary) !important; /* Euer Corporate Blau #0e2a4b */
  color: #ffffff;
  border-top: none;
  padding: 40px 0;
}

.site-footer .footer-brand {
  color: #ffffff;
}

.site-footer .small {
  color: rgba(255,255,255,0.7);
}

.site-footer .footer-right a {
  color: rgba(255,255,255,0.8);
  border-bottom: 1px solid transparent;
}

.site-footer .footer-right a:hover {
  color: var(--accent); /* Hover-Gold */
  border-bottom-color: var(--accent);
}

/* Responsive */
@media (max-width: 980px){
  .grid-3{ grid-template-columns: 1fr; }
  .grid-2{ grid-template-columns: 1fr; }
}

/* Scroll-to-top Button */
.scroll-top{
  position: fixed;
  right: 28px;
  bottom: 28px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 900;
  box-shadow: 0 5px 10px rgba(14,42,75,25%);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
  transform: translateY(10px);
}
.scroll-top.show{
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* Hamburger Button */
.nav-toggle{
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span{
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: all .3s ease;
}

body.nav-compact .nav-toggle span{ background: var(--text); }

/* Mobile */
@media (max-width: 980px){
  .nav{
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 260px;
    background: var(--surface);
    flex-direction: column;
    align-items: flex-start;
    padding: calc(var(--header-h) + 18px) 30px 30px;
    gap: 20px;
    box-shadow: -10px 0 30px rgba(0,0,0,1);
    transition: right .3s ease;
  }
  .nav.open{ right: 0; }
  /* Mobile menu open: always dark text */
  .nav.open .nav-link{ color: var(--text); }
  .nav.open .nav-toggle span{ background: var(--text); }

  .nav-toggle{ display: flex; }
}

.form{
  display: grid;
  gap: 14px;
  max-width: 680px;
}

.form label{
  display: grid;
  gap: 8px;
  font-weight: 650;
}

.form input,
.form textarea{
  font: inherit;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.9);
  outline: none;
}

.form input:focus,
.form textarea:focus{
  border-color: rgba(199,154,42,.8);
  box-shadow: 0 0 0 3px rgba(199,154,42,.18);
}

/* Utilities */
.sr-only{
  position:absolute;
  width:1px; height:1px;
  padding:0; margin:-1px;
  overflow:hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border:0;
}

/* Mobile nav backdrop (click outside to close) */
.nav-backdrop{
  position: fixed;
  inset: 0;
  background: rgba(11,27,43,.42);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
  z-index: 900; /* unter Header (1000), über Content */
}

.nav-backdrop.show{
  opacity: 1;
  pointer-events: auto;
}

/* Optional: backdrop nur für mobile relevant */
@media (min-width: 981px){
  .nav-backdrop{ display:none; }
}


.section ul{
  list-style: none;
  padding-left: 0;
}

.section ul li{
  position: relative;
  padding-left: 1.8em;
  margin: .6em 0;
  line-height: 1.6;
}

.section ul li::before{
  content: "\F2E5"; /* ri-check-line */
  font-family: "remixicon";
  position: absolute;
  left: 0;
  top: 0;
  font-size: 1.2em;
  color: #DEAD05;
}

/* Section mit Textur */
.section--asphalt{
  position: relative;
  overflow: hidden;
}

.section--asphalt{
  --tex-y: 0px;
  position: relative;
  overflow: hidden;
}

.section--asphalt::before{
  content:"";
  position:absolute;
  inset:-40px 0; /* extra Rand, damit beim Bewegen nix aufreißt */
  background-image: url("/assets/img/bg/asphalt.jpg");
  background-size: cover;
  background-position: center;
  opacity: .10;
  filter: grayscale(1) contrast(1.1);
  transform: translate3d(0, var(--tex-y), 0);
  will-change: transform;
  pointer-events:none;
}

.section--asphalt > .container{
  position: relative;
  z-index: 1;
}

@media (min-width: 980px){
  .section--asphalt::before{
    background-attachment: fixed; /* simpel */
  }
}



/* PARTNER SECTION */
.section--partners {
  background-color: #323232 !important; /* Dunkelgrau */
  padding: 60px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.section--partners h2 {
  color: #ffffff !important;
}

.section--partners .section-lead {
  color: rgba(255,255,255,0.6) !important;
  margin-left: auto;
  margin-right: auto;
}

.partners-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 40px 80px; /* Abstand zwischen den Logos */
  margin-top: 40px;
}

.partner-link {
  display: block;
  max-width: 200px;
  transition: transform 0.3s ease;
  border-bottom: none !important; /* Verhindert die globale Link-Linie */
}

.partner-link img {
  width: 100%;
  height: auto;
  max-height: 80px;
  object-fit: contain;
  /* Standard-Look: Logos werden weißlich/hellgrau auf dem dunklen Grund */
  filter: brightness(0) invert(1) opacity(0.8);
  transition: filter 0.3s ease, transform 0.3s ease;
}

.partner-link:hover {
  transform: translateY(-5px);
}

/* GOLD-EFFEKT BEIM HOVERN (#c79a2a) */
.partner-link:hover img {
  opacity: 1;
  /* Dieser Filter wandelt das Logo in euren Corporate-Gold-Ton um */
  filter: invert(68%) sepia(35%) saturate(760%) hue-rotate(3deg) brightness(88%) contrast(88%);
}

@media (max-width: 640px) {
  .partners-grid {
    flex-direction: column; /* Untereinander auf dem Handy */
    gap: 50px;
  }
  .partner-link {
    max-width: 160px;
  }
}