/* ==========================================================================
   Charles Studio - Stylesheet
   --------------------------------------------------------------------------
   Schriften:
   - Display (Headlines, Labels): Bodoni Moda, selbst gehostet als
     Platzhalter fuer Canopee (spart den externen Google-Fonts-Request,
     der sonst bei jedem Seitenaufruf die IP-Adresse an Google uebertraegt -
     kein Punkt mehr fuer den Cookie-Banner). Sobald die Canopee-Dateien
     vorliegen, hier die @font-face-Quelle austauschen und in --font-display
     unten den Namen anpassen.
   - Fliesstext: Optima Pro Roman (lizenziert, MyFonts/Zapf Alphabets),
     eingebunden ueber assets/fonts/OptimaProRoman.woff2.
   ========================================================================== */

@font-face {
  font-family: "Bodoni Moda";
  src: url("assets/fonts/BodoniModa-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Bodoni Moda";
  src: url("assets/fonts/BodoniModa-Regular-Ext.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Bodoni Moda";
  src: url("assets/fonts/BodoniModa-Italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Bodoni Moda";
  src: url("assets/fonts/BodoniModa-Italic-Ext.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "OptimaProRoman";
  src: url("assets/fonts/OptimaProRoman.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --brand: #51363c;
  --brand-deep: #3c2830;
  --ink: #0c0a0a;
  --paper: #f6f3ee;
  --text: #e8e0d3;
  --line: rgba(232, 224, 211, 0.55);

  --font-display: "Bodoni Moda", "Didot", "Times New Roman", serif;
  --font-body: "OptimaProRoman", "Optima", "Segoe UI", "PT Sans", -apple-system, Candara, sans-serif;

  --gutter: clamp(24px, 5vw, 72px);
  --header-h: clamp(72px, 12vh, 120px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scroll-hint svg { animation: none; }
}

a { color: inherit; text-decoration: none; }

/* ---------------------------------------------------------------- */
/* Scroll-Hinweis (aktuell nur Work Out, wo unter dem ersten Screen   */
/* noch die Kursbeschreibungen folgen)                                */
/* ---------------------------------------------------------------- */
.scroll-hint {
  align-self: center;
  margin-top: clamp(20px, 4vh, 36px);
  display: inline-flex;
  color: var(--text);
  opacity: 0.75;
  transition: opacity 0.2s ease;
}

.scroll-hint:hover,
.scroll-hint:focus-visible { opacity: 1; }

.scroll-hint svg {
  animation: scroll-hint-bounce 2.2s ease-in-out infinite;
}

@keyframes scroll-hint-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(7px); }
}

/* Subtle film-grain overlay, gives the flat photos a bit of texture */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------------------------------------------------------------- */
/* Dot navigation (right edge)                                       */
/* ---------------------------------------------------------------- */
.dot-nav {
  position: fixed;
  right: clamp(14px, 2.4vw, 28px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.dot-nav a {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1px solid rgba(246, 243, 238, 0.6);
  background: transparent;
  transition: background 0.25s ease, transform 0.25s ease;
}

.dot-nav a:hover,
.dot-nav a:focus-visible,
.dot-nav a.is-active {
  background: var(--paper);
  transform: scale(1.2);
}

.dot-nav a::after {
  content: attr(data-label);
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.08em;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.dot-nav a:hover::after,
.dot-nav a:focus-visible::after {
  opacity: 0.85;
}

@media (max-width: 720px) {
  .dot-nav { display: none; }
}

/* ---------------------------------------------------------------- */
/* Persistenter Booking-Tab - dezenter Schnellzugriff, bleibt beim     */
/* Scrollen sichtbar (auch mobil, wo die Punkt-Nav ausgeblendet ist).  */
/* Blendet sich erst nach dem Hero ein und wieder aus, sobald man bei  */
/* Booking selbst angekommen ist, damit es sich nicht doppelt.         */
/* ---------------------------------------------------------------- */
.booking-tab {
  position: fixed;
  right: clamp(14px, 2.4vw, 28px);
  bottom: clamp(16px, 3vh, 28px);
  z-index: 45;
  padding: 0.65em 1.3em;
  /* Kein backdrop-filter hier: in Kombination mit position: fixed loest
     das auf iOS Safari einen bekannten Bug aus, bei dem sich das Element
     von seiner Bildschirmposition loest. Stattdessen etwas deckenderer,
     einfacher Hintergrund fuer die Lesbarkeit ueber Fotos. */
  background: rgba(10, 8, 8, 0.82);
  border: 1px solid var(--line);
  border-radius: 2px;
  font-family: var(--font-display);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: var(--text);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s ease;
}

.booking-tab.is-visible {
  opacity: 0.9;
  transform: translateY(0);
  pointer-events: auto;
}

.booking-tab:hover,
.booking-tab:focus-visible {
  opacity: 1;
  background: var(--paper);
  color: var(--brand-deep);
  border-color: var(--paper);
}

@media (prefers-reduced-motion: reduce) {
  .booking-tab { transition: opacity 0.15s linear; }
}

/* ---------------------------------------------------------------- */
/* Panel base                                                        */
/* ---------------------------------------------------------------- */
.panel {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--gutter);
  padding-top: 0;
  overflow: hidden;
}

.panel--image {
  background-image: var(--bg);
  background-size: cover;
  background-position: var(--bg-pos, center);
}

.panel__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10, 8, 8, 0.86) 0%,
    rgba(10, 8, 8, 0.35) 42%,
    rgba(10, 8, 8, 0.08) 68%,
    rgba(10, 8, 8, 0.28) 100%
  );
  z-index: 0;
}

.panel--dark {
  background: var(--ink);
}

/* ---------------------------------------------------------------- */
/* Work Out als "Sticky-Bild-Kachel" - Foto bleibt stehen, Intro und    */
/* Kursbeschreibungen scrollen gemeinsam darueber.                    */
/* ---------------------------------------------------------------- */
.tile-photo {
  position: relative;
}

.tile-photo__bg {
  position: sticky;
  top: 0;
  height: 100svh;
  margin-bottom: calc(-1 * 100svh);
  background-image: var(--bg);
  background-size: cover;
  background-position: var(--bg-pos, center);
  z-index: 0;
}

.tile-photo__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(12, 10, 10, 0.12) 0%,
    rgba(12, 10, 10, 0.5) 38%,
    rgba(12, 10, 10, 0.86) 70%,
    rgba(12, 10, 10, 0.94) 100%
  );
}

/* Etwas dunkler von Anfang an - wird ueber eine laengere Strecke
   (Restore-Intro + komplette Booking-Sektion) gebraucht, nicht nur
   fuer den letzten Abschnitt eines einzelnen Panels. */
.tile-photo__scrim--long {
  background: linear-gradient(
    to bottom,
    rgba(12, 10, 10, 0.32) 0%,
    rgba(12, 10, 10, 0.58) 30%,
    rgba(12, 10, 10, 0.88) 65%,
    rgba(12, 10, 10, 0.95) 100%
  );
}

.tile-photo__content {
  position: relative;
  z-index: 1;
}

.tile-photo__intro {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--gutter);
  padding-top: 0;
}

