:root {
  --ink: #102b35;
  --ink-soft: #173b46;
  --paper: #f3f0e9;
  --paper-2: #fffdf8;
  --wine: #c66b32;
  --wine-dark: #93451e;
  --gold: #e5b96f;
  --text: #28252a;
  --muted: #6d6870;
  --line: rgba(23, 24, 33, .14);
  --shadow: 0 24px 70px rgba(21, 16, 18, .18);
  --radius: 28px;
  --shell: min(1180px, calc(100% - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--text); background: var(--paper); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.65; }
img { display: block; width: 100%; height: auto; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
.shell { width: var(--shell); margin-inline: auto; }
.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; }
.skip-link { position: fixed; z-index: 100; left: 1rem; top: 1rem; transform: translateY(-150%); background: white; color: black; padding: .7rem 1rem; border-radius: 8px; }
.skip-link:focus { transform: none; }
.back-to-top { position: fixed; z-index: 45; right: clamp(1rem, 3vw, 2rem); bottom: clamp(1rem, 3vw, 2rem); display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; background: var(--wine); color: white; box-shadow: 0 12px 30px rgba(21,16,18,.28); font-size: 1.45rem; font-weight: 900; line-height: 1; text-decoration: none; opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .2s ease, transform .2s ease, visibility .2s ease, background .2s ease; }
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover, .back-to-top:focus-visible { background: var(--wine-dark); }

.site-header { position: sticky; z-index: 50; top: 0; color: white; background: rgba(23,24,33,.96); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(255,255,255,.08); }
.header-inner { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { display: inline-flex; align-items: center; gap: .8rem; text-decoration: none; line-height: 1.05; }
.brand-mark { display: grid; place-items: center; width: 48px; aspect-ratio: 1; border-radius: 50% 50% 50% 12%; background: var(--wine); color: white; font-family: Georgia, serif; font-size: 1.15rem; font-weight: 800; }
.brand strong { display: block; font-family: Georgia, serif; font-size: 1.45rem; letter-spacing: .01em; }
.brand small { display: block; margin-top: .27rem; color: #dfc9c1; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.main-nav { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2rem); font-weight: 700; }
.main-nav a { padding-block: .45rem; text-decoration: none; border-bottom: 2px solid transparent; }
.main-nav a:hover, .main-nav a:focus-visible, .main-nav a[aria-current="page"] { color: #ffd2aa; border-bottom-color: var(--wine); }
.main-nav .nav-cta { padding: .68rem 1rem; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; }
.menu-toggle { display: none; width: 48px; height: 48px; border: 0; border-radius: 12px; background: transparent; color: white; }
.menu-toggle span:not(.sr-only) { display: block; width: 25px; height: 2px; margin: 5px auto; background: currentColor; transition: .2s ease; }

.hero { position: relative; min-height: clamp(560px, 64vh, 700px); display: grid; align-items: center; overflow: hidden; color: white; background: var(--ink); }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7,30,38,.97) 0%, rgba(7,30,38,.85) 43%, rgba(7,30,38,.24) 78%), url('hero-gruppenunterricht.png') center/cover no-repeat; transform: scale(1.01); }
.hero-inner { position: relative; z-index: 1; padding-block: clamp(5rem, 9vw, 8rem); }
.hero-copy { max-width: 690px; }
.eyebrow { margin: 0 0 1rem; color: #ffd2aa; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
h1, h2, h3 { margin: 0; font-family: Georgia, "Times New Roman", serif; line-height: 1.08; text-wrap: balance; }
h1 { max-width: 920px; font-size: clamp(3rem, 6.6vw, 6.7rem); font-weight: 500; letter-spacing: -.035em; }
h2 { font-size: clamp(2.15rem, 4vw, 4.2rem); font-weight: 500; letter-spacing: -.025em; }
h3 { font-size: clamp(1.45rem, 2vw, 2rem); }
.hero-lead { max-width: 620px; margin: 1.5rem 0 2.2rem; font-size: clamp(1.08rem, 1.65vw, 1.35rem); color: rgba(255,255,255,.86); }
.button-row { display: flex; flex-wrap: wrap; gap: .85rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: .75rem 1.25rem; border: 2px solid var(--wine); border-radius: 999px; background: var(--wine); color: white; font-weight: 800; text-decoration: none; transition: transform .18s ease, background .18s ease; }
.button:hover, .button:focus-visible { transform: translateY(-2px); background: var(--wine-dark); }
.button-secondary { border-color: rgba(255,255,255,.4); background: transparent; }
.button-light { border-color: var(--paper-2); background: var(--paper-2); color: var(--wine-dark); }

.section { padding-block: clamp(3.25rem, 5.5vw, 5.5rem); }
.section-light { background: var(--paper-2); }
.section-dark { background: var(--ink); color: white; }
/* Der erste Inhalt nach einem Hero soll optisch dichter anschließen. */
main > .hero + .section,
main > .page-hero + .section { padding-top: clamp(2.5rem, 3.75vw, 3.75rem); }
.section-kicker { margin: 0 0 .7rem; color: var(--wine); font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.section-dark .section-kicker { color: #ffd2aa; }
.section-head { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr); gap: 1.75rem; align-items: end; margin-bottom: clamp(1.75rem, 3vw, 2.75rem); }
.section-head p { margin: 0; color: var(--muted); font-size: 1.08rem; }
.section-dark .section-head p { color: rgba(255,255,255,.72); }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.image-card { min-height: 430px; position: relative; display: flex; align-items: end; overflow: hidden; border-radius: var(--radius); color: white; box-shadow: var(--shadow); }
.image-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card-grid .image-card:first-child img { object-position: 88% center; }
.card-grid .image-card:nth-child(2) img { object-position: 66% top; }
.card-grid .image-card:nth-child(3) img { object-position: 20% center; }
.image-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 32%, rgba(11,12,17,.92)); }
.image-card:hover img { transform: scale(1.045); }
.card-copy { position: relative; z-index: 1; padding: 1.65rem; }
.card-copy p { margin: .55rem 0 0; color: rgba(255,255,255,.78); }
.text-link { display: inline-block; margin-top: 1rem; color: #ffd2aa; font-weight: 800; text-decoration-thickness: 2px; text-underline-offset: .25em; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.75rem, 4vw, 3.5rem); align-items: center; }
.about-split { align-items: start; }
.about-split .portrait-media { margin-top: 3rem; }
.split-media { overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); }
.split-media img { aspect-ratio: 4 / 3; object-fit: cover; }
.portrait-media img { object-position: 54% 5%; }
.portrait-media { margin: 0; }
.portrait-media figcaption { position: relative; z-index: 1; display: block; margin: 0; padding: .7rem 1rem; background: var(--paper-2); color: var(--muted); font-size: .92rem; font-weight: 700; line-height: 1.2; text-align: center; }
.split-copy p { color: var(--muted); font-size: 1.08rem; }
.feature-list { list-style: none; padding: 0; margin: 1.5rem 0 2rem; }
.feature-list li { position: relative; padding: .55rem 0 .55rem 1.8rem; border-bottom: 1px solid var(--line); }
.feature-list li::before { content: "•"; position: absolute; left: .35rem; color: var(--wine); font-size: 1.5rem; line-height: 1; }
.quote-band { padding-block: 3.5rem; background: var(--wine); color: white; }
.quote-band .shell { display: flex; justify-content: space-between; align-items: center; gap: 2rem; }
.quote-band p { max-width: 780px; margin: 0; font-family: Georgia, serif; font-size: clamp(1.55rem, 3vw, 2.7rem); line-height: 1.22; }

.page-hero { min-height: clamp(560px, 64vh, 700px); display: grid; align-items: center; padding-block: clamp(4rem, 7vw, 6.5rem); color: white; background: linear-gradient(125deg, rgba(23,24,33,.84), rgba(23,24,33,.48)), var(--page-image, none) center/cover no-repeat; }
.page-hero-legal { padding-block: clamp(3.4rem, 6vw, 5.2rem); background: linear-gradient(125deg, #252733, #3a3034); }
.page-hero--lessons { --page-image: url('discofox.jpg'); }
/* Desktop: den oberen Bildbereich sichtbar halten – das feste Menü bleibt davon frei. */
@media (min-width: 641px) {
  .page-hero--lessons { background-position: center top; }
}
.page-hero--about-teacher {
  --page-image: url('ueber-mich-daniel-berger.png');
  background-position: center top;
}
@media (min-width: 641px) {
  .page-hero--about-teacher {
    background-position: center, left top;
    background-size: cover, 108% auto;
  }
}
.page-hero--contact-teacher {
  --page-image: url('kontakt-daniel-berger-telefon.png');
  background-position: center top;
}

.desktop-linebreak {
  display: none;
}

@media (min-width: 641px) {
  .page-hero--contact-teacher {
    background-position: 18% top;
  }

  .desktop-linebreak {
    display: inline;
  }
}
.page-hero h1 { max-width: 860px; font-size: clamp(3rem, 6vw, 5.8rem); }
.page-hero p:not(.eyebrow) { max-width: 700px; margin: 1.4rem 0 0; color: rgba(255,255,255,.8); font-size: 1.18rem; }
.course-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.6rem; }
.course { overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: var(--paper-2); box-shadow: 0 16px 45px rgba(21,16,18,.08); }
.course img { aspect-ratio: 16 / 9; object-fit: cover; }
/* Standard & Latein: das schwarze Paar bewusst näher an den linken Bildrand holen. */
.course-grid .course:first-child img { object-position: 100% center; }
/* Discofox: etwas mehr Raum über den Köpfen, ohne den Kartenrahmen zu verändern. */
.course-grid .course:nth-child(2) img { object-position: center top; }
/* Salsa & Bachata ebenfalls mit voller Kopffreiheit im festen Bildausschnitt. */
.course-grid .course:nth-child(3) img { object-position: center top; }
/* Hochzeitstanz: gleicher Ausschnitt wie auf der Startseite. */
.course-grid .course:nth-child(4) img { object-position: 66% top; }
.course-content { padding: 1.5rem; }
.course-meta { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .8rem; }
.pill { padding: .28rem .7rem; border-radius: 999px; color: var(--wine-dark); background: #f5d9d1; font-size: .82rem; font-weight: 800; }
.course p { color: var(--muted); }
.path-grid { display: grid; gap: 1rem; }
.path { display: grid; grid-template-columns: auto 1fr; gap: 1.2rem; align-items: start; padding: 1.6rem; border: 1px solid rgba(255,255,255,.14); border-radius: 20px; background: rgba(255,255,255,.05); }
.path-number { display: grid; place-items: center; width: 52px; aspect-ratio: 1; border-radius: 50%; background: var(--wine); font-weight: 900; }
.path p { margin: .45rem 0 0; color: rgba(255,255,255,.72); }
.mini-paths { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; width: min(100%, 820px); margin: 1.4rem auto 0; }
.mini-paths article { padding: 1.35rem; border-radius: 18px; background: var(--paper-2); color: var(--text); }
.mini-paths strong, .mini-paths span { display: block; }
.mini-paths strong { color: var(--wine-dark); font-size: 1.15rem; }
.mini-paths span { margin-top: .45rem; color: var(--muted); }
.schedule-section { background: var(--paper-2); }
.membership-price { display: grid; grid-template-columns: 1fr auto; gap: .35rem 1.25rem; align-items: center; margin-bottom: 1rem; padding: 1.15rem 1.3rem; border: 1px solid var(--line); border-radius: 18px; background: var(--wine-dark); color: white; }
.membership-price > span { font-size: .9rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.membership-price strong { grid-row: span 2; font-size: clamp(1.7rem, 3vw, 2.35rem); color: #ffd1c8; }
.membership-price small { font-size: .88rem; color: white; }
.membership-price p { margin: 0; color: rgba(255,255,255,.78); }
.schedule-note { display: flex; gap: .8rem 1.2rem; align-items: baseline; margin-bottom: 1rem; padding: 1rem 1.2rem; border-left: 4px solid var(--wine); background: white; color: var(--muted); }
.schedule-note strong { flex: 0 0 auto; color: var(--wine-dark); }
.schedule-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 18px; background: white; box-shadow: 0 12px 30px rgba(21,16,18,.06); }
.schedule-table { width: 100%; border-collapse: collapse; text-align: left; }
.schedule-table caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.schedule-table th, .schedule-table td { padding: .8rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.schedule-table thead th { color: white; background: var(--wine-dark); font-size: .9rem; letter-spacing: .04em; text-transform: uppercase; }
.schedule-table tbody th { width: 22%; color: var(--wine-dark); background: #f8ece8; font-size: 1rem; }
.schedule-table tbody tr:last-child th, .schedule-table tbody tr:last-child td { border-bottom: 0; }
.schedule-table tbody tr:hover td { background: #fff8f5; }
.schedule-table time { color: var(--wine); font-weight: 900; }
.schedule-slot { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: .8rem; padding: .38rem 0; }
.schedule-slot + .schedule-slot { border-top: 1px solid var(--line); }
.schedule-slot strong { color: var(--ink); font-weight: 700; }
.schedule-action { margin: 1.5rem 0 0; }
.courses-intro, .schedule-section, .course-section { padding-block: clamp(2.75rem, 4.25vw, 4rem); }
.courses-intro .section-head, .schedule-section .section-head { margin-bottom: clamp(1.8rem, 3vw, 2.8rem); }
.course-section .course-grid { gap: 1.25rem; }
.course-section .course img { aspect-ratio: 16 / 7; }
.course-section .course-content { padding: 1.25rem 1.35rem; }
.course-section .course p { margin-block: .65rem .9rem; }
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.person { overflow: hidden; border-radius: 24px; background: var(--paper-2); border: 1px solid var(--line); }
.person img { aspect-ratio: 4 / 5; object-fit: cover; }
.person-copy { padding: 1.35rem; }
.person-copy p { margin-bottom: 0; color: var(--muted); }
.role { display: block; margin-top: .3rem; color: var(--wine); font-weight: 800; }
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 7vw, 6rem); }
.contact-card { padding: 2rem; border-radius: 24px; background: var(--ink); color: white; }
.contact-card a {
  color: #ffd2aa;
  text-decoration-color: transparent;
  text-decoration-thickness: 2px;
  text-underline-offset: .25em;
  transition: color .18s ease, text-decoration-color .18s ease;
}
.contact-card a:hover,
.contact-card a:focus-visible {
  color: white;
  text-decoration-color: currentColor;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: grid; gap: .35rem; }
.field-wide { grid-column: 1 / -1; }
label { font-weight: 750; }
input, select, textarea { width: 100%; padding: .85rem 1rem; border: 1px solid #cfc7bd; border-radius: 12px; background: white; color: var(--text); }
.check { width: auto; margin-right: .45rem; }
textarea { min-height: 150px; resize: vertical; }
.form-note, [data-form-message] { color: var(--muted); font-size: .92rem; }
.legal { max-width: 820px; }
.legal h2 { margin-top: 2.6rem; font-size: clamp(1.7rem, 3vw, 2.55rem); }
.legal h3 { margin-top: 2rem; font-size: 1.35rem; }
.placeholder { display: inline-block; padding: .05rem .35rem; border-radius: 5px; background: #ffe0a8; color: #5a3c08; font-weight: 700; }

.site-footer { padding-top: 3.5rem; color: rgba(255,255,255,.76); background: #081f27; }

/* Außerhalb des Seiteninhalts wird die Footerfarbe sichtbar. */
html, body { background: #081f27; }
main { background: var(--paper); }
.footer-grid { display: grid; grid-template-columns: 1.35fr .9fr .75fr .75fr .9fr; gap: clamp(1.5rem, 2.5vw, 3rem); padding-bottom: 3rem; }
.site-footer h2 { margin-bottom: .8rem; color: white; font-family: inherit; font-size: 1rem; letter-spacing: .06em; text-transform: uppercase; }
.site-footer a:not(.brand) { display: block; width: fit-content; margin: .45rem 0; text-decoration: none; }
.site-footer a:hover { color: white; text-decoration: underline; text-underline-offset: .25em; }
.brand-footer { color: white; }
.site-footer p { max-width: 470px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 2rem; padding-block: 1.2rem; border-top: 1px solid rgba(255,255,255,.12); font-size: .84rem; }
.site-footer .footer-webdesign .footer-credit { display: inline-flex; align-items: center; gap: .7rem; width: auto; margin: 0; color: rgba(255,255,255,.76); line-height: 1.25; text-decoration: none; }
.site-footer .footer-webdesign .footer-credit:hover, .site-footer .footer-webdesign .footer-credit:focus-visible { color: white; text-decoration: none; }
.footer-webdesign .footer-credit img { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; }
.footer-webdesign .footer-credit strong, .footer-webdesign .footer-credit small { display: block; }
.footer-webdesign .footer-credit strong { font-size: .78rem; }
.footer-webdesign .footer-credit small { color: rgba(255,255,255,.64); font-size: .78rem; }
.site-footer .footer-association { display: inline-flex; align-items: center; width: auto; margin: 1.35rem 0 0; gap: .7rem; color: white; text-decoration: none; border-radius: 9px; transition: color .2s ease, background-color .2s ease, box-shadow .2s ease; }
.site-footer .footer-association:hover, .site-footer .footer-association:focus-visible { color: white; background: rgba(255,255,255,.08); box-shadow: 0 0 0 6px rgba(255,255,255,.08); text-decoration: none; }
.footer-association img { width: 54px; height: 38px; object-fit: contain; border-radius: 7px; background: white; }
.footer-association span, .footer-association strong, .footer-association small { display: block; }
.footer-association small { color: rgba(255,255,255,.65); font-size: .72rem; }
.footer-membership .footer-association { margin: 0; }

@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .main-nav { position: fixed; inset: 84px 0 auto; display: none; padding: 1.2rem 20px 1.7rem; background: #102b35; border-top: 1px solid rgba(255,255,255,.08); box-shadow: 0 20px 30px rgba(0,0,0,.24); }
  .main-nav.is-open { display: grid; }
  .main-nav a { padding: .72rem 0; }
  .main-nav .nav-cta { margin-top: .4rem; padding-inline: 1rem; text-align: center; }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .section-head, .split, .contact-grid { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr 1fr; }
  .card-grid .image-card:last-child { grid-column: 1 / -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .mini-paths { grid-template-columns: 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  :root { --shell: min(100% - 28px, 1180px); --radius: 20px; }
  .header-inner { min-height: 74px; }
  .brand-mark { width: 42px; }
  .brand strong { font-size: 1.2rem; }
  .brand small { font-size: .62rem; }
  .main-nav { inset-block-start: 74px; }
  .hero, .page-hero { min-height: 560px; }
  .hero::before { background: linear-gradient(90deg, rgba(7,30,38,.95), rgba(7,30,38,.55)), url('hero-gruppenunterricht.png') 76% center/cover no-repeat; }
  h1 { font-size: clamp(2.65rem, 11.5vw, 3.7rem); }
  .hero-inner { padding-block: 4.4rem; }
  .button-row { display: grid; }
  .button { width: 100%; }
  .section { padding-block: 3rem; }
  main > .hero + .section,
  main > .page-hero + .section { padding-top: 2.25rem; }
  .portrait-media--about { display: none; }
  .section-head { margin-bottom: 2rem; }
  .card-grid, .course-grid, .team-grid, .form-grid, .footer-grid { grid-template-columns: 1fr; }
  .card-grid .image-card:last-child, .field-wide, .footer-grid > :first-child { grid-column: auto; }
  .image-card { min-height: 390px; }
  .quote-band .shell, .footer-bottom { align-items: stretch; flex-direction: column; }
  .footer-association { align-self: flex-start; }
  .page-hero { padding-block: 4.5rem; }
  .schedule-note { display: grid; }
  .schedule-table-wrap { margin-inline: -2px; }
  .membership-price { grid-template-columns: 1fr; }
  .membership-price strong { grid-row: auto; }
  .schedule-table th, .schedule-table td { padding: .72rem .65rem; }
  .schedule-table tbody th { width: 30%; }
  .schedule-slot { grid-template-columns: 4.25rem minmax(0, 1fr); gap: .5rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
