/*
Theme Name:  SV Oberwerrn
Theme URI:   https://sv-oberwerrn.de
Description: Modernes, schlichtes Design für den SV Oberwerrn e.V.
Author:      SV Oberwerrn
Version:     1.0.0
License:     GNU General Public License v2 or later
Text Domain: svo-theme
*/

/* ── Google Fonts werden via functions.php geladen ────── */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green:   #1a5c38;
  --green-l: #256b44;
  --gold:    #c8a84b;
  --gold-l:  #dfc170;
  --cream:   #f5f0e8;
  --white:   #fdfcfa;
  --dark:    #141414;
  --gray:    #5a5a5a;
  --gray-l:  #9a9a9a;
  --border:  #e2ddd5;
  --serif:   'DM Serif Display', Georgia, serif;
  --sans:    'DM Sans', system-ui, sans-serif;
  --radius:  6px;
  --shadow:  0 2px 16px rgba(0,0,0,.07);
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--white);
  color: var(--dark);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}

/* ── WordPress-spezifische Resets ─────────────────────── */
.wp-site-blocks, #page, #content, #primary, #main { all: unset; display: block; }
img { max-width: 100%; height: auto; }
a { color: inherit; }

/* ── NAVBAR ─────────────────────────────────────────────── */
#site-header, .site-header, header.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(253,252,250,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2rem; height: 68px;
}
.nav-logo {
  display: flex; align-items: center; gap: .75rem;
  text-decoration: none; color: var(--dark);
}
.nav-logo-img {
  width: 48px; height: 48px;
  object-fit: contain; flex-shrink: 0;
  transition: transform .2s;
}
.nav-logo:hover .nav-logo-img { transform: scale(1.05); }
.nav-logo-text { font-weight: 700; font-size: .95rem; letter-spacing: .01em; }
.nav-logo-text span { color: var(--green); }

/* WordPress-Menü anpassen */
#site-navigation ul,
.main-navigation ul,
.nav-links {
  display: flex; align-items: center; gap: .25rem;
  list-style: none; margin: 0; padding: 0;
}
#site-navigation ul li a,
.main-navigation ul li a,
.nav-links a {
  text-decoration: none; color: var(--gray);
  font-size: .875rem; font-weight: 500;
  padding: .4rem .75rem; border-radius: var(--radius);
  transition: color .2s, background .2s;
  display: block;
}
#site-navigation ul li a:hover,
.main-navigation ul li a:hover,
.nav-links a:hover {
  color: var(--green); background: rgba(26,92,56,.06);
}
/* Letzter Menüpunkt = CTA-Button */
#site-navigation ul li:last-child a,
.main-navigation ul li:last-child a {
  background: var(--green); color: var(--white) !important;
  padding: .45rem 1rem; border-radius: var(--radius);
}
#site-navigation ul li:last-child a:hover,
.main-navigation ul li:last-child a:hover {
  background: var(--green-l);
}

/* Mobile Nav – standardmäßig versteckt, nur per JS geöffnet */
.mobile-nav {
  display: none;
}

.nav-hamburger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  cursor: pointer; padding: .5rem; background: none; border: none;
  width: 40px; height: 40px; border-radius: var(--radius);
  transition: background .2s;
  flex-shrink: 0;
}
.nav-hamburger:hover { background: rgba(26,92,56,.06); }
.nav-hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--dark); border-radius: 2px;
  transition: transform .3s ease, opacity .2s ease, width .3s ease;
  transform-origin: center;
}
/* Animated X when open */
.nav-hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.is-open span:nth-child(2) { opacity: 0; width: 0; }
.nav-hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── HERO ─────────────────────────────────────────────────── */
.hero {
  background: var(--green);
  position: relative; overflow: hidden;
  padding: 6rem 2rem 5rem;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(200,168,75,.12), transparent),
    repeating-linear-gradient(
      45deg,
      rgba(255,255,255,.025) 0px, rgba(255,255,255,.025) 1px,
      transparent 1px, transparent 40px
    );
}
.hero-inner {
  max-width: 1200px; margin: 0 auto; position: relative;
  display: grid; grid-template-columns: 1fr auto;
  align-items: center; gap: 3rem;
}
.hero-eyebrow {
  font-size: .8rem; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 1.25rem;
}
.hero h1, .hero .hero-title {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  line-height: 1.1; color: var(--white);
  margin-bottom: 1.25rem;
}
.hero h1 em, .hero .hero-title em { color: var(--gold); font-style: normal; }
.hero p, .hero .hero-desc {
  font-size: 1.05rem; color: rgba(255,255,255,.75);
  max-width: 480px; margin-bottom: 2rem;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn-primary {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--gold); color: var(--dark);
  font-weight: 700; font-size: .9rem; text-decoration: none;
  padding: .75rem 1.5rem; border-radius: var(--radius);
  transition: background .2s, transform .15s;
}
.btn-primary:hover { background: var(--gold-l); transform: translateY(-1px); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(255,255,255,.12); color: var(--white);
  font-weight: 500; font-size: .9rem; text-decoration: none;
  padding: .75rem 1.5rem; border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.2);
  transition: background .2s;
}
.btn-ghost:hover { background: rgba(255,255,255,.2); }

