/* ==========================================================================
   Ballettschule Tatiana Kazarian — style.css
   Palette und Charakter aus dem bestehenden Banner abgeleitet:
   warmes Ivory-Rosé als Grund, Petrol als Akzent, PT Serif für Überschriften.
   ========================================================================== */

:root {
  color-scheme: light only;
  --paper: #fbf6f4;
  --card: #ffffff;
  --ink: #26282c;
  --muted: #6d6660;
  --teal: #2f7276;
  --teal-dark: #245c60;
  --teal-wash: #eaf2f1;
  --rose-wash: #f6ece9;
  --line: #e8ddd7;
  --serif: 'PT Serif', Georgia, 'Times New Roman', serif;
  --sans: 'PT Sans', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --ease-soft: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* Sanfte Überblendung beim Seitenwechsel (moderne Browser, sonst ohne Effekt) */
@view-transition { navigation: auto; }

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

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

html {
  background-color: var(--paper);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
}

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

a {
  color: var(--teal);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.25s var(--ease-soft);
}

a:hover { color: var(--teal-dark); }

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 2px;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(30px, 4.5vw, 38px); }
h2 { font-size: clamp(23px, 3vw, 27px); margin-top: 1.8em; }
h3 { font-size: 20px; margin-top: 1.4em; }

p {
  margin: 0 0 1em;
  text-wrap: pretty;
  -webkit-hyphens: auto;
  hyphens: auto;
}

ul, ol { margin: 0 0 1.2em; padding-left: 1.3em; }
li { margin-bottom: 0.35em; }

strong { font-weight: 700; }

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2.5rem 0;
}

.muted { color: var(--muted); }

.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0 0 0.6em;
  -webkit-hyphens: none;
  hyphens: none;
}

/* Zweispaltiger Textsatz für Listen auf breiten Bildschirmen */
.cols-2 {
  columns: 2;
  column-gap: 48px;
  max-width: none;
}

.cols-2 li {
  break-inside: avoid;
  padding-right: 8px;
}

/* --- Kopfbereich --------------------------------------------------------- */

.site-header {
  background-color: transparent;
}

.site-nav ul {
  list-style: none;
  max-width: none;
  margin: 0 auto;
  padding: 14px 16px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  column-gap: clamp(14px, 3vw, 38px);
  row-gap: 2px;
}

.site-nav li { margin: 0; }

.site-nav a {
  position: relative;
  display: inline-block;
  padding: 6px 2px;
  color: var(--ink);
  text-decoration: none;
  transition: color 0.3s var(--ease-soft);
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 1px;
  background-color: var(--teal);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.35s var(--ease-soft);
}

.site-nav a:hover {
  color: var(--teal-dark);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.site-nav a[aria-current="page"] { color: var(--teal); }

.banner {
  max-width: 1230px;
  margin: 0 auto;
  padding: 18px 16px 0;
  position: relative;
}

.banner-bg {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
}

/* Logo im freien Bereich links vor dem Schriftzug (Schrift beginnt bei ~25 %) */
.banner-logo {
  position: absolute;
  left: 4.5%;
  top: 50%;
  transform: translateY(-50%);
  width: 17%;
  height: auto;
}

/* --- Sanfter Seitenaufbau ------------------------------------------------- */

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

@keyframes fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.banner { animation: fade 0.7s var(--ease-soft) backwards; }

.page > * { animation: rise 0.65s var(--ease-soft) backwards; }
.page > :nth-child(1) { animation-delay: 0.06s; }
.page > :nth-child(2) { animation-delay: 0.12s; }
.page > :nth-child(3) { animation-delay: 0.18s; }
.page > :nth-child(4) { animation-delay: 0.24s; }
.page > :nth-child(5) { animation-delay: 0.30s; }
.page > :nth-child(6) { animation-delay: 0.36s; }
.page > :nth-child(7) { animation-delay: 0.42s; }
.page > :nth-child(n+8) { animation-delay: 0.48s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    transition-duration: 0.01ms !important;
  }
}

/* --- Inhalt -------------------------------------------------------------- */

.page {
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(30px, 6vw, 60px) 20px 40px;
}

.lead {
  font-size: 19px;
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}

.two-col > figure { margin: 0; }

/* Zwei gleichwertige Inhaltsspalten nebeneinander */
.duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(18px, 3vw, 28px);
  align-items: stretch;
  margin: 2rem 0;
}

.duo > * { margin: 0; }

figure { margin: 1.5rem 0; }

figcaption {
  font-size: 14px;
  color: var(--muted);
  margin-top: 8px;
}

.photo {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
}

/* Portraitbild neben Text (Pädagogen) */
.portrait {
  float: right;
  width: min(200px, 38%);
  margin: 6px 0 16px 26px;
  border-radius: 4px;
}

.profile { margin-bottom: 3rem; }
.profile::after { content: ""; display: table; clear: both; }

/* --- Karten & Hinweisboxen ----------------------------------------------- */

.panel {
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: clamp(20px, 3.5vw, 32px);
  margin: 2.2rem 0;
}

