@font-face { font-family: "Lato"; font-style: normal; font-weight: 400; font-display: swap; src: url("schrift/lato-400.woff2") format("woff2"); }
@font-face { font-family: "Lato"; font-style: normal; font-weight: 700; font-display: swap; src: url("schrift/lato-700.woff2") format("woff2"); }
:root {
  --dunkel: #3F4A38;
  --akzent: #9DAE86;
  --hell: #E9ECDD;
  --beige: #EAE3D0;
  --weiss: #FFFFFF;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Lato", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.65;
  color: var(--dunkel);
  background: var(--weiss);
}

h1, h2, h3 { font-weight: 700; line-height: 1.2; margin: 0 0 .5em; text-wrap: balance; }
h2 { font-size: 2rem; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; text-wrap: pretty; }
::selection { background: var(--akzent); color: var(--dunkel); }
:focus-visible { outline: 3px solid var(--dunkel); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .slide { transition: none; } html { scroll-behavior: auto; } }
a { color: var(--dunkel); }

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
section { padding: 72px 0; }

/* Kopf */
.kopf {
  position: sticky; top: 0; z-index: 10;
  background: var(--weiss);
  border-bottom: 1px solid var(--hell);
}
/* Kopfzeile über die ganze Bildschirmbreite: Logo links, Instagram rechts, Menü dazwischen */
.kopf .wrap { display: flex; align-items: center; gap: 16px 24px; min-height: 64px; flex-wrap: wrap; max-width: none; padding: 6px clamp(16px, 3vw, 48px); }
.logo { text-decoration: none; display: inline-block; }
/* Logo als Bild, zugeschnitten auf den Inhalt (Original 580x580, Inhalt ca. 400x165 ab x 60, y 205) */
.logo-bild {
  --s: .45;
  display: block;
  width: calc(400px * var(--s)); height: calc(165px * var(--s));
  background: url("bilder/logo-original.jpg") no-repeat;
  background-size: calc(580px * var(--s));
  background-position: calc(-60px * var(--s)) calc(-205px * var(--s));
  mix-blend-mode: multiply;
}
nav { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; flex: 1 1 auto; }
nav a:first-child { margin-left: auto; }
nav a.insta { margin-left: 4px; }
nav a { text-decoration: none; font-weight: 700; font-size: .95rem; }
nav a:hover { text-decoration: underline; text-decoration-color: var(--akzent); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.insta { display: inline-flex; width: 22px; height: 22px; }
.insta svg { width: 100%; height: 100%; stroke: var(--dunkel); fill: none; stroke-width: 2; }

/* Schieberegler */
.slider { --kopf: 90px; position: relative; width: 100%; aspect-ratio: 3 / 2; max-height: calc(100svh - var(--kopf)); overflow: hidden; background: var(--hell); }
.slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease;
  background-size: cover; background-position: center;
  display: flex; align-items: flex-end;
}
.slide.aktiv { opacity: 1; }
.slide .marke {
  padding: 0 20px 28px; width: 100%;
}
.slide .marke { padding: 0 0 clamp(8px, 1.6vw, 20px) clamp(10px, 1.8vw, 24px); }
.slide:nth-child(1) { background-image: url("bilder/foto-startseite-downdog.jpg"); background-position: center 80%; }
.slide:nth-child(2) { background-image: url("bilder/foto-downdog-inspire.jpg"); background-position: center 30%; }
.slide:nth-child(3) { background-image: url("bilder/foto-downdog-care.jpg"); background-position: center 70%; }
.slide:nth-child(4) { background-image: url("bilder/foto-downdog-indulge.jpg"); background-position: center 65%; }
/* Weißes Logo ohne Hintergrund direkt im Foto */
.slide .marke .logo-bild {
  /* Größe wächst mit der Bildschirmbreite: rund 20 % der Bildbreite, am Handy im gleichen Verhältnis kleiner */
  margin: 0 0 clamp(2px, .6vw, 8px);
  width: min(20vw, 271px); height: auto; aspect-ratio: 362 / 150;
  background: url("bilder/logo-weiss.png") no-repeat center / contain;
  mix-blend-mode: normal;
  filter: drop-shadow(0 1px 8px rgba(0,0,0,.45));
}
.punkte { position: absolute; bottom: 8px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; }
.punkte button { width: 10px; height: 10px; border-radius: 50%; border: 0; background: var(--weiss); opacity: .6; cursor: pointer; padding: 0; }
.punkte button.aktiv { opacity: 1; }

