/*
Theme Name: CrossFit Andelfingen
Theme URI: https://www.crossfit-andelfingen.com/
Author: CrossFit Andelfingen
Description: Schlankes Theme für die Website von CrossFit Andelfingen. Blau, Schwarz, Weiss, lokal eingebundene Schrift (Poppins), Anfrageformular für das Gratis Probetraining und strukturierte Daten.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cfa
*/

/* Schrift (lokal, keine Verbindung zu Google) */
@font-face { font-family: "Poppins"; font-weight: 400; font-style: normal; font-display: swap; src: url("assets/fonts/poppins-400.woff") format("woff"); }
@font-face { font-family: "Poppins"; font-weight: 500; font-style: normal; font-display: swap; src: url("assets/fonts/poppins-500.woff") format("woff"); }
@font-face { font-family: "Poppins"; font-weight: 700; font-style: normal; font-display: swap; src: url("assets/fonts/poppins-700.woff") format("woff"); }

:root {
  --blue: #005aab;
  --black: #111111;
  --white: #ffffff;
  --grey: #f2f2f2;
  --note: #fff3b0;
  --max: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 16px; }
body { margin: 0; font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Arial, sans-serif; font-size: 17px; line-height: 1.6; color: var(--black); background: var(--white); -webkit-text-size-adjust: 100%; }
img { max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; margin: 0; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }

