/* ============================================================
   Custom Properties
   ============================================================ */
:root {
  --color-brand: #FF4000;
  --color-anthracite: #191E1E;
  --color-cyan: #00C3D7;
  --color-white: #ffffff;
  --color-lightgray: #f7f7f7;
  --color-text: #191E1E;

  --font: 'BrixSans', sans-serif;
  --fw-light: 300;
  --fw-bold: 700;
  --fw-black: 900;

  --fs-base: clamp(1.125rem, 0.6vw + 0.9167rem, 1.25rem); /* 18px bis 500px, 20px ab 800px */
  --fs-sm: 0.875rem; /* steht 14px */
  --fs-h4: clamp(1rem, 1.2vw + 0.8rem, 1.625rem); /* neu 26 */
  --fs-h3: clamp(1.25rem, 1.2vw + 0.8rem, 2rem); /* neu 32 */
  --fs-h2: clamp(1.5rem, 1.6vw + 0.7rem, 2.25rem); /* neu 36 */
  --fs-h1: clamp(1.75rem, 2.5vw + 1rem, 2.625rem); /* neu 42 */
  --fs-card: 1rem; /* 16px */


  --lh-body: 1.25;
  --lh-heading: 1.2;

  --nav-height-rest: 7rem;
  /* logo + 2*2.5rem padding ≈ 114px — used by main padding-top, never changes */
  --nav-height: 7rem;
  /* live value — JS updates on scroll for the mobile menu */
  --container-max: 1320px;
  --container-pad: clamp(1rem, 4vw, 2rem);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  font-weight: var(--fw-light);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  color: var(--color-text);
  background: var(--color-white);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1 0 auto;
  padding-top: var(--nav-height-rest);
}

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

a {
  color: inherit;
  text-decoration: underline;
}

a:hover,
a:focus {
  color: var(--color-brand);
}

b,
strong {
  font-weight: var(--fw-bold);
}

small {
  font-size: var(--fs-sm);
  line-height: var(--lh-heading);
}

/* Headings */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: var(--fw-bold);
  line-height: var(--lh-heading);
  margin-bottom: 0.5rem;
}

h1 {
  font-size: var(--fs-h1);
}

h2 {
  font-size: var(--fs-h2);
}

h3 {
  font-size: var(--fs-h3);
}

/* Paragraph spacing — only between siblings */
p+p {
  margin-top: 1em;
}

/* ============================================================
   Layout helpers
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

/* ============================================================
   Navigation
   ============================================================ */
