@charset "utf-8";
/* CSS Document */

/* ===== Design-Tokens ===== */
:root{
  --bg:#ffffff;
  --surface:#F6F6F6;
  --text:#1F2937;
  --muted:#6B7280;
  --primary:#ed6b64;     /* Primärfarbe neu */
  --accent:#6bb976;      /* Akzentfarbe neu */
  --sand:#E8E2D6;
  --radius:16px;
  --maxw:1120px;
}


/* ===== Reset & Basics ===== */
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0; background:var(--bg); color:var(--text);
  font:16px/1.6 system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial;
}

img{max-width:100%; height:auto; display:block}
a{color:inherit; text-decoration:none}
a:hover{text-decoration:underline}
.container{max-width:var(--maxw); margin-inline:auto; padding:0 25px}
.section{padding:60px 0}
h1,h2,h3{line-height:1.25; margin:0 0 .6em}
h1{font-size:clamp(1.6rem,3.2vw,2.2rem)}
h2{font-size:clamp(1.3rem,2.6vw,1.8rem)}
h3{font-size:clamp(1.1rem,2.2vw,1.2rem)}
p{margin:0 0 1em}
[data-include="header"]{ display: contents; }
.text-large{
  font-size: clamp(1.5rem, 3vw, 2.2rem); /* reagiert responsiv */
  line-height: 1.2;
}
.text-large-white{
  font-size: 1.5rem;
  color: #F6F6F6;
}
.text-accent-underline {
  position: relative;
  display: inline;
}

.text-accent-underline::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.12em;        /* sitzt knapp hinter dem Text */
  height: 0.28em;        /* Dicke des Strichs */
  background: var(--accent);
  border-radius: 4px;    /* funktioniert nun! */
  z-index: -1;           /* hinter dem Text */
}



/* ===== Accessibility ===== */
.skip-link{
  position:absolute; left:-9999px; top:auto; width:1px; height:1px; overflow:hidden;
}
.skip-link:focus{
  left:8px; top:8px; width:auto; height:auto; padding:.5rem .75rem;
  background:#000; color:#fff; border-radius:8px; z-index:1000;
}
:focus-visible{outline:3px solid var(--accent); outline-offset:2px}


/* Schwebende Box */
.floating-nav{
  position: relative;
  z-index: 2;                    /* über dem Panel */
  max-width: var(--maxw);
  margin: 8px auto 0;
   background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, #6BB976, #ED6B64, #FFDE00, #009FE3) border-box;
  background-clip: padding-box, border-box;
  backdrop-filter: saturate(160%) blur(8px);
  border: 1px solid transparent;
  border-radius: 16px;
  box-shadow: 0 6px 24px rgba(0,0,0,.08);

  /* Layout: Logo links, (Desktop-Menü) Mitte, Actions rechts */
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
}

/* Actions RECHTS ausrichten – auch mobil */
.actions{
  justify-self: end;
  display: flex; align-items: center; gap: 8px;
}

/* leichte Verdichtung beim Scrollen */
.scrolled .floating-nav{
  box-shadow: 0 10px 36px rgba(0,0,0,.12);
  transform: translateY(0); /* Platzhalter für evtl. Micro-Motion */
}

/* Linke Seite: Logo/Brand */
.floating-nav .brand{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: .02em;
  white-space: nowrap;
  justify-self: start;
}

/* Linke Seite: Logo/Brand */
.floating-nav .brandlogo{
max-width: 200px;
}

/* Mitte: Desktop-Menü */
.primary-nav{justify-self:center; display: none;}
.primary-nav ul{list-style:none; display:flex; gap: 28px; margin:0; padding:0}
.primary-nav a{
  text-decoration:none;
  font-weight:600;
  letter-spacing:.01em;
  padding: 8px 6px;
  border-radius: 10px;
}
.primary-nav a:hover,
.primary-nav a:focus-visible{
  background: #f3f4f6;
}