.hero-stats {
  display: flex; flex-direction: column; gap: 1.5rem;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px; padding: 1.75rem 2rem;
  flex-shrink: 0;
}
.stat { text-align: center; }
.stat-num {
  display: block; font-family: var(--serif);
  font-size: 2rem; color: var(--gold); line-height: 1;
}
.stat-label { font-size: .78rem; color: rgba(255,255,255,.6); margin-top: .2rem; }

/* ── SECTION BASE ─────────────────────────────────────────── */
.svo-section { padding: 5rem 2rem; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-label {
  font-size: .78rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--green);
  margin-bottom: .75rem;
}
.section-title {
  font-family: var(--serif); font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  line-height: 1.15; color: var(--dark); margin-bottom: 1rem;
}
.section-sub { color: var(--gray); font-size: 1rem; max-width: 520px; }
.section-head { margin-bottom: 3rem; }

/* WordPress-Inhaltsbereich */
.entry-content h2 { font-family: var(--serif); font-size: 2rem; color: var(--dark); margin-bottom: 1rem; }
.entry-content h3 { font-family: var(--serif); font-size: 1.4rem; color: var(--dark); margin-bottom: .75rem; }
.entry-content p  { color: var(--gray); margin-bottom: 1rem; }

/* ── SPORTS GRID ─────────────────────────────────────────── */
#sportarten, .svo-section--cream { background: var(--cream); }
.sports-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}
.sport-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px; padding: 1.5rem;
  text-decoration: none; color: var(--dark);
  display: flex; flex-direction: column; gap: .75rem;
  transition: box-shadow .2s, transform .2s, border-color .2s;
}
.sport-card:hover {
  box-shadow: var(--shadow); transform: translateY(-2px);
  border-color: var(--green);
}
.sport-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: rgba(26,92,56,.08);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
}
.sport-card h3 { font-size: .95rem; font-weight: 600; }
.sport-card p  { font-size: .82rem; color: var(--gray-l); }
.sport-card .arrow { margin-top: auto; color: var(--green); font-size: .85rem; font-weight: 600; }