/* ---------------------------------------------------------------- */
/* Restore + Booking - eigene Bild-Kachel (gleiches Prinzip wie oben)  */
/* ---------------------------------------------------------------- */
.booking-tile {
  padding: clamp(48px, 8vh, 88px) var(--gutter) clamp(56px, 9vh, 100px);
}

/* ---------------------------------------------------------------- */
/* Kursbeschreibungen (Work Out) - liegen auf der gleichen Bild-Kachel */
/* ---------------------------------------------------------------- */
.courses {
  padding: clamp(48px, 8vh, 88px) var(--gutter) clamp(56px, 9vh, 100px);
}

.courses__head {
  max-width: 62em;
  margin: 0 auto clamp(32px, 6vh, 56px);
}

.courses__grid {
  max-width: 62em;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(32px, 5vw, 64px) clamp(40px, 6vw, 80px);
}

.course-detail {
  padding-top: clamp(20px, 3vh, 28px);
  border-top: 1px solid var(--line);
}

.course-detail h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(19px, 2vw, 24px);
  margin: 0 0 0.7em;
}

.course-detail p {
  margin: 0 0 0.9em;
  font-size: clamp(14.5px, 1.05vw, 16px);
  opacity: 0.88;
}

.course-detail p:last-child { margin-bottom: 0; }

.courses__closing {
  max-width: 62em;
  margin: clamp(40px, 6vh, 64px) auto 0;
  font-size: clamp(15.5px, 1.2vw, 17px);
  opacity: 0.92;
}

