/* ============================================================
   Variante J (/neu/j/): Herzstück I im Gerüst A – Kopf und Fuß von A, auf der Startseite davor
   der Auftakt aus B (Logo-Animation, _neu-j-intro.php). Stäbe, Kacheln usw. kommen aus fx-i.css/fx-i.js.
   ============================================================ */
html.fx-j .j-intro .keyvisual { background: #002e5f; display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative;
  height: calc(100vh - var(--j-oben, 74px)); height: calc(100svh - var(--j-oben, 74px));   /* --j-oben = Kopf (+ Testleiste), gesetzt in _neu-j-intro.php; volle Höhe (Jonathan 18.10.: lieber Pfeil als angeschnittene Seite) */ min-height: 460px; overflow: hidden; }
html.fx-j .j-intro #tws-logoanimation { width: 400px; max-width: 100%; margin-top: -100px; margin-bottom: -30px; }   /* B: -50px – unter dem A-Kopf kam das untere M sonst bis auf 15 px an die Schrift */
html.fx-j .j-intro .text { text-align: center; color: #fff; }
html.fx-j .j-intro .text p { color: #fff; margin: 0; }
html.fx-j .j-intro .j-intro-titel { margin: 0 0 .5em; }   /* Schrift wie B: Theme-Klasse .h2 (Dosis, Tanuki im strong, Versalien) */
/* Handy: unten liegt die Leiste von A – Auftakt endet darüber, der Pfeil bleibt sichtbar */
@media (max-width: 760px) {
  html.fx-j .j-intro .keyvisual { height: calc(100vh - var(--j-oben, 66px) - 72px); height: calc(100svh - var(--j-oben, 66px) - 72px - env(safe-area-inset-bottom, 0px)); min-height: 420px; }
  html.fx-j .j-intro .readmore { bottom: 8px; }
}
/* Pfeil nach unten: erscheint, wenn das Herz fertig ist (Klasse j-fertig aus _neu.php), dann wippt er */
html.fx-j .j-intro .readmore { position: absolute; left: 50%; top: auto; bottom: 4vh; height: auto; transform: translate(-50%, 12px); color: #fff; padding: 10px;
  opacity: 0; pointer-events: none; transition: opacity .6s ease, transform .6s ease; }
html.fx-j .j-intro.j-fertig .readmore { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
html.fx-j .j-intro .readmore svg { width: 30px; height: 30px; display: block; }
html.fx-j .j-intro.j-fertig .readmore svg { animation: j-wippen 1.4s ease-in-out 1.2s infinite; }
@keyframes j-wippen { 50% { transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { html.fx-j .j-intro.j-fertig .readmore svg { animation: none; } }
/* Herz am Ende = Link zur Probestunde (fx-i.js legt ihn über die Stäbe); Beschriftung beim Darüberfahren/Fokus */
html.fx-j .fx-j-herzknopf { position: absolute; left: 0; top: 0; z-index: 41; border-radius: 40%; visibility: hidden; text-decoration: none; }
html.fx-j .fx-j-herzknopf.da { visibility: visible; }
/* Ohne Maus erscheint die Beschriftung nie, verbreitert aber am rechten Rand die Seite (iPhone: Seite rutscht seitlich) */
@media (hover: none) { html.fx-j .fx-j-herzknopf span { display: none; } }
html.fx-j .fx-j-herzknopf:focus-visible { outline: 2px solid #e5007d; outline-offset: 4px; }
html.fx-j .fx-j-herzknopf span { position: absolute; left: 50%; top: 100%; transform: translate(-50%, 2px); white-space: nowrap; background: #e5007d; color: #fff;
  font-weight: bold; font-size: 13px; line-height: 1; padding: 7px 12px; border-radius: 999px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
  box-shadow: 0 8px 20px rgba(0, 30, 70, .2); }
html.fx-j .fx-j-herzknopf:hover span, html.fx-j .fx-j-herzknopf:focus-visible span { opacity: 1; transform: translate(-50%, 8px); }
/* Die vier Welten als Bühnen aus C (Paneele, die sich beim Darüberfahren öffnen) – Regeln aus neu-c.css, hier für das helle Gerüst A */
html.fx-j .c-buehnen { display: flex; gap: 12px; height: clamp(380px, 52vw, 560px); margin-top: 58px; }   /* Platz für die Eckstriche über den Paneelen (fällt mit den 28 px unter dem Abschnittskopf zusammen) */
html.fx-j .c-bn { --f: #f7a600; position: relative; flex: 1 1 0; min-width: 0; border-radius: 26px; overflow: hidden; text-decoration: none !important; color: #fff !important; isolation: isolate;
  transition: flex-grow .5s cubic-bezier(.2, .8, .2, 1); display: flex; flex-direction: column; justify-content: flex-end; padding: 22px; box-shadow: 0 18px 40px rgba(0, 46, 95, .18); }
html.fx-j .c-buehnen:hover .c-bn { flex-grow: .7; }
html.fx-j .c-buehnen .c-bn:hover, html.fx-j .c-bn:focus-visible { flex-grow: 2.2; }
html.fx-j .c-bn img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; filter: saturate(.85); }
html.fx-j .c-bn::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, color-mix(in srgb, var(--f) 35%, transparent) 0%, transparent 35%, rgba(3, 7, 15, .92) 100%); }
html.fx-j .c-bn-name { font-family: tanuki, sans-serif; text-transform: uppercase; font-size: clamp(26px, 3vw, 44px); line-height: 1; color: #fff; }
html.fx-j .c-bn-info { display: grid; gap: 4px; margin-top: 10px; font-size: 15px; color: #cbd6e8; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .4s, opacity .4s; }
html.fx-j .c-bn:hover .c-bn-info, html.fx-j .c-bn:focus-visible .c-bn-info { max-height: 120px; opacity: 1; }
html.fx-j .c-bn-heute { color: #fff; font-weight: bold; display: inline-flex; align-items: center; gap: 6px; }   /* weiß, Tanzart-Farbe nur im Punkt: Farbtext war auf dem dunklen Bild schwer lesbar */
html.fx-j .c-bn-heute::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--f); box-shadow: 0 0 0 2px rgba(255, 255, 255, .85); }
html.fx-j .c-bn:focus-visible { outline: 3px solid #e5007d; outline-offset: 3px; }
@media (max-width: 900px) {
  html.fx-j .c-buehnen { flex-direction: column; height: auto; gap: 30px; }   /* Platz für die Striche über jedem Paneel */
  html.fx-j .c-bn { min-height: 220px; flex: none; }
  html.fx-j .c-bn-info { max-height: none; opacity: 1; }
}

/* Unterseiten ohne Foto-Kopf (Kursplan, Probestunde, Events, Angebote, Schon dabei): dunkelblaues Band wie der Auftakt der
   Startseite. Volle Breite per Schatten + clip-path, ohne das Markup von A zu ändern. */
html.fx-j .neu .n-huelle.n-seitenkopf:not(.a-hero .n-seitenkopf) { background: #002e5f; color: #fff; box-shadow: 0 0 0 100vmax #002e5f; clip-path: inset(0 -100vmax);
  padding-block: clamp(36px, 6vw, 72px) clamp(32px, 5vw, 56px); margin-bottom: clamp(24px, 4vw, 40px); }
html.fx-j .neu .n-huelle.n-seitenkopf:not(.a-hero .n-seitenkopf) .n-h1 { color: #fff; }
html.fx-j .neu .n-huelle.n-seitenkopf:not(.a-hero .n-seitenkopf) > p { color: rgba(255, 255, 255, .88); }
/* Kachel-Gitter der Unterseiten: Platz für die Eckstriche über jeder Kachel (fx-i.js, Form „ecken“) */
html.fx-j .n-kacheln, html.fx-j .n-schnell { row-gap: 32px; }
html.fx-j .n-schnell { margin-top: 36px; }
/* Galaball: Platz für den Unterstrich unter der Überschrift (wie die Seitenköpfe in fx-i.css) */
html.fx-j .neu .n-gala-kopf h1 { margin-bottom: .36em; }
/* Rechtsseiten (Impressum, Datenschutz, AGB, Kündigung, Widerruf): Inhaltsblöcke der alten Seite im J-Rahmen.
   Die Überschrift steht im dunkelblauen Kopf, die erste aus dem Inhalt entfällt. */
html.fx-j .j-recht { padding-bottom: clamp(40px, 6vw, 80px); }
html.fx-j .j-recht section:first-of-type .col:first-child > .margin:first-child > :is(h1, h2):first-child { display: none; }   /* Titel der alten Seite (links oben) */
html.fx-j .j-recht .gutter { padding-block: 0 clamp(24px, 4vw, 40px); }
html.fx-j .j-recht .wrapper { width: auto; max-width: 860px; margin-inline: auto; padding-inline: 16px; box-sizing: border-box; }   /* das Theme setzt eine feste Breite */
html.fx-j .j-recht .columns { display: block; }
html.fx-j .j-recht .col + .col { margin-top: 24px; }
html.fx-j .j-recht p, html.fx-j .j-recht li { font-size: 17px; line-height: 1.6; }
html.fx-j .j-recht h2 { margin-top: 1.6em; }
html.fx-j .j-recht a:not(.button) { color: #c4006b; }   /* Knöpfe der alten Seite behalten ihre Schrift */
html.fx-j .j-recht iframe { width: 100%; border: 0; }
/* Blog (J): Kacheln wie die Ratgeber-Karten, mit Bild */
html.fx-j .j-blog { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
html.fx-j .j-blog-karte { display: flex; flex-direction: column; background: var(--flaeche, #fff); border-radius: var(--r, 18px); overflow: hidden; color: inherit; text-decoration: none;
  box-shadow: 0 10px 30px rgba(0, 46, 95, .08); transition: transform .3s, box-shadow .3s; }
html.fx-j .j-blog-karte:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(0, 46, 95, .14); }
html.fx-j .j-blog-karte img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; }
html.fx-j .j-blog-text { display: grid; gap: 8px; padding: 20px 22px 22px; }
html.fx-j .j-blog-text small { color: var(--leise, #56677f); font-size: 14px; }
html.fx-j .j-blog-text b { font-size: 20px; line-height: 1.25; }
html.fx-j .j-blog-text em { font-style: normal; font-weight: bold; color: #c4006b; }
html.fx-j .j-post img { max-width: 100%; height: auto; border-radius: 14px; }
/* Hochzeit und Jobs (eigene Einstiege aus _hochzeitstanz.php/_bewerbung.php): Platz für den Unterstrich */
html.fx-j .mm-ht-h1, html.fx-j .mm-bw-h1 { margin-bottom: .45em; }
html.fx-j .j-formular { padding-top: clamp(20px, 3vw, 32px); }
html.fx-j .j-formular iframe { margin-block: 12px 20px; }
html.fx-j .j-statistik { margin-top: 8px; padding: 14px 16px; border: 1px solid currentColor; border-radius: 10px; }
html.fx-j .j-statistik label { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
html.fx-j .j-statistik input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; }