/* ── CALENDAR ─────────────────────────────────────────────── */
.calendar-layout {
  display: grid; grid-template-columns: 1fr 340px;
  gap: 2.5rem; align-items: start;
}
.cal-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.5rem; flex-wrap: wrap; gap: 1rem;
}
.cal-nav { display: flex; align-items: center; gap: .75rem; }
.cal-btn {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--border); background: var(--white);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  font-size: 1rem; color: var(--dark);
  transition: background .2s, border-color .2s;
}
.cal-btn:hover { background: var(--cream); border-color: var(--green); }
.cal-month-label { font-family: var(--serif); font-size: 1.2rem; }
#cal-filter {
  padding: .4rem .75rem; border-radius: var(--radius);
  border: 1px solid var(--border); font-family: var(--sans);
  font-size: .85rem; color: var(--dark); background: var(--white);
  cursor: pointer;
}
.cal-grid {
  display: grid; grid-template-columns: repeat(7, 1fr);
  gap: 2px; border-radius: 10px; overflow: hidden;
  border: 1px solid var(--border);
}
.cal-day-name {
  background: var(--cream); padding: .5rem;
  text-align: center; font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .07em; color: var(--gray);
}
.cal-cell {
  background: var(--white); min-height: 72px;
  padding: .4rem .5rem; position: relative;
  transition: background .15s;
}
.cal-cell:hover { background: var(--cream); }
.cal-cell.other-month { background: #faf9f7; }
.cal-cell.other-month .cal-num { color: #ccc; }
.cal-cell.today { background: rgba(26,92,56,.05); }
.cal-cell.today .cal-num {
  background: var(--green); color: var(--white);
  border-radius: 50%; width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
}
.cal-num { font-size: .8rem; font-weight: 600; margin-bottom: .25rem; }
.cal-dot {
  display: block; font-size: .68rem; line-height: 1.3;
  background: var(--green); color: var(--white);
  border-radius: 3px; padding: 0 .25rem;
  margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  cursor: pointer;
}
.cal-dot.sport-football  { background: #2a7a45; }
.cal-dot.sport-korbball  { background: #c8a84b; color: var(--dark); }
.cal-dot.sport-volleyball{ background: #1a6080; }
.cal-dot.sport-general   { background: #6a5acd; }

.events-sidebar h3 { font-family: var(--serif); font-size: 1.15rem; margin-bottom: 1.25rem; }
.event-item {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1rem 0; border-bottom: 1px solid var(--border);
}
.event-item:last-child { border-bottom: none; }
.event-date-box {
  flex-shrink: 0; width: 46px; text-align: center;
  background: var(--cream); border-radius: 8px; padding: .4rem .25rem;
}
.event-date-box .ed-day { font-family: var(--serif); font-size: 1.3rem; line-height: 1; color: var(--green); }
.event-date-box .ed-mon { font-size: .7rem; font-weight: 700; text-transform: uppercase; color: var(--gray); letter-spacing: .06em; }
.event-title { font-size: .9rem; font-weight: 600; margin-bottom: .15rem; }
.event-meta  { font-size: .78rem; color: var(--gray-l); }
.event-tag {
  display: inline-block; font-size: .7rem; font-weight: 600;
  padding: .1rem .45rem; border-radius: 20px; margin-top: .3rem;
  background: rgba(26,92,56,.1); color: var(--green);
}
.ical-box {
  margin-top: 2rem; background: var(--cream);
  border: 1px solid var(--border); border-radius: 10px;
  padding: 1.25rem 1.5rem;
}
.ical-box h4 { font-size: .9rem; font-weight: 700; margin-bottom: .4rem; }
.ical-box p  { font-size: .8rem; color: var(--gray); margin-bottom: .75rem; }
.ical-links  { display: flex; flex-direction: column; gap: .5rem; }
.ical-link {
  display: flex; align-items: center; gap: .5rem;
  font-size: .82rem; text-decoration: none; color: var(--green); font-weight: 500;
}
.ical-link:hover { text-decoration: underline; }

/* ── VORSTAND ─────────────────────────────────────────────── */
.board-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}
.board-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 10px; padding: 1.25rem 1.5rem;
}
.board-role { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--green); margin-bottom: .3rem; }
.board-name { font-weight: 600; font-size: .95rem; margin-bottom: .25rem; }
.board-dept { font-size: .82rem; color: var(--gray); margin-bottom: .6rem; }
.board-email {
  font-size: .8rem; color: var(--green); text-decoration: none;
  display: flex; align-items: center; gap: .35rem;
}
.board-email:hover { text-decoration: underline; }

/* ── GASTSTÄTTE ───────────────────────────────────────────── */
.gaststaette-card {
  background: var(--green); color: var(--white);
  border-radius: 16px; padding: 3rem;
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem;
  align-items: center;
}
.gaststaette-card h2 { font-family: var(--serif); font-size: 2rem; margin-bottom: 1rem; color: var(--white); }
.gaststaette-card p  { color: rgba(255,255,255,.75); margin-bottom: 1.5rem; font-size: .95rem; }
.gaststaette-info    { display: flex; flex-direction: column; gap: .75rem; }
.gast-row { display: flex; align-items: flex-start; gap: .75rem; }
.gast-row svg { flex-shrink: 0; margin-top: 2px; opacity: .7; }
.gast-row span { font-size: .9rem; color: rgba(255,255,255,.85); }
.gast-hours { background: rgba(255,255,255,.08); border-radius: 10px; padding: 1.25rem; }
.gast-hours h4 { font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--gold); margin-bottom: .75rem; }
.gast-row-h { display: flex; justify-content: space-between; font-size: .85rem; padding: .35rem 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.gast-row-h:last-child { border-bottom: none; }
.gast-row-h .closed { color: rgba(255,255,255,.4); font-style: italic; }

/* ── MITGLIEDSCHAFT ───────────────────────────────────────── */
.join-banner {
  background: linear-gradient(135deg, var(--green) 0%, #0d3d22 100%);
  border-radius: 16px; padding: 3rem; text-align: center; color: var(--white);
  position: relative; overflow: hidden;
}
.join-banner::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% -20%, rgba(200,168,75,.2), transparent 60%);
}
.join-banner > * { position: relative; }
.join-banner h2 { font-family: var(--serif); font-size: 2.2rem; margin-bottom: .75rem; }
.join-banner p  { color: rgba(255,255,255,.7); margin-bottom: 2rem; font-size: 1rem; }

/* ── FOOTER ───────────────────────────────────────────────── */
#colophon, .site-footer, footer.site-footer {
  background: var(--dark); color: rgba(255,255,255,.6);
  padding: 4rem 2rem 2rem;
}
.footer-inner  { max-width: 1200px; margin: 0 auto; }
.footer-top {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem; margin-bottom: 3rem;
}
.footer-brand h3 { font-family: var(--serif); font-size: 1.5rem; color: var(--white); margin-bottom: .5rem; }
.footer-brand p  { font-size: .85rem; line-height: 1.7; }
.footer-col h4   { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--white); margin-bottom: 1rem; }
.footer-col ul   { list-style: none; display: flex; flex-direction: column; gap: .5rem; }
.footer-col a    { text-decoration: none; color: rgba(255,255,255,.5); font-size: .85rem; transition: color .2s; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 1.5rem;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1rem;
  font-size: .8rem;
}
.footer-bottom a { color: rgba(255,255,255,.4); text-decoration: none; }
.footer-bottom a:hover { color: var(--gold); }

