/* Tim Rustemeier / Drum Masters — Stylesheet des statischen Nachbaus.
 *
 * Farbpalette, Schriftgroessen-Formeln, Abschnitts-Themes und das Spaltenraster
 * entsprechen den Werten der bisherigen Squarespace-Seite (Fluid Engine, 24
 * Spalten auf dem Desktop, 8 auf dem Telefon), damit das Layout uebereinstimmt.
 */

/* ------------------------------------------------------------------ Tokens */

:root {
  /* Palette der Seite */
  --white-hsl: 0, 0%, 98.82%;
  --black-hsl: 252.63, 61.29%, 6.08%;
  --accent-hsl: 14.84, 93.94%, 80.59%;
  --light-accent-hsl: 34.67, 100%, 91.18%;
  --dark-accent-hsl: 304.42, 92.03%, 49.22%;
  --safe-light-accent-hsl: 14.84, 93.94%, 80.59%;
  --safe-dark-accent-hsl: 0, 0%, 0%;
  --safe-inverse-accent-hsl: 0, 0%, 0%;
  --safe-inverse-light-accent-hsl: 0, 0%, 0%;
  --safe-inverse-dark-accent-hsl: 0, 0%, 100%;

  --white: hsl(var(--white-hsl));
  --black: hsl(var(--black-hsl));
  --accent: hsl(var(--accent-hsl));
  --light-accent: hsl(var(--light-accent-hsl));
  --dark-accent: hsl(var(--dark-accent-hsl));

  /* Seitenmasse */
  --max-page-width: 1416px;
  --page-padding: 4vw;
  --mobile-page-padding: 6vw;
  --header-height: 146px;

  /* Schrift */
  --heading-family: "Manrope", "Helvetica Neue", Arial, sans-serif;
  --body-family: "Poppins", "Helvetica Neue", Arial, sans-serif;
  --button-family: "Source Sans 3", "Source Sans Pro", "Helvetica Neue", Arial, sans-serif;
  --heading-weight: 500;
  --heading-line-height: 1.2em;
  --heading-letter-spacing: -0.02em;
  --body-weight: 400;
  --body-line-height: 1.5em;

  /* Groessenstufen wie in Squarespace hinterlegt */
  --h1-value: 3.6;
  --h2-value: 2.3;
  --h3-value: 2.2;
  --h4-value: 1.6;
  --text-large-value: 1.4;
  --text-normal-value: 1;
  --text-small-value: 0.9;
  --button-value: 1.25;

  font-size: 16px;
}

/* Squarespace skaliert Schriftgroessen zwischen Viewport und Seitenbreite.
 * Dieselbe Formel, damit Zeilenumbrueche an denselben Stellen fallen. */
@media (min-width: 768px) {
  .fs {
    font-size: min(
      calc((var(--v) - 1) * 1.2vw + 1rem),
      max(
        calc((var(--v) - 1) * 0.012 * var(--max-page-width) + 1rem),
        calc(var(--v) * 1rem)
      )
    );
  }
}
.fs {
  font-size: calc((var(--v) - 1) * calc(0.012 * min(100vh, 900px)) + 1rem);
}

/* --------------------------------------------------------------- Grundlagen */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

/* Das hidden-Attribut muss jedes display gewinnen: Elemente wie das Pop-up
 * oder die mobile Navigation setzen display selbst und waeren sonst trotz
 * hidden sichtbar - dann liesse sich das Pop-up nicht schliessen. */
[hidden] {
  display: none !important;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--black);
  font-family: var(--body-family);
  font-weight: var(--body-weight);
  line-height: var(--body-line-height);
  overflow-wrap: break-word;
}

img,
video {
  max-width: 100%;
}

a {
  color: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-family: var(--heading-family);
  font-weight: var(--heading-weight);
  line-height: var(--heading-line-height);
  letter-spacing: var(--heading-letter-spacing);
  color: var(--heading-color, inherit);
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0 0 0 1.1em;
  padding: 0;
}

li {
  margin: 0.25em 0;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--black);
  color: var(--white);
}

.skip-link:focus {
  left: 0;
}

