/*
Theme Name: Tanzbogen
Description: Tanzschule Tanzbogen – Klassisch · Editorial (Variante A)
Author: Tanzbogen
Version: 3.6
*/

/* ─── SELF-HOSTED FONTS (DSGVO-konform) ─────────────────────────────── */

/* Cormorant Garamond – normal */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('fonts/cormorant-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('fonts/cormorant-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Cormorant Garamond – italic */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 400 600;
  font-display: swap;
  src: url('fonts/cormorant-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 400 600;
  font-display: swap;
  src: url('fonts/cormorant-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* PT Sans – normal 400 */
@font-face {
  font-family: 'PT Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/pt-sans-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'PT Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/pt-sans-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* PT Sans – normal 700 */
@font-face {
  font-family: 'PT Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/pt-sans-700-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'PT Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/pt-sans-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* PT Sans – italic 400 */
@font-face {
  font-family: 'PT Sans';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/pt-sans-italic-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'PT Sans';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/pt-sans-italic-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* PT Sans – italic 700 */
@font-face {
  font-family: 'PT Sans';
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/pt-sans-italic-700-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'PT Sans';
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/pt-sans-italic-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ─── RESET & BASE ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'PT Sans', 'Helvetica Neue', Arial, sans-serif;
  background: #ffffff;
  color: #111111;
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }

/* ─── TOKENS ────────────────────────────────────────────────────────── */
:root {
  --bg:        #ffffff;
  --ink:       #111111;
  --ink-soft:  #5a5a5a;
  --ink-muted: #888888;
  --line:      #e2e2e2;
  --line-soft: #ededed;
  --teal:      #1f7e8a;
  --teal-deep: #0e4953;
  --green:     #9bcc1f;
  --yellow:    #f3c200;
  --max-w:     1180px;
  --pad-x:     40px;
  --pad-y:     72px;
}

/* ─── TOP STRIPE ────────────────────────────────────────────────────── */
.tb-stripe {
  display: flex;
  height: 5px;
}
.tb-stripe span {
  flex: 1;
}
.tb-stripe span:nth-child(1) { background: var(--green); }
.tb-stripe span:nth-child(2) { background: var(--yellow); }
.tb-stripe span:nth-child(3) { background: var(--teal); }

/* ─── HEADER ────────────────────────────────────────────────────────── */
.tb-header {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
}

.tb-header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 20px var(--pad-x);
  display: grid;
  grid-template-columns: 260px 1fr;
  align-items: center;
  gap: 64px;
}

/* Logo — custom-logo-link ist der direkte Output von the_custom_logo() */
.tb-logo,
.custom-logo-link {
  display: block;
  line-height: 0;
}
.tb-logo img,
.custom-logo-link img,
.custom-logo {
  height: 120px !important;
  width: auto !important;
  max-width: none !important;
}
.tb-logo-text {
  font-family: 'Cormorant Garamond', Garamond, serif;
  font-size: 28px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.02em;
}

/* Desktop Nav */
.tb-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  justify-content: flex-end;
}

.tb-nav ul {
  display: flex;
  align-items: center;
  gap: 28px;
}

.tb-nav ul li a {
  font-family: 'PT Sans', sans-serif;
  font-size: 15px;
  color: var(--ink);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: color 0.15s, border-color 0.15s;
  white-space: nowrap;
}

.tb-nav ul li a:hover,
.tb-nav ul li.current-menu-item a,
.tb-nav ul li.current-page-ancestor a {
  color: var(--teal);
  border-bottom-color: var(--teal);
}

.tb-nav-divider {
  width: 1px;
  height: 18px;
  background: var(--line);
}

.tb-nav-instagram {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
  transition: color 0.15s;
}

.tb-nav-instagram:hover {
  color: var(--teal);
}

.tb-footer-tel {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'PT Sans', sans-serif;
  font-size: 13px;
  color: var(--ink-soft);
  text-decoration: none;
  white-space: nowrap;
}

.tb-footer-tel:hover {
  color: var(--ink);
}

/* Hamburger */
.tb-hamburger {
  display: none;
  background: transparent;
  border: 1px solid var(--ink);
  color: var(--ink);
  padding: 8px 14px;
  font-size: 14px;
  letter-spacing: 0.04em;
}

/* Mobile Nav */
.tb-mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  padding: 0 20px 20px;
}

.tb-mobile-nav.is-open {
  display: block;
}

.tb-mobile-nav ul li a {
  display: block;
  padding: 16px 0;
  font-size: 20px;
  color: var(--ink);
  border-bottom: 1px solid var(--line-soft);
}

.tb-mobile-nav ul li a:hover,
.tb-mobile-nav ul li.current-menu-item a {
  color: var(--teal);
}

/* ─── LAYOUT WRAPPER ────────────────────────────────────────────────── */
.tb-section {
  border-bottom: 1px solid var(--line);
}

.tb-container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--pad-y) var(--pad-x);
}

/* Two-column: 260px label + 1fr content */
.tb-split {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 64px;
}

/* ─── EYEBROW ───────────────────────────────────────────────────────── */
.tb-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: 'PT Sans', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 10px;
}

