/*
 Theme Name:   Divi Child Theme
 Description:  Child Theme for Divi
 Author:       iloweb e.U.
 Author URI:   https://www.iloweb.at
 Template:     Divi
 Version:      1.1.0
 Text Domain:  divi-5-child
*/

/* Helpers */
.flexCenter {
	display: flex;
	align-items: center;
}

/* === RE:TREAT (generiert, divi-toolkit) === */
/* RE:TREAT – Stile für den Divi-5-Neubau, Präfix rt- */

@font-face { font-family: "RT Work Sans"; font-weight: 300; font-style: normal; font-display: swap; src: url(fonts/work-sans-300.woff2) format("woff2"); }
@font-face { font-family: "RT Work Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url(fonts/work-sans-400.woff2) format("woff2"); }
@font-face { font-family: "RT Work Sans"; font-weight: 500; font-style: normal; font-display: swap; src: url(fonts/work-sans-500.woff2) format("woff2"); }
@font-face { font-family: "RT Work Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url(fonts/work-sans-600.woff2) format("woff2"); }
/* Ersatz für Akzidenz-Grotesk Next (kommerziell, Lizenz nicht geklärt) */
@font-face { font-family: "RT Grotesk"; font-weight: 300; font-style: normal; font-display: swap; src: url(fonts/hanken-grotesk-300.woff2) format("woff2"); }
@font-face { font-family: "RT Grotesk"; font-weight: 400; font-style: normal; font-display: swap; src: url(fonts/hanken-grotesk-400.woff2) format("woff2"); }

:root {
  --rt-ink: #121212;
  --rt-text: #5f5f5f;
  --rt-muted: #9b9b9b;
  --rt-line: #dcd6d1;
  --rt-accent: #a26e63;
  --rt-sand: #b79b89;
  --rt-tint: #f7f4f1;
  --rt-body: "RT Work Sans", "Work Sans", sans-serif;
  --rt-head: "RT Grotesk", "Helvetica Neue", Arial, sans-serif;
}

body { font-family: var(--rt-body); color: var(--rt-text); }

/* Sektionen */
.rt-sec { padding: 96px 0 !important; background: #fff; font-family: var(--rt-body); color: var(--rt-text); }
.rt-sec--tint { background: var(--rt-tint); }
.rt-sec.rt-sec--flush { padding-bottom: 0 !important; }
.rt-sec.rt-sec--flush + .rt-sec { padding-top: 0 !important; }
.rt-sec.rt-sec--flush-top { padding-top: 0 !important; }
.rt-sec--flush .rt-head { margin-bottom: 40px; }
.rt-sec .et_pb_row { width: 90%; max-width: 1180px; padding: 0 !important; }
.rt-sec .et_pb_text, .rt-sec p, .rt-sec li { font-family: var(--rt-body); font-size: 16px; line-height: 1.75; letter-spacing: .2px; color: var(--rt-text); }
.rt-sec strong { color: var(--rt-ink); font-weight: 500; }
.rt-sec h1, .rt-sec h2, .rt-sec h3 { font-family: var(--rt-head); font-weight: 300; color: var(--rt-ink); text-transform: uppercase; padding: 0; overflow-wrap: anywhere; hyphens: auto; }
.rt-sec h1 { font-size: 52px; line-height: 1.2; letter-spacing: 8px; }
.rt-sec h2 { font-size: 38px; line-height: 1.22; letter-spacing: 5px; margin-bottom: 24px; }
.rt-sec h3 { font-size: 22px; line-height: 1.4; letter-spacing: 3px; margin-bottom: 12px; }
.rt-sec a { color: var(--rt-ink); }
.rt-sec p a { text-decoration: underline; text-underline-offset: 3px; }

.rt-head { max-width: 760px; margin: 0 auto 48px; text-align: center; }
.rt-center { text-align: center; margin-top: 48px; }
.rt-overline { font-family: var(--rt-body) !important; font-size: 13px !important; font-weight: 600; letter-spacing: 3px !important; text-transform: uppercase; color: var(--rt-accent) !important; margin-bottom: 8px; padding: 0 !important; }

/* Buttons und Links */
.rt-btn { display: inline-block; padding: 15px 32px; border: 1px solid var(--rt-ink); color: var(--rt-ink) !important; font-size: 15px; letter-spacing: 2px; text-decoration: none !important; transition: background .2s, color .2s; }
.rt-btn:hover { background: var(--rt-ink); color: #fff !important; }
.rt-link { display: inline-block; margin-top: auto; padding-bottom: 2px; border-bottom: 1px solid var(--rt-ink); color: var(--rt-ink) !important; font-size: 15px; letter-spacing: 2px; text-decoration: none !important; }
.rt-link:hover { color: var(--rt-accent) !important; border-color: var(--rt-accent); }

/* Hero mit Video */
.rt-sec.rt-sec--hero { padding: 0 !important; }
.rt-sec--hero .et_pb_row { width: 100%; max-width: none; }
.rt-hero { position: relative; min-height: min(86vh, 820px); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.rt-hero > .et_pb_text_inner { position: static; width: 100%; display: flex; justify-content: center; }
.rt-hero__media, .rt-hero__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rt-hero__media::after { content: ""; position: absolute; inset: 0; background: rgba(255,255,255,.55); }
.rt-hero__inner { position: relative; z-index: 1; width: 90%; max-width: 900px; text-align: center; padding: 120px 0; }
.rt-hero h1 { margin: 0; }

.rt-sec.rt-sec--ticker { padding: 28px 0 !important; border-bottom: 1px solid var(--rt-line); }
.rt-ticker { max-width: 980px; margin: 0 auto; text-align: center; font-size: 15px !important; }

/* Zwei Spalten Bild/Text */
.rt-split { display: flex; align-items: center; gap: 72px; }
.rt-split > .et_pb_column { margin: 0 !important; }
.rt-photo { display: block; width: 100%; height: auto; }
.rt-copy p { margin-bottom: 16px; }
.rt-copy .rt-btn { margin-top: 16px; }
.rt-map { display: block; }

/* Karten */
.rt-grid { display: grid; gap: 32px; }
.rt-grid--2 { grid-template-columns: repeat(2, 1fr); max-width: 880px; margin: 0 auto; }
.rt-grid--4 { grid-template-columns: repeat(4, 1fr); }
.rt-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--rt-line); padding: 40px 32px; text-align: center; }
.rt-card--price { border-top: 3px solid var(--rt-accent); }
.rt-card ul { list-style: none; padding: 0 !important; margin: 0 0 28px; text-align: left; }
.rt-card li { position: relative; padding: 8px 0 8px 22px !important; border-bottom: 1px solid var(--rt-line); font-size: 15px !important; }
.rt-card li::before { content: ""; position: absolute; left: 4px; top: 19px; width: 6px; height: 6px; border-radius: 50%; background: var(--rt-sand); }
.rt-price { font-family: var(--rt-head) !important; font-weight: 300; font-size: 38px !important; letter-spacing: 5px !important; color: var(--rt-ink) !important; margin: 4px 0 24px; }
.rt-card--teaser p { margin-bottom: 24px; }
.rt-icon { width: 96px; height: 96px; object-fit: contain; margin: 0 auto 20px; }
.rt-icon--small { width: 56px; height: 56px; }

/* Video (Vimeo nach Klick) */
.rt-video { position: relative; max-width: 980px; margin: 0 auto; aspect-ratio: 16 / 9; background: var(--rt-ink); overflow: hidden; }
.rt-video__poster { width: 100%; height: 100%; object-fit: cover; opacity: .65; }
.rt-video__play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); padding: 16px 36px; border: 1px solid #fff; background: rgba(18,18,18,.35); color: #fff; font: 15px/1 var(--rt-body); letter-spacing: 2px; cursor: pointer; }
.rt-video__play:hover { background: #fff; color: var(--rt-ink); }
.rt-video__note { position: absolute; left: 0; right: 0; bottom: 12px; text-align: center; color: #fff !important; font-size: 13px !important; }
.rt-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Eversports */
.rt-es { width: 100%; min-height: 200px; }

/* Seitenkopf ohne Video */
.rt-sec.rt-sec--pagehead { padding: 120px 0 48px !important; }
.rt-head--page { max-width: 860px; margin-bottom: 0; }
.rt-head--page h1 { font-size: 44px; letter-spacing: 6px; margin-bottom: 24px; }

/* Querformat-Karten (Trainer, Kurse, Events) */
.rt-hcards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.rt-hcard { display: flex; background: #fff; border: 1px solid var(--rt-line); }
.rt-hcard__img { flex: 0 0 36%; border-right: 6px solid var(--rt-edge, var(--rt-accent)); }
.rt-hcard__img img { display: block; width: 100%; height: 100%; min-height: 240px; object-fit: cover; }
.rt-hcard__img img[src*="rt-kurs-"] { object-fit: contain; padding: 20px; background: #fff; }
.rt-hcard__body { flex: 1; padding: 28px 28px 24px; display: flex; flex-direction: column; }
.rt-hcard__body h3 { font-size: 20px; letter-spacing: 2px; }
.rt-hcard__body p { font-size: 15px !important; margin-bottom: 12px; }
.rt-hcard__body .rt-link { align-self: flex-start; margin-top: auto; }
.rt-meta { font-size: 14px !important; color: var(--rt-ink) !important; font-weight: 500; }

/* Legende Events */
.rt-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 32px; margin: 0 0 40px; padding: 0 !important; list-style: none; }
.rt-legend li { display: flex; align-items: center; gap: 10px; font-size: 14px !important; padding: 0 !important; }
.rt-legend span { width: 18px; height: 18px; display: inline-block; }

/* Preise */
.rt-grid--3 { grid-template-columns: repeat(3, 1fr); }
.rt-price small { font-family: var(--rt-body); font-size: 14px; letter-spacing: 0; text-transform: none; color: var(--rt-text); }

/* FAQ */
.rt-faq { max-width: 860px; margin: 0 auto; }
.rt-faq h2 { margin: 56px 0 16px; font-size: 28px; }
.rt-faq h2:first-child { margin-top: 0; }
.rt-faq details { border-bottom: 1px solid var(--rt-line); }
.rt-faq summary { list-style: none; cursor: pointer; padding: 18px 40px 18px 0; position: relative; font-family: var(--rt-body); font-size: 17px; font-weight: 500; color: var(--rt-ink); }
.rt-faq summary::-webkit-details-marker { display: none; }
.rt-faq summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-size: 24px; font-weight: 300; color: var(--rt-accent); }
.rt-faq details[open] summary::after { content: "–"; }
.rt-faq__a { padding: 0 0 20px; }
.rt-faq__a ul { padding-left: 20px; margin-bottom: 12px; }

/* Rechtstexte */
.rt-legal { max-width: 860px; margin: 0 auto; }
.rt-legal h2 { font-size: 24px; letter-spacing: 3px; margin: 40px 0 12px; }
.rt-legal h3 { font-size: 18px; letter-spacing: 1px; text-transform: none; margin: 24px 0 8px; }
.rt-legal p, .rt-legal li { margin-bottom: 10px; }
.rt-legal ul { padding-left: 20px; }

/* Kontaktformular */
.rt-form input, .rt-form textarea, .rt-form select { border: 1px solid var(--rt-line) !important; border-radius: 0 !important; background: #fff !important; font-family: var(--rt-body) !important; }
.rt-form button[type="submit"], .rt-form .et_pb_button { border: 1px solid var(--rt-ink) !important; border-radius: 0 !important; background: #fff !important; color: var(--rt-ink) !important; letter-spacing: 2px; font-family: var(--rt-body) !important; }

/* Header */
.rt-header { padding: 18px 0 !important; background: #fff; border-bottom: 1px solid var(--rt-line); }
.rt-header .et_pb_row { width: 90%; max-width: 1280px; padding: 0 !important; }
.rt-menu.et_pb_menu.et_flex_module .et_pb_menu__wrap { flex: 1 1 auto; justify-content: flex-end; }
.rt-menu .et-menu > li { padding-left: 14px; padding-right: 14px; }
.rt-menu .et-menu > li:last-child { padding-right: 0; }
.rt-menu .et-menu > li > a, .rt-menu .et_mobile_menu a { font-family: var(--rt-body); font-size: 17px; font-weight: 400; letter-spacing: 1px; color: var(--rt-ink) !important; }
.rt-menu .et-menu > li > a:hover { color: var(--rt-accent) !important; }
/* Aktiver Menüpunkt wie live: Akzentfarbe mit Unterstrich. Über Body-Klassen, damit auch Trainer- und Event-Seiten passen */
.rt-menu .et-menu > li.current-menu-item > a,
.page-id-174 .rt-menu a[href$="/studio/"], .single-trainer .rt-menu a[href$="/studio/"],
.page-id-176 .rt-menu a[href$="/kurse/"],
.page-id-178 .rt-menu a[href$="/events-und-ausbildungen/"], .single-event .rt-menu a[href$="/events-und-ausbildungen/"],
.page-id-180 .rt-menu a[href$="/preise/"],
.page-id-10 .rt-menu a[href$="/kontakt/"] { color: var(--rt-accent) !important; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.rt-menu .et-menu > li.current-menu-item > a[href*="#"] { color: var(--rt-ink) !important; text-decoration: none; }

/* Footer: schlicht wie live, eine Zeile */
.rt-footer { padding: 48px 0 24px !important; background: #fff; border-top: 1px solid var(--rt-line); font-family: var(--rt-body); }
.rt-footer .et_pb_row { width: 90%; max-width: 1280px; padding: 0 !important; }
.rt-footer__row { align-items: center; }
.rt-footer__row > .et_pb_column { margin-bottom: 0 !important; }
.rt-footer__row > .et_pb_column { flex: 1 1 0; width: auto !important; margin-right: 0 !important; }
.rt-footer__row > .et_pb_column:nth-child(2) { flex: 0 0 auto; }
.rt-footer__logo { display: block; width: 180px; height: auto; }
.rt-footer__social { display: flex; justify-content: center; gap: 12px; margin: 0; padding: 0; }
.rt-footer__social a { color: var(--rt-ink); line-height: 0; }
.rt-footer__social a:hover { color: var(--rt-accent); }
.rt-social-icon { width: 32px; height: 32px; }
.rt-footer__nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 24px; }
.rt-footer__nav a { font-size: 14px; color: var(--rt-ink); border-bottom: 1px solid; padding-bottom: 1px; }
.rt-footer__nav a:hover { color: var(--rt-accent); }
.rt-sec.rt-footer, .rt-footer { row-gap: 20px !important; }
.rt-footer__credit { margin: 0; padding: 0; font-size: 12px !important; color: var(--rt-muted) !important; }
.rt-footer__credit a { color: var(--rt-muted); }
@media (max-width: 980px) {
  .rt-footer .et_pb_row { flex-wrap: wrap !important; }
  .rt-footer__row > .et_pb_column { flex: 0 0 100% !important; width: 100% !important; margin: 0 0 24px !important; }
  .rt-footer__logo { margin: 0 auto; }
  .rt-footer__social, .rt-footer__nav { justify-content: center; }
  .rt-footer__credit { text-align: center; margin-top: 8px; }
}

/* Detailseiten Trainer:innen und Events */
.single-trainer .et_post_meta_wrapper, .single-event .et_post_meta_wrapper { display: none; }
.rt-detail-head { align-items: flex-start; }
.rt-detail-head > .et_pb_column:first-child { flex: 0 0 40%; }
.rt-detail-head h1 { font-size: 40px; letter-spacing: 5px; margin: 48px 0 16px; }
.rt-detail-head__sub { font-size: 17px !important; font-weight: 500; color: var(--rt-ink) !important; }
.rt-back { display: inline-block; margin-bottom: 24px; color: var(--rt-ink) !important; font-size: 14px; letter-spacing: 2px; text-decoration: none !important; }
.rt-back:hover { color: var(--rt-accent) !important; }
.rt-detail { max-width: 1080px; margin: 0 auto; }
.rt-detail h2 { font-size: 32px; letter-spacing: 4px; margin-bottom: 32px; }
.rt-detail__item { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; padding: 28px 0; border-top: 1px solid var(--rt-line); }
.rt-detail__item h3 { font-size: 20px; letter-spacing: 2px; }
.rt-detail__text p, .rt-detail__text li { margin-bottom: 12px; overflow-wrap: anywhere; }
.rt-detail__text ul, .rt-detail__text ol { padding-left: 20px; margin-bottom: 12px; }
.rt-detail__text li p { margin: 0; }
.rt-detail__text .rt-btn { margin-top: 8px; }
@media (max-width: 980px) {
  .rt-detail-head > .et_pb_column:first-child { flex-basis: auto; }
  .rt-detail-head h1 { margin-top: 0; }
}
@media (max-width: 640px) {
  .rt-detail-head h1 { font-size: 26px; letter-spacing: 3px; }
  .rt-detail h2 { font-size: 24px; }
  .rt-detail__item { grid-template-columns: 1fr; gap: 8px; padding: 20px 0; }
  .rt-detail__item h3 { font-size: 17px; }
}

/* Platzhalter für offene Angaben */
.rt-todo { background: #fff3a8; color: #5c4a00; padding: 2px 6px; }

/* Tablet und Handy */
@media (max-width: 980px) {
  .rt-sec .et_pb_row { flex-wrap: wrap !important; }
  .rt-split { flex-direction: column; gap: 40px; }
  .rt-split > .et_pb_column { width: 100% !important; }
  .rt-grid--4, .rt-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .rt-hcards { grid-template-columns: 1fr; }
  .rt-sec { padding: 72px 0 !important; }
}
@media (max-width: 640px) {
  .rt-sec { padding: 56px 0 !important; }
  .rt-sec h1 { font-size: 30px; letter-spacing: 4px; }
  .rt-sec h2 { font-size: 26px; letter-spacing: 3px; }
  .rt-grid--2, .rt-grid--3, .rt-grid--4 { grid-template-columns: 1fr; }
  .rt-hcard { flex-direction: column; }
  .rt-hcard__img { border-right: 0; border-bottom: 6px solid var(--rt-edge, var(--rt-accent)); }
  .rt-hcard__img img { min-height: 0; aspect-ratio: 4 / 3; }
  .rt-sec.rt-sec--pagehead { padding: 72px 0 32px !important; }
  .rt-head--page h1 { font-size: 28px; letter-spacing: 3px; }
  .rt-card { padding: 32px 24px; }
  .rt-hero { min-height: 70vh; }
  .rt-video__play { padding: 12px 20px; white-space: nowrap; font-size: 13px; }
  .rt-video__note { font-size: 11px !important; bottom: 6px; padding: 0 12px; }
}
/* === Ende RE:TREAT === */