/* Schriftgroessen der Rich-Text-Bloecke */
h1 {
  --v: var(--h1-value);
}
h2 {
  --v: var(--h2-value);
}
h3 {
  --v: var(--h3-value);
}
h4 {
  --v: var(--h4-value);
}
p,
li {
  --v: var(--text-normal-value);
}
.sqsrte-large {
  --v: var(--text-large-value);
}
.sqsrte-small {
  --v: var(--text-small-value);
}

h1,
h2,
h3,
h4,
p,
li,
.sqsrte-large,
.sqsrte-small {
  font-size: calc((var(--v) - 1) * calc(0.012 * min(100vh, 900px)) + 1rem);
}

@media (min-width: 768px) {
  h1,
  h2,
  h3,
  h4,
  p,
  li,
  .sqsrte-large,
  .sqsrte-small {
    font-size: min(
      calc((var(--v) - 1) * 1.2vw + 1rem),
      max(
        calc((var(--v) - 1) * 0.012 * var(--max-page-width) + 1rem),
        calc(var(--v) * 1rem)
      )
    );
  }
}

h1,
h2,
h3,
h4 {
  line-height: calc(var(--heading-line-height) * (1 + (1 - var(--v)) / 25));
}

/* Hervorhebung aus dem Rich-Text-Editor: im Original ein Marker in
 * Akzentfarbe hinter dem Text (Staerke 1em, eckige Enden). */
.sqsrte-text-highlight {
  background: hsl(var(--accent-hsl));
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  /* Der Marker ragt seitlich leicht heraus, beansprucht aber keine
   * zusaetzliche Breite - sonst brechen Ueberschriften anders um. */
  padding: 0.04em 0.08em;
  margin: 0 -0.08em;
  color: hsl(var(--black-hsl));
}

/* Textfarben aus dem Rich-Text-Editor */
.sqsrte-text-color--accent {
  color: hsl(var(--accent-hsl));
}
.sqsrte-text-color--white {
  color: hsl(var(--white-hsl));
}
.sqsrte-text-color--black {
  color: hsl(var(--black-hsl));
}
.sqsrte-text-color--lightAccent {
  color: hsl(var(--light-accent-hsl));
}
.sqsrte-text-color--darkAccent {
  color: hsl(var(--dark-accent-hsl));
}
.sqsrte-text-color--safeLightAccent {
  color: hsl(var(--safe-light-accent-hsl));
}
.sqsrte-text-color--safeDarkAccent {
  color: hsl(var(--safe-dark-accent-hsl));
}
.sqsrte-text-color--safeInverseAccent {
  color: hsl(var(--safe-inverse-accent-hsl));
}

/* ------------------------------------------------------------------ Themes */

[data-theme] {
  background: var(--section-bg);
  color: var(--section-text);
  --heading-color: var(--section-text);
}

[data-theme="white-bold"],
[data-theme="white"] {
  --section-bg: hsl(var(--white-hsl));
  --section-text: hsl(var(--black-hsl));
  --button-bg: hsl(var(--safe-dark-accent-hsl));
  --button-text: hsl(var(--safe-inverse-dark-accent-hsl));
}

[data-theme="light"] {
  --section-bg: hsl(var(--light-accent-hsl));
  --section-text: hsl(var(--black-hsl));
  --button-bg: hsl(var(--accent-hsl));
  --button-text: hsl(var(--dark-accent-hsl));
}

[data-theme="light-bold"] {
  --section-bg: hsl(var(--white-hsl));
  --section-text: hsl(var(--black-hsl));
  --button-bg: hsl(var(--accent-hsl));
  --button-text: hsl(var(--dark-accent-hsl));
}

[data-theme="dark"],
[data-theme="dark-bold"] {
  --section-bg: hsl(var(--dark-accent-hsl));
  --section-text: hsl(var(--white-hsl));
  --button-bg: hsl(var(--safe-light-accent-hsl));
  --button-text: hsl(var(--safe-inverse-light-accent-hsl));
}