.tb-eyebrow::before {
  content: '';
  width: 10px;
  height: 10px;
  flex-shrink: 0;
}

.tb-eyebrow--green::before  { background: var(--green); }
.tb-eyebrow--yellow::before { background: var(--yellow); }
.tb-eyebrow--teal::before   { background: var(--teal); }

/* ─── HEADINGS ──────────────────────────────────────────────────────── */
.tb-h1 {
  font-family: 'Cormorant Garamond', Garamond, serif;
  font-weight: 500;
  font-size: 64px;
  line-height: 1.1;
  letter-spacing: -0.005em;
  color: var(--ink);
  text-wrap: balance;
}

.tb-h1 em {
  font-style: italic;
  color: var(--teal);
}

.tb-h2 {
  font-family: 'Cormorant Garamond', Garamond, serif;
  font-weight: 500;
  font-size: 40px;
  line-height: 1.15;
  color: var(--ink);
}

.tb-h2--large {
  font-size: 48px;
  line-height: 1.1;
}

/* ─── HERO ──────────────────────────────────────────────────────────── */
.tb-hero {
  text-align: center;
}

.tb-hero-inner {
  max-width: 820px;
  margin: 0 auto;
}

.tb-hero-lead {
  font-family: 'PT Sans', sans-serif;
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 28px auto 0;
  max-width: 620px;
  text-wrap: pretty;
}

.tb-hero-image {
  margin-top: 56px;
  background: #f3f3f3;
  aspect-ratio: 16 / 7;
  overflow: hidden;
}

.tb-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ─── HERO IMAGES ───────────────────────────────────────────────────── */
.tb-hero-images {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin-top: 56px;
}

.tb-hero-images img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

@media (max-width: 900px) {
  .tb-hero-images { margin-top: 36px; gap: 6px; }
}

.tb-hero-actions {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* ─── BUTTONS ───────────────────────────────────────────────────────── */
.tb-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'PT Sans', sans-serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  padding: 13px 22px;
  cursor: pointer;
  border-radius: 3px;
  transition: opacity 0.15s;
}

.tb-btn:hover { opacity: 0.85; }

.tb-btn--primary {
  background: var(--teal);
  color: #ffffff;
}

.tb-btn--text {
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding: 0 0 3px;
  background: transparent;
}

/* ─── TERMINE ───────────────────────────────────────────────────────── */
.tb-termine-list {
  padding: 0;
}