/* Einstieg */
.einstieg { text-align: center; }
.einstieg h1 { font-size: 2.4rem; }
.einstieg p { max-width: none; }
.knoepfe { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }
.btn {
  display: inline-block; padding: 12px 28px; border-radius: 999px;
  text-decoration: none; font-weight: 700; background: var(--dunkel); color: var(--weiss);
  border: 2px solid var(--dunkel);
}
.btn:hover { background: var(--hell); border-color: var(--akzent); color: var(--dunkel); }
.btn.zweit { background: var(--weiss); color: var(--dunkel); border-color: var(--akzent); }
.btn.zweit:hover { background: var(--hell); border-color: var(--dunkel); }

/* Karten */
.karten { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.karte { background: var(--weiss); border: 1px solid var(--hell); border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; }
.karte .bild { aspect-ratio: 4 / 3; background: var(--hell) center / cover no-repeat; }
.eintrag .bild { background-size: cover; background-position: center; }
.karte .text { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.karte .text p { flex: 1; }
.karte a.mehr { font-weight: 700; }

/* Termine */
.termine { background: var(--hell); }
.termine ul { list-style: none; margin: 0; padding: 0; }
.termine li { display: grid; grid-template-columns: 190px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--akzent); }
.termine li:last-child { border-bottom: 0; }
.termine .datum { font-weight: 700; }

/* Über mich */
.ueber .wrap { display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; align-items: center; }
.ueber .portrait { aspect-ratio: 4 / 5; background: var(--hell) center / cover no-repeat; border-radius: 10px; }

.ueber.ohne-foto .wrap { grid-template-columns: 1fr; max-width: 1100px; text-align: center; }
.ueber.ohne-foto p { max-width: none; }

/* Kontakt */
.kontakt { background: var(--beige); text-align: center; }
.kontakt p { max-width: 520px; margin-left: auto; margin-right: auto; }

/* Unterseiten */
nav a[aria-current="page"] { border-bottom: 2px solid var(--akzent); }
.seitenkopf { text-align: center; padding-bottom: 32px; }
.seitenkopf h1 { font-size: 2.4rem; }
.seitenkopf p { max-width: 600px; margin-left: auto; margin-right: auto; }

.tabelle { border-top: 2px solid var(--akzent); }
.zeile { display: grid; grid-template-columns: 120px 170px 170px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--hell); }
.zeile.kopfzeile { font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; }
.zeile .tag { font-weight: 700; }

.hinweis { margin-top: 20px; padding: 14px 18px; background: var(--hell); border-radius: 8px; font-size: .95rem; }

.kurse-liste .karte .btn { align-self: flex-start; }
.kurse-liste .fakten { flex: 0; font-size: .95rem; }
.kurse-liste .preise { flex: 1; font-size: .95rem; padding-top: 12px; border-top: 1px solid var(--hell); }

.eintraege { display: grid; gap: 28px; }
.eintrag { display: grid; grid-template-columns: minmax(240px, 340px) 1fr; border: 1px solid var(--hell); border-radius: 10px; overflow: hidden; }
.eintrag .bild { background-color: var(--hell); aspect-ratio: 1 / 1; align-self: start; }
.eintrag .text { padding: 24px 28px; }
.eintrag h2 { font-size: 1.5rem; }
.eintrag .datum-zeile { font-weight: 700; margin-bottom: .2em; padding-bottom: .3em; border-bottom: 2px solid var(--akzent); display: inline-block; }
.eintrag .fakten { font-size: .95rem; }
.textseite .wrap { max-width: 760px; }
.textseite h1 { font-size: 2.2rem; }
.textseite h2 { font-size: 1.3rem; margin-top: 1.6em; }
.eintrag.ausgebucht { opacity: .8; }