[data-theme="black"],
[data-theme="black-bold"] {
  --section-bg: hsl(var(--black-hsl));
  --section-text: hsl(var(--white-hsl));
  --button-bg: hsl(var(--safe-light-accent-hsl));
  --button-text: hsl(var(--safe-inverse-light-accent-hsl));
}

[data-theme="bright"] {
  --section-bg: hsl(var(--accent-hsl));
  --section-text: hsl(var(--safe-inverse-accent-hsl));
  --button-bg: hsl(var(--safe-inverse-accent-hsl));
  --button-text: hsl(var(--accent-hsl));
}

[data-theme="bright-inverse"] {
  --section-bg: hsl(var(--white-hsl));
  --section-text: hsl(var(--black-hsl));
  --button-bg: hsl(var(--accent-hsl));
  --button-text: hsl(var(--safe-inverse-accent-hsl));
}

/* ------------------------------------------------------------------ Header */

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  /* Wie bisher: 6 % Deckkraft, der erste Abschnitt scheint durch. */
  background: hsl(var(--white-hsl), 0.06);
  color: hsl(var(--accent-hsl));
  border-top: 1px solid hsl(var(--black-hsl));
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  max-width: var(--max-page-width);
  min-height: var(--header-height);
  margin: 0 auto;
  padding: 0.6rem var(--mobile-page-padding);
}

@media (min-width: 768px) {
  .site-header__inner {
    padding: 0.6rem var(--page-padding);
  }
}

/* Wie bisher: das Logo laeuft bis 75px Hoehe. */
.site-header__logo img {
  display: block;
  height: auto;
  width: auto;
  max-height: 75px;
}

.site-header__nav {
  display: none;
  margin-left: auto;
  align-items: center;
  gap: 1.75rem;
}

.site-header__nav a {
  font-family: var(--body-family);
  font-size: 1rem;
  text-decoration: none;
}

.site-header__nav a:hover,
.site-header__nav a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 0.3em;
}

.site-header__cta {
  display: none;
}

@media (min-width: 900px) {
  .site-header__nav,
  .site-header__cta {
    display: flex;
  }
}

.nav-toggle {
  order: -1;
  margin-right: auto;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0.6rem;
  background: none;
  border: 0;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.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;
}

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

@media (max-width: 899px) {
  .site-header__logo {
    margin: 0 auto;
    transform: translateX(-1.375rem); /* wiegt das Menuesymbol links auf */
  }
}

@media (min-width: 900px) {
  .nav-toggle {
    display: none;
  }
}

.mobile-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  display: grid;
  gap: 1rem;
  padding: 1.25rem var(--mobile-page-padding) 2rem;
  background: hsl(var(--black-hsl));
  color: hsl(var(--accent-hsl));
}

.mobile-nav a {
  font-size: 1.1rem;
  text-decoration: none;
}

@media (min-width: 900px) {
  .mobile-nav {
    display: none !important;
  }
}

/* ---------------------------------------------------------------- Sections */

.section {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.section[data-height="small"] {
  min-height: 33vh;
}
.section[data-height="medium"] {
  min-height: 66vh;
}
.section[data-height="large"] {
  min-height: 100vh;
}

/* Der Innenabstand ist in allen Abschnitten gleich; Abschnitte mit eigener
 * Hoehe bringen ueber --section-padding ihren eigenen Wert mit. */
.section__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-top: var(--section-padding, 6.6vmax);
  padding-bottom: var(--section-padding, 6.6vmax);
}

/* Der Header liegt ueber dem ersten Abschnitt; dessen Inhalt beginnt darunter. */
main > .section:first-child {
  padding-top: var(--header-height);
}

/* Der Hintergrund liegt unter dem Inhalt. Ohne die beiden z-index-Angaben
 * zeichnet er darueber, weil positionierte Elemente vor statischen liegen —
 * die Anmeldekarte war dadurch unsichtbar. */