.tb-termine-item {
  display: grid;
  grid-template-columns: 160px 1fr auto;
  gap: 32px;
  align-items: baseline;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.tb-termine-item:first-child {
  padding-top: 0;
  border-top: none;
}

.tb-termine-date {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tb-termine-date-main {
  font-family: 'Cormorant Garamond', Garamond, serif;
  font-size: 22px;
  font-weight: 500;
  color: var(--teal);
  line-height: 1.2;
  white-space: nowrap;
}

.tb-termine-date-time {
  font-family: 'PT Sans', sans-serif;
  font-size: 13px;
  color: var(--ink-muted);
  letter-spacing: 0.04em;
}

.tb-termine-title {
  font-family: 'Cormorant Garamond', Garamond, serif;
  font-weight: 500;
  font-size: 26px;
  line-height: 1.2;
  color: var(--ink);
  margin: 0;
}

.tb-termine-desc {
  font-family: 'PT Sans', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 8px 0 0;
  text-wrap: pretty;
}

.tb-termine-logo {
  margin-top: 12px;
  max-height: 80px;
  width: auto;
}

.tb-termine-link {
  font-family: 'PT Sans', sans-serif;
  font-size: 14px;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
  white-space: nowrap;
}

/* ─── KURSE GRID ────────────────────────────────────────────────────── */
.tb-kurse-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
}

.tb-kurs-item {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.tb-kurs-item:nth-child(odd) {
  padding-right: 32px;
  border-right: 1px solid var(--line);
}

.tb-kurs-item:nth-child(even) {
  padding-left: 32px;
}

.tb-kurs-name {
  font-family: 'Cormorant Garamond', Garamond, serif;
  font-weight: 500;
  font-size: 24px;
  line-height: 1.2;
  color: var(--ink);
}

.tb-kurs-age {
  font-family: 'PT Sans', sans-serif;
  font-size: 13px;
  color: var(--ink-muted);
  margin-top: 6px;
  letter-spacing: 0.02em;
}

.tb-kurs-img {
  margin-top: 14px;
  max-width: 100px;
  height: auto;
}

.tb-kurs-desc {
  font-family: 'PT Sans', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin-top: 12px;
  text-wrap: pretty;
}

/* ─── SHOW DETAIL PAGE ──────────────────────────────────────────────── */
.tb-show-detail {
  display: flex;
  gap: 64px;
  align-items: flex-start;
}

.tb-show-detail__info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.tb-show-detail__title {
  font-family: 'Cormorant Garamond', Garamond, serif;
  font-size: 52px;
  font-weight: 500;
  line-height: 1.1;
  color: var(--ink);
}

.tb-show-detail__lead {
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.tb-show-detail__dates {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-left: 3px solid var(--teal);
  padding-left: 20px;
}

.tb-show-detail__date {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tb-show-detail__day {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
}

.tb-show-detail__dm {
  font-family: 'Cormorant Garamond', Garamond, serif;
  font-size: 24px;
  font-weight: 500;
  color: var(--ink);
}

.tb-show-detail__sig {
  font-size: 14px;
  color: var(--ink-muted);
  margin-top: 8px;
}

.tb-show-detail__poster {
  flex: 0 0 380px;
  border-radius: 6px;
  overflow: hidden;
}

.tb-show-detail__poster img {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 760px) {
  .tb-show-detail { flex-direction: column-reverse; gap: 32px; }
  .tb-show-detail__poster { flex: none; width: 100%; max-width: 340px; }
  .tb-show-detail__title { font-size: 36px; }
  .tb-logo img, .custom-logo-link img, .custom-logo { height: 70px !important; }
}

/* ─── AKTUELLE SHOW PROMO ───────────────────────────────────────────── */
.tb-show-promo {
  display: flex;
  gap: 56px;
  align-items: center;
}

.tb-show-promo__img {
  flex: 0 0 40%;
  border-radius: 6px;
  overflow: hidden;
}

.tb-show-promo__img a { display: block; }

.tb-show-promo__img img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.tb-show-promo__img a:hover img {
  transform: scale(1.02);
}

.tb-show-promo__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

@media (max-width: 700px) {
  .tb-show-promo { flex-direction: column; gap: 28px; }
  .tb-show-promo__img { flex: none; width: 100%; }
}

/* ─── STUNDENPLAN ───────────────────────────────────────────────────── */
.tb-sp-tage {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}

.tb-sp-tag {
  flex: 1 1 160px;
  background: #f7f7f7;
  border-radius: 4px;
  overflow: hidden;
}

.tb-sp-gruppe {
  flex: 1 1 160px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tb-sp-tag-titel {
  background: var(--teal);
  color: #fff;
  font-family: 'PT Sans', sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: block;
  padding: 10px 14px;
}

.tb-sp-tag ul {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.tb-sp-tag li {
  padding: 8px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.4;
  list-style: none !important;
}

.tb-sp-tag li:last-child { border-bottom: none; }

.tb-sp-tag li a {
  color: var(--ink-soft);
  text-decoration: none;
}

.tb-sp-tag li a:hover { color: var(--teal); }

.tb-sp-zeit {
  display: block;
  font-family: 'PT Sans', sans-serif;
  font-weight: 700;
  font-size: 13px;
  color: var(--ink);
  margin-bottom: 2px;
}

.tb-sp-neu {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: var(--green);
  color: #fff;
  border-radius: 3px;
  padding: 1px 5px;
  vertical-align: middle;
  margin-left: 4px;
}

@media (max-width: 640px) {
  .tb-sp-tag,
  .tb-sp-gruppe { flex: 1 1 100%; }
}

/* ─── NEXTGEN GALLERY OVERRIDES ─────────────────────────────────────── */
.ngg-albumoverview {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important;
  gap: 20px !important;
  float: none !important;
  width: 100% !important;
}

.ngg-album-compact {
  float: none !important;
  width: auto !important;
  margin: 0 !important;
}

.ngg-album-compactbox {
  border-radius: 4px;
  overflow: hidden;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.ngg-album-compactbox::before,
.ngg-album-compactbox::after {
  display: none !important;
}

.ngg-album-link {
  display: block;
  overflow: hidden;
  border-radius: 4px;
}

.ngg-album-link img.Thumb {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
  border: none !important;
  outline: none !important;
  padding: 0 !important;
}

.ngg-album-compact:hover img.Thumb {
  transform: scale(1.04);
}

a.ngg-album-desc {
  font-family: 'Cormorant Garamond', Garamond, serif !important;
  font-size: 20px !important;
  font-weight: 500 !important;
  color: var(--ink) !important;
  text-decoration: none !important;
  display: block;
  margin: 10px 0 4px !important;
  line-height: 1.2;
  border-bottom: none !important;
  min-height: 2.4em;
}

a.ngg-album-desc:hover {
  color: var(--teal) !important;
}

.ngg-album-gallery-image-counter {
  font-family: 'PT Sans', sans-serif !important;
  font-size: 13px !important;
  color: var(--ink-muted) !important;
  margin: 0 !important;
  border-top: 1px solid var(--line) !important;
  padding-top: 6px !important;
}

/* ─── SHOWGRUPPE DETAIL ─────────────────────────────────────────────── */
.tb-group-photo {
  margin: 40px 0 0;
  border-radius: 4px;
  overflow: hidden;
}
.tb-group-photo img {
  width: 100%;
  height: auto;
  display: block;
}

/* ─── SHOWGRUPPEN ───────────────────────────────────────────────────── */
.tb-sg-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 24px;
}

.tb-sg-card {
  display: block;
  text-decoration: none;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.tb-sg-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.tb-sg-card:hover img {
  transform: scale(1.03);
}

.tb-sg-card__name {
  display: block;
  font-family: 'Cormorant Garamond', Garamond, serif;
  font-size: 20px;
  font-weight: 500;
  color: var(--ink);
  padding: 10px 0 4px;
}

.tb-sg-card:hover .tb-sg-card__name {
  color: var(--teal);
}

.tb-sg-grid--archiv {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 24px;
  opacity: 0.75;
}

.tb-sg-grid--archiv img {
  height: 130px;
}

.tb-sg-grid--archiv .tb-sg-card__name {
  font-size: 16px;
  color: var(--ink-muted);
}

.tb-sg-archiv-label {
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}

/* ─── KURSE DETAIL (Bild links · Text rechts) ───────────────────────── */
.tb-kurse-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 0;
  margin-bottom: 48px;
  font-size: 14px;
}
.tb-kurse-nav a {
  color: var(--teal);
  text-decoration: none;
}
.tb-kurse-nav a:hover { text-decoration: underline; }
.tb-kurse-nav span {
  color: var(--line);
  margin: 0 8px;
  user-select: none;
}

.tb-kurs-row {
  display: flex !important;
  flex-direction: row !important;
  gap: 32px;
  align-items: flex-start;
  padding: 40px 0;
  border-top: 1px solid var(--line);
}
.tb-kurs-row:first-of-type { border-top: none; padding-top: 0; }

.tb-kurs-row__photo {
  width: 130px;
  min-width: 130px;
  flex-shrink: 0;
  border-radius: 3px;
  display: block;
  height: auto;
}

.tb-kurs-row__body {
  flex: 1;
  min-width: 0;
}

.tb-kurs-row__title {
  font-family: 'Cormorant Garamond', Garamond, serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--teal-deep);
  margin-bottom: 4px;
}
.tb-kurs-row__age {
  font-size: 13px;
  color: var(--ink-muted);
  margin-bottom: 12px;
}
.tb-kurs-row__sub {
  font-family: 'Cormorant Garamond', Garamond, serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--teal);
  margin: 20px 0 8px;
}
.tb-kurs-row__body p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-soft);
  margin-bottom: 0.6em;
}

/* ─── ABOUT ─────────────────────────────────────────────────────────── */
.tb-about-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 72px;
  align-items: start;
}

.tb-about-photo {
  aspect-ratio: 4 / 5;
  background: #f3f3f3;
  overflow: hidden;
}

.tb-about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tb-about-caption {
  margin-top: 14px;
  font-family: 'PT Sans', sans-serif;
  font-size: 13px;
  color: var(--ink-soft);
}

.tb-about-text {
  font-family: 'PT Sans', sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  margin-top: 28px;
  text-wrap: pretty;
}

.tb-about-ausbildung {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.tb-about-ausbildung h3 {
  font-family: 'PT Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 18px;
}

.tb-about-ausbildung ul {
  padding: 0;
}

.tb-about-ausbildung li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-soft);
  font-family: 'PT Sans', sans-serif;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
}

