/* ==========================================================================
   DELTHA FIGHT CLUB e.V. – Designsystem für Greyd WP (Child-Theme)
   Farben (Urkunde-Branding): Anthrazit #232128 · Violett #644FB9
   Lavendel #BFB1FF · Soft Lavender #EAE5FC · Soft White #F7F6FA · Weiß
   Schriften: Barlow Condensed 600/700 (Überschriften), Roboto 400/500 (Text)
   ========================================================================== */

/* ---------- 1. Lokale Schriften (keine Google-Server, DSGVO) ---------- */
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/roboto-v51-latin-regular.woff2") format("woff2"); }
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/roboto-v51-latin-500.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/barlow-condensed-v13-latin-600.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/barlow-condensed-v13-latin-700.woff2") format("woff2"); }

/* ---------- 2. Design-Tokens ---------- */
:root {
  --dfc-anthracite: #232128;     /* Haupttext, dunkle Sektionen */
  --dfc-anthracite-2: #2e2b35;   /* zweite dunkle Fläche */
  --dfc-violet: #644fb9;         /* CTA, Akzente */
  --dfc-violet-deep: #3f2f86;    /* Hover / Fitnessboxen-Streifen */
  --dfc-lavender: #bfb1ff;       /* kleine Akzenttexte auf dunkel */
  --dfc-lavender-soft: #eae5fc;  /* Kinder-Badge, zarte Flächen */
  --dfc-softwhite: #f7f6fa;      /* helle Sektion A */
  --dfc-white: #ffffff;          /* helle Sektion B, Karten */
  --dfc-steel: #dcd9e3;          /* Linien, Rahmen */
  --dfc-muted: #ebe9f0;
  --dfc-muted-text: #57536a;
  --dfc-on-dark-muted: rgba(255, 255, 255, 0.72);

  --dfc-font-heading: "Barlow Condensed", "Arial Narrow", sans-serif;
  --dfc-font-body: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;

  --dfc-container: 1280px;
  --dfc-gutter: clamp(1.25rem, 4vw, 2.5rem);
  --dfc-section-y: clamp(4rem, 9vw, 7rem);
  --dfc-radius: 4px;
}

/* ---------- 3. Basis ---------- */
body {
  font-family: var(--dfc-font-body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  color: var(--dfc-anthracite);
  background: var(--dfc-softwhite);
}
strong, b { font-weight: 500; }

h1, h2, h3, h4,
.wp-block-heading {
  font-family: var(--dfc-font-heading);
  font-weight: 700;
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: 0.005em;
  color: inherit;
}
h1 { font-size: clamp(2.75rem, 7vw, 5.5rem); }
h2 { font-size: clamp(2.25rem, 5vw, 3.75rem); }
h3 { font-size: clamp(1.5rem, 2.5vw, 2rem); }

a { color: var(--dfc-violet); text-underline-offset: 3px; }
a:hover { color: var(--dfc-violet-deep); }
:focus-visible { outline: 3px solid var(--dfc-violet); outline-offset: 2px; }

/* ---------- 4. Layout ---------- */
.dfc-container {
  max-width: var(--dfc-container);
  margin-inline: auto;
  padding-inline: var(--dfc-gutter);
}
.dfc-section { padding-block: var(--dfc-section-y); }

/* Sektionsrhythmus: hell abwechselnd Soft White / Weiß, dunkle Anker */
.dfc-section--soft  { background: var(--dfc-softwhite); color: var(--dfc-anthracite); }
.dfc-section--white { background: var(--dfc-white);     color: var(--dfc-anthracite); }
.dfc-section--dark  { background: var(--dfc-anthracite); color: var(--dfc-white); }
.dfc-section--dark-2{ background: var(--dfc-anthracite-2); color: var(--dfc-white); }
.dfc-section--violet{ background: var(--dfc-violet);    color: var(--dfc-white); }

.dfc-section--dark p,
.dfc-section--dark-2 p { color: var(--dfc-on-dark-muted); }

.dfc-grid { display: grid; gap: 1.5rem; }
@media (min-width: 768px) {
  .dfc-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dfc-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .dfc-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------- 5. Sektionskopf (01–03 nur Startseite) ---------- */
.dfc-overline,
.dfc-section-head__label {
  font-family: var(--dfc-font-heading);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dfc-violet);
}
.dfc-section-head { display: flex; align-items: baseline; gap: 0.75rem; margin-bottom: 1rem; }
.dfc-section-head__num,
.dfc-section-head .dfc-section-head__label {
  font-family: var(--dfc-font-heading);
  font-weight: 700;
  font-size: 1.25rem;          /* Zahl und Label gleich groß */
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dfc-violet);
}
.dfc-detail-label {
  font-family: var(--dfc-font-heading);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dfc-violet);
}
/* Kontrast: Akzenttexte auf dunklen Flächen als Lavendel (WCAG) */
:is(.dfc-section--dark, .dfc-section--dark-2, .dfc-hero)
  :is(.dfc-overline, .dfc-section-head__num, .dfc-section-head__label, .dfc-detail-label, .dfc-accent) {
  color: var(--dfc-lavender);
}