.section__background {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.section__background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Fluid-Engine-Raster: mobil 8, auf dem Desktop 24 Spalten.
 * Spalten- und Zeilenzahl jedes Abschnitts stehen in der Seiten-CSS
 * (Klasse .g-<Abschnitt>), die tools/build.py mitschreibt. */
.fluid {
  --grid-gutter: var(--mobile-page-padding);
  position: relative;
  display: grid;
  overflow-x: clip;
}

@media (min-width: 768px) {
  .fluid {
    --grid-gutter: var(--page-padding);
    --container-width: min(
      var(--max-page-width),
      calc(100vw - var(--page-padding) * 2)
    );
  }
}

.footer-social {
  padding: 0 var(--mobile-page-padding) 2.5rem;
}

@media (min-width: 768px) {
  .footer-social {
    padding: 0 var(--page-padding) 2.5rem;
  }
}

/* Ein Block der Fluid Engine ist ein schlichter Block: der Inhalt beginnt am
 * oberen Rand seiner Rasterflaeche. Vertikal zentriert waere er ein paar Pixel
 * versetzt — und dort, wo sich zwei Flaechen ueberlappen (im Fuss die
 * Rechtstexte), wuerden die Zeilen uebereinander liegen. */
.fe {
  position: relative;
  min-width: 0;
}

/* -------------------------------------------------------------- Bausteine */

.block-text > *:not(:first-child) {
  margin-top: 0.75em;
}

/* Bilder fuellen ihre Rasterflaeche und ziehen die Zeile nicht auf:
 * absolut positioniert traegt das Bild nichts zur Zeilenhoehe bei - genau so
 * verhaelt sich der Bildblock der Fluid Engine. */
.block-image {
  position: absolute;
  inset: 0;
  margin: 0;
}

.block-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.block-image[data-fit="fill"] img {
  object-fit: cover;
  object-position: var(--focal, 50% 50%);
}

.block-video {
  width: 100%;
}

.block-video video,
.block-video iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 6px;
}

.block-line {
  width: 100%;
  margin: 0;
  border: 0;
  border-top: 1px solid currentColor;
}

.block-shape svg {
  display: block;
  width: 100%;
  height: 100%;
}

.button {
  display: inline-block;
  padding: 1.185em 1.74em;
  border-radius: 300px;
  background: var(--button-bg, hsl(var(--accent-hsl)));
  color: var(--button-text, hsl(var(--safe-inverse-accent-hsl)));
  font-family: var(--button-family);
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: filter 0.15s ease, transform 0.15s ease;
  --v: var(--button-value);
  font-size: calc((var(--v) - 1) * calc(0.012 * min(100vh, 900px)) + 1rem);
}

@media (min-width: 768px) {
  .button {
    font-size: min(
      calc((var(--v) - 1) * 1.2vw + 1rem),
      max(
        calc((var(--v) - 1) * 0.012 * var(--max-page-width) + 1rem),
        calc(var(--v) * 1rem)
      )
    );
  }
}

.button:hover {
  filter: brightness(0.94);
  transform: translateY(-1px);
}

.button--small {
  padding: 0.9em 1.4em;
}

.button--large {
  padding: 1.4em 2.1em;
}

.block-button {
  display: flex;
}

.block-button[data-align="center"] {
  justify-content: center;
}
.block-button[data-align="right"] {
  justify-content: flex-end;
}
.block-button[data-stretched="true"] .button {
  width: 100%;
}

/* Akkordeon (FAQ) */
.accordion {
  width: 100%;
  border-top: 1px solid currentColor;
}

.accordion details {
  border-bottom: 1px solid currentColor;
}

.accordion summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 30px 0;
  font-family: var(--heading-family);
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.accordion summary::-webkit-details-marker {
  display: none;
}

.accordion summary::after {
  content: "+";
  font-size: 1.5rem;
  line-height: 1;
  flex: none;
}

.accordion details[open] summary::after {
  content: "–";
}

.accordion__body {
  padding: 0 0 1.25em;
}

.accordion__body > *:not(:first-child) {
  margin-top: 0.75em;
}

/* Calendly */
.calendly-inline-widget {
  width: 100%;
  min-width: 320px;
  height: 700px;
}

/* Fliesstextseiten (Impressum, AGB, Datenschutz, Widerruf) */
.prose {
  max-width: 62rem;
  margin: 0 auto;
  padding: 4rem var(--mobile-page-padding);
}