.site-nav {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  padding: 2rem 0;
  background: var(--color-white);
  border-bottom: 1px solid transparent;
  z-index: 100;
  display: flex;
  align-items: center;
  transition: padding 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.site-nav.is-scrolled {
  padding: 1rem 0;
  border-color: #e8e8e8;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
}

.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo img {
  height: 42px;
  width: auto;
}

.nav-logo:focus-visible {
  outline: 2px solid var(--color-brand);
  outline-offset: 3px;
}

/* Nav links — horizontal on desktop, collapsible on mobile if items exist */
.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav-links:empty {
  display: none;
}

.nav-links > li > a,
.nav-parent {
  text-decoration: none;
  font-weight: var(--fw-bold);
  font-size: 1.25rem;
  letter-spacing: 0.03em;
  color: inherit;
  transition: color 0.2s;
}

.nav-links > li > a:hover,
.nav-parent:hover,
.nav-item--has-children[data-open="true"] > .nav-parent {
  color: var(--color-brand);
}

/* Parent toggle: button styled like a nav link */
.nav-parent {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  font-family: inherit;
  cursor: pointer;
  line-height: inherit;
}

.nav-caret {
  transition: transform 0.2s ease;
  color: var(--color-brand);
}

.nav-item--has-children[data-open="true"] > .nav-parent .nav-caret {
  transform: rotate(180deg);
}

/* Submenu — desktop: floating panel */
.nav-item--has-children {
  position: relative;
}

.nav-submenu {
  list-style: none;
  position: absolute;
  inset-block-start: calc(100% + 1.25rem);
  inset-inline-start: 50%;
  transform: translateX(-50%) translateY(-0.5rem);
  min-width: 18rem;
  background: var(--color-white);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  border: 1px solid #e8e8e8;
  padding: 0.5rem 0;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0s 0.2s, opacity 0.2s ease, transform 0.2s ease;
  z-index: 10;
  border-radius: 0.5rem;
}

.nav-item--has-children[data-open="true"] > .nav-submenu {
  visibility: visible;
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  transition: visibility 0s 0s, opacity 0.2s ease, transform 0.2s ease;
}

.nav-submenu a {
  display: block;
  padding: 0.85rem 1.75rem;
  text-decoration: none;
  color: var(--color-anthracite);
  font-size: 1.125rem;
  font-weight: var(--fw-light);
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.nav-submenu a:hover,
.nav-submenu a:focus-visible {
  background: #e7e7e7;
  color: var(--color-anthracite);
  outline: none;
}

/* Hamburger — rendered only when nav has items */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-anthracite);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
  transform-origin: center;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

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

  .nav-links {
    position: fixed;
    inset-block-start: var(--nav-height);
    inset-inline: 0;
    background: var(--color-white);
    flex-direction: column;
    gap: 0;
    padding: 1rem 0;
    border-bottom: 1px solid #e8e8e8;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .1);
    /* Hidden by default — visibility delays until after fade-out is done */
    visibility: hidden;
    opacity: 0;
    transform: translateY(-0.5rem);
    transition: visibility 0s 0.25s, opacity 0.25s ease, transform 0.25s ease;
  }

  .nav-links.is-open {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    transition: visibility 0s 0s, opacity 0.25s ease, transform 0.25s ease;
  }

  .nav-links li a {
    display: block;
    padding: 0.75rem var(--container-pad);
  }

  /* Inline accordion: parent button spans full width, submenu collapses below */
  .nav-parent {
    display: flex;
    width: 100%;
    justify-content: space-between;
    padding: 0.75rem var(--container-pad);
  }

  .nav-submenu {
    position: static;
    transform: none;
    min-width: 0;
    box-shadow: none;
    padding: 0;
    background: transparent;
    display: none;
    transition: none;
  }

  .nav-item--has-children[data-open="true"] > .nav-submenu {
    display: block;
    visibility: visible;
    opacity: 1;
    transform: none;
  }

  .nav-submenu a {
    padding: 0.6rem var(--container-pad) 0.6rem calc(var(--container-pad) + 1.25rem);
    white-space: normal;
    font-weight: var(--fw-light);
    color: var(--color-anthracite);
  }
}

/* ============================================================
   Parallax — generic pattern reusable across the page.
   ============================================================
   Markup:
     <section class="parallax" style="--parallax-img: url('/img/foo.webp')">
       <div class="parallax-bg" aria-hidden="true"></div>
       <div class="parallax-content container">…</div>
     </section>

   The .parallax-bg element is animated via JS (translateY on scroll).
   Override min-height per instance if 50vh isn't right for that section. */

.parallax {
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

.parallax-bg {
  position: absolute;
  /* Bg extends beyond the section so the JS translateY (up to ±30vh at speed 0.3)
     never exposes a bare strip when the section enters/leaves the viewport. */
  top: -30vh;
  bottom: -30vh;
  left: 0;
  right: 0;
  background-image: var(--parallax-img);
  background-size: cover;
  background-position: center 30%;
  will-change: transform;
}

/* Dark overlay for text legibility — opt-in, nur wenn das Hintergrundbild es
   braucht (z.B. Fotos, nicht aber flächige Grafiken/Logos).
   Aktivieren: <section class="parallax parallax--overlay" …>
   Stärke pro Instanz überschreibbar: style="--parallax-overlay: rgba(0,0,0,0.35)" */
.parallax--overlay .parallax-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--parallax-overlay, rgba(0, 0, 0, 0.2));
}

.parallax-content {
  position: relative;
  z-index: 1;
  color: var(--color-white);
  padding-block: 5rem;
}

/* Constrain text width on desktop so a background graphic (e.g. logo on the
   right) stays visible. Full width on mobile. */