/* ---------- 6. Buttons ---------- */
.dfc-btn,
.wp-block-button.is-style-dfc-primary .wp-block-button__link {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 48px;
  padding: 0.85rem 1.75rem;
  font-family: var(--dfc-font-heading);
  font-weight: 700; font-size: 1.05rem;
  letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--dfc-radius);
  border: 2px solid var(--dfc-violet);
  background: var(--dfc-violet);
  color: var(--dfc-white);
  transition: background-color .2s, color .2s, border-color .2s;
}
/* Variante A: Hover = weiße Fläche, dunkle Schrift (wie im Hero) */
.dfc-btn:hover,
.wp-block-button.is-style-dfc-primary .wp-block-button__link:hover {
  background: var(--dfc-white);
  border-color: var(--dfc-white);
  color: var(--dfc-anthracite);
}
/* Auf hellen Flächen bleibt der Hover sichtbar */
:is(.dfc-section--soft, .dfc-section--white) .dfc-btn:hover {
  background: var(--dfc-violet-deep);
  border-color: var(--dfc-violet-deep);
  color: var(--dfc-white);
}
.dfc-btn--outline { background: transparent; color: var(--dfc-white); border-color: var(--dfc-white); }
.dfc-btn--outline:hover { background: var(--dfc-white); color: var(--dfc-anthracite); }
:is(.dfc-section--soft, .dfc-section--white) .dfc-btn--outline {
  color: var(--dfc-anthracite); border-color: var(--dfc-anthracite);
}
:is(.dfc-section--soft, .dfc-section--white) .dfc-btn--outline:hover {
  background: var(--dfc-anthracite); color: var(--dfc-white);
}

/* ---------- 7. Hero ---------- */
.dfc-hero {
  position: relative;
  background: var(--dfc-anthracite);
  color: var(--dfc-white);
  padding-block: clamp(5rem, 12vw, 9rem);
  overflow: hidden;
}
.dfc-hero p { color: var(--dfc-on-dark-muted); max-width: 40rem; }
.dfc-hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.dfc-text-outline { color: transparent; -webkit-text-stroke: 2px var(--dfc-white); }

/* ---------- 8. Karten ---------- */
.dfc-card {
  background: var(--dfc-white);
  border: 1px solid var(--dfc-steel);
  border-radius: var(--dfc-radius);
  padding: 1.75rem;
  display: flex; flex-direction: column; height: 100%;
}
.dfc-section--white .dfc-card { border-color: var(--dfc-steel); } /* Aktuelles: weiße Kacheln + feine Kontur */
.dfc-section--dark .dfc-card { background: var(--dfc-anthracite-2); border-color: transparent; color: var(--dfc-white); }
.dfc-corner-mark { position: relative; }
.dfc-corner-mark::before {
  content: ""; position: absolute; top: 0; left: 0; width: 2.5rem; height: 2.5rem;
  border-top: 4px solid var(--dfc-violet); border-left: 4px solid var(--dfc-violet); z-index: 2;
}

/* Faktenkacheln „Wissenschaftlich belegt“ – Quelle immer am Kartenfuß */
.dfc-fact__value {
  font-family: var(--dfc-font-heading); font-weight: 700;
  font-size: clamp(2.5rem, 5vw, 3.5rem); line-height: 1; color: var(--dfc-violet);
}
.dfc-fact__source {
  margin-top: auto; padding-top: 1rem;
  border-top: 1px solid var(--dfc-steel);
  font-size: 0.85rem; color: var(--dfc-muted-text);
}

