/* Bausteine: Kopf, Navigation, Buttons, Karten, Galerie, Lightbox, Kurse, Videos, Fuß */

/* ---------- Kopfzeile ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); min-height: 5.5rem; }

.brand { display: flex; align-items: center; gap: 0.9rem; color: var(--ink); text-decoration: none; line-height: 1.1; }
.brand:hover { color: var(--ink); }
.brand__logo { width: 3.75rem; height: 3.75rem; flex-shrink: 0; background: var(--ink); -webkit-mask: url("../img/site/logo-white.png") center / contain no-repeat; mask: url("../img/site/logo-white.png") center / contain no-repeat; }
.brand__text { display: flex; flex-direction: column; }
.brand__name { font-family: var(--font-display); font-size: 1.8rem; font-weight: 600; }
.brand__tag { margin-top: 0.3rem; font-size: 0.68rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink-soft); }

.nav { display: flex; align-items: center; gap: var(--space-3); }
.nav__list { display: flex; gap: 1.6rem; margin: 0; padding: 0; list-style: none; }
.nav__link { display: inline-block; padding: 0.4rem 0; color: var(--ink); text-decoration: none; font-size: 0.95rem; border-bottom: 1.5px solid transparent; }
.nav__link:hover { color: var(--rose); }
.nav__link[aria-current="page"] { border-bottom-color: var(--rose); }

.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; flex-shrink: 0; border: 1px solid var(--line); border-radius: var(--pill); background: transparent; color: var(--ink); cursor: pointer; }
.icon-btn:hover { border-color: var(--rose); color: var(--rose); }
.icon-btn svg { width: 1.15rem; height: 1.15rem; }
.theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
.menu-toggle { display: none; }

@media (max-width: 1080px) {
  .menu-toggle { display: inline-flex; }
  .nav { gap: var(--space-1); }
  .nav__list { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; padding: var(--space-1) var(--space-4) var(--space-3); background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 16px 24px -16px rgba(0,0,0,.18); }
  .nav__list.is-open { display: flex; }
  .nav__link { display: block; padding: 0.85rem 0; font-size: 1.1rem; border-bottom: 1px solid var(--line); }
  .nav__link[aria-current="page"] { color: var(--rose); border-bottom-color: var(--line); }
}
@media (max-width: 600px) {
  .site-header__inner { min-height: 4.5rem; }
  .brand__logo { width: 3rem; height: 3rem; }
  .brand__name { font-size: 1.45rem; }
  .brand__tag { font-size: 0.58rem; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem; min-height: 3.25rem; padding: 0 1.75rem; border: 1px solid transparent; border-radius: var(--pill); font-weight: 500; font-size: 1rem; text-decoration: none; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.btn svg { width: 1rem; height: 1rem; }
.btn--primary { background: var(--rose); color: var(--rose-ink); }
.btn--primary:hover { background: var(--ink); color: var(--paper); }
.btn--secondary { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--secondary:hover { background: var(--ink); color: var(--paper); }
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; }
.text-link { font-weight: 500; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

.pill { display: inline-block; padding: 0.3rem 1rem; border-radius: var(--pill); background: var(--blush); font-size: 0.875rem; color: var(--ink); }
.pill--soft { background: var(--paper-2); font-weight: 500; font-size: 0.8rem; }

/* ---------- Bogenrahmen & Trenner ---------- */
.arch { border-radius: 999px 999px 0 0; object-fit: cover; }
.flourish { display: flex; justify-content: center; color: var(--rose); }
.flourish svg { width: 11rem; height: 1.5rem; }

/* ---------- Startseite: Hero ---------- */
.hero { padding-block: clamp(3rem, 2rem + 5vw, 6.5rem); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: var(--space-6); align-items: center; }
.hero__title { font-size: clamp(2.8rem, 1.5rem + 4.6vw, 5rem); line-height: 1.03; }
.hero__lead { margin-top: var(--space-4); }
.hero__actions { margin-top: var(--space-5); }
.hero__media { position: relative; justify-self: center; width: min(100%, 24.5rem); padding-top: 1.5rem; }
.hero__media::before { content: ""; position: absolute; inset: 0 -1.4rem 1.5rem 1.4rem; border: 1px solid var(--rose); border-radius: 999px 999px 0 0; }
.hero__media img { position: relative; width: 100%; aspect-ratio: 7 / 10; }
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-5); }
  .hero__media { width: min(80%, 20rem); }
}