@media (max-width: 780px) {
  .courses__grid { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------- */
/* Booking / Preise                                                  */
/* ---------------------------------------------------------------- */
.booking-layout {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 68em;
  padding-bottom: clamp(48px, 8vh, 96px);
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

.booking-info p,
.booking-action > .price-note {
  font-size: clamp(16px, 1.35vw, 19px);
  margin: 0 0 1.15em;
}

.price-note {
  font-size: 13.5px;
  opacity: 0.7;
  font-style: italic;
  margin: 0;
}

.cta-button {
  display: inline-block;
  margin-top: 0.8em;
  padding: 0.9em 2.2em;
  border: 1px solid var(--paper);
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.05em;
  transition: background 0.2s ease, color 0.2s ease;
}

.cta-button:hover,
.cta-button:focus-visible {
  background: var(--paper);
  color: var(--brand-deep);
}

.booking-action {
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2.5vh, 24px);
}

.booking-widget {
  position: relative;
  width: 100%;
  background: var(--paper);
  border-radius: 4px;
  padding: clamp(12px, 2vw, 20px);
  min-height: 360px;
}

.booking-widget::before {
  content: "Kalender wird hier eingebunden, sobald die Eversports-Widget-ID hinterlegt ist.";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5em;
  text-align: center;
  font-size: 13px;
  font-style: italic;
  line-height: 1.5;
  color: var(--brand);
  opacity: 0.55;
  pointer-events: none;
}

@media (max-width: 860px) {
  .booking-layout {
    grid-template-columns: 1fr;
    gap: clamp(40px, 8vh, 64px);
  }
}

/* ---------------------------------------------------------------- */
/* Running header: logo + hairline + section label                  */
/* ---------------------------------------------------------------- */
.panel__head {
  position: relative;
  z-index: 2;
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 32px);
}

.mark {
  display: inline-flex;
  width: clamp(46px, 6vw, 64px);
  flex: none;
}

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

.panel__rule {
  flex: 1 1 auto;
  height: 1px;
  background: var(--line);
}

.panel__label {
  flex: none;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(15px, 1.6vw, 19px);
  letter-spacing: 0.02em;
}

/* ---------------------------------------------------------------- */
/* Hero - grafisches Cover, kein Foto: grosser Ring als Wasserzeichen */
/* ---------------------------------------------------------------- */
#hero {
  justify-content: space-between;
}

.hero__wordmark {
  position: relative;
  z-index: 2;
  text-align: center;
  margin-top: clamp(8px, 6vh, 48px);
}

.hero__wordmark img {
  width: clamp(280px, 34vw, 620px);
  height: auto;
  display: inline-block;
}

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

.hero__index {
  position: relative;
  z-index: 2;
  list-style: none;
  margin: 0 0 clamp(56px, 9vh, 96px);
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 2.4vh, 22px);
}

.hero__index a {
  display: grid;
  grid-template-columns: 1.6em 1fr auto;
  align-items: center;
  gap: clamp(10px, 2vw, 18px);
}

.hero__index-num {
  font-family: var(--font-display);
  font-size: 14px;
  opacity: 0.75;
}

.hero__index-line {
  height: 1px;
  background: var(--line);
  transition: background 0.25s ease;
}

.hero__index-label {
  font-family: var(--font-display);
  font-size: clamp(16px, 1.9vw, 22px);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.hero__index a:hover .hero__index-line,
.hero__index a:focus-visible .hero__index-line {
  background: var(--paper);
}

/* ---------------------------------------------------------------- */
/* Body copy                                                          */
/* ---------------------------------------------------------------- */
.panel__copy {
  position: relative;
  z-index: 2;
  max-width: 46em;
  padding-bottom: clamp(48px, 8vh, 96px);
}

.panel__copy p {
  margin: 0 0 1.15em;
  font-size: clamp(16px, 1.35vw, 19px);
}

.panel__copy p:last-child { margin-bottom: 0; }

.inline-link {
  border-bottom: 1px solid var(--line);
  transition: opacity 0.2s ease;
}

.inline-link:hover,
.inline-link:focus-visible { opacity: 0.7; }

/* ---------------------------------------------------------------- */
/* Site footer (Impressum / Datenschutz) - schlicht, ausserhalb der  */
/* Panels, damit am Design der einzelnen Sektionen nichts veraendert */
/* wird.                                                              */
/* ---------------------------------------------------------------- */
.site-footer {
  background: var(--ink);
  padding: clamp(18px, 3vh, 28px) var(--gutter);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-display);
  font-size: 12.5px;
  letter-spacing: 0.04em;
}