.stufen { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.stufe { border: 1px solid var(--hell); border-radius: 10px; padding: 26px; display: flex; flex-direction: column; }
.stufe .preis { font-size: 1.6rem; font-weight: 700; margin-bottom: .6em; }
.stufe p { flex: 1; }
.stufe .btn { align-self: flex-start; }
.zwei-spalten { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.liste { padding-left: 1.2em; }
.liste li { margin-bottom: .5em; }
.knoepfe-links { display: flex; gap: 12px; flex-wrap: wrap; }

footer { padding: 28px 0; font-size: .9rem; text-align: center; border-top: 1px solid var(--hell); }
footer a { margin: 0 10px; }

@media (max-width: 800px) {
  section { padding: 48px 0; }
  .karten { grid-template-columns: 1fr; }
  .termine li { grid-template-columns: 1fr; gap: 2px; }
  .zeile { grid-template-columns: 1fr; gap: 2px; }
  .zeile.kopfzeile { display: none; }
  .stufen, .zwei-spalten { grid-template-columns: 1fr; }
  .eintrag { grid-template-columns: 1fr; }
  .ueber .wrap { grid-template-columns: 1fr; }
  .einstieg h1 { font-size: 1.9rem; }
}
.kartentitel { font-size: 1.25rem; }
mark { background: var(--hell); color: var(--dunkel); padding: 0 .2em; border-radius: 3px; }

/* Kurse: Zeiten, Preise und Knöpfe stehen in allen Karten auf gleicher Höhe */
.kurse-liste .karte { display: grid; grid-row: span 7; grid-template-rows: subgrid; row-gap: 0; }
.kurse-liste .karte .text { display: contents; }
.kurse-liste .karte .text > * { padding-left: 22px; padding-right: 22px; margin-top: 0; margin-bottom: 0; }
.kurse-liste .karte h3 { padding-top: 22px; padding-bottom: .5em; }
.kurse-liste .karte .text > p { padding-bottom: 1em; }
.kurse-liste .karte .preise { align-self: start; margin-top: .25em; }
.kurse-liste .karte .btn { padding-left: 28px; padding-right: 28px; }

/* Hinweis "oder schreib mir" unter den Anmelden-Knöpfen */
.oder { font-size: .9rem; margin: .6em 0 0; }
.aktion { display: flex; flex-direction: column; align-items: flex-start; gap: .6em; padding: 0 22px 22px; }
.aktion .oder { margin: 0; }
.kurse-liste .karte .aktion .btn { margin: 0; }

/* Menüknopf und Handy-Menü zum Aufklappen */
.menue-knopf { display: none; margin-left: auto; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.menue-knopf span { display: block; width: 24px; height: 2px; background: var(--dunkel); transition: transform .2s ease, opacity .2s ease; }
.menue-knopf[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menue-knopf[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menue-knopf[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
@media (max-width: 640px) {
  .menue-knopf { display: flex; }
  nav { display: none; flex-basis: 100%; flex-direction: column; align-items: flex-start; gap: 0; padding-bottom: 10px; }
  nav.offen { display: flex; }
  nav a, nav a:first-child, nav a.insta { margin: 0; padding: 12px 0; width: 100%; font-size: 1.05rem; border-bottom: 1px solid var(--hell); }
  nav a.insta { width: 32px; border-bottom: 0; padding: 12px 0 4px; }
  nav a[aria-current="page"] { border-bottom: 1px solid var(--hell); font-weight: 700; text-decoration: underline; text-decoration-color: var(--akzent); text-decoration-thickness: 2px; text-underline-offset: 6px; }
  .kopf .wrap { flex-wrap: wrap; }
}

/* Karte "Du bist schon Mitglied?" in voller Breite */
.stufe.mitglied { flex-direction: row; align-items: center; justify-content: space-between; gap: 16px 24px; margin: 0 0 28px; flex-wrap: wrap; }
.stufe.mitglied .kartentitel { margin: 0; }

/* Zurück-Pfeil, bleibt beim Scrollen sichtbar */
.zurueck { position: fixed; left: clamp(12px, 2vw, 28px); bottom: clamp(12px, 2vw, 28px); z-index: 20; width: 48px; height: 48px; border-radius: 50%; background: var(--weiss); border: 2px solid var(--akzent); display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 10px rgba(63,74,56,.2); }
.zurueck svg { width: 22px; height: 22px; stroke: var(--dunkel); fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.zurueck:hover { background: var(--hell); border-color: var(--dunkel); }
