/* ==========================================================
   Yoga Tina Benjes – Stylesheet
   ========================================================== */

/* Schriften (lokal eingebunden, keine Verbindung zu Google) */
@font-face {
  font-family: "Open Sans";
  src: url("../fonts/opensans-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Lustria";
  src: url("../fonts/lustria-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Farben & Grundwerte */
:root {
  --orange: #dd9933;
  --orange-dark: #b87618;
  --text: #555;
  --heading: #555;
  --panel: rgba(255, 255, 255, 0.88);
  --header-h: 120px;
  --radius: 6px;
  --max: 1000px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 10px);
}

body {
  margin: 0;
  font-family: "Open Sans", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--orange) url("../wp-content/uploads/2015/07/bgmain1800.jpg") left top / cover no-repeat fixed;
}

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

a { color: #000; }
a:hover { color: var(--orange-dark); }

h2, h3, h4 { color: var(--heading); line-height: 1.25; }
h3 { font-size: 1.4rem; margin: 2.5rem 0 1rem; }
h4 { font-size: 1.1rem; margin: 1.5rem 0 .5rem; }

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}
.center { text-align: center; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- Kopfbereich ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(221, 153, 51, 0.92);
  backdrop-filter: blur(4px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: var(--header-h);
}
.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: #fff;
}
.brand img { height: 100px; width: auto; }
.brand-name {
  display: block;
  font-family: "Lustria", Georgia, serif;
  font-size: 2rem;
  font-weight: bold;
  line-height: 1.1;
}
.brand-tagline { display: block; font-size: .95rem; }

.main-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.main-nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  text-transform: uppercase;
  font-size: .9rem;
  letter-spacing: .03em;
  padding: .3rem 0;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover,
.main-nav a:focus-visible { border-bottom-color: #fff; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: .75rem;
  cursor: pointer;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 28px;
  height: 3px;
  background: #fff;
  border-radius: 2px;
  position: relative;
}
.nav-toggle-bars::before,
.nav-toggle-bars::after { content: ""; position: absolute; }
.nav-toggle-bars::before { top: -9px; }
.nav-toggle-bars::after  { top: 9px; }

/* ---------- Slider ---------- */
/* Volle Bildschirmhöhe (Navigation wird nicht abgezogen) */
.slider {
  display: flex;
  height: 100vh;
  height: 100svh;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.slider::-webkit-scrollbar { display: none; }
.slide {
  flex: 0 0 100%;
  height: 100%;
  scroll-snap-align: start;
}
.slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Abschnitte ---------- */
.section {
  background: var(--panel);
  padding: 4rem 0;
}
.section + .section { border-top: 1px solid rgba(0, 0, 0, .06); }
.section-title {
  margin: 0 0 2rem;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  text-align: center;
}

.divider {
  border: 0;
  height: 30px;
  margin: 3rem auto;
  background: url("../wp-content/uploads/2015/08/yogoTrenner_043-300x30.png") center / contain no-repeat;
}

/* Über mich */
.about-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  align-items: start;
}
.portrait { justify-self: center; }
.quote {
  margin: 2rem 0 0;
  font-family: "Bradley Hand", "Bradley Hand ITC", "Segoe Script", cursive;
  font-weight: bold;
  font-size: 1.5rem;
  line-height: 1.4;
}
.quote p { margin: 0 0 .5rem; }
.quote cite { font-size: 1rem; font-style: normal; }

/* Stundenplan */
.scroll-hint { display: none; font-size: .9rem; }
.table-scroll { overflow-x: auto; }
.schedule {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  background: #fff;
  color: #000;
  font-weight: bold;
}
.schedule th,
.schedule td {
  width: 16.66%;
  padding: .75rem .5rem;
  vertical-align: top;
  text-align: center;
}
.schedule thead th { border-bottom: 2px solid var(--orange); }
.schedule .hl { background: var(--orange); }
.schedule tfoot td { background: var(--orange); color: #fff; }

/* Angebote */
.offer { max-width: 800px; margin-inline: auto; }
.offer h3 { margin-top: 0; }
.offer img { display: block; margin: 1rem auto; border-radius: var(--radius); }
.offer .banner { border-radius: 0; }
.plain { list-style: none; padding: 0; }
.date { font-size: 1.6rem; font-weight: bold; color: #000080; margin: .5rem 0 1rem; }
.badge {
  display: inline-block;
  padding: 6px 10px;
  background: #fff;
  border: 2px solid #000080;
  border-radius: 4px;
  font-weight: bold;
}
.sold-out { color: #c00; font-weight: bold; font-size: 1.2rem; margin: 0; }

/* Galerien */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: .75rem;
}
.gallery a {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius);
  background: #eee;
}
.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s;
}
.gallery a:hover img { transform: scale(1.05); }

.video { display: block; margin: 0 auto 1rem; max-width: 720px; width: 100%; }
.video-portrait { max-width: 270px; }

.testimonial {
  max-width: 800px;
  margin: 0 auto 2rem;
  font-style: italic;
  text-align: left;
}

/* Kontakt & Impressum */
.contact-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 4rem;
  margin-bottom: 2rem;
}
address { font-style: normal; }
.contact-list {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .25rem 1rem;
  margin: 0;
}
.contact-list dt { font-weight: bold; }
.contact-list dd { margin: 0; }
.legal { font-size: .9rem; }
.legal h3 { margin-top: 0; }
.source { font-size: .8rem; }

/* ---------- Fußbereich ---------- */
.site-footer {
  background: #333;
  color: #ccc;
  text-align: center;
  padding: 1.5rem 0;
  font-size: .9rem;
}
.site-footer p { margin: 0; }
.site-footer a { color: #fff; }

.to-top {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: var(--orange);
  color: #fff;
  text-decoration: none;
  font-size: 1.4rem;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .3);
  opacity: .85;
}
.to-top:hover { opacity: 1; color: #fff; }

/* ---------- Bildansicht (Lightbox) ---------- */
.lightbox {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: 95vw;
  max-height: 95vh;
}
.lightbox::backdrop { background: rgba(0, 0, 0, .85); }
.lightbox img { max-width: 95vw; max-height: 90vh; display: block; }
.lightbox-close {
  position: absolute;
  top: .25rem;
  right: .5rem;
  border: 0;
  background: none;
  color: #fff;
  font-size: 2.5rem;
  line-height: 1;
  cursor: pointer;
  text-shadow: 0 0 6px #000;
}

/* ---------- Mobil ---------- */
@media (max-width: 900px) {
  :root { --header-h: 80px; }
  .brand img { height: 60px; }
  .brand-name { font-size: 1.5rem; }
  .brand-tagline { font-size: .8rem; }

  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--orange);
    padding: 1rem;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; }

  /* Slider mobil: Fotos ganz zeigen, nicht bildschirmhoch */
  .slider { height: auto; align-items: flex-start; }
  .slide { height: auto; }
  .slide img { height: auto; object-fit: initial; }

  .about-grid { grid-template-columns: 1fr; }
  .scroll-hint { display: block; }
  .section { padding: 2.5rem 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .gallery img { transition: none; }
}