/* WordPress Footer-Widgets */
#colophon .widget-area, .site-footer .widget-area { display: none; }

/* ── MODAL ────────────────────────────────────────────────── */
.modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,.5); backdrop-filter: blur(4px);
  align-items: center; justify-content: center;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--white); border-radius: 12px;
  padding: 2rem; max-width: 420px; width: 90%;
  box-shadow: 0 20px 60px rgba(0,0,0,.2);
  position: relative;
}
.modal-close { position: absolute; top: 1rem; right: 1rem; background: none; border: none; font-size: 1.4rem; cursor: pointer; color: var(--gray); }
.modal h3 { font-family: var(--serif); font-size: 1.3rem; margin-bottom: .3rem; }
.modal .modal-date { font-size: .85rem; color: var(--green); font-weight: 600; margin-bottom: 1rem; }
.modal p { font-size: .9rem; color: var(--gray); }

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-stats { flex-direction: row; justify-content: space-around; }
  .calendar-layout { grid-template-columns: 1fr; }
  .gaststaette-card { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  /* Desktop nav verstecken */
  #site-navigation,
  .main-navigation { display: none !important; }

  /* Hamburger einblenden */
  .nav-hamburger { display: flex; }

  /* Mobile Overlay-Menü */
  .mobile-nav {
    display: block;
    position: fixed;
    top: 68px; left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 32px rgba(0,0,0,.1);
    z-index: 99;
    /* Slide-down Animation */
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease, opacity .25s ease;
    opacity: 0;
    pointer-events: none;
  }
  .mobile-nav.is-open {
    max-height: 100vh;
    opacity: 1;
    pointer-events: all;
  }
  .mobile-nav-inner {
    padding: .75rem 1.25rem 1.5rem;
  }
  .mobile-nav ul {
    list-style: none; margin: 0; padding: 0;
    display: flex; flex-direction: column; gap: .25rem;
  }
  .mobile-nav ul li a {
    display: flex; align-items: center; justify-content: space-between;
    text-decoration: none; color: var(--dark);
    font-size: 1rem; font-weight: 500;
    padding: .8rem 1rem; border-radius: var(--radius);
    transition: background .15s, color .15s;
  }
  .mobile-nav ul li a:hover,
  .mobile-nav ul li.current-menu-item a {
    background: rgba(26,92,56,.07);
    color: var(--green);
  }
  .mobile-nav ul li.current-menu-item a::after {
    content: '';
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--green); flex-shrink: 0;
  }
  /* Letzter Punkt = CTA */
  .mobile-nav ul li:last-child a {
    background: var(--green); color: var(--white) !important;
    margin-top: .5rem; justify-content: center;
    font-weight: 700;
  }
  .mobile-nav ul li:last-child a:hover {
    background: var(--green-l) !important;
  }
  /* Trennlinie vor CTA */
  .mobile-nav ul li:last-child {
    border-top: 1px solid var(--border);
    padding-top: .5rem; margin-top: .25rem;
  }
}