.panel--accent {
  background-color: var(--teal-wash);
  border-color: #d3e2e0;
}

.panel h2, .panel h3 { margin-top: 0; }

.panel p:last-child, .panel ul:last-child { margin-bottom: 0; }

/* Panel mit Text links und Kontaktdaten rechts */
.panel-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 1fr);
  gap: 12px clamp(28px, 5vw, 64px);
  align-items: center;
}

.panel-grid > h2 { grid-column: 1 / -1; }

.contact-lines {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-lines li { margin-bottom: 0.5em; }

.contact-lines a { white-space: nowrap; }

/* --- Tabellen ------------------------------------------------------------ */

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.4rem 0 0.6rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background-color: var(--card);
}

table {
  border-collapse: collapse;
  width: 100%;
  font-size: 15.5px;
  line-height: 1.45;
}

caption {
  text-align: left;
  padding: 14px 16px 4px;
  font-weight: 700;
}

th, td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  border-top: 1px solid var(--line);
  min-width: 120px;
}

thead th {
  border-top: 0;
  background-color: var(--teal-wash);
  color: var(--teal-dark);
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

tbody th {
  font-weight: 700;
  white-space: nowrap;
  background-color: var(--rose-wash);
}

.prices th, .prices td { min-width: 0; }
.prices tbody th { background: none; white-space: normal; font-weight: 400; }
.prices td:last-child { font-weight: 700; white-space: nowrap; }

.table-note {
  font-size: 14px;
  color: var(--muted);
  margin-top: 0.5rem;
}

/* --- Galerie ------------------------------------------------------------- */

.gallery {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  max-width: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}

.gallery li { margin: 0; }

.gallery button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  border-radius: 4px;
  overflow: hidden;
  cursor: zoom-in;
}

.gallery img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform 0.35s var(--ease-soft);
  user-select: none;
  -webkit-user-drag: none;
}

.gallery button:hover img { transform: scale(1.03); }

/* --- Lightbox (Bildvorschau) --------------------------------------------- */

.lightbox {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: none;
  max-height: none;
  overflow: visible;
}

.lightbox::backdrop {
  background: rgba(16, 22, 23, 0.86);
}

.lightbox[open] .lightbox-frame {
  animation: fade 0.3s var(--ease-soft);
}

.lightbox-frame {
  position: relative;
}

.lightbox-frame img {
  display: block;
  max-width: min(92vw, 1100px);
  max-height: 84vh;
  width: auto;
  height: auto;
  border-radius: 6px;
  user-select: none;
  -webkit-user-drag: none;
}

/* Unsichtbare Schutzschicht über dem Bild */
.lightbox-shield {
  position: absolute;
  inset: 0;
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.25s var(--ease-soft), transform 0.25s var(--ease-soft);
}

.lightbox-close:hover,
.lightbox-nav:hover {
  background: #fff;
  transform: scale(1.06);
}

.lightbox-close {
  top: -14px;
  right: -14px;
}

.lightbox-prev { left: -14px; top: 50%; margin-top: -21px; }
.lightbox-next { right: -14px; top: 50%; margin-top: -21px; }

@media (max-width: 700px) {
  .lightbox-prev { left: 6px; }
  .lightbox-next { right: 6px; }
  .lightbox-close { top: 6px; right: 6px; }
}

/* --- Fußbereich ---------------------------------------------------------- */

.site-footer {
  margin-top: clamp(40px, 7vw, 80px);
  background-color: var(--card);
  border-top: 1px solid var(--line);
  font-size: 15.5px;
}

.footer-grid {
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(32px, 5vw, 52px) 20px 20px;
  display: grid;
  grid-template-columns: 1.15fr 1.2fr 0.75fr 0.9fr;
  gap: clamp(24px, 4vw, 56px);
}

.footer-grid p {
  margin: 0 0 1.1em;
  max-width: none;
}

.footer-label {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.site-footer .contact-lines a {
  white-space: normal;
  overflow-wrap: anywhere;
}

.footer-grid h2 {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1em;
}

.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-grid li { margin-bottom: 0.45em; }

.footer-grid a {
  color: var(--ink);
  text-decoration: none;
}

.footer-grid a:hover {
  color: var(--teal-dark);
  text-decoration: underline;
}

.footer-grid address { font-style: normal; }

.copyright {
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px 20px 26px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}

/* --- Responsiv ----------------------------------------------------------- */

@media (min-width: 1200px) {
  body { font-size: 18px; }
}

@media (max-width: 900px) {
  .two-col { grid-template-columns: 1fr; }
  .two-col > figure { max-width: 440px; }
  .duo { grid-template-columns: 1fr; }
  .panel-grid { grid-template-columns: 1fr; align-items: start; }
  .cols-2 { columns: 1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 480px) {
  body { font-size: 16px; }
  .lead { font-size: 17.5px; }
  .portrait { width: 44%; margin-left: 14px; }
  th, td { padding: 10px 10px; }
  .prices td:last-child { white-space: normal; }
}