.parallax-content--half > * {
  max-width: 50%;
}

@media (max-width: 767px) {
  .parallax-content--half > * {
    max-width: none;
  }
}

.parallax-content h1,
#hero h1,
.hero h1 {
  font-weight: var(--fw-black);
  font-size: clamp(2rem, 5.5vw, 4rem);
  line-height: 1;
  max-width: 640px;
}

/* ============================================================
   Hero — the unique top section: full viewport height + scroll hint.
   Combine with .parallax: <section id="hero" class="parallax" …>
   ============================================================ */
#hero {
  min-height: 88vh;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  translate: -50% 0;
  z-index: 1;
  animation: bounce 2.5s ease-in-out infinite;
  opacity: 0.7;
}

@keyframes bounce {

  0%,
  100% {
    translate: -50% 0;
  }

  50% {
    translate: -50% 8px;
  }
}

/* ============================================================
   Content sections
   ============================================================ */
.section {
  padding-block: 3.5rem;
}

.py-10r {
  padding-block: 10rem;
}

.section-white {
  background: var(--color-white);
  color: var(--color-text);
}

.section-anthracite,
.section-dark {
  background: var(--color-anthracite);
  color: var(--color-white);
}

.section-anthracite a {
  color: var(--color-white);
}

.section-anthracite a:hover {
  color: var(--color-cyan);
}

.section-lightgray {
  background: var(--color-lightgray);
  color: var(--color-text);
}

.section-orange {
  background: var(--color-brand);
  color: var(--color-white);
}

.section-cyan {
  background: var(--color-cyan);
  color: var(--color-white);
}



/* Profile / about two-column */
.profile-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: center;
}

.profile-logo {
  width: clamp(120px, 18vw, 190px);
}

@media (max-width: 767px) {
  .profile-grid {
    grid-template-columns: 1fr;
  }

  .profile-logo {
    width: 120px;
  }
}

/* ============================================================
   Icon Grid — 3 cols on desktop, 2 on tablet, 1 on mobile.
   Each item: icon + heading + short description, centered.
   ============================================================
   Markup:
     <div class="icon-grid">
       <div class="icon-grid-item">
         <img src="/img/icons/grow.svg" alt="" class="icon-grid-icon">
         <h3>Grow</h3>
         <p>Description text…</p>
       </div>
       …
     </div> */
.icon-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3.5rem 2rem;
  text-align: center;
}

@media (max-width: 767px) {
  .icon-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .icon-grid {
    grid-template-columns: 1fr;
  }
}

.icon-grid-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.icon-grid-icon {
  width: clamp(64px, 8vw, 96px);
  height: auto;
  margin-bottom: 1.25rem;
}

.icon-grid-item h3 {
  font-size: var(--fs-base);
  margin: 0 0 0.5rem;
}

.icon-grid-item p {
  margin: 0;
  max-width: 32ch;
}

/* ============================================================
   Card grid — Teaser-Karten mit Bild, H3, Text, optionalem Link
   ============================================================
   Markup:
     <div class="card-grid">
       <article class="card">
         <div class="card-media">
           <img src="…" alt="">
         </div>
         <div class="card-body">
           <h3>Titel</h3>
           <p>Teaser-Text</p>
           <a class="card-link" href="…">Mehr erfahren</a>  <!-- optional -->
         </div>
       </article>
       …
     </div>

   2-5 Karten: auto-fit sorgt für gleichmäßige Verteilung,
   min(280px, 100%) verhindert Overflow auf schmalen Screens.
   ============================================================ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 1.5rem;
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--color-white);
  color: var(--color-text);
  text-decoration: none;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  top: 0;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.05);
}

/* Transition auf a.card, weil .fade-in-item (später im File) sonst gewinnt
   und die Card-Transition überschreibt */
a.card {
  /* Hover-Properties ohne Delay; Fade-In (opacity/transform) mit --delay */
  transition:
    top 0.3s ease 0s,
    box-shadow 0.3s ease 0s,
    color 0.3s ease 0s,
    opacity 0.6s ease-out var(--delay, 0s),
    transform 0.6s ease-out var(--delay, 0s);
}