@media (max-width: 640px) {
  .footer-top { grid-template-columns: 1fr; }
  .hero-stats { flex-direction: column; }
  .svo-section { padding: 3.5rem 1.25rem; }
  .page-main { padding: 2.5rem 1.25rem 4rem; }
}

/* ── Fade-in Animation ────────────────────────────────────── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.fade-up   { animation: fadeUp .55s ease both; }
.fade-up-2 { animation: fadeUp .55s ease .12s both; }
.fade-up-3 { animation: fadeUp .55s ease .24s both; }

/* ── The Events Calendar Anpassungen ─────────────────────── */
.tribe-events-calendar td.tribe-events-has-events { background: rgba(26,92,56,.05); }
.tribe-events-calendar .tribe-events-present td   { background: rgba(26,92,56,.12); }
.tribe-common-c-btn,
.tribe-events-c-subscribe-dropdown__button { background-color: var(--green) !important; border-color: var(--green) !important; }
.tribe-common-c-btn:hover { background-color: var(--green-l) !important; }
.tribe-events-header { font-family: var(--serif) !important; }

/* ── INSTAGRAM / NEWS ─────────────────────────────────────── */
.instagram-follow-btn {
  display: inline-flex; align-items: center; gap: .5rem;
  background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  color: #fff; font-weight: 600; font-size: .88rem;
  padding: .6rem 1.25rem; border-radius: 50px;
  text-decoration: none; white-space: nowrap;
  transition: opacity .2s, transform .15s;
  flex-shrink: 0;
}
.instagram-follow-btn:hover { opacity: .88; transform: translateY(-1px); }

.instagram-feed-wrapper { margin-top: 0; }

/* Smash Balloon overrides – passt den Feed ans Design an */
#sb_instagram .sbi_photo_wrap         { border-radius: 10px !important; overflow: hidden !important; }
#sb_instagram.sbi_col_3 .sbi_item     { padding: .4rem !important; }
#sb_instagram                         { padding: 0 !important; }
.sbi_header_text h3                   { font-family: var(--serif) !important; color: var(--dark) !important; }
.sbi_follow_btn a                     { background: var(--green) !important; border-color: var(--green) !important; }

/* Platzhalter wenn Plugin nicht aktiv */
.instagram-placeholder-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.insta-placeholder-card {
  aspect-ratio: 1;
  background: var(--cream);
  border: 2px dashed var(--border);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none; color: var(--gray-l);
  transition: border-color .2s, background .2s;
}
.insta-placeholder-card:hover { border-color: var(--green); background: rgba(26,92,56,.04); color: var(--green); }
.insta-placeholder-inner {
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
  font-size: .8rem; font-weight: 600;
}
.instagram-plugin-notice {
  margin-top: 1.5rem; background: #fff8e1;
  border: 1px solid #ffe082; border-radius: 8px; padding: 1rem 1.25rem;
}
.instagram-plugin-notice p { font-size: .88rem; color: #5a4a00; margin: 0; }
.instagram-plugin-notice a { color: var(--green); font-weight: 600; }

@media (max-width: 640px) {
  .instagram-placeholder-grid { grid-template-columns: repeat(2, 1fr); }
  .section-head { flex-direction: column; align-items: flex-start !important; }
}
.tribe-events-calendar td.tribe-events-has-events { background: rgba(26,92,56,.05); }
.tribe-events-calendar .tribe-events-present td   { background: rgba(26,92,56,.12); }
.tribe-common-c-btn,
.tribe-events-c-subscribe-dropdown__button { background-color: var(--green) !important; border-color: var(--green) !important; }
.tribe-common-c-btn:hover { background-color: var(--green-l) !important; }
.tribe-events-header { font-family: var(--serif) !important; }

/* ══════════════════════════════════════════════════════════
   UNTERSEITEN – page.php
   ══════════════════════════════════════════════════════════ */

/* ── Page Hero ─────────────────────────────────────────── */
.page-hero {
    background: var(--accent, var(--green));
    position: relative; overflow: hidden;
    padding: 3.5rem 2rem 3rem;
}
.page-hero::before {
    content: '';
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse 70% 80% at 80% 50%, rgba(255,255,255,.06), transparent),
        repeating-linear-gradient(
            45deg,
            rgba(255,255,255,.02) 0px, rgba(255,255,255,.02) 1px,
            transparent 1px, transparent 40px
        );
}
.page-hero-inner {
    max-width: 1200px; margin: 0 auto; position: relative;
}
.page-breadcrumb {
    display: inline-flex; align-items: center; gap: .4rem;
    color: rgba(255,255,255,.6); font-size: .82rem; font-weight: 500;
    text-decoration: none; margin-bottom: 1.5rem;
    transition: color .2s;
}
.page-breadcrumb:hover { color: rgba(255,255,255,.9); }

