/* Petra Hahn Töpferkurse – Grundlayout und Standard-Design.
   Die Varianten in designs/*.css überschreiben vor allem die Variablen in :root
   und einzelne Bausteine (Kopf, Titelbild, Karten). */
:root {
  --akzent: #126b70;          /* Petrol: Überschriften, Links, Knöpfe */
  --akzent-2: #4ec2be;        /* Türkis: Icons, Markierungen */
  --akzent-hover: #b5714a;
  --knopf-text: #fff;
  --text: #3d3a37;
  --text-hell: #6d6862;
  --grund: #fbf8f4;
  --flaeche: #ffffff;
  --linie: #e6dfd6;
  --kopf-grund: #ffffff;
  --kopf-text: #3d3a37;
  --fuss-grund: #126b70;
  --fuss-text: #e7f2f2;
  --hero-overlay: linear-gradient(90deg, rgba(10, 50, 52, .72), rgba(10, 50, 52, .15) 70%);
  --frei: #2f7d4f;
  --warte: #a5650f;
  --voll: #a33b32;
  --radius: 10px;
  --breite: 72rem;
  --schrift: "Raleway", "Segoe UI", system-ui, sans-serif;
  --schrift-titel: "Raleway", "Segoe UI", system-ui, sans-serif;
  --schrift-hand: "Nothing You Could Do", "Segoe Script", cursive;
  --schrift-logo: "Raleway", "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 1.0625rem/1.7 var(--schrift); color: var(--text); background: var(--grund); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--akzent); text-underline-offset: .15em; }
a:hover { color: var(--akzent-hover); }
h1, h2, h3 { font-family: var(--schrift-titel); font-weight: 600; line-height: 1.25; color: var(--akzent); }
:focus-visible { outline: 3px solid var(--akzent-2); outline-offset: 2px; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: #fff; padding: .5rem 1rem; z-index: 60; }

/* Vorschauleiste für die Designvarianten */
.vorschau {
  position: sticky; top: 0; z-index: 40; display: flex; gap: 1rem; align-items: center; justify-content: center;
  background: #222; color: #fff; font: 600 .9rem/1.2 system-ui, sans-serif; padding: .45rem 1rem;
}
.vorschau a { color: #fff; text-decoration: none; padding: .1rem .5rem; border: 1px solid #555; border-radius: 4px; }
.vorschau a:hover { background: #444; color: #fff; }
.designliste { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); gap: 1rem; }
.designliste a { display: flex; flex-direction: column; gap: .4rem; padding: 1.25rem; height: 100%; background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius); text-decoration: none; color: var(--text); }
.designliste a:hover { border-color: var(--akzent); }
.designliste strong { color: var(--akzent); font-size: 1.15rem; }

/* Kopf und Menü */
.kopf { background: var(--kopf-grund); color: var(--kopf-text); border-bottom: 1px solid var(--linie); position: sticky; top: 0; z-index: 30; }
.vorschau ~ .kopf { top: 2.2rem; }
.kopf__innen { max-width: var(--breite); margin: 0 auto; padding: .75rem 1.25rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.logo { font-family: var(--schrift-logo); font-size: 1.5rem; font-weight: 600; color: var(--akzent); text-decoration: none; letter-spacing: .04em; line-height: 1.1; text-transform: uppercase; }
.logo span { display: block; font-family: var(--schrift); font-size: .72rem; font-weight: 400; letter-spacing: .3em; color: var(--text-hell); }
.hauptmenu { display: flex; gap: 1.5rem; }
.hauptmenu a { text-decoration: none; color: inherit; padding: .25rem 0; border-bottom: 2px solid transparent; }
.hauptmenu a:hover, .hauptmenu a[aria-current] { color: var(--akzent); border-color: var(--akzent-2); }
.menu-schalter, .menu-knopf { display: none; }

@media (max-width: 760px) {
  .menu-knopf { display: block; width: 2.5rem; height: 2.5rem; cursor: pointer; position: relative; }
  .menu-knopf span, .menu-knopf span::before, .menu-knopf span::after {
    content: ""; position: absolute; left: .4rem; right: .4rem; height: 2px; background: currentColor; transition: transform .2s;
  }
  .menu-knopf span { top: 50%; }
  .menu-knopf span::before { left: 0; right: 0; top: -.5rem; }
  .menu-knopf span::after { left: 0; right: 0; top: .5rem; }
  .menu-schalter:checked + .menu-knopf span { background: transparent; }
  .menu-schalter:checked + .menu-knopf span::before { transform: translateY(.5rem) rotate(45deg); }
  .menu-schalter:checked + .menu-knopf span::after { transform: translateY(-.5rem) rotate(-45deg); }
  .menu-schalter:focus-visible + .menu-knopf { outline: 3px solid var(--akzent-2); }
  .menu-schalter { display: block; position: absolute; opacity: 0; width: 1px; height: 1px; }
  .kopf__innen { flex-wrap: wrap; }
  .hauptmenu { display: none; flex-direction: column; gap: 0; width: 100%; }
  .hauptmenu a { padding: .6rem 0; border-bottom: 1px solid var(--linie); }
  .menu-schalter:checked ~ .hauptmenu { display: flex; }
}

/* Abschnitte */
.abschnitt { max-width: var(--breite); margin: 0 auto; padding: 3rem 1.25rem; }
.abschnitt--breit { max-width: none; padding-left: 0; padding-right: 0; }
.schmal { max-width: 46rem; }
/* Abschnittstitel in der Handschrift der bisherigen Seite (z. B. „TÖPFERKURSE“) */
.abschnitt__titel {
  font-family: var(--schrift-hand); font-weight: 400; text-transform: uppercase; letter-spacing: .04em;
  font-size: clamp(2rem, 4.5vw, 2.8rem); margin: 0 0 1.5rem;
}
.abschnitt__titel--zentriert { text-align: center; }
.einleitung { font-size: 1.15rem; color: var(--text-hell); max-width: 48rem; }
.hinweis { background: #fff6e8; color: #4a3a22; border-left: 4px solid var(--warte); padding: .75rem 1rem; border-radius: 4px; }
.klein { font-size: .9rem; color: var(--text-hell); }
.zurueck { margin: 0 0 1rem; }

/* Titelbild */
.hero { position: relative; isolation: isolate; overflow: hidden; min-height: min(72vh, 36rem); display: flex; align-items: center; color: #fff; }
.hero__bild { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::before { content: ""; position: absolute; inset: 0; background: var(--hero-overlay); z-index: -1; }
.hero__text { max-width: var(--breite); width: 100%; margin: 0 auto; padding: 4rem 1.25rem 6rem; }
.hero h1 { color: inherit; font-family: var(--schrift-hand); font-weight: 400; font-size: clamp(2.6rem, 6.5vw, 4.6rem); margin: 0 0 1rem; line-height: 1.1; }
.hero h1 span { font-size: .7em; }
.hero p { max-width: 32rem; font-size: 1.2rem; }
.hero__welle { position: absolute; bottom: -1px; left: 0; width: 100%; height: 70px; fill: var(--grund); }

/* Karten */
.karten { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 1.75rem; }
.karte { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius); padding: 1.75rem; text-align: center; }
.karte h2, .karte h3 { margin: 0 0 .6rem; font-size: 1.4rem; }
.karte p { margin: 0; color: var(--text-hell); text-align: left; }
.karte__icon { display: inline-flex; color: var(--akzent-2); margin-bottom: 1rem; }
.karte__icon svg { width: 3.75rem; height: 3.75rem; }
/* Kursarten mit großem Foto */
.karte--foto { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.karte__foto { width: 100%; aspect-ratio: 1; object-fit: cover; }
.karte--foto h2 { margin: 1.25rem 1.5rem .5rem; }
.karte--foto p { margin: 0 1.5rem 1.5rem; }

/* Bildraster Startseite */
.bildraster { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.bildraster img { width: 100%; aspect-ratio: 1; object-fit: cover; }
@media (max-width: 700px) { .bildraster { grid-template-columns: repeat(2, 1fr); } }

/* Zwei Spalten */
.zweispaltig { display: grid; grid-template-columns: 3fr 2fr; gap: 2.5rem; align-items: start; }
@media (max-width: 800px) { .zweispaltig { grid-template-columns: 1fr; } }
.fotos { display: grid; gap: 1rem; }
.fotos img { border-radius: var(--radius); }
.text h2 { font-size: 1.4rem; margin: 2rem 0 .5rem; }
.text h2:first-child { margin-top: 0; }
.text ul { padding-left: 1.2rem; }
.agb h2 { font-size: 1.2rem; }
.konto { background: var(--flaeche); border: 1px solid var(--linie); padding: .75rem 1rem; border-radius: 6px; }

/* Termine */
.jahr { font-size: 1.6rem; margin: 2rem 0 .75rem; }
.termine { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.termin {
  display: grid; grid-template-columns: 14rem 1fr auto; gap: 1rem; align-items: center;
  background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius); padding: 1rem 1.25rem;
}
.termin__datum { font-family: var(--schrift-titel); font-weight: 600; font-size: 1.15rem; color: var(--akzent); }
.termin__info { display: flex; flex-direction: column; }
.termin__info a { text-decoration: none; }
.termin__nr, .termin__info span { color: var(--text-hell); font-size: .95rem; }
.termin__status { display: flex; flex-direction: column; align-items: flex-end; gap: .4rem; }
@media (max-width: 760px) {
  .termin { grid-template-columns: 1fr; }
  .termin__status { align-items: flex-start; flex-direction: row; flex-wrap: wrap; }
}
.marke { display: inline-block; font-size: .85rem; padding: .15rem .6rem; border-radius: 99px; background: var(--linie); color: var(--text); }
.marke--frei { background: #e3f2e8; color: var(--frei); }
.marke--warte { background: #fbecd6; color: var(--warte); }
.marke--voll { background: #f6e0dd; color: var(--voll); }

/* Kursdetail */
.kursdetail__seite { display: grid; gap: 1.25rem; }
.kursdetail__foto { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); }
.eckdaten { display: grid; grid-template-columns: auto 1fr; gap: .4rem 1.25rem; margin: 0; background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius); padding: 1.25rem; }
.eckdaten dt { font-weight: 600; }
.eckdaten dd { margin: 0; }

/* Knöpfe */
.knopf {
  display: inline-block; background: var(--akzent); color: var(--knopf-text); border: 0; border-radius: 99px;
  padding: .7rem 1.5rem; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
}
.knopf:hover { background: var(--akzent-hover); color: var(--knopf-text); }
.knopf--klein { padding: .35rem 1rem; font-size: .9rem; }
.knopf--hell { background: transparent; color: var(--akzent); box-shadow: inset 0 0 0 2px var(--akzent); }
.knopf--hell:hover { background: var(--akzent); color: var(--knopf-text); }
.hero .knopf { background: #fff; color: var(--akzent); }
.hero .knopf:hover { background: var(--akzent-2); color: #fff; }

/* Formular */
.formular { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius); padding: 1.5rem; max-width: 46rem; }
.raster2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.25rem; }
.raster-plz { display: grid; grid-template-columns: 7rem 1fr; gap: 0 .75rem; }
@media (max-width: 600px) { .raster2 { grid-template-columns: 1fr; } }
.feld { margin-bottom: 1rem; }
.feld label { display: block; font-weight: 600; margin-bottom: .25rem; }
.feld input, .feld textarea { width: 100%; font: inherit; padding: .55rem .7rem; border: 1px solid #c9c0b5; border-radius: 6px; background: #fff; color: #222; }
.feld--fehler input, .feld--fehler textarea { border-color: var(--voll); }
.feld__fehler { color: var(--voll); margin: .25rem 0 0; font-size: .9rem; }
.feld--check { display: grid; grid-template-columns: auto 1fr; gap: .6rem; align-items: start; }
.feld--check input { width: 1.2rem; height: 1.2rem; margin-top: .3rem; }
.feld--check label { font-weight: 400; }
.feld--check .feld__fehler { grid-column: 2; }
.honig { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.meldung { padding: .75rem 1rem; border-radius: 6px; }
.meldung--fehler { background: #f6e0dd; color: var(--voll); }

/* Galerie */
.galerie__titel { font-size: 1.5rem; margin: 2.5rem 0 1rem; }
.galerie { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: 1rem; }
.galerie img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; transition: opacity .2s; }
.galerie a:hover img { opacity: .85; }
.galerie__unterschrift { margin: .4rem 0 0; font-size: .95rem; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(20, 18, 16, .94); display: flex; align-items: center; justify-content: center; z-index: 50; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: 92vw; max-height: 90vh; display: flex; flex-direction: column; align-items: center; }
.lightbox img { max-width: 92vw; max-height: 82vh; width: auto; object-fit: contain; }
.lightbox figcaption { color: #eee; margin-top: .75rem; text-align: center; }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; font-size: 2.5rem; cursor: pointer; padding: 1rem; line-height: 1; }
.lightbox .lb-zu { top: .5rem; right: .5rem; }
.lightbox .lb-zurueck { left: .5rem; top: 50%; transform: translateY(-50%); }
.lightbox .lb-vor { right: .5rem; top: 50%; transform: translateY(-50%); }

/* Fuß */
.fuss { background: var(--fuss-grund); color: var(--fuss-text); margin-top: 3rem; }
.fuss a { color: inherit; }
.fuss__innen { max-width: var(--breite); margin: 0 auto; padding: 2.5rem 1.25rem 1rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; }
.fuss__spruch { font-family: var(--schrift-hand); font-size: 1.5rem; margin: 0 0 .5rem; }
.fuss nav { display: flex; flex-direction: column; gap: .25rem; }
.fuss__copy { max-width: var(--breite); margin: 0 auto; padding: 0 1.25rem 1.5rem; font-size: .85rem; opacity: .8; }

/* abgesagte Termine */
.termin--abgesagt { opacity: .7; }
.termin--abgesagt .termin__datum, .termin--abgesagt .termin__info strong { text-decoration: line-through; }