.tb-about-ausbildung li:last-child { border-bottom: none; }

.tb-about-ausbildung li span.num {
  color: var(--ink-muted);
  font-variant-numeric: tabular-nums;
}

/* ─── KONTAKT ───────────────────────────────────────────────────────── */
.tb-kontakt-split {
  display: flex;
  gap: 48px;
  align-items: flex-start;
}

.tb-kontakt-split__map {
  flex-shrink: 0;
  width: 400px;
  max-width: 100%;
  border-radius: 4px;
  display: block;
  height: auto;
}

.tb-kontakt-split__info {
  flex: 1;
  min-width: 0;
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink);
}

.tb-kontakt-split__info strong {
  font-size: 18px;
  color: var(--teal-deep);
}

.tb-kontakt-split__info a {
  color: var(--teal);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
}

@media (max-width: 700px) {
  .tb-kontakt-split { flex-direction: column; }
  .tb-kontakt-split__map { width: 100%; }
}

.tb-kontakt-grid {
  display: grid;
  grid-template-columns: 260px 1fr 1fr;
  gap: 64px;
}

.tb-kontakt-address,
.tb-kontakt-reach {
  font-family: 'PT Sans', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
}

.tb-kontakt-address a,
.tb-kontakt-reach a {
  border-bottom: 1px solid var(--ink);
  padding-bottom: 1px;
}