.site-footer a {
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

.site-footer a:hover,
.site-footer a:focus-visible { opacity: 1; }

.site-footer__location {
  opacity: 0.6;
}

.site-footer__dot { opacity: 0.35; }

.site-footer__cookie-link {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  font-family: var(--font-display);
  font-size: inherit;
  letter-spacing: inherit;
  color: inherit;
  opacity: 0.6;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.site-footer__cookie-link:hover,
.site-footer__cookie-link:focus-visible { opacity: 1; }

/* ---------------------------------------------------------------- */
/* Cookie-Banner - erscheint nur bis zur ersten Entscheidung, danach   */
/* nur noch ueber den Footer-Link erneut aufrufbar.                    */
/* ---------------------------------------------------------------- */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 3vw, 32px);
  padding: clamp(18px, 3vh, 26px) clamp(20px, 5vw, 48px);
  background: var(--brand-deep);
  border-top: 1px solid rgba(232, 224, 211, 0.2);
  transform: translateY(100%);
  transition: transform 0.35s ease;
}

.cookie-banner.is-visible {
  transform: translateY(0);
}

.cookie-banner__text {
  flex: 1 1 34em;
  max-width: 46em;
  margin: 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text);
}

.cookie-banner__actions {
  display: flex;
  gap: 0.8em;
  flex: none;
}

.cookie-banner__btn {
  padding: 0.7em 1.4em;
  font-family: var(--font-display);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  border: 1px solid var(--paper);
  background: var(--paper);
  color: var(--brand-deep);
  cursor: pointer;
  transition: opacity 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.cookie-banner__btn:hover,
.cookie-banner__btn:focus-visible { opacity: 0.85; }

.cookie-banner__btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}

.cookie-banner__btn--ghost:hover,
.cookie-banner__btn--ghost:focus-visible {
  opacity: 1;
  border-color: var(--paper);
}

@media (max-width: 640px) {
  .cookie-banner { flex-direction: column; align-items: stretch; text-align: left; }
  .cookie-banner__text { flex: 0 1 auto; max-width: none; }
  .cookie-banner__actions { justify-content: flex-end; }
}


/* ---------------------------------------------------------------- */
/* Notes / Impressum - grafisch, wie das Cover                       */
/* ---------------------------------------------------------------- */
.panel__copy--notes h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(24px, 3vw, 34px);
  margin: 0 0 0.7em;
}

.panel__copy--notes p {
  font-size: clamp(15px, 1.2vw, 17px);
  opacity: 0.92;
}

.back-to-top {
  position: relative;
  z-index: 2;
  align-self: flex-start;
  margin-top: clamp(28px, 5vh, 56px);
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
}

/* ---------------------------------------------------------------- */
/* Legal page (impressum.html)                                       */
/* ---------------------------------------------------------------- */
body.legal { background: var(--ink); }

.legal-hero {
  position: relative;
  height: 46vh;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--gutter);
  background-image: var(--bg);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.legal-hero__head {
  position: relative;
  z-index: 2;
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 32px);
}

.legal-hero__title {
  position: relative;
  z-index: 2;
  margin: 0.6em 0 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(30px, 5vw, 56px);
  letter-spacing: 0.01em;
}

.legal-main {
  max-width: 46em;
  margin: 0 auto;
  padding: clamp(48px, 8vh, 96px) var(--gutter) clamp(24px, 5vh, 56px);
}

.legal-section + .legal-section {
  margin-top: clamp(48px, 8vh, 88px);
  padding-top: clamp(32px, 6vh, 56px);
  border-top: 1px solid var(--line);
}

.legal-section h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(24px, 3vw, 32px);
  margin: 0 0 0.8em;
}

.legal-section h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(16px, 1.6vw, 19px);
  margin: 1.6em 0 0.5em;
}

.legal-section p {
  margin: 0 0 1.1em;
  font-size: clamp(15.5px, 1.2vw, 17px);
  opacity: 0.92;
}

.legal-note {
  font-size: 14px;
  opacity: 0.65;
  font-style: italic;
  border-left: 2px solid var(--line);
  padding-left: 1em;
}

/* ---------------------------------------------------------------- */
/* Small screens                                                     */
/* ---------------------------------------------------------------- */
@media (max-width: 560px) {
  .panel { padding-left: 20px; padding-right: 20px; }
  .hero__index-label { font-size: 15px; }
  .site-footer { font-size: 11.5px; gap: 0.5em; }
}