.page-hero-content {
    display: flex; align-items: center; gap: 1.25rem;
}
.page-sport-icon {
    font-size: 2.8rem; line-height: 1;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 16px;
    width: 72px; height: 72px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.page-title {
    font-family: var(--serif);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    color: #fff; line-height: 1.1; margin: 0 0 .25rem;
}
.page-subtitle {
    font-size: .85rem; color: rgba(255,255,255,.6);
    font-weight: 500; letter-spacing: .04em;
    margin: 0;
}

/* ── Page Main ─────────────────────────────────────────── */
.page-main {
    padding: 3.5rem 2rem 5rem;
    background: var(--white);
}
.page-inner {
    max-width: 1200px; margin: 0 auto;
}

/* ── Teams Grid ────────────────────────────────────────── */
.teams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.25rem;
}

.team-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow .2s, transform .2s, border-color .2s;
}
.team-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,.09);
    transform: translateY(-2px);
    border-color: var(--accent, var(--green));
}
.team-card-header {
    display: flex; align-items: center; gap: 1rem;
    padding: 1.25rem 1.5rem 1rem;
    border-bottom: 1px solid var(--border);
    background: var(--accent-light, rgba(26,92,56,.05));
}
.team-badge {
    width: 46px; height: 46px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; flex-shrink: 0;
}
.team-name {
    font-size: 1rem; font-weight: 700; color: var(--dark);
    margin: 0 0 .15rem; line-height: 1.2;
}
.team-club {
    font-size: .78rem; color: var(--gray-l);
    font-weight: 500;
}

.team-info {
    padding: 1rem 1.5rem 1.25rem;
    display: flex; flex-direction: column; gap: .65rem;
}
.team-row {
    display: flex; align-items: flex-start; gap: .65rem;
}
.team-row svg {
    flex-shrink: 0; margin-top: 3px;
    color: var(--accent, var(--green)); opacity: .8;
}
.team-row-label {
    display: block; font-size: .7rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .08em;
    color: var(--gray-l); margin-bottom: .1rem;
}
.team-row-value {
    display: block; font-size: .88rem; color: var(--dark); font-weight: 500;
}

/* ── Normaler Seiteninhalt (ohne Team-Struktur) ─────────── */
.entry-content-styled {
    max-width: 760px;
}
.entry-content-styled h2 {
    font-family: var(--serif); font-size: 1.8rem;
    color: var(--dark); margin: 2rem 0 .75rem;
    padding-bottom: .5rem;
    border-bottom: 2px solid var(--cream);
}
.entry-content-styled h3 {
    font-family: var(--serif); font-size: 1.3rem;
    color: var(--dark); margin: 1.5rem 0 .5rem;
}
.entry-content-styled p {
    color: var(--gray); margin-bottom: 1rem; font-size: .97rem;
    line-height: 1.75;
}
.entry-content-styled ul, .entry-content-styled ol {
    padding-left: 1.5rem; margin-bottom: 1rem;
}
.entry-content-styled li {
    color: var(--gray); margin-bottom: .4rem; font-size: .97rem;
}
.entry-content-styled a {
    color: var(--green); text-decoration: underline;
    text-underline-offset: 2px;
}
.entry-content-styled img {
    border-radius: 10px; max-width: 100%; height: auto;
    margin: 1.5rem 0;
}
.entry-content-styled table {
    width: 100%; border-collapse: collapse; margin: 1.5rem 0;
    font-size: .9rem;
}
.entry-content-styled th {
    background: var(--green); color: #fff;
    padding: .6rem 1rem; text-align: left; font-weight: 600;
}
.entry-content-styled td {
    padding: .55rem 1rem; border-bottom: 1px solid var(--border);
    color: var(--gray);
}
.entry-content-styled tr:hover td { background: var(--cream); }

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 640px) {
    .page-hero { padding: 2.5rem 1.25rem 2rem; }
    .page-sport-icon { width: 54px; height: 54px; font-size: 2rem; border-radius: 12px; }
    .teams-grid { grid-template-columns: 1fr; }
    .page-main { padding: 2.5rem 1.25rem 4rem; }
}