/* ─── FOOTER ────────────────────────────────────────────────────────── */
.tb-footer {
  background: var(--bg);
  padding: 36px var(--pad-x);
}

.tb-footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-family: 'PT Sans', sans-serif;
  font-size: 13px;
  color: var(--ink-soft);
}

.tb-footer-foerderung {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 20px var(--pad-x);
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.tb-footer-foerderung-label {
  font-family: 'PT Sans', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.tb-footer-foerderung-logos {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.tb-footer-foerderung-logos img {
  height: 44px;
  width: auto;
  display: block;
}

.tb-footer-links a {
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line-soft);
  padding-bottom: 1px;
}

.tb-footer-links a:hover { color: var(--ink); }

.tb-footer-sep {
  margin: 0 10px;
  color: var(--line);
}

.tb-footer-copy {
  color: var(--ink-muted);
}

.tb-footer-copy a {
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line-soft);
  padding-bottom: 1px;
}

.tb-footer-copy a:hover { color: var(--ink); }

@media (max-width: 900px) {
  .tb-footer-inner {
    flex-direction: column;
    gap: 10px;
  }
  .tb-footer-copy {
    font-size: 12px;
    line-height: 1.6;
  }
}

/* ─── PAGE CONTENT (Gutenberg) ───────────────────────────────────────── */
.tb-page-content {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--pad-y) var(--pad-x);
}