:focus-visible { outline: 3px solid var(--black); outline-offset: 3px; }
.section--blue :focus-visible { outline-color: var(--white); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--black); color: var(--white); padding: 12px 16px; z-index: 100; }
.skip-link:focus { left: 8px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.wrap--narrow { max-width: 900px; }
.section { padding: 96px 0; }
.section--grey { background: var(--grey); }
.section--blue { background: var(--blue); color: var(--white); }
.section h2, .entry h1 { font-weight: 700; font-size: clamp(30px, 5vw, 52px); text-transform: uppercase; margin-bottom: 32px; }
.intro { max-width: 760px; font-size: 18px; margin: -16px 0 40px; }
.intro a, .faq-item a { font-weight: 500; text-decoration: underline; }
.cta { margin-top: 40px; }

/* Hintergrundbilder (verblasste Graustufen, laufen ins Weisse aus) */
.bg-hero { background: #fff url("assets/img/bg-hero.jpg") center / cover no-repeat; }
.bg-preise { background: #fff url("assets/img/bg-preise.jpg") center / cover no-repeat; }
.bg-anfahrt { background: #fff url("assets/img/bg-anfahrt.jpg") center / cover no-repeat; }

/* Buttons */
.btn { display: inline-block; background: var(--blue); color: var(--white); font: inherit; font-weight: 700; font-size: 18px; padding: 14px 32px; min-height: 48px; border: 2px solid var(--blue); text-decoration: none; cursor: pointer; text-align: center; }
.btn:hover { opacity: .88; }
.btn--ghost { background: var(--white); color: var(--black); border-color: var(--black); }
.btn--small { font-size: 15px; padding: 10px 20px; min-height: 44px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; }

/* Kopfbereich */
.site-header { background: var(--white); border-bottom: 4px solid var(--blue); padding: 12px 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand img { height: 56px; width: auto; display: block; }
.brand-name { font-weight: 700; font-size: 18px; letter-spacing: .04em; text-transform: uppercase; }
.main-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 24px; font-size: 15px; }
.nav-list { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 24px; }
.nav-list a { text-decoration: none; display: inline-block; padding: 12px 0; }
.nav-list a:hover { text-decoration: underline; }

/* Titelbereich */
.hero { color: var(--black); }
.hero-inner { padding-top: 80px; padding-bottom: 112px; display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }
.eyebrow { font-size: 15px; letter-spacing: .16em; text-transform: uppercase; }
.hero-title { font-weight: 700; font-size: clamp(40px, 8vw, 96px); text-transform: uppercase; line-height: 1.05; }
.mark { display: inline-block; background: var(--blue); color: var(--white); padding: 0 20px; transform: skewX(-8deg); }
.mark > span { display: inline-block; transform: skewX(8deg); }
.lead { max-width: 640px; font-size: 20px; }
.bullets { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 32px; font-weight: 500; margin-top: 8px; }

.photos { margin-top: -48px; position: relative; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.photo-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; filter: grayscale(1); }

/* Karten */
.quote { max-width: 760px; font-size: 22px; font-weight: 500; line-height: 1.4; margin: -16px 0 40px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.card { border: 3px solid var(--black); padding: 32px; display: flex; flex-direction: column; gap: 12px; }
.card--white { background: var(--white); }
.card h3 { font-size: 24px; font-weight: 700; }
.card-link { font-weight: 500; padding: 12px 0; margin-top: auto; }
.card.is-draft { border-style: dashed; }
.note { align-self: flex-start; display: inline-block; background: var(--note); color: var(--black); font-size: 13px; font-weight: 500; padding: 2px 8px; line-height: 1.5; }
.card blockquote { margin: 0; font-size: 18px; }
.card figcaption { font-weight: 500; }

/* Probetraining */
.trial { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 48px; }
.section--blue h2 { margin-bottom: 32px; }
.steps { list-style: none; display: flex; flex-direction: column; gap: 24px; }
.steps li { display: flex; gap: 16px; font-size: 18px; }
.step-no { font-weight: 700; font-size: 40px; line-height: 1; min-width: 32px; }
.bring { margin-top: 32px; border: 3px solid var(--white); padding: 24px; }
.bring h3 { font-size: 20px; margin-bottom: 12px; }
.form { background: var(--white); color: var(--black); padding: 32px; display: flex; flex-direction: column; gap: 20px; align-self: start; }
.form h3 { font-size: 24px; font-weight: 700; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 15px; font-weight: 500; }
.field input, .field textarea { width: 100%; min-height: 48px; padding: 12px; font: inherit; font-size: 16px; border: 2px solid var(--black); background: var(--white); color: var(--black); border-radius: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.fineprint { font-size: 14px; line-height: 1.5; }
.msg { padding: 12px 16px; font-weight: 500; }
.msg--ok { background: #d9efdc; }
.msg--err { background: #fde2e1; }

/* Trainingszeiten */
.table-wrap { overflow-x: auto; }
.schedule { border-collapse: collapse; width: 100%; min-width: 480px; font-size: 17px; text-align: left; }
.schedule thead tr { background: var(--black); color: var(--white); }
.schedule th, .schedule td { padding: 14px 16px; text-align: left; }
.schedule tbody tr { border-bottom: 2px solid #e6e6e6; }
.schedule tbody th { font-weight: 700; }
.schedule-note { margin-top: 16px; }
.app-box { margin-top: 40px; background: var(--grey); padding: 32px; }
.app-box h3 { font-size: 22px; margin-bottom: 12px; }
.app-box p { max-width: 720px; }

/* Preise */
.prices { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.price { border: 3px solid var(--black); background: var(--white); padding: 24px; }
.price-term { font-weight: 700; font-size: 22px; margin-bottom: 8px; }
.perks-title { font-size: 22px; margin: 48px 0 16px; }
.perks { padding-left: 22px; font-size: 18px; line-height: 1.8; }

/* Team */
.person { display: flex; flex-direction: column; gap: 12px; }
.person img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; filter: grayscale(1); }
.person h3 { font-size: 24px; font-weight: 700; }
.role { font-weight: 500; font-size: 16px; }
.person--more { background: var(--grey); padding: 24px; justify-content: center; }
.person--more h3 { font-size: 22px; }

/* FAQ */
.faq-item { border-bottom: 2px solid var(--black); }
.faq-item summary { cursor: pointer; font-weight: 500; font-size: 19px; padding: 16px 0; min-height: 44px; }
.faq-item p { margin-bottom: 16px; }

/* Begriffe */
.terms { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px 32px; }
.terms dt { font-weight: 700; }
.terms dd { margin: 4px 0 0; }

/* Anfahrt */
.location { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 48px; align-items: center; }
.location address { font-style: normal; font-size: 18px; line-height: 1.6; margin-bottom: 24px; }
.entrance { margin-bottom: 24px; }
.location-logo { display: flex; align-items: center; justify-content: center; min-height: 280px; padding: 24px; }
.location-logo img { max-height: 320px; width: auto; }

/* Fusszeile */
.site-footer { border-top: 4px solid var(--blue); padding: 24px 0; font-size: 14px; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.footer-links { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-links a { display: inline-block; padding: 12px 0; }

/* Unterseiten */
.entry { max-width: 900px; }
.entry h1 { margin-bottom: 24px; }
.entry p, .entry ul, .entry ol { margin-bottom: 16px; }
.entry ul, .entry ol { padding-left: 24px; }

@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .hero-inner { padding-top: 48px; padding-bottom: 80px; }
  .card, .form { padding: 24px; }
  .btn { width: 100%; }
  .btn--small { width: auto; }
  .brand-name { font-size: 15px; }
}