@media (min-width: 768px) {
  .prose {
    padding: 5rem var(--page-padding);
  }
}

.prose > * + * {
  margin-top: 0.85em;
}

.prose h1,
.prose h2,
.prose h3 {
  margin-top: 1.8em;
}

.prose a {
  text-decoration: underline;
}

/* -------------------------------------------------------------------- Blog */

.blog-header {
  padding: 3.5rem var(--mobile-page-padding) 2.5rem;
  text-align: center;
}

@media (min-width: 768px) {
  .blog-header {
    padding: 5rem var(--page-padding) 3rem;
  }
}

.blog-header p {
  max-width: 48rem;
  margin: 1rem auto 0;
}

.blog-grid {
  display: grid;
  gap: 2.5rem 2rem;
  max-width: var(--max-page-width);
  margin: 0 auto;
  padding: 2rem var(--mobile-page-padding) 5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
    padding: 2rem var(--page-padding) 6rem;
  }
}

@media (min-width: 1024px) {
  .blog-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.blog-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-decoration: none;
}

.blog-card__image {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 8px;
  background: hsl(var(--light-accent-hsl));
}

.blog-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.blog-card:hover .blog-card__image img {
  transform: scale(1.03);
}

.blog-card__meta {
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.6;
}

.blog-card h2 {
  --v: 1.35;
}

.post {
  max-width: 48rem;
  margin: 0 auto;
  padding: 3rem var(--mobile-page-padding) 4rem;
}

@media (min-width: 768px) {
  .post {
    padding: 4.5rem var(--page-padding) 5rem;
  }
}

.post__meta {
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.6;
}

.post h1 {
  margin: 0.75rem 0 1.5rem;
  --v: 2.6;
}

.post__image {
  margin: 0 0 2rem;
  border-radius: 10px;
  overflow: hidden;
}

.post__body > * + * {
  margin-top: 1em;
}

.post__body h2,
.post__body h3,
.post__body h4 {
  margin-top: 1.8em;
}

.post__body a {
  text-decoration: underline;
}

.post__body img {
  border-radius: 8px;
}

.post__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2.5rem;
}

.post__tags a {
  padding: 0.35em 0.8em;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 0.8rem;
  text-decoration: none;
}

.post-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  max-width: 48rem;
  margin: 0 auto;
  padding: 0 var(--mobile-page-padding) 4rem;
}

@media (min-width: 768px) {
  .post-nav {
    padding: 0 var(--page-padding) 5rem;
  }
}

.post-nav a {
  max-width: 45%;
  font-size: 0.95rem;
  text-decoration: none;
}

.post-nav a:hover {
  text-decoration: underline;
}

/* ------------------------------------------------------------------ Footer */

.site-footer {
  background: var(--section-bg);
  color: var(--section-text);
  --heading-color: var(--section-text);
}

.site-footer a {
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.site-footer__inner {
  padding-top: 3.5rem;
  padding-bottom: 3rem;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid currentColor;
  border-radius: 50%;
}

.social-links svg {
  width: 1.1rem;
  height: 1.1rem;
  fill: currentColor;
}

/* --------------------------------------------------------------- Formulare */

.form-note {
  padding: 1rem 1.25rem;
  border: 1px dashed currentColor;
  border-radius: 8px;
  font-size: 0.9rem;
}

.newsletter-form {
  display: grid;
  gap: 0.75rem;
  width: 100%;
}

.newsletter-form label {
  font-size: 0.9rem;
  font-weight: 500;
}

.newsletter-form input {
  width: 100%;
  padding: 0.85em 1em;
  border: 1px solid hsl(var(--black-hsl), 0.25);
  border-radius: 8px;
  background: hsl(var(--white-hsl));
  color: hsl(var(--black-hsl));
  font: inherit;
  font-size: 1rem;
}

.newsletter-form input:focus-visible {
  outline: 2px solid hsl(var(--dark-accent-hsl));
  outline-offset: 1px;
}

/* ------------------------------------------------------- Bewegung reduziert */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ------------------------------------------------------------------- Pop-up */
/* Hinweis auf das Open Drum Coaching, wie bisher auf allen Seiten. Er wird
 * per JavaScript eingeblendet und bleibt nach dem Schliessen 14 Tage weg. */

.popup {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: hsl(var(--black-hsl), 0.55);
}

.popup__box {
  position: relative;
  display: grid;
  width: min(46rem, 100%);
  max-height: calc(100vh - 3rem);
  overflow-y: auto;
  background: hsl(var(--white-hsl));
  color: hsl(var(--black-hsl));
  border-radius: 4px;
  box-shadow: 0 24px 60px hsl(var(--black-hsl), 0.35);
  animation: popup-in 0.28s ease-out;
}

@keyframes popup-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}

