/*
Theme Name: TC 77 Seppenrade
Theme URI: https://www.tc-77-seppenrade.de
Author: PEPE Media
Description: Modernes, sportlich-familiäres WordPress-Theme für den Tennisclub TC 77 Seppenrade e.V. Vereinsfarben Rot/Gold, frisch interpretiert. Enthält Startseite sowie Vorlagen für Verein, Galerie, Termine und Kontakt.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tc77
*/

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  --primary: #c0392e;
  --primary-dark: #98271f;
  --accent: #e0a92e;
  --accent-dark: #c8901c;
  --ink: #231512;
  --ink-soft: #4a3a34;
  --muted: #6b5750;
  --muted-2: #8a746b;
  --bg: #faf5ee;
  --bg-tint: #f7ece1;
  --border: #ece2d6;
  --border-2: #e6d8c8;
  --hatch-a: #eee2d5;
  --hatch-b: #f5ede2;
  --dark: #231512;
  --dark-2: #2f1c17;
  --dark-border: #402a22;
  --wrap: 1240px;
  --radius: 22px;
  --font-head: 'Archivo', system-ui, sans-serif;
  --font-body: 'Public Sans', system-ui, sans-serif;
}

/* ============================================================
   RESET / BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }
::selection { background: var(--accent); color: var(--ink); }
h1, h2, h3, h4 { font-family: var(--font-head); letter-spacing: -0.02em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: 28px; padding-right: 28px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 16px;
  padding: 15px 28px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.btn-sm { font-size: 14.5px; padding: 11px 20px; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 8px 22px rgba(192,57,46,.3); }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-accent { background: var(--accent); color: var(--ink); box-shadow: 0 10px 26px rgba(0,0,0,.18); }
.btn-accent:hover { background: var(--accent-dark); color: var(--ink); }
.btn-outline { background: #fff; color: var(--ink); border-color: var(--border-2); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn-ghost:hover { background: rgba(255,255,255,.1); color: #fff; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250,245,238,.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  padding-top: 14px; padding-bottom: 14px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.brand img { height: 48px; width: auto; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--font-head); font-weight: 900; font-size: 20px; }
.brand-sub { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted-2); margin-top: 3px; }
.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav ul { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.main-nav a { font-size: 14.5px; font-weight: 600; color: var(--ink-soft); }
.main-nav a:hover, .main-nav .current-menu-item > a { color: var(--primary); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: .2s; }

/* ============================================================
   HERO
   ============================================================ */