/* ---------- Über mich ---------- */
.about { display: grid; grid-template-columns: 18.75rem minmax(0, 1fr); gap: var(--space-6); align-items: center; }
.about img { width: 100%; aspect-ratio: 3 / 4; }
.about h2 { font-size: var(--step-4); margin-bottom: var(--space-3); }
.tags { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: var(--space-4); padding: 0; list-style: none; }
@media (max-width: 800px) { .about { grid-template-columns: minmax(0, 1fr); gap: var(--space-4); } .about img { width: min(70%, 16rem); margin-inline: auto; } }

/* ---------- Bereichskarten ---------- */
.section-head { margin-bottom: var(--space-6); }
.section-head h2 { font-size: var(--step-4); }
.section-head .lead { margin-top: var(--space-2); }

.cards { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--space-4); }
.card { display: flex; flex-direction: column; background: var(--paper); border-radius: var(--radius-img); overflow: hidden; color: var(--ink); text-decoration: none; transition: transform .25s ease, box-shadow .25s ease; }
.card:hover { color: var(--ink); transform: translateY(-4px); box-shadow: 0 18px 30px -18px rgba(58, 38, 50, .35); }
.card__body { display: flex; flex-direction: column; flex: 1; padding: var(--space-4) 2.25rem 2.25rem; }
.card h3 { font-size: 2rem; margin-bottom: 0.5rem; }
.card p { color: var(--ink-soft); }
.card__more { margin-top: auto; padding-top: var(--space-3); color: var(--rose); font-weight: 500; }
.card--wide { grid-column: span 3; }
.card--wide img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.card--arch { grid-column: span 2; align-items: center; text-align: center; padding-top: 2.5rem; }
.card--arch img { width: 13.75rem; aspect-ratio: 11 / 14; }
.card--arch .card__body { padding-top: var(--space-3); align-items: center; }
@media (max-width: 1000px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } .card--wide { grid-column: span 2; } .card--arch { grid-column: span 1; } .card--arch:last-child { grid-column: span 2; } }
@media (max-width: 640px) { .cards { grid-template-columns: minmax(0, 1fr); } .card--wide, .card--arch, .card--arch:last-child { grid-column: auto; } }

/* ---------- Zitat ---------- */
.quote { max-width: 54rem; margin: 0 auto; text-align: center; }
.quote svg { margin: 0 auto var(--space-3); width: 2.5rem; height: 2rem; color: var(--blush); }
.quote blockquote { margin: 0; }
.quote blockquote p { max-width: none; font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: var(--step-3); line-height: 1.3; }
.quote figcaption { margin-top: var(--space-3); font-size: 0.75rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink-soft); }

/* ---------- Kontakt ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-6); align-items: center; }
.contact h2 { margin-bottom: var(--space-3); }
.contact-card { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-3); padding: var(--space-5); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-img); }
.contact-card__address { font-family: var(--font-display); font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.15rem); font-weight: 500; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--rose); line-height: 1.3; word-break: break-word; }
.contact-card__address:hover { color: var(--rose); }
@media (max-width: 800px) { .contact { grid-template-columns: minmax(0, 1fr); gap: var(--space-4); } .contact-card { padding: var(--space-4); } }

/* ---------- Seitenkopf (Unterseiten) ---------- */
.page-head { padding-block: var(--space-7) var(--space-5); text-align: center; }
.page-head h1 { font-size: var(--step-5); }
.page-head .lead { margin: var(--space-3) auto 0; }

.jump { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; margin-top: var(--space-5); padding: 0; list-style: none; }
.jump a { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 1.4rem; border: 1px solid var(--line); border-radius: var(--pill); color: var(--ink); text-decoration: none; font-size: 0.95rem; }
.jump a:hover { border-color: var(--rose); color: var(--rose); }

/* ---------- Galerie ---------- */
.gallery-group { padding-block: var(--space-4) var(--space-5); scroll-margin-top: 6.5rem; }
.gallery-group__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-2); flex-wrap: wrap; padding-bottom: var(--space-2); margin-bottom: var(--space-4); border-bottom: 1px solid var(--line); }
.gallery-group__head h2 { font-size: var(--step-3); }
.gallery-group__count { font-size: 0.875rem; color: var(--ink-soft); }