/* Card ist als ganzes verlinkt → kein Underline auf Hover */
a.card:hover,
a.card:focus {
  color: var(--color-text);
}

.card-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--color-lightgray);
}

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

.card-body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.75rem 1.5rem 1.5rem;
  flex: 1 0 auto;
}

.card-body h3 {
  /* etwas kleiner als globales --fs-h3 (20→28px) — Karten brauchen weniger Wucht */
  font-size: clamp(1.375rem, 0.4vw + 1.25rem, 1.5rem);
  
  /* 22px → 24px */
  margin: 0;
}






.card-body p {
  margin: 0;
  flex: 1 0 auto;
}

.card-link {
  align-self: flex-start;
  margin-top: 0.5rem;
  /* font-weight: var(--fw-bold); */
  text-decoration: none;
  color: inherit;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
}

.card-link::before {
  content: "";
  width: 1.25em;
  height: 1em;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><line x1='5' y1='12' x2='19' y2='12'/><polyline points='12 5 19 12 12 19'/></svg>") no-repeat center / contain;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><line x1='5' y1='12' x2='19' y2='12'/><polyline points='12 5 19 12 12 19'/></svg>") no-repeat center / contain;
  transition: transform 0.3s ease;
  flex: 0 0 auto;
  margin-left: -5px;
}

.card-link-label {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Hover-Lift nur, wenn die Karte tatsächlich ein Link ist (a.card)
   → top statt transform, damit es nicht mit .fade-in-item kollidiert */
a.card:hover,
a.card:focus-visible {
  top: -6px;
  box-shadow: 0 18px 32px -12px rgba(0, 0, 0, 0.25), 0 4px 10px rgba(0, 0, 0, 0.08);
}

a.card:hover .card-link::before,
a.card:focus-visible .card-link::before {
  transform: translateX(3px);
}

a.card:hover .card-link,
a.card:focus-visible .card-link {
  color: var(--color-brand);
}

@media (prefers-reduced-motion: reduce) {
  .card,
  .card-link::before {
    transition: none;
  }
  a.card:hover,
  a.card:focus-visible {
    top: 0;
  }
}

/* ============================================================
   Text-only pages (Impressum, Datenschutz)
   ============================================================ */
.text-page {
  /*max-width: 800px;*/
  padding-block: 2.5rem 5rem;
}

.text-page h1 {
  margin-bottom: 1.5rem;
}

.text-page h2 {
  margin-top: 2.5rem;
  margin-bottom: 0.25rem;
}

.text-page h3 {
  margin-top: 1.75rem;
  margin-bottom: 0.25rem;
}

.text-page p+p {
  margin-top: 0.85em;
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--color-anthracite);
  color: var(--color-white);
  flex-shrink: 0;
}

/* Footer logo (in bottom bar) */
.footer-logo-link {
  display: inline-flex;
  line-height: 0;
}

.footer-logo-link:focus-visible {
  outline: 2px solid var(--color-brand);
  outline-offset: 4px;
}

.footer-logo {
  height: 30px;
  width: auto;
}

/* Bottom bar */
.footer-bottom {
  padding-block: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2rem;
  flex-wrap: wrap;
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.4);
}

/* Inline legal/meta links next to copyright */
.footer-meta-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  align-items: center;
}

.footer-meta-links li {
  position: relative;
}

/* Bullet separators between items — purely decorative */
.footer-meta-links li + li::before {
  content: '';
  position: absolute;
  inset-inline-start: -0.85rem;
  inset-block-start: 50%;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-50%);
}

.footer-meta-links a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.55);
  transition: color 0.2s;
}

.footer-meta-links a:hover {
  color: var(--color-white);
}

@media (max-width: 480px) {
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  /* On very narrow screens, drop the bullet separators — items wrap nicely */
  .footer-meta-links {
    gap: 0.4rem 1rem;
  }

  .footer-meta-links li + li::before {
    display: none;
  }
}

/* ============================================================
   404 page
   ============================================================ */
.error-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-block: 6rem;
  min-height: 60vh;
}