.tb-page-content h1,
.tb-page-content h2,
.tb-page-content h3 {
  font-family: 'Cormorant Garamond', Garamond, serif;
  font-weight: 500;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 16px;
}

.tb-page-content h1 { font-size: 48px; }
.tb-page-content h2 { font-size: 36px; }
.tb-page-content h3 { font-size: 26px; }

.tb-page-content p {
  font-family: 'PT Sans', sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  margin-bottom: 20px;
  text-wrap: pretty;
}

.tb-page-content ul,
.tb-page-content ol {
  font-family: 'PT Sans', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  margin-bottom: 20px;
  padding-left: 24px;
}

.tb-page-content ul { list-style: disc; }
.tb-page-content ol { list-style: decimal; }

.tb-page-content a {
  color: var(--teal);
  border-bottom: 1px solid var(--teal);
  padding-bottom: 1px;
}

.tb-page-content a.tb-btn {
  border-bottom: none;
  padding: 13px 22px;
}

.tb-page-content a.tb-btn--primary {
  color: #ffffff;
}

.tb-page-content a.tb-btn--text {
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding: 0 0 3px;
}

.tb-page-title {
  font-family: 'Cormorant Garamond', Garamond, serif;
  font-weight: 500;
  font-size: 52px;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}

/* ─── ÜBER UNS SEITE ────────────────────────────────────────────────── */

/* Intro-Liste (Vorteile) */
ul.tb-about-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 12px 0 32px !important;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
ul.tb-about-list li {
  list-style: none !important;
  padding-left: 20px;
  position: relative;
  line-height: 1.6;
}
ul.tb-about-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
}

/* Team-Trenner */
.tb-team-section {
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid var(--line);
}

/* Team-Karte: Foto links, Text rechts */
.tb-team-card {
  display: flex !important;
  flex-direction: row !important;
  gap: 36px;
  align-items: flex-start;
}
.tb-team-card + .tb-team-card {
  margin-top: 48px;
  padding-top: 48px;
  border-top: 1px solid var(--line);
}
.tb-team-card > * {
  min-width: 0;
}
.tb-team-card > figure {
  margin: 0;
  grid-column: 1;
}

.tb-team-card__photo {
  width: 200px;
  min-width: 200px;
  height: 300px;
  object-fit: cover;
  object-position: top;
  border-radius: 3px;
  outline: 3px solid var(--teal);
  outline-offset: 4px;
  display: block;
  flex-shrink: 0;
}

.tb-team-card__bio {
  flex: 1;
  min-width: 0;
}

.tb-team-card__bio p.tb-team-card__name {
  font-family: 'Cormorant Garamond', Garamond, serif;
  font-size: 32px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.15;
  margin-bottom: 12px;
}

.tb-team-card__bio p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-soft);
  margin-bottom: 0.75em;
}

.tb-team-card__bio ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 6px 0 14px !important;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.tb-team-card__bio ul li {
  list-style: none !important;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
  padding-left: 16px;
  position: relative;
}
.tb-team-card__bio ul li::before {
  content: '\2013';
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}

