@font-face {
  font-family: "Archivo";
  src: url("../../files/wiau/fonts/archivo-latin-wdth-normal.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212;
}
@font-face {
  font-family: "Archivo";
  src: url("../../files/wiau/fonts/archivo-latin-ext-wdth-normal.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-024F, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ============================================================
   WIAU — Web. Individual. Accessible. Unique.
   Contao-natives Stylesheet. Farbwelt aus dem Logo:
   Ink #141B23 · Electric Blue #004DFC · Weiß
   ============================================================ */

:root {
  --color-primary: #004DFC;
  --color-primary-hover: #0038C4;
  --color-primary-soft: #E9EFFF;
  --color-secondary: #141B23;
  --color-background: #FFFFFF;
  --color-background-soft: #F3F5F8;
  --color-dark: #0E141B;
  --color-dark-2: #141B23;
  --color-text: #141B23;
  --color-text-invert: #FFFFFF;
  --color-muted: #5B6572;
  --color-muted-invert: #9AA5B1;
  --color-border: #E2E6EC;
  --color-border-dark: #26303B;

  --font-sans: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;

  --size-display: clamp(2.4rem, 5.6vw, 4.5rem);
  --size-h1: clamp(2.2rem, 5.5vw, 4rem);
  --size-h2: clamp(1.7rem, 3.6vw, 2.6rem);
  --size-h3: 1.25rem;
  --size-body: 1.0625rem;
  --size-small: 0.9rem;

  --container: 1180px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(4.5rem, 10vw, 8.5rem);

  --ease-out: cubic-bezier(.22,.9,.3,1);
  --dur: .7s;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--size-body);
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-background);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img, video { max-width: 100%; height: auto; display: block; }

a { color: var(--color-primary); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--color-primary-hover); }

/* Inline-Links auf dunklem Grund: helleres Blau fuer ausreichenden Kontrast (WCAG AA) */
.section--dark a:not(.btn-link):not(.site-footer__logo),
.on-dark p a { color: #8ab0ff; }
.section--dark a:not(.btn-link):hover, .on-dark p a:hover { color: #b9cdff; }

:focus-visible { outline: 3px solid var(--color-primary); outline-offset: 3px; border-radius: 2px; }
.on-dark :focus-visible, .site-footer :focus-visible { outline-color: #fff; }

/* Contao raeumt in eigene Wrapper auf – wir neutralisieren Standard-Innenabstaende */
main#main { display: block; }
.mod_article { margin: 0; }

/* Contao-Konvention: visuell versteckt (z. B. Modul-Skip-Links) */
.invisible, .sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--color-primary); color: #fff;
  padding: .7rem 1.2rem; z-index: 100; font-weight: 600;
}
.skip-link:focus { left: 0; }

/* ---------- Typografie ---------- */

h1, h2, h3 {
  font-stretch: 112%;
  letter-spacing: -0.015em;
  line-height: 1.08;
  margin: 0 0 .6em;
  font-weight: 750;
  text-wrap: balance;
}
h1 { font-size: var(--size-h1); }
h2 { font-size: var(--size-h2); }
h3 { font-size: var(--size-h3); line-height: 1.3; font-stretch: 106%; }
p  { margin: 0 0 1.1em; max-width: 68ch; }
p:last-child { margin-bottom: 0; }

/* Lead-Text (Contao content-text mit Klasse "lead") */
.lead, .lead p { font-size: 1.2rem; line-height: 1.6; color: var(--color-muted); max-width: 56ch; }
.lead p { margin: 0 0 1rem; }
.on-dark .lead, .on-dark .lead p { color: var(--color-muted-invert); }

/* Kicker: kleines Label mit blauem Quadrat */
.kicker {
  display: inline-flex; align-items: center; gap: .55em;
  font-size: var(--size-small); font-weight: 600;
  color: var(--color-muted); margin-bottom: 1.1rem;
}
.kicker p { margin: 0; max-width: none; }
.kicker::before { content: ""; width: .62em; height: .62em; background: var(--color-primary); flex: none; }
.on-dark .kicker { color: var(--color-muted-invert); }

/* ---------- Layout: Sektion + Container ---------- */

.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); width: 100%; }