.error-code {
  font-size: clamp(5rem, 20vw, 10rem);
  font-weight: var(--fw-black);
  line-height: 1;
  color: var(--color-brand);
}

.error-page h1 {
  margin-top: 0.5rem;
}

.error-page p {
  max-width: 480px;
  margin-top: 1rem;
  color: #555;
}

/* ============================================================
   Buttons
   ============================================================
   Usage:
     <a class="btn btn--orange">Solid orange</a>
     <a class="btn btn--orange btn--outline">Outline orange</a>
     <a class="btn btn--white btn--sm">Small white</a>

   Variants:  btn--orange | btn--cyan | btn--white | btn--anthracite
   Modifiers: btn--outline (combine with any colour)
              btn--sm (smaller size)

   Colours are locked via !important so a button keeps its identity
   regardless of which section it sits in (e.g. white button on dark bg). */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65em;
  padding: 0.85em 1.5em;
  border: 2px solid transparent;
  border-radius: 6px;
  font-family: inherit;
  font-weight: var(--fw-bold);
  font-size: 1rem;
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  background: var(--btn-bg, transparent) !important;
  color: var(--btn-fg, currentColor) !important;
  border-color: var(--btn-border, transparent) !important;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
  background: var(--btn-bg-h, var(--btn-bg)) !important;
  color: var(--btn-fg-h, var(--btn-fg)) !important;
  /* Border on hover defaults to the hover background — keeps solid and outline
     buttons visually consistent. Override with --btn-border-h if needed. */
  border-color: var(--btn-border-h, var(--btn-bg-h, var(--btn-border))) !important;
}

.btn--sm {
  padding: 0.55em 1.1em;
  font-size: 0.8125rem;
  border-radius: 4px;
}

/* Caret modifier — append "btn--caret" to add an animated chevron.
   Uses CSS mask so the colour always follows currentColor (matches button text). */
.btn--caret::after {
  content: "";
  width: 0.85em;
  height: 0.85em;
  flex-shrink: 0;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 6 15 12 9 18'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 6 15 12 9 18'/%3E%3C/svg%3E") no-repeat center / contain;
  transition: transform 0.25s ease;
}

.btn--caret:hover::after,
.btn--caret:focus-visible::after {
  transform: translateX(4px);
}

/* Solid colour variants — each declares its base colour and matching text colour.
   The outline modifier below reuses --btn-base/--btn-on-base, so each colour is
   only configured once. */

.btn--orange {
  --btn-base: var(--color-brand);
  --btn-on-base: var(--color-white);
  --btn-bg: var(--btn-base);
  --btn-fg: var(--btn-on-base);
  --btn-bg-h: var(--color-anthracite);
}

.btn--cyan {
  --btn-base: var(--color-cyan);
  --btn-on-base: var(--color-white);
  --btn-bg: var(--btn-base);
  --btn-fg: var(--btn-on-base);
  --btn-bg-h: var(--color-anthracite);
}

.btn--white {
  --btn-base: var(--color-white);
  --btn-on-base: var(--color-anthracite);
  --btn-bg: var(--btn-base);
  --btn-fg: var(--btn-on-base);
  /* On hover: become a "ghost" — transparent fill, white border + text.
     Lets the underlying section colour show through, works on cyan/anthracite/orange. */
  --btn-bg-h: transparent;
  --btn-fg-h: var(--color-white);
  --btn-border-h: var(--color-white);
}

.btn--anthracite {
  --btn-base: var(--color-anthracite);
  --btn-on-base: var(--color-white);
  --btn-bg: var(--btn-base);
  --btn-fg: var(--btn-on-base);
  --btn-bg-h: var(--color-brand);
}

/* Outline modifier — transparent fill, coloured border + text;
   on hover fills with the variant base colour. Combine with any colour:
     <a class="btn btn--orange btn--outline">…</a>                          */
.btn--outline {
  --btn-bg: transparent;
  --btn-fg: var(--btn-base);
  --btn-border: var(--btn-base);
  --btn-bg-h: var(--btn-base);
  --btn-fg-h: var(--btn-on-base);
  /* --btn-border-h falls back to --btn-bg-h via the hover rule above */
}