/* ─── RESPONSIVE ────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  :root {
    --pad-x: 24px;
    --pad-y: 48px;
  }

  .tb-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
  }

  .tb-nav { display: none; }
  .tb-hamburger { display: block; }

  .tb-h1 { font-size: 40px; }
  .tb-h2 { font-size: 30px; }
  .tb-h2--large { font-size: 36px; }

  .tb-hero-image { aspect-ratio: 4 / 3; margin-top: 36px; }
  .tb-hero-actions { margin-top: 28px; }

  .tb-split { grid-template-columns: 1fr; gap: 24px; }

  .tb-termine-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .tb-kurse-grid { grid-template-columns: 1fr; }
  .tb-kurs-item:nth-child(odd) { padding-right: 0; border-right: none; }
  .tb-kurs-item:nth-child(even) { padding-left: 0; }

  .tb-about-grid { grid-template-columns: 1fr; gap: 32px; }
  .tb-about-text { font-size: 16px; margin-top: 0; }

  .tb-kontakt-grid { grid-template-columns: 1fr; gap: 28px; }

  .tb-footer { padding: 32px 20px; }

  .tb-page-content { padding: 40px 20px; }
  .tb-page-title { font-size: 36px; }
  .tb-page-content h1 { font-size: 34px; }
  .tb-page-content h2 { font-size: 26px; }

  /* Showgruppen: 1 Spalte auf Mobil */
  .tb-sg-grid,
  .tb-sg-grid--archiv {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Kurse Detail: untereinander auf Mobil */
  .tb-kurs-row {
    flex-direction: column !important;
  }
  .tb-kurs-row__photo {
    width: 100%;
    min-width: unset;
    max-width: 200px;
  }

  /* Team-Karten: untereinander auf Mobil */
  .tb-team-card {
    flex-direction: column !important;
  }
  .tb-team-card__photo {
    width: 100%;
    min-width: unset;
    max-width: 260px;
    height: auto;
    aspect-ratio: 2 / 3;
    margin: 0 auto;
  }
}

/* ─── DRUCK-BUTTON ──────────────────────────────────────────────────── */
.tb-print-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}

.tb-sp-gueltig {
  font-style: italic;
  color: var(--ink);
  margin: 0 !important;
}

.tb-btn--print {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  line-height: 1;
  font-family: 'PT Sans', sans-serif;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  background: transparent;
  color: var(--ink-muted);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: color 0.15s;
  text-decoration: none !important;
}

.tb-btn--print:hover {
  color: var(--teal) !important;
}

.tb-print-only {
  display: none;
}

/* ─── PRINT STYLES ──────────────────────────────────────────────────── */
@media print {
  @page {
    size: A4 landscape;
    margin: 12mm 14mm;
  }

  * {
    print-color-adjust: exact !important;
    -webkit-print-color-adjust: exact !important;
  }

  .tb-header,
  .tb-stripe,
  .tb-footer,
  .tb-print-bar,
  .tb-hamburger,
  .tb-mobile-nav {
    display: none !important;
  }

  body {
    background: #fff !important;
  }

  .tb-section {
    border-bottom: none !important;
  }

  .tb-page-content {
    padding: 0 !important;
    max-width: 100% !important;
  }

  .tb-page-title {
    font-size: 26px !important;
    margin-bottom: 10px !important;
    padding-bottom: 10px !important;
  }

  .tb-print-only {
    display: block !important;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--teal);
  }

  a {
    text-decoration: none !important;
    border-bottom: none !important;
    color: inherit !important;
  }

  .tb-sp-tage {
    gap: 8px !important;
    margin-top: 8px !important;
    flex-wrap: wrap;
  }

  .tb-sp-tag {
    page-break-inside: avoid;
    break-inside: avoid;
    flex: 1 1 120px;
  }

  .tb-sp-tag li {
    font-size: 11px !important;
    padding: 5px 10px !important;
  }

  .tb-sp-tag-titel {
    font-size: 11px !important;
    padding: 7px 10px !important;
  }

  .tb-sp-zeit {
    font-size: 11px !important;
  }
}