/* Sektion = Contao-Artikel mit Klasse "section" */
.mod_article.section, .mod_article.hero { padding-block: var(--section-y); position: relative; }
.mod_article.section--soft { background: var(--color-background-soft); }
.mod_article.section--dark { background: var(--color-dark); color: var(--color-text-invert); }
.mod_article.section--dark h1, .mod_article.section--dark h2, .mod_article.section--dark h3 { color: #fff; }
.section--dark, .on-dark { --local-muted: var(--color-muted-invert); }

.grid-2 {
  display: grid; gap: clamp(2rem, 5vw, 4.5rem);
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 900px) { .grid-2 { grid-template-columns: 1.05fr .95fr; } }

/* Vertikaler Rhythmus der Elemente innerhalb einer Spalte/eines Containers */
.container > .content-element + .content-element,
.grid-col > .content-element + .content-element { margin-top: 1.1rem; }
.container > .content-headline + *, .grid-col > .content-headline + * { margin-top: .2rem; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}
.site-header .mod_article, .site-footer .mod_article { margin: 0; }
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; min-height: 74px;
}
.site-header__logo { display: inline-flex; align-items: center; line-height: 0; }
.site-header__logo img { width: 132px; height: auto; }

.site-nav { }
.site-nav ul { display: flex; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.site-nav a {
  color: var(--color-text); text-decoration: none; font-weight: 500;
  font-size: .98rem; padding: .35rem 0; display: inline-block;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover,
.site-nav a.active, .site-nav a.trail,
.site-nav strong.active,
.site-nav li.active > a, .site-nav li.trail > a {
  color: var(--color-primary); border-bottom-color: var(--color-primary);
}
.site-nav strong.active { font-weight: 500; border-bottom: 2px solid var(--color-primary); }

/* Kopf-CTA */
.site-header__cta {
  display: inline-flex; align-items: center; gap: .5em;
  background: var(--color-primary); color: #fff; font-weight: 650;
  padding: .6rem 1.15rem; border-radius: 8px; text-decoration: none;
  border: 2px solid var(--color-primary); font-size: .95rem; line-height: 1;
  transition: background .2s, transform .2s var(--ease-out); white-space: nowrap;
}
.site-header__cta:hover { background: var(--color-primary-hover); color: #fff; transform: translateY(-2px); }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--color-border);
  border-radius: 6px; padding: .55rem .7rem; cursor: pointer;
}
.nav-toggle span.bar {
  display: block; width: 22px; height: 2px; background: var(--color-text);
  margin: 5px 0; transition: transform .3s, opacity .3s;
}
@media (max-width: 999px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; inset: 100% 0 auto 0;
    background: #fff; border-bottom: 1px solid var(--color-border);
    display: none; padding: 1rem var(--gutter) 1.5rem;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; gap: .3rem; }
  .site-nav a { display: block; padding: .7rem 0; font-size: 1.1rem; border-bottom: none; }
  .site-header__cta { display: none; }
  body.nav-open .nav-toggle span.bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.nav-open .nav-toggle span.bar:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle span.bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- Buttons (hyperlink content element) ---------- */

.btn-row { display: flex; flex-wrap: wrap; gap: .9rem; align-items: center; margin-top: 1.6rem; }
.btn-link > a {
  display: inline-flex; align-items: center; gap: .5em;
  background: var(--color-primary); color: #fff;
  font-weight: 650; font-size: 1rem; line-height: 1;
  padding: .95rem 1.6rem; border-radius: 8px;
  text-decoration: none; border: 2px solid var(--color-primary);
  transition: background .2s, border-color .2s, transform .2s var(--ease-out);
}
.btn-link > a:hover { background: var(--color-primary-hover); border-color: var(--color-primary-hover); color: #fff; transform: translateY(-2px); }
.btn-link.ghost > a { background: transparent; color: var(--color-text); border-color: var(--color-border); }
.btn-link.ghost > a:hover { background: var(--color-background-soft); color: var(--color-text); border-color: var(--color-text); }
.on-dark .btn-link.ghost > a { color: #fff; border-color: var(--color-border-dark); }
.on-dark .btn-link.ghost > a:hover { background: rgba(255,255,255,.08); border-color: #fff; }

/* ---------- Hero ---------- */

.mod_article.hero { padding-block: clamp(3rem, 7vw, 6rem) clamp(3.5rem, 8vw, 7rem); overflow: clip; }
.hero__brandline {
  font-weight: 700; letter-spacing: .01em; margin-bottom: 1.2rem;
  display: flex; align-items: baseline; gap: .7rem; flex-wrap: wrap;
}
.hero__brandline p { margin: 0; display: flex; align-items: baseline; gap: .7rem; flex-wrap: wrap; }
.hero__brandline strong { font-size: 1.15rem; font-stretch: 115%; }
.hero__brandline span { color: var(--color-muted); font-weight: 500; font-size: .98rem; }
.hero h1 { font-size: var(--size-display); font-weight: 800; margin-bottom: 1.2rem; }
.hero h1 .accent { color: var(--color-primary); }
.hero .lead { margin-bottom: 0; }

.hero__media { position: relative; display: flex; justify-content: center; }
.hero__media figure, .hero__media .content-player { margin: 0; width: 100%; }
.hero__media video {
  width: min(100%, 560px); margin-inline: auto;
  filter: brightness(1.045);
}
/* Weicher weisser Verlauf links & rechts, damit die Videokanten verschwinden */
.hero__media .content-player { position: relative; width: min(100%, 560px); margin-inline: auto; }
.hero__media .content-player::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 2;
  background:
    linear-gradient(to right, #fff 0%, rgba(255,255,255,0) 20%),
    linear-gradient(to left,  #fff 0%, rgba(255,255,255,0) 20%);
}
.hero__media img { margin-inline: auto; }
.hero__media::before, .hero__media::after {
  content: ""; position: absolute; background: var(--color-primary); z-index: 3;
}
.hero__media::before { width: 18px; height: 18px; border-radius: 50%; right: 6%; top: 4%; }
.hero__media::after  { width: 16px; height: 16px; left: 2%; bottom: 8%; }

/* Hero-Ladeanimation: dezentes Hochgleiten per CSS-Keyframe.
   Wichtig: Inhalt startet SICHTBAR (opacity bleibt 1 fuer LCP), es wird nur
   sanft transformiert. Kein JS noetig, kein Verstecken von Above-the-fold. */
@media (prefers-reduced-motion: no-preference) {
  .js .hero .stagger > * { animation: hero-in .7s var(--ease-out) both; }
  .js .hero .stagger > :nth-child(2) { animation-delay: .08s; }
  .js .hero .stagger > :nth-child(3) { animation-delay: .16s; }
  .js .hero .stagger > :nth-child(4) { animation-delay: .24s; }
  .js .hero .hero__media { animation: hero-in .8s var(--ease-out) .15s both; }
}
/* Nur Transform (opacity bleibt 1) -> Text ist sofort "contentful" = guter LCP */
@keyframes hero-in { from { transform: translateY(18px); } to { transform: none; } }

/* ---------- Scroll-Reveals (Progressive Enhancement) ----------
   Nur Transform, KEINE Opacity: Text bleibt voll deckend (Kontrast/WCAG
   waehrend der Animation gewahrt) und ist auch ohne JS sofort sichtbar. */
.js .reveal { transform: translateY(26px); }
.js .reveal.is-visible {
  transform: none;
  transition: transform var(--dur) var(--ease-out);
}
.js .reveal.reveal--left  { transform: translateX(-40px); }
.js .reveal.reveal--right { transform: translateX(40px); }
.js .reveal.reveal--left.is-visible, .js .reveal.reveal--right.is-visible { transform: none; }
.js .reveal.delay-1.is-visible { transition-delay: .1s; }
.js .reveal.delay-2.is-visible { transition-delay: .2s; }
.js .reveal.delay-3.is-visible { transition-delay: .3s; }

/* ---------- Maskottchen ---------- */

.mascot img, img.mascot { position: relative; z-index: 2; }
.mascot { position: relative; z-index: 2; }

/* ---------- Karten / Leistungen ---------- */

.cards { display: grid; gap: 1.25rem; grid-template-columns: 1fr; margin: 2.5rem 0 0; padding: 0; }
@media (min-width: 700px)  { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1050px) { .cards--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 700px)  { .cards--auto { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); } }

.card {
  background: #fff; border: 1px solid var(--color-border);
  padding: 1.8rem 1.7rem 1.6rem; border-radius: 10px;
  position: relative; display: flex; flex-direction: column;
  transition: border-color .25s, transform .25s var(--ease-out), box-shadow .25s;
}
.card:hover { border-color: var(--color-primary); transform: translateY(-4px); box-shadow: 0 14px 34px -18px rgba(0,77,252,.35); }
.card h3 { margin-bottom: .5rem; }
.card .content-text, .card .content-text p { color: var(--color-muted); font-size: .98rem; margin-bottom: 1rem; }
.card__link { margin-top: auto; }
.card__link > a { font-weight: 650; text-decoration: none; font-size: .98rem; color: var(--color-primary); }
.card__link > a::after { content: " →"; }
.card__link > a::before { content: ""; position: absolute; inset: 0; }
.section--dark .card { background: var(--color-dark-2); border-color: var(--color-border-dark); }
.section--dark .card .content-text, .section--dark .card .content-text p { color: var(--color-muted-invert); }

/* ---------- Prozess-Schritte ---------- */

.steps { list-style: none; margin: 1.4rem 0 0; padding: 0; counter-reset: step; }
.steps .step {
  counter-increment: step; position: relative;
  padding: 1.6rem 0 1.6rem 64px; border-top: 1px solid var(--color-border);
}
.steps .step:last-child { border-bottom: 1px solid var(--color-border); }
.steps .step::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; left: 0; top: 1.6rem;
  font-weight: 800; font-stretch: 115%; font-size: 1.6rem;
  color: var(--color-primary); line-height: 1.2;
}
.on-dark .steps .step, .section--dark .steps .step { border-color: var(--color-border-dark); }
.steps .step h3 { margin-bottom: .35rem; }
.steps .step .content-text, .steps .step .content-text p { margin: 0; color: var(--color-muted); }
.on-dark .steps .step .content-text p { color: var(--color-muted-invert); }

/* ---------- Zahlen ---------- */

.stats { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); margin-top: 3rem; max-width: 820px; }
.stat .stat-num, .stat .stat-num p {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 800; font-stretch: 115%; line-height: 1; color: var(--color-primary);
  font-variant-numeric: tabular-nums; margin: 0;
}
.stat .stat-label, .stat .stat-label p { color: var(--color-muted); font-size: .98rem; margin: .3rem 0 0; }
.on-dark .stat .stat-label, .on-dark .stat .stat-label p { color: var(--color-muted-invert); }

/* ---------- Checkliste ---------- */

.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.checklist li { display: flex; gap: .8rem; align-items: baseline; }
.checklist li::before {
  content: ""; flex: none; width: .6em; height: .6em; transform: translateY(.1em);
  background: var(--color-primary);
}

/* ---------- FAQ (natives FAQ-Bundle, Akkordeon-Template) ---------- */

.faq { display: grid; gap: .8rem; max-width: 780px; margin-top: 2rem; }
.faq details { border: 1px solid var(--color-border); border-radius: 8px; background: #fff; }
.faq summary {
  cursor: pointer; font-weight: 650; padding: 1.1rem 1.3rem; list-style: none;
  display: flex; justify-content: space-between; gap: 1rem; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--color-primary); font-size: 1.4rem; font-weight: 700; line-height: 1; transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details .faq__answer { padding: 0 1.3rem 1.2rem; color: var(--color-muted); }
.faq details .faq__answer p { color: var(--color-muted); }

/* ---------- Referenzen / Projekte ---------- */

.projects { margin-top: 1rem; }
.project {
  border-top: 1px solid var(--color-border);
  padding-block: 1.8rem;
  display: grid; gap: .6rem 2.5rem;
}
.project:last-child { border-bottom: 1px solid var(--color-border); }
@media (min-width: 800px) { .project { grid-template-columns: 220px 1fr; } .project h3 { margin: 0; } }
.project .meta, .project .meta p { color: var(--color-muted); font-size: .95rem; margin: 0; }
.project > .content-text:last-child, .project > .content-text:last-child p { margin: 0; color: var(--color-muted); }

/* ---------- Finale CTA-Sektion ---------- */

.cta-final { text-align: left; position: relative; overflow: clip; }
.cta-final h2 { max-width: 16ch; }

/* ---------- Footer ---------- */

.site-footer { background: var(--color-dark); color: var(--color-muted-invert); padding-block: 3.5rem 2rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--color-primary); text-decoration: underline; }
.site-footer__grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr; margin-bottom: 2.5rem; }
@media (min-width: 800px) { .site-footer__grid { grid-template-columns: 1.3fr 1fr .8fr .8fr; } }
.site-footer__brand img { width: 150px; height: auto; }
.site-footer__brand .content-text { margin-top: 1.2rem; max-width: 34ch; }
.site-footer .mod_navigation ul, .site-footer .mod_customnav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.site-footer h3, .site-footer .mod_navigation .headline, .site-footer .mod_customnav .headline { color: #fff; font-size: 1rem; margin-bottom: .9rem; font-weight: 750; }
.site-footer__legal {
  border-top: 1px solid var(--color-border-dark); padding-top: 1.5rem;
  display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: space-between;
  font-size: .9rem;
}
.site-footer__legal .content-text, .site-footer__legal .content-text p { margin: 0; color: var(--color-muted-invert); }

/* ---------- Breadcrumb ---------- */

.breadcrumb { max-width: var(--container); margin-inline: auto; padding: 1.4rem var(--gutter) 0; font-size: .9rem; color: var(--color-muted); }
.breadcrumb ul { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: .5rem; color: var(--color-border); }
.breadcrumb a { color: var(--color-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--color-primary); }

/* ---------- Legal-Seiten ---------- */
.legal .content-text h2 { margin-top: 2rem; }
.legal .content-text p { max-width: 75ch; }

/* ---------- Reduced Motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero .stagger > *, .hero .hero__media, .reveal { opacity: 1 !important; transform: none !important; }
}