/* ============================================================
   Accessibility
   ============================================================ */
:focus-visible {
  outline: 2px solid var(--color-brand);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.text-center {
  text-align: center;
}


/* margins */

.mt-1 {
  margin-top: 1rem
}

.mt-2 {
  margin-top: 2rem
}


/* gradients */

/* HELL (#ffffff -> #dddddd) */
.bg-grad-light-0 {
  background: linear-gradient(0deg, #ffffff, #dddddd);
}

/* Variante mit fester Verlaufshöhe — sinnvoll für sehr lange Sections,
   damit der Gradient nicht über die volle Section gestreckt wird und flach wirkt.
   Höhe via Custom Property überschreibbar: style="--grad-height: 500px". */
.bg-grad-light-0-capped {
  --grad-height: 700px;
  background:
    linear-gradient(0deg, #ffffff, #dddddd) top / 100% var(--grad-height) no-repeat,
    #ffffff;
}

.bg-grad-light-90 {
  background: linear-gradient(90deg, #ffffff, #dddddd);
}

.bg-grad-light-180 {
  background: linear-gradient(180deg, #ffffff, #dddddd);
}

.bg-grad-light-270 {
  background: linear-gradient(270deg, #ffffff, #dddddd);
}

/* DUNKEL (#0f1414 -> #191e1e) */
.bg-grad-dark-0 {
  background: linear-gradient(0deg, #0f1414, #191e1e);
}

.bg-grad-dark-90 {
  background: linear-gradient(90deg, #0f1414, #191e1e);
}

.bg-grad-dark-180 {
  background: linear-gradient(180deg, #0f1414, #191e1e);
}

.bg-grad-dark-270 {
  background: linear-gradient(270deg, #0f1414, #191e1e);
}

/* BLAU (#00567D -> #00c3d7) */
.bg-grad-cyan-0 {
  background: linear-gradient(0deg, #00567D, #00c3d7);
}

.bg-grad-cyan-90 {
  background: linear-gradient(90deg, #00567D, #00c3d7);
}

.bg-grad-cyan-180 {
  background: linear-gradient(180deg, #00567D, #00c3d7);
}

.bg-grad-cyan-270 {
  background: linear-gradient(270deg, #00567D, #00c3d7);
}

/* ROT (#ff0000 -> #ff6400) */
.bg-grad-orange-0 {
  background: linear-gradient(0deg, #ff0000, #ff6400);
}

.bg-grad-orange-90 {
  background: linear-gradient(90deg, #ff0000, #ff6400);
}

.bg-grad-orange-180 {
  background: linear-gradient(180deg, #ff0000, #ff6400);
}

.bg-grad-orange-270 {
  background: linear-gradient(270deg, #ff0000, #ff6400);
}

/* animation */
/* Gemeinsame Basis für alle Fade-In-Animationen */
.fade-in-item {
  opacity: 0;
  /* transition-delay wird hier dynamisch eingerechnet */
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  transition-delay: var(--delay, 0s);
  will-change: opacity, transform;
}

/* Richtungen bleiben gleich */
.fade-in-up {
  transform: translateY(20px);
}

.fade-in-down {
  transform: translateY(-20px);
}

.fade-in-left {
  transform: translateX(-30px);
}

.fade-in-right {
  transform: translateX(30px);
}

/* Ziel-Zustand */
.fade-in-item.is-visible {
  opacity: 1;
  transform: translate(0) !important;
}

/* black box */

/* ============================================================
   Content Box — halbtransparente Box auf Bild-Sections
   ============================================================ */
.black-box {
  background: rgba(0, 0, 0, 0.52);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 1rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  max-width: 580px;
  margin-inline-end: auto;
  /* ← drückt die Box nach links */
  /* Desktop: linke Hälfte bei 1320px Container */
}

@media (max-width: 767px) {
  .black-box {
    max-width: 100%;
  }
}

.blur-box {
  background: transparent;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 1rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
}

/* ============================================================
   Modal — centered dialog, blurred/dimmed backdrop, subtle anim
   ============================================================ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vw, 2rem);
  background: rgba(15, 15, 20, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0s linear 0.25s;
}

.modal.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.25s ease, visibility 0s linear 0s;
}

.modal-dialog {
  position: relative;
  background: var(--color-white, #fff);
  color: var(--color-anthracite, #1a1a1a);
  border-radius: 1.25rem;
  padding: clamp(1.75rem, 4vw, 2.75rem);
  padding-top: clamp(2.5rem, 5vw, 3rem);
  max-width: 560px;
  width: 100%;
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  box-shadow:
    0 30px 80px -20px rgba(0, 0, 0, 0.35),
    0 10px 30px -10px rgba(0, 0, 0, 0.2);
  transform: translateY(12px) scale(0.98);
  opacity: 0;
  transition:
    transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 0.25s ease;
}

.modal.is-open .modal-dialog {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  background: transparent;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  color: inherit;
  transition: background 0.2s ease, transform 0.2s ease;
}

.modal-close:hover,
.modal-close:focus-visible {
  background: rgba(0, 0, 0, 0.06);
  transform: rotate(90deg);
  outline: none;
}

.modal-close svg {
  width: 1.25rem;
  height: 1.25rem;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
}

.modal-dialog h2,
.modal-dialog h3 {
  margin-top: 0;
}

.modal-dialog > *:last-child {
  margin-bottom: 0;
}

body.has-modal-open {
  overflow: hidden;
}

/* ============================================================
   Form — schlicht, modern, im Modal und stand-alone nutzbar
   ============================================================ */
.form {
  display: grid;
  gap: 1rem;
  margin-top: 0.5rem;
}

.form-row {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 540px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.form-field {
  display: grid;
  gap: 0.35rem;
}

.form-field label {
  font-size: var(--fs-sm, 0.875rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--color-anthracite, #1a1a1a);
}

.form-field input,
.form-field textarea,
.form-field select {
  font: inherit;
  font-size: 1rem;
  width: 100%;
  padding: 0.75rem 0.9rem;
  background: #fff;
  color: var(--color-anthracite, #1a1a1a);
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 0.625rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  appearance: none;
}

.form-field textarea {
  resize: vertical;
  min-height: 6rem;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: rgba(0, 0, 0, 0.4);
}

.form-field input:hover,
.form-field textarea:hover,
.form-field select:hover {
  border-color: rgba(0, 0, 0, 0.28);
}

.form-field input:focus-visible,
.form-field textarea:focus-visible,
.form-field select:focus-visible {
  outline: none;
  border-color: var(--color-brand, #ff4000);
  box-shadow: 0 0 0 3px rgba(255, 64, 0, 0.18);
}

.form-field input:user-invalid,
.form-field textarea:user-invalid {
  border-color: #c0392b;
}

.form-field input:user-invalid:focus-visible,
.form-field textarea:user-invalid:focus-visible {
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.18);
}

.form-check {
  display: grid;
  grid-template-columns: 1.1rem 1fr;
  gap: 0.65rem;
  align-items: start;
  font-size: var(--fs-sm, 0.875rem);
  line-height: 1.4;
  cursor: pointer;
}

.form-check input[type="checkbox"] {
  appearance: none;
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.15rem;
  border: 1px solid rgba(0, 0, 0, 0.3);
  border-radius: 0.3rem;
  background: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.form-check input[type="checkbox"]:hover {
  border-color: var(--color-brand, #ff4000);
}

.form-check input[type="checkbox"]:checked {
  background: var(--color-brand, #ff4000);
  border-color: var(--color-brand, #ff4000);
}

.form-check input[type="checkbox"]:checked::after {
  content: "";
  width: 0.35rem;
  height: 0.6rem;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: translateY(-1px) rotate(45deg);
}

.form-check input[type="checkbox"]:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 64, 0, 0.25);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-end;
  margin-top: 0.5rem;
}

@media (prefers-reduced-motion: reduce) {
  .modal,
  .modal-dialog,
  .modal-close {
    transition: none;
  }
  .modal-dialog {
    transform: none;
  }
}