.gallery { columns: 3; column-gap: var(--space-3); }
.gallery--square { columns: auto; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-3); }
.gallery__item { break-inside: avoid; margin: 0 0 var(--space-4); }
.gallery--square .gallery__item { margin: 0; }
.gallery__button { display: block; width: 100%; padding: 0; border: 0; background: var(--paper-2); border-radius: var(--radius); overflow: hidden; cursor: zoom-in; }
.gallery__button img { width: 100%; height: auto; transition: transform .5s ease, opacity .3s; }
.gallery__button:hover img { transform: scale(1.03); }
.gallery--square .gallery__button img { aspect-ratio: 1; object-fit: cover; }
.gallery__caption { display: flex; justify-content: space-between; gap: 0.75rem; margin-top: 0.6rem; }
.gallery__title { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; line-height: 1.25; }
@media (max-width: 900px) { .gallery { columns: 2; } .gallery--square { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .gallery { columns: 1; } }

.next-gallery { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding: var(--space-5); background: var(--paper-2); border-radius: var(--radius-img); color: var(--ink); text-decoration: none; }
.next-gallery:hover { color: var(--ink); }
.next-gallery__label { display: block; font-size: 0.75rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink-soft); }
.next-gallery__title { display: block; font-family: var(--font-display); font-size: var(--step-3); }
.round-arrow { display: inline-flex; align-items: center; justify-content: center; width: 3.5rem; height: 3.5rem; flex-shrink: 0; border-radius: var(--pill); background: var(--rose); color: var(--rose-ink); }
.round-arrow svg { width: 1.25rem; height: 1.25rem; }