.popup__image img {
  display: block;
  width: 100%;
  height: auto;
}

.popup__body {
  display: grid;
  gap: 0.9rem;
  justify-items: start;
  padding: 1.75rem 2rem 2rem;
}

.popup__body h2 {
  --v: 1.9;
}

.popup__body ul {
  margin: 0;
  padding-left: 1.1em;
}

.popup__date {
  font-weight: 600;
}

.popup__close {
  position: absolute;
  top: 0.4rem;
  right: 0.6rem;
  width: 2.5rem;
  height: 2.5rem;
  background: hsl(var(--white-hsl), 0.85);
  border: 0;
  border-radius: 50%;
  color: hsl(var(--black-hsl));
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.popup__close:hover {
  background: hsl(var(--white-hsl));
}

@media (min-width: 720px) {
  .popup__box {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
}

/* ------------------------------------------------------------- Workshop */
/* Landingpage des Offline-Workshops. Aufbau wie die uebernommenen Seiten:
 * volle Abschnittsbreite, darin der Satzspiegel der Seite und zwei Spalten.
 * Farben, Schriften und Themes kommen von oben. */

.wrap {
  width: 100%;
  max-width: var(--max-page-width);
  margin: 0 auto;
  padding: 0 var(--mobile-page-padding);
}

@media (min-width: 768px) {
  .wrap {
    padding: 0 var(--page-padding);
  }
}

.wrap.schmal {
  max-width: 46rem;
}

.kicker {
  --v: var(--text-small-value);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: hsl(var(--accent-hsl));
}

.link {
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

/* Zwei Spalten: schmale Ueberschriftenspalte links, Inhalt rechts. So sind
 * auch die Aufzaehlungen auf den uebernommenen Seiten gesetzt. */
.duo {
  display: grid;
  gap: 2rem;
}

@media (min-width: 900px) {
  .duo {
    grid-template-columns: 1fr 1.25fr;
    gap: 4rem;
  }

  .duo--formular {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.duo__links,
.duo__rechts {
  display: grid;
  gap: 1.25rem;
  align-content: start;
}

/* ------------------------------------------------------------------- Hero */

.hero {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 4rem;
  }
}

.hero__text {
  display: grid;
  gap: 1.25rem;
  align-content: start;
  max-width: 34rem;
}

.hero__knopf {
  margin-top: 0.5rem;
}

.hero__partner {
  --v: var(--text-small-value);
  opacity: 0.7;
}

.hero__bild {
  margin: 0;
  border-radius: 10px;
  overflow: hidden;
}

.hero__bild img {
  display: block;
  width: 100%;
  height: auto;
}

/* Daten zur Veranstaltung: eine Reihe unter dem Hero, wie eine Fussleiste. */
.fakten {
  display: grid;
  gap: 1.5rem;
  margin: 3rem 0 0;
  padding-top: 1.75rem;
  border-top: 1px solid currentColor;
}

@media (min-width: 640px) {
  .fakten {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

@media (min-width: 1000px) {
  .fakten {
    grid-template-columns: repeat(4, 1fr);
  }
}

.fakten dt {
  margin-bottom: 0.4rem;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.6;
}

.fakten dd {
  margin: 0;
  line-height: 1.55;
}

/* ---------------------------------------------------------------- Gewinn */

.preis {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .preis {
    grid-template-columns: auto 1fr;
    gap: 4rem;
  }
}

.preis__zahl {
  display: grid;
  gap: 0.25rem;
}

.preis__zahl .kicker {
  color: inherit;
  opacity: 0.7;
}

.preis__wert {
  font-family: var(--heading-family);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.04em;
  font-size: clamp(4.5rem, 13vw, 9rem);
  white-space: nowrap;
}

.preis__text {
  display: grid;
  gap: 1rem;
  align-content: start;
  max-width: 40rem;
}

/* --------------------------------------------------------------- Ablauf */

.tick-list {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tick-list li {
  position: relative;
  padding-left: 2.2rem;
  font-size: 1.05rem;
}

.tick-list li::before {
  content: "";
  position: absolute;
  left: 0.2rem;
  top: 0.4em;
  width: 1rem;
  height: 0.55rem;
  border-left: 2.5px solid hsl(var(--dark-accent-hsl));
  border-bottom: 2.5px solid hsl(var(--dark-accent-hsl));
  transform: rotate(-45deg);
}

.tick-list--hell li::before {
  border-color: hsl(var(--accent-hsl));
}

/* ------------------------------------------------------------ Anmeldung */

/* Das Becken im Hintergrund traegt den Abschnitt; damit das Formular lesbar
 * bleibt, liegt es auf einer hellen Karte und das Bild unter einem Schleier. */
.section--anmeldung .section__background::after {
  content: "";
  position: absolute;
  inset: 0;
  background: hsl(var(--black-hsl), 0.82);
}

.section--anmeldung .section__background img {
  filter: grayscale(0.4);
}

.karte {
  padding: 1.75rem;
  border-radius: 12px;
  background: hsl(var(--white-hsl));
  color: hsl(var(--black-hsl));
  box-shadow: 0 18px 50px hsl(var(--black-hsl), 0.35);
}

@media (min-width: 560px) {
  .karte {
    padding: 2.25rem;
  }
}

.karte h3 {
  --v: var(--h3-value);
}

.signup-form {
  display: grid;
  gap: 1.1rem;
}

.signup-form__row {
  display: grid;
  gap: 1.1rem;
}

@media (min-width: 520px) {
  .signup-form__row {
    grid-template-columns: 1fr 1fr;
  }
}

.field {
  display: grid;
  gap: 0.4rem;
  margin: 0;
}

.field label {
  font-size: 0.95rem;
  font-weight: 500;
}

.field input[type="text"],
.field input[type="tel"],
.field input[type="email"],
.field input[type="password"] {
  width: 100%;
  padding: 0.8em 0.9em;
  border: 1px solid hsl(var(--black-hsl), 0.28);
  border-radius: 8px;
  background: hsl(var(--white-hsl));
  color: hsl(var(--black-hsl));
  font: inherit;
  font-size: 1rem;
}

.field input:focus-visible {
  outline: 2px solid hsl(var(--dark-accent-hsl));
  outline-offset: 2px;
}

.field input[aria-invalid="true"] {
  border-color: hsl(var(--dark-accent-hsl));
  border-width: 2px;
}

.field__error:empty {
  display: none;
}

.field__error {
  font-size: 0.9rem;
  font-weight: 500;
  color: hsl(var(--dark-accent-hsl));
}

/* Honigtopf: aus dem Blickfeld, aber nicht display:none — Formularroboter
 * ueberspringen versteckte Felder sonst. */
.field--trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.field--check label {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
  font-weight: 400;
  font-size: 0.95rem;
  line-height: 1.5;
}

.field--check input {
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.15rem;
  accent-color: hsl(var(--dark-accent-hsl));
}

.field--check a {
  text-decoration: underline;
}

.form-note--fehler {
  border-style: solid;
  border-color: hsl(var(--dark-accent-hsl));
  color: hsl(var(--dark-accent-hsl));
}

.form-note--erfolg {
  border-style: solid;
}

.fertig {
  display: grid;
  gap: 0.75rem;
}

.fertig__los {
  font-weight: 600;
  color: hsl(var(--dark-accent-hsl));
}
