/* NIST.WERK · Eukalyptusgrün & Burgunderrot */
:root {
  --eukalyptus: #789789;
  --eukalyptus-dunkel: #47695A;
  --eukalyptus-hell: #EAF1ED;
  --eukalyptus-sehr-hell: #F5F8F6;
  --burgunder: #773E49;
  --burgunder-dunkel: #5F303A;
  --burgunder-hell: #F4EAEC;
  --weiss: #FFFFFF;
  --text: #3E4943;
  --text-hell: #68736D;
  --rand: #D9E2DC;
  --schatten: 0 8px 28px rgba(46, 65, 55, 0.10);
  --radius: 16px;
  --header-height: 104px;
  --uebergang: .25s ease;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 20px); }
body {
  min-height: 100vh; font-family: "Nunito", "Avenir Next", Avenir, sans-serif;
  color: var(--text); background: var(--eukalyptus-sehr-hell); line-height: 1.75; overflow-x: hidden;
}
a { color: var(--burgunder); text-decoration: none; transition: color var(--uebergang), background var(--uebergang), transform var(--uebergang); }
a:hover { color: var(--eukalyptus-dunkel); }
button, input, textarea { font: inherit; }
#bgVideo { position: fixed; inset: var(--header-height) 0 0; width: 100%; height: calc(100vh - var(--header-height)); object-fit: cover; object-position: center; z-index: -3; opacity: .25; pointer-events: none; }
.video-overlay { position: fixed; inset: var(--header-height) 0 0; background: rgba(245,248,246,.55); z-index: -2; pointer-events: none; }
.site-header {
  position: fixed; inset: 0 0 auto; height: var(--header-height); padding: 0 clamp(1rem, 5vw, 5rem);
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  background: rgba(255,255,255,.96); border-bottom: 1px solid rgba(120,151,137,.22);
  box-shadow: 0 2px 14px rgba(46,65,55,.07); z-index: 1000; backdrop-filter: blur(12px);
}
.logo { display: inline-flex; align-items: center; min-width: 0; }
.logo img { display: block; width: auto; max-width: 290px; max-height: 120px; object-fit: contain; }
.header-actions { display: flex; align-items: center; gap: .6rem; }
.social-link { width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; }
.social-link:hover, .social-link:focus-visible { background: var(--eukalyptus-hell); outline: none; }
.social-link svg { width: 23px; height: 23px; fill: none; stroke: var(--burgunder); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tiktok-link svg { stroke: var(--eukalyptus-dunkel); stroke-width: 2.1; }
.social-dot { fill: var(--burgunder); stroke: none; }
.menu-toggle {
  width: 48px; height: 48px; padding: 11px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 6px;
  border: 1px solid transparent; border-radius: 10px; background: transparent; cursor: pointer;
}
.menu-toggle:hover, .menu-toggle:focus-visible { background: var(--eukalyptus-hell); border-color: var(--rand); outline: none; }
.menu-toggle span { display: block; width: 25px; height: 2.5px; border-radius: 3px; background: var(--burgunder); transition: transform var(--uebergang), opacity var(--uebergang); }
.menu-toggle.active span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }
.main-nav {
  position: fixed; top: var(--header-height); right: clamp(.5rem, 3vw, 2rem); width: min(350px, 92vw);
  max-height: calc(100vh - var(--header-height) - 1rem); overflow-y: auto; padding: 1rem;
  background: rgba(255,255,255,.985); border: 1px solid var(--rand); border-radius: 0 0 16px 16px;
  box-shadow: var(--schatten); z-index: 999; opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity var(--uebergang), visibility var(--uebergang), transform var(--uebergang);
}
.main-nav.open { opacity: 1; visibility: visible; transform: translateY(0); }
.main-nav ul { list-style: none; display: flex; flex-direction: column; gap: .25rem; }
.main-nav a { display: block; padding: .72rem 1rem; border-radius: 9px; color: var(--burgunder); font-weight: 700; }
.main-nav a:hover, .main-nav a:focus-visible, .main-nav a[aria-current="page"] { color: var(--eukalyptus-dunkel); background: var(--eukalyptus-hell); outline: none; }
.page-main { position: relative; z-index: 1; width: min(1120px, 100% - 2.5rem); margin: 0 auto; padding: calc(var(--header-height) + 3rem) 0 3rem; min-height: calc(100vh - 120px); }
section { max-width: 1000px; margin: 0 auto 2rem; padding: clamp(1.35rem, 4vw, 2.6rem); background: rgba(255,255,255,.9); border: 1px solid rgba(217,226,220,.9); border-radius: var(--radius); box-shadow: var(--schatten); backdrop-filter: blur(7px); }
section h1, section h2 { margin-bottom: 1rem; color: var(--eukalyptus-dunkel); font-size: clamp(1.7rem, 3vw, 2.35rem); line-height: 1.25; font-weight: 750; }
section h1::after, section h2::after { content: ""; display: block; width: 54px; height: 3px; margin-top: .75rem; border-radius: 3px; background: var(--burgunder); opacity: .78; }
section h3 { color: var(--burgunder); line-height: 1.35; }
section p { max-width: 790px; margin-bottom: 1rem; line-height: 1.8; }
section p:last-child { margin-bottom: 0; }
.eyebrow { color: var(--burgunder); text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 800; }
.hero-section { max-width: 1000px; padding: clamp(2rem, 7vw, 5.5rem); text-align: center; background: rgba(255,255,255,.78); }
.hero-section .eyebrow { margin-bottom: .6rem; }
.hero-section h1 { font-size: clamp(2.8rem, 7vw, 5.3rem); letter-spacing: .035em; margin-bottom: .15rem; }
.hero-section h1::after { margin: .7rem auto 0; }
.hero-claim { color: var(--burgunder); font-size: clamp(1.3rem, 3vw, 2rem); font-weight: 700; margin: .7rem auto 1rem !important; }
.hero-copy { margin: 0 auto 1rem !important; }
.hero-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.button { display: inline-flex; align-items: center; justify-content: center; padding: .8rem 1.25rem; border: 1px solid var(--burgunder); border-radius: 10px; font-weight: 750; }
.button-primary { background: var(--burgunder); color: white; }
.button-primary:hover { background: var(--burgunder-dunkel); color: white; transform: translateY(-2px); }
.button-secondary { background: rgba(255,255,255,.7); color: var(--burgunder); }
.button-secondary:hover { background: var(--burgunder-hell); }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1rem; margin-top: 1.5rem; }
.feature-card { display: flex; flex-direction: column; align-items: flex-start; padding: 1.4rem; border: 1px solid var(--rand); border-radius: 14px; background: rgba(245,248,246,.92); color: var(--text); box-shadow: 0 3px 12px rgba(46,65,55,.04); }
.feature-card:hover { transform: translateY(-3px); border-color: var(--eukalyptus); background: var(--eukalyptus-hell); color: var(--text); }
.feature-card h2, .feature-card h3 { margin: .35rem 0 .45rem; font-size: 1.25rem; }
.feature-card h2::after, .feature-card h3::after { display: none; }
.feature-card p { font-size: .95rem; margin-bottom: 1rem; }
.feature-number { color: var(--burgunder); font-size: .78rem; letter-spacing: .12em; font-weight: 800; }
.text-link { margin-top: auto; color: var(--burgunder); font-weight: 800; }
.news-section { border-left: 4px solid var(--burgunder); }
.about-section::after { content: ""; display: table; clear: both; }
.portrait-wrap { float: right; width: min(34%, 250px); margin: .2rem 0 1.3rem 2rem; text-align: center; }
.portrait-wrap img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; object-position: center; border: 5px solid #fff; outline: 2px solid var(--eukalyptus); border-radius: 50%; box-shadow: var(--schatten); }
.portrait-wrap figcaption { margin-top: .7rem; color: var(--text-hell); font-size: .82rem; }
.kurse-intro { margin-bottom: 1.8rem; }
.kurse-raster { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1.2rem; align-items: start; }
.kurs-karte { min-width: 0; padding: 1.3rem; background: rgba(245,248,246,.95); border: 1px solid var(--rand); border-radius: 14px; transition: background var(--uebergang), border-color var(--uebergang), box-shadow var(--uebergang), transform var(--uebergang); }
.kurs-karte:hover, .kurs-karte:focus-within, .kurs-karte.is-open { background: var(--eukalyptus-hell); border-color: var(--eukalyptus); box-shadow: var(--schatten); }
.kurs-karte:hover { transform: translateY(-3px); }
.kurs-titel { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding: 0; border: 0; background: transparent; color: var(--burgunder); text-align: left; font-size: 1.2rem; font-weight: 800; cursor: pointer; }
.kurs-titel:focus-visible { outline: 2px solid var(--burgunder); outline-offset: 5px; }
.kurs-symbol { display: inline-flex; flex: 0 0 30px; width: 30px; height: 30px; align-items: center; justify-content: center; border-radius: 50%; background: white; color: var(--eukalyptus-dunkel); font-size: 1.3rem; line-height: 1; transition: transform var(--uebergang), background var(--uebergang); }
.kurs-kurztext { margin: .65rem 0 0 !important; color: var(--text-hell); font-size: .95rem; line-height: 1.6; }
.kurs-info { display: none; margin-top: 1rem; }
.kurs-karte.is-open .kurs-info { display: block; }
.kurs-karte.is-open .kurs-symbol { background: var(--burgunder-hell); transform: rotate(45deg); }
.kurs-info > p { color: var(--text); font-size: .95rem; }
#contactForm { display: flex; flex-direction: column; max-width: 560px; gap: .35rem; }
#contactForm label { margin-top: .5rem; color: var(--eukalyptus-dunkel); font-weight: 800; }
#contactForm input, #contactForm textarea { width: 100%; padding: .8rem .9rem; border: 1px solid var(--rand); border-radius: 8px; background: white; color: var(--text); }
#contactForm input:focus, #contactForm textarea:focus { outline: none; border-color: var(--eukalyptus-dunkel); box-shadow: 0 0 0 3px rgba(120,151,137,.18); background: var(--eukalyptus-sehr-hell); }
#contactForm textarea { min-height: 140px; resize: vertical; }
#contactForm button { align-self: flex-start; margin-top: 1rem; padding: .85rem 1.3rem; border: 1px solid var(--burgunder); border-radius: 8px; background: var(--burgunder); color: white; font-weight: 800; cursor: pointer; }
#contactForm button:hover { background: var(--burgunder-dunkel); }
.site-footer { position: relative; z-index: 1; padding: 1.4rem 1rem; background: rgba(234,241,237,.96); border-top: 1px solid var(--rand); color: var(--text-hell); text-align: center; font-size: .9rem; }
.footer-links { display: flex; justify-content: center; gap: .7rem; margin-top: .35rem; }
@media (max-width: 760px) {
  :root { --header-height: 84px; }
  .site-header { padding: 0 1rem; gap: .5rem; }
  .logo img { max-width: min(210px, 43vw); max-height: 66px; }
  .header-actions { gap: .1rem; }
  .social-link { width: 35px; height: 40px; }
  .social-link svg { width: 21px; height: 21px; }
  .menu-toggle { width: 42px; height: 44px; }
  .page-main { width: min(100% - 1.2rem, 680px); padding-top: calc(var(--header-height) + 1.5rem); }
  section { padding: 1.25rem; margin-bottom: 1.2rem; border-radius: 12px; }
  .feature-grid { grid-template-columns: 1fr; }
  .kurse-raster { grid-template-columns: 1fr; gap: .9rem; }
  .kurs-karte { padding: 1.1rem; }
  .kurs-karte:hover { transform: none; }
  .portrait-wrap { width: min(42%, 190px); margin-left: 1rem; }
}
@media (max-width: 420px) {
  .logo img { max-width: 38vw; }
  .social-link { width: 30px; }
  .header-actions { gap: 0; }
  .portrait-wrap { float: none; width: min(62%, 220px); margin: 0 auto 1.5rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}


/* Logo-Bereich auf der Startseite exakt zentrieren */
.home-page .hero-section .hero-branding {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: none;
  margin-left: auto;
  margin-right: auto;
  padding-left: 0;
  padding-right: 0;
  text-align: center;
  box-sizing: border-box;
}

/* SVG mittig ausrichten */
.home-page .hero-section .hero-branding .hero-logo {
  display: block;
  width: min(80vw, 520px);
  max-width: 100%;
  height: auto;
  max-height: 300px;
  margin: 0 auto;
  padding: 0;
  border: none;
  transform: none;
  box-sizing: border-box;
}

/* Trennstrich mittig unter dem Logo */
.home-page .hero-section .hero-divider {
  display: block;
  width: 78px;
  height: 2px;
  margin: 18px auto 22px;
  background-color: #87404D;
  flex-shrink: 0;
}

/* Slogan mittig unter dem Trennstrich */
.home-page .hero-section .hero-branding .hero-claim {
  width: 100%;
  margin: 0;
  padding: 0;
  text-align: center;
}

#beratung .button {
  display: inline-block;
  margin-top: 10px;
  padding: 12px 24px;
  background-color: #773E49;
  color: #ffffff;
  text-decoration: none;
  border-radius: 6px;
  transition: background-color 0.3s ease;
}