/* Rechts: Aktionen */
.actions{
  justify-self: end;
  display: flex; align-items: center; gap: 8px;
}
.icon-btn{
  display:inline-flex; align-items:center; justify-content:center;
  width: 36px; height: 36px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background:#fff;
  text-decoration:none;
  font-size: 18px;
}
.icon-btn:hover,
.icon-btn:focus-visible{ background:#f3f4f6 }

/* Ab Tablet/Desktop: Menü zeigen, Burger verstecken */
@media (min-width: 980px){
  .primary-nav{display:block}
  .burger{display:none}
}

/* --- Mobiles Panel unter der Leiste --- */
/* === Sticky-Leiste mit 25px Rand links/rechts === */
.nav-shell{
  position: sticky;
  top: 15px;
  z-index: 1000;
  padding-inline: 15px;         /* gewünschter Rand */
  isolation: isolate;            /* saubere z-index-Ebene */
}

/* === Burger (3 Linien) -> X === */
.burger{
  width: 40px; height: 40px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background:#fff;
  padding:0;
  position: relative;
}
.burger span{
  position: absolute;
  left: 9px; right: 9px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
.burger span:nth-child(1){ top: 12px; }
.burger span:nth-child(2){ top: 50%; transform: translateY(-50%); }
.burger span:nth-child(3){ bottom: 12px; }

/* Zustand: Menü offen -> X */
.nav-shell.menu-open .burger span:nth-child(1){ transform: translateY(8px) rotate(45deg); }
.nav-shell.menu-open .burger span:nth-child(2){ opacity: 0; }
.nav-shell.menu-open .burger span:nth-child(3){ transform: translateY(-8px) rotate(-45deg); }

/* === Mobiles Panel unter der Leiste === */
.mobile-panel{
  position: absolute;
  left: 15px;                    /* gleich wie shell padding */
  right: 15px;
  top: calc(100% + 8px);         /* direkt unter der Leiste */
  z-index: 1;
   background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, #6BB976, #ED6B64, #FFDE00, #009FE3) border-box;
  background-clip: padding-box, border-box;
  border: 1px solid transparent;
  border-radius: 16px;
  box-shadow: 0 18px 36px rgba(0,0,0,.12);
  padding: 8px;
}
.mobile-panel nav ul{ list-style: none; margin:0; padding:0; }
.mobile-panel nav li{ border-radius: 12px; }
.mobile-panel nav a{
  display:block; padding: 14px 16px;
  font-size: 1.125rem;           /* gut lesbar */
  font-weight: 600; text-decoration:none;
  border-radius: 12px;
}
.mobile-panel nav a:hover,
.mobile-panel nav a:focus-visible{ background:#f3f4f6; }
.mobile-panel nav li.cta a{
  background: var(--primary); color:#fff;
}

/* Panel nur mobil zeigen */
@media (min-width: 980px){
  .mobile-panel{ display:none !important; }
  .burger{ display:none; }
}

/* Body-Scroll sperren, wenn offen (App-Gefühl) */
body.menu-lock{ overflow: hidden; }

/* ===== Skip-Link + Fokus ===== */
.skip-link{
  position:absolute; left:-9999px; top:auto; width:1px; height:1px; overflow:hidden;
}
.skip-link:focus{
  left:12px; top:12px; width:auto; height:auto; padding:.5rem .75rem;
  background:#000; color:#fff; border-radius:8px; z-index:1000;
}
:focus-visible{ outline: 3px solid var(--accent); outline-offset: 2px; }


/* ===== Hero ===== */
.hero {
  margin-top: -100px;
  position: relative;
  z-index: 1;
  overflow: hidden; /* damit das Hintergrundbild in die Rundung "geclippt" wird */
  border-bottom: 2px solid var(--primary);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    background:
    linear-gradient(to bottom, rgba(0,0,0,.3), rgba(0,0,0,.1)),
    url("/assets/img/hero.jpg") center/cover no-repeat;
}
/* Container-Inhalt (Text etc.) bleibt normal */
.hero .container {
  position: relative;
  z-index: 2;
  padding-top: clamp(100px, 20vw, 220px);
  padding-bottom: 86px;
  color: #fff;
}
.hero h1{ color: #F6F6F6; }
.hero .wrap{
  max-width: var(--maxw);
  margin: 0 auto;
}
.cta-row{display:flex; gap:10px; flex-wrap:wrap}

.btn{display:inline-block; padding:.8rem 1rem; border-radius:12px; border:1px solid #e5e7eb}

.btn.primary{background:var(--primary); color:#fff; border-color:transparent; font-size: 16px;}

@media (min-width: 900px){
  .hero .wrap{grid-template-columns:1.1fr .9fr; align-items:center}
  .hero .media{min-height:260px; background:#eee; border-radius:20px}
}

/* ===== Mobile Typografie-Anpassung ===== */
@media (max-width: 768px) {


  .hero h1 {
    font-size: clamp(1.5rem, 6vw, 2rem);
    line-height: 1.25;
  }

  .hero p,
  .hero .text-large-white {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-top: 0.75rem;
  }
}

@media (max-width: 600px){
  body.home::before{ height: 300px; }
  body.home::after { top: 300px; }
  .hero .container {
  padding-top: 150px;
  padding-bottom: 250px;
}
 .hero {
    background:
      linear-gradient(to bottom, rgba(0,0,0,.25), rgba(0,0,0,.05)),
      url("/assets/img/hero-alt.jpg") 30% center/cover no-repeat;
  }
.section {padding: 30px 0;}
}



/* ============================
   SUB Hero (Nuki-Stil)
   ============================ */

.sub-hero {
  padding: 60px 0;
}

.sub-hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 25px;
}

.sub-hero-text h1 {
  margin-bottom: 20px;
  color: var(--dunkel);
}

.sub-hero-text p {
  max-width: 550px;
}

.sub-hero-image img {
  width: 100%;
  border-radius: 20px;
  display: block;
  object-fit: cover;
}

/* ----------------------------
   Mobile Version
   ---------------------------- */
@media (max-width: 900px) {

  .sub-hero-inner {
    grid-template-columns: 1fr;
    text-align: left;
    gap: 30px;
  }

  .sub-hero-image img {
    width: 100%;
    border-radius: 16px;
    max-height: 350px;
    object-fit: cover;
  }
}


/* ===== Cards ===== */

.card-icon{
  width: 48px;              /* Einheitliche Größe */
  height: 48px;
  margin-bottom: 12px;      /* Abstand zur Überschrift */
  object-fit: contain;      /* Bild bleibt in Proportion */
  flex-shrink: 0;
  display: block;
}

.a1 {
  background: linear-gradient(to bottom, rgba(0,0,0,0.25), rgba(0,0,0,0.5)),
      url("/assets/img/normal/ganzheitl.png") center/cover no-repeat;
}

.a2 {
  background: linear-gradient(to bottom, rgba(0,0,0,0.25), rgba(0,0,0,0.5)),
      url("/assets/img/normal/selbstwert.png") center/cover no-repeat;
}

.a3 {
  background: linear-gradient(to bottom, rgba(0,0,0,0.25), rgba(0,0,0,0.5)),
      url("/assets/img/normal/lernkompetenz.png") center/cover no-repeat;
}

.a4 {
  background: linear-gradient(to bottom, rgba(0,0,0,0.25), rgba(0,0,0,0.5)),
      url("/assets/img/normal/stabilisierung.png") center/cover no-repeat;
}

.d1 {
  background: linear-gradient(to bottom, rgba(0,0,0,0.25), rgba(0,0,0,0.5)),
      url("/assets/img/alt/ganzheitl.png") center/cover no-repeat;
}

.d2 {
  background: linear-gradient(to bottom, rgba(0,0,0,0.25), rgba(0,0,0,0.5)),
      url("/assets/img/alt/selbstwert.png") center/cover no-repeat;
}

.d3 {
  background: linear-gradient(to bottom, rgba(0,0,0,0.25), rgba(0,0,0,0.5)),
      url("/assets/img/alt/lernkompetenz.png") center/cover no-repeat;
}

.d4 {
  background: linear-gradient(to bottom, rgba(0,0,0,0.25), rgba(0,0,0,0.5)),
      url("/assets/img/alt/stabilisierung.png") center/cover no-repeat;
}


.bg-red {
  background-color: #ed6b64 !important;
}

.bg-green {
  background-color: #6bb976 !important;
}

.bg-yellow {
  background-color: #ffde00 !important;
}

.bg-blue {
  background-color: #009fe3 !important;
}

.cards{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}
.card{border:1px solid #e5e7eb; border-radius:var(--radius); padding:100px 16px 16px 16px; align-content: flex-end;}
.card h3{
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 1.1rem;
  color: var(--bg);
}

.card p{
  margin: 0;
  color: var(--bg);
}

.gradient-frame{
  padding: 2px;  /* Rahmenstärke */
  border-radius: 18px; /* oder var(--radius) */
  background: linear-gradient(
    135deg,
    #6BB976,
    #ED6B64,
    #FFDE00,
    #009FE3
  );
}

/* Inhalt (Card) sitzt innen, hat sein eigenes Bild etc. */
.gradient-frame > .card{
  border-radius: inherit;
  overflow: hidden;       /* sorgt dafür, dass Bild in der Rundung bleibt */
  border: none;           /* falls die Card selbst noch einen Border hatte */
}


/* ===== Mobile: horizontales Scroll-Snap ===== */
@media (max-width: 768px){
  .cards{
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    gap: 16px;
    padding: 8px;
    margin-inline: -8px; /* gleicht Padding am Rand aus */
  }

  .card{
    flex: 0 0 85%;                 /* jede Karte nimmt ~85% der Breite */
    scroll-snap-align: start;      /* snappt an den linken Rand */
    scroll-snap-stop: always;      /* stoppt cardweise */
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding:150px 16px 16px 16px;
    box-shadow: 0 4px 14px rgba(0,0,0,.05);
  }

  /* Optional: sanfter Schattenverlauf links/rechts, um Scrollbarkeit anzudeuten */
  .cards::before,
  .cards::after{
    content:"";
    flex: 0 0 8px; /* Platzhalter, verhindert abgeschnittene Cards */
  }
  .cards::-webkit-scrollbar{ display: none; } /* Scrollbar ausblenden */
}

/* Liste */
ol.steps{
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
ol.steps li.step{
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  column-gap: 12px;
}

/* ===== Steps (Timeline light) ===== */
.steps{list-style:none; padding:0; margin:0}
.step{display:flex; gap:12px; margin:12px 0}
.step .badge{
  --s: 32px;                   /* Grundgröße */
  inline-size: var(--s);       /* Breite fix */
  aspect-ratio: 1 / 1;         /* Höhe wird automatisch genau gleich -> Quadrat */
  border-radius: 999px;        /* = 50%, aber robuster */
  background: var(--accent);
  color: #fff;

  display: grid;               /* Zahl sauber zentrieren */
  place-items: center;

  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1;              /* keine Zusatzhöhe durch Schrift */
  padding: 0;                  /* Sicherheit */
  flex: 0 0 auto;              /* Flex-Container dürfen NICHT strecken */
}

@media (max-width: 600px){
  .step .badge{
    --s: 36px;
    font-size: 1rem;
  }
}

/* ===== Footer ===== */
.site-footer{border-top:1px solid #e5e7eb; background: var(--primary); color: white;}
.site-footer .container{display:flex; align-items:center; justify-content:space-between; gap:10px; padding:24px 25px}
.legal-nav a{margin-left:14px}


@media (max-width: 900px){
  h2{
    font-size: clamp(1.35rem, 4.8vw, 1.75rem);
    line-height: 1.25;
  }
  p{
    font-size: 1.0625rem;   /* ~17px */
    line-height: 1.6;
  }
}

.spacer-60 {
  height: 60px;
}

.course-list {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  margin-top: 24px;
}

.course {
  background: #fff;
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}

.course h3 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 1.25rem;
}

.course p {
  margin: 0 0 10px;
}

/* ============================
   Team – Bilder
   ============================ */

.team-photo {
  width: 100%;
  object-fit: cover;      /* schneidet sauber zu, ohne Verzerrung */
  border-radius: var(--radius) var(--radius) 0 0; 
  display: block;
    border-radius: 16px 16px 0 0;
    margin-bottom: 20px;

}


/* ============================
   Team-Layout
   ============================ */

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  align-items: start;
}

.team-card {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid #e5e7eb;
  padding: 24px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}

.team-card h2 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 1.3rem;
}

.team-role {
  margin: 0 0 12px;
  font-weight: 600;
}

.team-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.team-card li {
  margin-bottom: 4px;
}

/* optional etwas mehr Luft auf kleineren Screens */
@media (max-width: 700px) {
  .team-card {
    padding: 20px;
  }
}

/* ============================
   Kontakt-Popup
   ============================ */

.contact-modal {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease-out;
}

.contact-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.contact-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
}

/* Dialog-Fenster (Desktop) */
.contact-dialog {
  position: relative;
  z-index: 1;
  background: #fff;
  border-radius: var(--radius, 20px);
  padding: 20px 22px 18px;
  width: min(640px, 92vw);
  max-height: 90vh;
  overflow: hidden;
  box-shadow: 0 18px 45px rgba(0,0,0,0.25);
  transform: scale(0.98);
  transition: transform 180ms ease-out;
  color: var(--ink, #111827);
  font-size: 0.95rem;
}

/* NEU – innerer Scroll-Container */
.contact-dialog-inner {
  max-height: none;
  overflow-y: visible;
  padding-right: 4px; /* Platz für Scrollbar, damit Radius nicht abgeschnitten wird */
}

.contact-modal.is-open .contact-dialog {
  transform: scale(1);
}

.contact-dialog-inner::-webkit-scrollbar {
  width: 8px;
}

.contact-dialog-inner::-webkit-scrollbar-track {
  background: transparent;
}

.contact-dialog-inner::-webkit-scrollbar-thumb {
  background: #cccccc;
  border-radius: 8px;
}

.contact-close {
  position: absolute;
  top: 12px;
  right: 12px;
  border: none;
  background: transparent;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

/* Formular-Grundlayout */
.contact-form .field {
  margin-bottom: 10px;
}

.contact-form label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 3px;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
  width: 100%;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  padding: 6px 10px;
  font: inherit;
  background: #fff;
  color: var(--ink, #111827);

}

  .contact-intro {
    margin-bottom: 10px;
  }

/* Platzhalter etwas heller */
.contact-dialog ::placeholder {
  color: #9ca3af;
}

.contact-form textarea {
  resize: vertical;
  min-height: 90px;
}

.contact-form fieldset {
  border: none;
  padding: 0;
  display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 16px;
    row-gap: 4px;
    margin-bottom: 10px;
}

.contact-form legend {
  font-size: 0.9rem;
  font-weight: 600;
  grid-column: 1 / -1;      /* Legend über beide Spalten */
    margin-bottom: 4px;
}

.contact-form fieldset label {
display: flex;
    align-items: center;
    font-size: 0.9rem;
    margin-bottom: 0;
}

.contact-form input[type="radio"] {
  margin-right: 6px;
}

.contact-form .checkbox {
  font-size: 0.85rem;
}

.contact-form .checkbox input[type="checkbox"] {
  margin-top: 3px;
}

.contact-actions {
  margin-top: 10px;
  text-align: right;
}

/* Honeypot-Feld verstecken */
.hp-field {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}


/* =========================
   Desktop: Zweispaltiges Formular
   ========================= */
@media (min-width: 900px) {

  /* Formular-Gitter: 2 Spalten */
  .contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 16px;
    row-gap: 12px;
  }

  /* Jedes Feld soll sich sauber in 2 Spalten verteilen */
  .contact-form .field {
    margin-bottom: 0;              /* Grid übernimmt Abstand */
  }

  /* Alle normalen Input-Felder auf 50% */
  .contact-form input[type="text"],
  .contact-form input[type="email"],
  .contact-form input[type="tel"] {
    width: 100%;
  }

  /* Textarea über volle Breite */
  .contact-form textarea {
    grid-column: 1 / -1;
    min-height: 120px;
  }

  /* Alles, was über die ganze Breite gehen soll */
  .contact-form .field-full,
  .contact-form fieldset,
  .contact-form .checkbox,
  .contact-form .contact-actions {
    grid-column: 1 / -1;
  }

  /* Radios im Fieldset zweispaltig */
  .contact-form fieldset {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 16px;
    row-gap: 6px;
    margin: 0;
  }

  .contact-form fieldset legend {
    grid-column: 1 / -1;
    margin-bottom: 4px;
  }

  /* Checkbox über die gesamte Breite */
  .contact-form .checkbox {
    grid-column: 1 / -1;
  }

  /* Submit-Button rechts unten, volle Breite oder rechtsbündig */
  .contact-actions {
    grid-column: 1 / -1;
    text-align: right;
    margin-top: 4px;
  }

  /* Innen-Abstand + Dialog-Größe optimieren */
  .contact-dialog {
    width: min(600px, 90vw);
    padding: 24px 28px;
  }

  /* Innenbereich ohne Scrollbar (Desktop) */
  .contact-dialog-inner {
    max-height: none;
    overflow-y: visible;
  }
}


/* Mobil: Bottom Sheet von unten */
@media (max-width: 768px) {
  .contact-modal {
    align-items: flex-end;
    overflow: auto;
  }

  .contact-dialog {
    width: 100%;
    max-width: 100%;
    border-radius: 20px 20px 0 0;
    height: 97vh;
    transform: translateY(100%);
    overflow: auto;
  }

  .contact-modal.is-open .contact-dialog {
    transform: translateY(0);
  }
}

/* =========================
   Erfolgs-/Fehlermeldung im Popup
   ========================= */

/* Fehlermeldung */
.contact-error {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  border-left: 4px solid #ef4444;
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 0.9rem;
  color: #991b1b;
  grid-column: 1 / -1;
}

.contact-error strong {
  display: block;
  margin-bottom: 6px;
}

.contact-error ul {
  margin: 0;
  padding-left: 18px;
}

.contact-error li {
  margin-bottom: 2px;
}

/* Erfolgsmeldung */
.contact-success {
  text-align: center;
  padding: 30px 20px;
}

.contact-success-icon {
  width: 70px;
  height: 70px;
  background: #10b981;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  animation: contact-scale-in 0.4s ease-out;
}

.contact-success-icon::after {
  content: '\2713';
  color: #fff;
  font-size: 40px;
  font-weight: bold;
}

@keyframes contact-scale-in {
  from { transform: scale(0); }
  to   { transform: scale(1); }
}

.contact-success h2 {
  margin-bottom: 12px;
  color: #1f2937;
}

.contact-success p {
  color: #6b7280;
  margin-bottom: 10px;
  font-size: 0.95rem;
}

.contact-success-close {
  margin-top: 20px;
}

/* ===== SPA Page Transitions ===== */

#main {
  opacity: 1;
  transition: opacity 200ms ease-out;
}

#main.spa-fade-out {
  opacity: 0;
}

#main.spa-fade-in {
  opacity: 0;
}

/* Aktiver Nav-Link */
.primary-nav a.nav-active,
#mobile-nav a.nav-active {
  color: var(--primary, #0F5132);
  font-weight: 600;
}

/* ============================
   Breadcrumb
   ============================ */
.breadcrumb{
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 12px;
}
.breadcrumb a{
  color: var(--muted);
  text-decoration: none;
}
.breadcrumb a:hover{
  color: var(--primary);
  text-decoration: underline;
}
.breadcrumb span[aria-hidden]{
  margin: 0 6px;
}

/* ============================
   Praxis-Galerie
   ============================ */
.praxis-gallery{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 32px;
}
.gallery-item{
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: zoom-in;
}
.gallery-item img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}
.gallery-item:hover img{
  transform: scale(1.03);
}
.gallery-item.portrait{
  aspect-ratio: 3/4;
}
.gallery-item.landscape{
  grid-column: 1 / -1;
  aspect-ratio: 16/7;
}

@media (max-width: 600px){
  .praxis-gallery{
    grid-template-columns: 1fr;
  }
  .gallery-item.landscape{
    aspect-ratio: 16/9;
  }
}

/* ============================
   Lightbox
   ============================ */
.lightbox-overlay{
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,.88);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
.lightbox-overlay.is-open{
  opacity: 1;
  pointer-events: auto;
}
.lightbox-overlay img{
  max-width: 90vw;
  max-height: 88vh;
  border-radius: 10px;
  box-shadow: 0 12px 40px rgba(0,0,0,.5);
  user-select: none;
}
.lightbox-close,
.lightbox-prev,
.lightbox-next{
  position: absolute;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  font-size: 2rem;
  line-height: 1;
  padding: 12px;
  opacity: .7;
  transition: opacity .2s;
}
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover{ opacity: 1; }
.lightbox-close{ top: 16px; right: 20px; font-size: 2.4rem; }
.lightbox-prev{ left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox-next{ right: 16px; top: 50%; transform: translateY(-50%); }