/* ---------- 9. Trainingsplan: Zielgruppen-Badges ---------- */
.dfc-session {
  background: var(--dfc-white);
  border: 1px solid var(--dfc-steel);
  border-left: 6px solid var(--dfc-steel);
  border-radius: var(--dfc-radius);
  padding: 1rem 1.25rem;
}
.dfc-session--kids    { border-left-color: var(--dfc-lavender); }
.dfc-session--youth   { border-left-color: var(--dfc-anthracite); }
.dfc-session--fitness { border-left-color: var(--dfc-violet); }

.dfc-badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-family: var(--dfc-font-heading);
  font-weight: 700; font-size: 0.85rem;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.dfc-badge--kids    { background: var(--dfc-lavender-soft); color: var(--dfc-violet-deep); }
.dfc-badge--youth   { background: var(--dfc-anthracite);    color: var(--dfc-white); }
.dfc-badge--fitness { background: var(--dfc-violet);        color: var(--dfc-white); }

/* Akkordeon (details/summary) – ohne JavaScript */
.dfc-accordion details { border-bottom: 1px solid var(--dfc-steel); }
.dfc-accordion summary {
  cursor: pointer; list-style: none; padding: 1rem 0;
  font-family: var(--dfc-font-heading); font-weight: 700; font-size: 1.25rem; text-transform: uppercase;
}
.dfc-accordion summary::-webkit-details-marker { display: none; }

/* ---------- 10. Trainerprofil (asymmetrisch) ---------- */
.dfc-trainer { display: grid; gap: 2rem; }
@media (min-width: 1024px) {
  .dfc-trainer { grid-template-columns: 7fr 5fr; align-items: start; }
  .dfc-trainer__offset { margin-top: 4rem; }
}
.dfc-trainer__img img { width: 100%; height: auto; object-fit: cover; display: block; }
.dfc-trainer__facts dt {
  font-family: var(--dfc-font-heading); font-weight: 700; font-size: 1rem;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--dfc-violet);
}
.dfc-trainer__facts dd { margin: 0 0 1rem; }

/* Platzhalter für noch fehlende Bilder/Daten */
.dfc-placeholder {
  background-color: var(--dfc-anthracite-2);
  background-image: repeating-linear-gradient(135deg, rgba(220,217,227,.08) 0 12px, transparent 12px 24px);
  color: var(--dfc-on-dark-muted);
  display: grid; place-items: center; min-height: 240px; text-align: center; padding: 1rem;
  font-family: var(--dfc-font-heading); text-transform: uppercase; letter-spacing: .1em;
}

/* ---------- 11. Formular-Vorschau ---------- */
.dfc-form label { display: block; font-weight: 500; margin-bottom: .35rem; }
.dfc-form input, .dfc-form select, .dfc-form textarea {
  width: 100%; min-height: 48px; padding: .75rem 1rem;
  border: 1px solid var(--dfc-steel); border-radius: var(--dfc-radius);
  background: var(--dfc-white); font: inherit; color: var(--dfc-anthracite);
}
.dfc-form input:focus, .dfc-form textarea:focus, .dfc-form select:focus {
  outline: 2px solid var(--dfc-violet); outline-offset: 1px; border-color: var(--dfc-violet);
}

/* ---------- 12. Social-Icons (Instagram/TikTok) ---------- */
.dfc-social { display: flex; gap: .75rem; }
.dfc-social a {
  display: inline-grid; place-items: center; width: 44px; height: 44px;
  border-radius: 999px; border: 1px solid rgba(255,255,255,.35); color: var(--dfc-white);
}
.dfc-social a:hover { background: var(--dfc-violet); border-color: var(--dfc-violet); color: var(--dfc-white); }

/* ---------- 13. Footer ---------- */
.dfc-footer { background: var(--dfc-anthracite); color: var(--dfc-on-dark-muted); padding-block: 4rem 2rem; }
.dfc-footer a { color: var(--dfc-white); text-decoration: none; }
.dfc-footer a:hover { color: var(--dfc-lavender); }
.dfc-footer .dfc-detail-label { color: var(--dfc-lavender); }

/* ---------- 14. Barrierearm: weniger Bewegung ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