.hero { max-width: var(--wrap); margin: 0 auto; padding: 64px 28px 40px; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.eyebrow-pill { display: inline-flex; align-items: center; gap: 9px; padding: 7px 14px; border-radius: 999px; background: var(--bg-tint); border: 1px solid var(--border-2); margin-bottom: 22px; }
.eyebrow-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); }
.eyebrow-pill span { font-size: 12.5px; font-weight: 700; letter-spacing: .06em; color: var(--primary); }
.hero h1 { font-weight: 900; font-size: 66px; line-height: .98; letter-spacing: -.03em; margin: 0 0 22px; text-wrap: balance; }
.hero h1 .accent-word { color: var(--primary); }
.hero p { font-size: 19px; line-height: 1.55; color: var(--ink-soft); max-width: 460px; margin: 0 0 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-media { position: relative; }
.media-frame {
  position: relative; border-radius: 26px; overflow: hidden;
  background: repeating-linear-gradient(45deg, var(--hatch-a), var(--hatch-a) 14px, var(--hatch-b) 14px, var(--hatch-b) 28px);
  box-shadow: 0 24px 60px rgba(35,21,18,.14);
  display: flex; align-items: flex-end; justify-content: center;
}
.media-frame.ratio-45 { aspect-ratio: 4/5; }
.media-frame.ratio-54 { aspect-ratio: 5/4; }
.media-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.media-note { font-family: ui-monospace, monospace; font-size: 12.5px; color: var(--muted); background: rgba(255,255,255,.72); padding: 6px 12px; border-radius: 8px; margin-bottom: 22px; }
.hero-badge { position: absolute; top: -22px; right: -18px; width: 96px; height: 96px; border-radius: 50%; background: var(--accent); box-shadow: 0 12px 30px rgba(192,57,46,.25); display: flex; align-items: center; justify-content: center; }
.hero-badge span { font-family: var(--font-head); font-weight: 900; font-size: 26px; color: var(--primary); transform: rotate(-8deg); }
.hero-float { position: absolute; bottom: -26px; left: -26px; background: var(--dark); color: #fff; padding: 18px 22px; border-radius: 18px; box-shadow: 0 16px 40px rgba(35,21,18,.3); }
.hero-float .big { font-family: var(--font-head); font-weight: 900; font-size: 30px; line-height: 1; }
.hero-float .lbl { font-size: 12.5px; color: #c2a07f; letter-spacing: .04em; margin-top: 4px; }

/* ============================================================
   STATS STRIP
   ============================================================ */
.stats-wrap { max-width: var(--wrap); margin: 36px auto 0; padding: 0 28px; }
.stats { background: var(--primary); border-radius: var(--radius); padding: 30px 20px; display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.stat { text-align: center; color: #fff; }
.stat .num { font-family: var(--font-head); font-weight: 900; font-size: 40px; line-height: 1; }
.stat .lbl { font-size: 13px; color: #eddac2; margin-top: 8px; letter-spacing: .03em; }

/* ============================================================
   SECTION HELPERS
   ============================================================ */
.section { max-width: var(--wrap); margin: 0 auto; padding: 80px 28px 40px; }
.section-split { display: grid; gap: 56px; align-items: center; }
.split-9-11 { grid-template-columns: .9fr 1.1fr; }
.split-85-115 { grid-template-columns: .85fr 1.15fr; }
.kicker { font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--primary); }
.section-title { font-weight: 900; font-size: 44px; line-height: 1.05; margin: 14px 0 0; }
.section-head-center { text-align: center; margin-bottom: 40px; }
.lead { font-size: 17px; line-height: 1.6; color: var(--ink-soft); }
.perks { list-style: none; padding: 0; margin: 0 0 26px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.perks li { display: flex; align-items: center; gap: 10px; font-size: 15.5px; font-weight: 600; color: var(--ink-soft); }
.perks .check { width: 22px; height: 22px; border-radius: 50%; background: var(--bg-tint); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 900; flex-shrink: 0; }

/* ============================================================
   TERMINE (events)
   ============================================================ */
.events-section { background: var(--dark); margin-top: 60px; }
.events-section .inner { max-width: var(--wrap); margin: 0 auto; padding: 76px 28px; }
.events-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.events-head .kicker { color: var(--accent); }
.events-head h2 { font-weight: 900; font-size: 44px; line-height: 1; margin: 14px 0 0; color: #fff; }
.link-pill { font-weight: 700; font-size: 15px; color: var(--accent); padding: 12px 22px; border-radius: 999px; border: 1px solid rgba(224,169,46,.4); }
.link-pill:hover { background: rgba(224,169,46,.1); color: var(--accent); }
.events-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.event-card { background: var(--dark-2); border: 1px solid var(--dark-border); border-radius: 18px; padding: 24px; display: flex; flex-direction: column; min-height: 210px; }
.event-date { display: flex; align-items: baseline; gap: 10px; margin-bottom: auto; }
.event-date .d { font-family: var(--font-head); font-weight: 900; font-size: 44px; line-height: 1; color: var(--accent); }
.event-date .m { font-size: 14px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #c2a07f; }
.event-card h3 { font-weight: 800; font-size: 20px; line-height: 1.15; margin: 20px 0 8px; color: #fff; }
.event-card p { font-size: 14px; line-height: 1.45; color: #c8b0a2; margin: 0; }

/* ============================================================
   GALERIE
   ============================================================ */
.gallery-grid { display: grid; grid-template-columns: repeat(4,1fr); grid-auto-rows: 180px; gap: 16px; }
.gallery-cell {
  border-radius: 18px; overflow: hidden;
  background: repeating-linear-gradient(45deg, var(--hatch-a), var(--hatch-a) 12px, var(--hatch-b) 12px, var(--hatch-b) 24px);
  display: flex; align-items: flex-end; justify-content: center;
  box-shadow: 0 10px 26px rgba(35,21,18,.08); position: relative;
}
.gallery-cell img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gallery-cell .media-note { font-size: 11.5px; padding: 5px 10px; margin-bottom: 14px; }

/* ============================================================
   MITGLIED CTA
   ============================================================ */
.cta-band { max-width: var(--wrap); margin: 60px auto; padding: 0 28px; }
.cta-inner { position: relative; overflow: hidden; border-radius: 28px; background: var(--primary); padding: 64px 56px; }
.cta-inner .blob-a { position: absolute; top: -60px; right: -40px; width: 260px; height: 260px; border-radius: 50%; background: rgba(224,169,46,.16); }
.cta-inner .blob-b { position: absolute; bottom: -90px; left: 30%; width: 200px; height: 200px; border-radius: 50%; background: rgba(255,255,255,.06); }
.cta-content { position: relative; max-width: 620px; }
.cta-content h2 { font-weight: 900; font-size: 46px; line-height: 1.02; color: #fff; margin: 0 0 18px; }
.cta-content p { font-size: 18px; line-height: 1.55; color: #f2e5d4; margin: 0 0 30px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ============================================================
   KONTAKT
   ============================================================ */
.contact-section { max-width: var(--wrap); margin: 0 auto; padding: 20px 28px 80px; display: grid; grid-template-columns: .85fr 1.15fr; gap: 48px; align-items: stretch; }
.contact-list { display: flex; flex-direction: column; gap: 22px; }
.contact-item { display: flex; gap: 14px; align-items: flex-start; }
.contact-item .ic { width: 38px; height: 38px; border-radius: 10px; background: var(--bg-tint); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.contact-item .k { font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; }
.contact-item .v { font-size: 16px; font-weight: 600; color: var(--ink); line-height: 1.4; white-space: pre-line; }
.map-frame {
  border-radius: var(--radius); overflow: hidden; min-height: 340px;
  background: repeating-linear-gradient(45deg, var(--hatch-a), var(--hatch-a) 16px, var(--hatch-b) 16px, var(--hatch-b) 32px);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 16px 40px rgba(35,21,18,.1);
}
.map-frame iframe { width: 100%; height: 100%; min-height: 340px; border: 0; }

/* ============================================================
   PAGE HERO (subpages) + CONTENT
   ============================================================ */
.page-hero { background: var(--dark); color: #fff; }
.page-hero .inner { max-width: var(--wrap); margin: 0 auto; padding: 64px 28px; }
.page-hero .kicker { color: var(--accent); }
.page-hero h1 { font-weight: 900; font-size: 54px; line-height: 1; margin: 14px 0 0; color: #fff; }
.page-hero p { font-size: 18px; color: #d8c3b6; max-width: 620px; margin: 16px 0 0; }
.breadcrumb { font-size: 13px; color: #c2a07f; margin-bottom: 10px; }
.breadcrumb a { color: #c2a07f; }
.breadcrumb a:hover { color: var(--accent); }

.entry { max-width: 820px; margin: 0 auto; padding: 64px 28px; }
.entry h2 { font-size: 32px; margin: 40px 0 16px; }
.entry h3 { font-size: 23px; margin: 30px 0 12px; }
.entry p { font-size: 17px; color: var(--ink-soft); margin: 0 0 18px; }
.entry ul, .entry ol { font-size: 17px; color: var(--ink-soft); padding-left: 22px; margin: 0 0 18px; }
.entry li { margin-bottom: 8px; }
.entry img { border-radius: var(--radius); }
.entry blockquote { border-left: 4px solid var(--primary); margin: 24px 0; padding: 4px 0 4px 20px; font-size: 19px; color: var(--ink); font-style: italic; }

/* Info cards used on subpages */
.card-grid { display: grid; gap: 20px; }
.cols-2 { grid-template-columns: repeat(2,1fr); }
.cols-3 { grid-template-columns: repeat(3,1fr); }
.info-card { background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 28px; }
.info-card h3 { font-size: 20px; margin: 0 0 8px; }
.info-card p { font-size: 15px; color: var(--ink-soft); margin: 0; }
.info-card .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--bg-tint); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 20px; margin-bottom: 16px; }

/* Team / board list */
.team-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.team-card { text-align: center; }
.team-photo { aspect-ratio: 1; border-radius: 18px; overflow: hidden; background: repeating-linear-gradient(45deg, var(--hatch-a), var(--hatch-a) 12px, var(--hatch-b) 12px, var(--hatch-b) 24px); display: flex; align-items: flex-end; justify-content: center; margin-bottom: 14px; position: relative; }
.team-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.team-card .name { font-family: var(--font-head); font-weight: 800; font-size: 18px; }
.team-card .role { font-size: 14px; color: var(--muted); margin-top: 2px; }

/* Contact form */
.contact-form { display: grid; gap: 16px; }
.contact-form label { font-size: 13px; font-weight: 700; letter-spacing: .04em; color: var(--ink-soft); display: block; margin-bottom: 6px; }
.contact-form input, .contact-form textarea {
  width: 100%; font-family: var(--font-body); font-size: 16px; padding: 13px 16px;
  border: 1px solid var(--border-2); border-radius: 12px; background: #fff; color: var(--ink);
}
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--primary); border-color: var(--primary); }
.contact-form .row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* Events full list (page-termine) */
.event-row { display: flex; gap: 20px; align-items: center; background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 20px 24px; margin-bottom: 14px; }
.event-row .datebox { flex-shrink: 0; width: 76px; text-align: center; background: var(--bg-tint); border-radius: 14px; padding: 12px 0; }
.event-row .datebox .d { font-family: var(--font-head); font-weight: 900; font-size: 30px; line-height: 1; color: var(--primary); }
.event-row .datebox .m { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.event-row .info h3 { font-size: 20px; margin: 0 0 4px; }
.event-row .info p { font-size: 14.5px; color: var(--muted); margin: 0; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--dark); color: #ccb8ac; }
.site-footer .top { max-width: var(--wrap); margin: 0 auto; padding: 50px 28px; display: flex; flex-wrap: wrap; gap: 32px; align-items: center; justify-content: space-between; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { height: 46px; width: auto; background: #fff; border-radius: 8px; padding: 3px; display: block; }
.footer-brand .name { font-family: var(--font-head); font-weight: 900; font-size: 18px; color: #fff; line-height: 1.2; }
.footer-brand .sub { font-size: 13px; color: #c2a07f; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 22px; list-style: none; margin: 0; padding: 0; }
.footer-nav a { font-size: 14px; color: #ccb8ac; }
.footer-nav a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid var(--dark-border); }
.footer-bottom .inner { max-width: var(--wrap); margin: 0 auto; padding: 18px 28px; font-size: 13px; color: #a08a7e; }

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Kein horizontales Scrollen durch versetzte Hero-Elemente o. Ä. */
html, body { overflow-x: hidden; }

/* ---- Tablet & kleiner (≤ 1024px) ---- */
@media (max-width: 1024px) {
  :root { --wrap: 100%; }
  .hero, .section-split, .contact-section {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  /* Bild im Hero unter den Text */
  .hero .hero-media { order: 2; max-width: 520px; }
  .section-split .hero-media { max-width: 560px; }
  .hero h1 { font-size: 52px; }
  .stats { grid-template-columns: repeat(2,1fr); row-gap: 24px; }
  .events-grid { grid-template-columns: repeat(2,1fr); }
  .cols-3, .team-grid { grid-template-columns: repeat(2,1fr); }
  .cta-inner { padding: 48px 36px; }
  .page-hero .inner { padding: 52px 28px; }
  .page-hero h1 { font-size: 44px; }
}

/* ---- Großes Handy / kleines Tablet (≤ 720px) ---- */
@media (max-width: 720px) {
  /* Navigation als Burger-Menü */
  .main-nav { display: none; }
  .main-nav.open {
    display: block; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--border);
    padding: 16px 28px; box-shadow: 0 16px 30px rgba(35,21,18,.12);
  }
  .main-nav.open ul { flex-direction: column; align-items: flex-start; gap: 16px; }
  .nav-toggle { display: block; order: 3; }
  .site-header .wrap { gap: 14px; }
  /* CTA im Header auf sehr kleinen Screens ausblenden (steht im Menü + Seiten) */
  .site-header .btn-primary { display: none; }

  .hero { padding: 40px 28px 24px; }
  .hero h1 { font-size: 40px; }
  .hero p, .lead { font-size: 16px; }
  .hero-actions .btn, .cta-actions .btn { flex: 1 1 auto; text-align: center; }
  /* Versetzte Deko-Elemente einrücken, damit nichts überläuft */
  .hero-badge { width: 76px; height: 76px; top: -16px; right: 0; }
  .hero-badge span { font-size: 22px; }
  .hero-float { left: 0; bottom: -18px; padding: 14px 18px; }

  .section-title, .events-head h2, .cta-content h2 { font-size: 30px; }
  .page-hero h1 { font-size: 34px; }

  .stats, .events-grid, .cols-3, .cols-2, .team-grid { grid-template-columns: 1fr; }
  .perks, .contact-form .row-2 { grid-template-columns: 1fr; }

  /* Galerie: versetzte Kacheln aufheben, gleichmäßiges 2-Spalten-Raster */
  .gallery-grid {
    grid-template-columns: repeat(2,1fr);
    grid-auto-rows: 150px;
  }
  .gallery-grid .gallery-cell {
    grid-column: auto !important;
    grid-row: auto !important;
  }

  .events-head { flex-direction: column; align-items: flex-start; }
  .section { padding: 44px 28px 20px; }
  .events-section .inner { padding: 56px 28px; }
  .cta-inner { padding: 40px 26px; }
  .cta-content h2 { font-size: 30px; }
  .entry { padding: 44px 28px; }

  /* Fußzeile untereinander */
  .site-footer .top { flex-direction: column; align-items: flex-start; gap: 24px; }
}

/* ---- Kleines Handy (≤ 460px) ---- */
@media (max-width: 460px) {
  .hero h1 { font-size: 34px; }
  .section-title, .events-head h2, .cta-content h2, .page-hero h1 { font-size: 27px; }
  .stat .num { font-size: 34px; }
  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 200px; }
  .hero-actions, .cta-actions { flex-direction: column; }
  .hero-actions .btn, .cta-actions .btn { width: 100%; }
  /* Termin-Zeile: Datum über Text */
  .event-row { flex-direction: column; align-items: flex-start; gap: 14px; padding: 18px 20px; }
  .event-row .datebox { width: auto; padding: 8px 16px; display: inline-flex; gap: 8px; align-items: baseline; }
  .event-row .datebox .m { margin-top: 0; }
  .contact-item .v { font-size: 15px; }
  .entry h2 { font-size: 26px; }
}