#beratung .button:hover {
  background-color: #5F303A;
}


/* ========================================
   NIST.WERK – Schriftgestaltung
   Überschriften & Buttons: Chevy
   Fließtexte: Nunito
   ======================================== */

/* Grundschrift für die gesamte Website */
body {
  font-family: "Nunito", "Avenir Next", Avenir, sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Alle Überschriften */
h1,
h2,
h3,
h4,
h5,
h6,
section h1,
section h2,
section h3,
.feature-card h2,
.feature-card h3 {
  font-family: "Chewy", sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

/* Hauptüberschriften */
section h1,
section h2 {
  line-height: 1.25;
}

/* Überschrift auf der Startseite */
.hero-section h1 {
  font-family: "Chewy", sans-serif;
  font-weight: 400;
}

/* Slogan auf der Startseite */
.hero-claim {
  font-family: "Chewy", sans-serif;
  font-weight: 400;
}

/* Navigation */
.main-nav a {
  font-family: "Chewy", sans-serif;
  font-weight: 400;
}

/* Alle allgemeinen Buttons */
.button,
.button-primary,
.button-secondary,
#beratung .button,
#contactForm button {
  font-family: "Chewy", sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-shadow: none;
}

/* Aufklappbare Kurstitel */
.kurs-titel {
  font-family: "Chewy", sans-serif;
  font-weight: 400;
  text-shadow: none;
}

/* Formularbeschriftungen bleiben bei Nunito */
#contactForm label {
  font-family: "Nunito", "Avenir Next", Avenir, sans-serif;
  font-weight: 600;
}

/* Fließtexte ausdrücklich in Nunito */
p,
li,
input,
textarea,
label,
figcaption,
.feature-card p,
.kurs-kurztext,
.kurs-info,
.site-footer,
.eyebrow,
.text-link {
  font-family: "Nunito", "Avenir Next", Avenir, sans-serif;
}

/* Keine künstliche Fettschrift durch alte Gewichtungen */
.button,
.button-primary,
.button-secondary,
#beratung .button,
#contactForm button,
.kurs-titel,
.main-nav a {
  font-synthesis: none;
}

#formStatus {
  margin-top: 15px;
  color: #47695A;
  font-weight: 700;
}