/* ---------- Lightbox ---------- */
.lightbox { width: 100vw; max-width: none; height: 100vh; max-height: none; margin: 0; padding: 0; border: 0; background: var(--overlay); color: #F4E8E4; }
.lightbox::backdrop { background: rgba(0,0,0,.6); }
.lightbox__inner { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; height: 100%; padding: 1.25rem clamp(1rem, 3vw, 2.5rem) 1.75rem; gap: 1rem; }
.lightbox__top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.lightbox__group { font-size: 0.8rem; letter-spacing: 0.2em; text-transform: uppercase; color: #BFAAB2; }
.lightbox__stage { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 0; }
.lightbox__figure { flex: 1; display: flex; align-items: center; justify-content: center; height: 100%; min-width: 0; margin: 0; }
.lightbox__figure img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.lightbox .icon-btn { width: 3.25rem; height: 3.25rem; border-color: #4A3A40; color: #F4E8E4; }
.lightbox .icon-btn:hover { border-color: #E09AAA; color: #E09AAA; }
.lightbox__next.icon-btn { background: #E09AAA; border-color: #E09AAA; color: #1E1619; }
.lightbox__next.icon-btn:hover { background: #F4E8E4; color: #1E1619; }
.lightbox__bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; padding-inline: clamp(0rem, 5vw, 4.25rem); }
.lightbox__title { margin: 0; font-family: var(--font-display); font-size: clamp(1.4rem, 1rem + 1.2vw, 2rem); font-weight: 500; line-height: 1.2; max-width: none; }
.lightbox__meta { margin: 0; font-size: 0.875rem; color: #BFAAB2; max-width: none; }
@media (max-width: 640px) { .lightbox__stage .icon-btn { display: none; } .lightbox__bottom { padding-inline: 0; } }

/* ---------- Kurse ---------- */
.courses { display: flex; flex-direction: column; gap: var(--space-5); }
.course { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-img); overflow: hidden; }
.course__media { display: flex; align-items: center; justify-content: center; min-height: 22rem; background: var(--blush); }
.course__media--tint { background: var(--paper-2); }
.course__media--dark { background: #3A2632; padding: 2.5rem; }
.course__media img.cover { width: 100%; height: 100%; object-fit: cover; }
.course__media img.round { width: 16rem; height: 16rem; object-fit: contain; border-radius: var(--pill); background: #FFFFFF; }
.course__body { display: flex; flex-direction: column; align-items: flex-start; padding: var(--space-5); }
.course__body h2 { font-size: clamp(1.9rem, 1.5rem + 1.2vw, 2.4rem); font-weight: 600; margin: 1rem 0 0.6rem; }
.course__body p { color: var(--ink-soft); }
.facts { display: flex; flex-wrap: wrap; gap: 0.75rem 2rem; margin: var(--space-3) 0 var(--space-4); font-size: 0.9rem; }
.facts dt { color: var(--ink-soft); }
.facts dd { margin: 0; font-weight: 500; }
.course .btn-row { margin-top: auto; }
.new-tab-note { font-size: 0.82rem; color: var(--ink-soft); }
@media (max-width: 860px) { .course { grid-template-columns: minmax(0, 1fr); } .course__media { min-height: 15rem; } .course__body { padding: var(--space-4); } }

.memory-art { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.9rem; width: min(100%, 20rem); }
.memory-art span { display: flex; align-items: center; justify-content: center; aspect-ratio: 3 / 4; border-radius: var(--radius-img); background: #FBF6F2; color: #3A2632; font-family: var(--font-display); font-size: 2.6rem; }
.memory-art span.back { background: #A65A6E; color: #EFD3D3; }
.memory-art span.word { font-family: var(--font-text); font-size: 0.95rem; font-weight: 500; }
.memory-art span.it { font-style: italic; color: #A65A6E; }

/* Vorschau-Dialog für Kurse */
.preview { width: min(96vw, 82rem); height: min(92vh, 52rem); max-width: none; max-height: none; padding: 0; border: 0; border-radius: var(--radius-img); background: var(--paper); color: var(--ink); overflow: hidden; }
.preview::backdrop { background: rgba(30, 22, 25, .75); }
.preview__inner { display: grid; grid-template-rows: auto minmax(0, 1fr); height: 100%; }
.preview__bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.75rem 1rem 0.75rem 1.5rem; border-bottom: 1px solid var(--line); }
.preview__title { margin: 0; font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; max-width: none; }
.preview iframe { width: 100%; height: 100%; border: 0; background: #FFFFFF; }

/* ---------- Videos ---------- */
.videos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); }
.video__frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-img); overflow: hidden; background: var(--blush); }
.video:nth-child(even) .video__frame { background: var(--paper-2); }
.video__play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; width: 100%; padding: 0; border: 0; background: transparent; cursor: pointer; }
.video__play .round-arrow { width: 4rem; height: 4rem; transition: transform .2s; }
.video__play:hover .round-arrow { transform: scale(1.08); }
.video__word { position: absolute; left: 1.4rem; bottom: 0.9rem; font-family: var(--font-display); font-style: italic; font-size: clamp(1.6rem, 1.2rem + 1vw, 2.1rem); color: var(--rose); pointer-events: none; }
.video__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video h3 { margin: 1.25rem 0 0.4rem; font-size: 1.6rem; }
.video p { font-size: 0.95rem; color: var(--ink-soft); }
.video-note { font-size: 0.85rem; color: var(--ink-soft); }
@media (max-width: 900px) { .videos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .videos { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Fließtext (Impressum, Datenschutz) ---------- */
.prose { max-width: 46rem; margin-inline: auto; }
.prose h2 { font-size: var(--step-2); font-weight: 600; margin: var(--space-5) 0 var(--space-2); }
.prose h3 { font-family: var(--font-text); font-size: 1.05rem; font-weight: 500; margin: var(--space-4) 0 var(--space-1); }
.prose ul { padding-left: 1.2rem; }

/* ---------- Fußzeile ---------- */
.site-footer { margin-top: auto; padding-block: var(--space-6) var(--space-5); background: var(--footer-bg); color: var(--footer-ink); }
.site-footer__inner { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-5); align-items: center; }
.site-footer__logo { width: 7rem; height: 7rem; background: var(--footer-ink); -webkit-mask: url("../img/site/logo-white.png") center / contain no-repeat; mask: url("../img/site/logo-white.png") center / contain no-repeat; }
.site-footer nav ul { display: flex; flex-wrap: wrap; gap: 0.4rem 1.6rem; margin: 0 0 var(--space-3); padding: 0; list-style: none; }
.site-footer a { color: var(--footer-ink); text-decoration: none; }
.site-footer a:hover { color: #E09AAA; text-decoration: underline; }
.site-footer__legal { margin: 0; font-size: 0.875rem; color: var(--footer-soft); max-width: none; }
@media (max-width: 640px) { .site-footer__inner { grid-template-columns: minmax(0, 1fr); gap: var(--space-4); } .site-footer__logo { width: 5.5rem; height: 5.5rem; } }

/* ---------- Kein JavaScript ---------- */
.noscript-note { padding: var(--space-3); border: 1px dashed var(--line-strong); border-radius: var(--radius); color: var(--ink-soft); font-size: 0.95rem; }
.video-note { margin-top: var(--space-4); }
@media (max-width: 600px) { .gallery__title { font-size: 1.1rem; } .gallery--square { gap: var(--space-2); } }
.menu-toggle[aria-expanded="true"] { border-color: var(--rose); color: var(--rose); }

/* Video-Vorschaubild (selbst gehostet). Fehlt es, bleibt die gestaltete Fläche mit dem Wort sichtbar. */
.video__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video__poster + .video__word { display: none; }
.video__poster ~ .video__play { background: linear-gradient(to top, rgba(30, 22, 25, .35), rgba(30, 22, 25, 0) 60%); }
.video__poster ~ .video__play .round-arrow { box-shadow: 0 6px 20px rgba(0, 0, 0, .3); }
