/*
Theme Name: Mengede 08/20
Theme URI: https://mengede.synervia.de
Author: Synervia
Author URI: https://synervia.de
Description: Modernes Vereins-Theme für den Mengede 08/20 e.V. in den Vereinsfarben Rot & Gelb. Enthält Startseite mit Hero, Spieltag-Widget, News, Tabellen, Mannschaften und Blogbereich.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mengede0820
*/

/* ─── Design Tokens ─────────────────────────────────────────── */
:root {
  --red:        #CC1515;
  --red-dark:   #8B0000;
  --red-deep:   #1a0303;
  --yellow:     #FFD200;
  --yellow-mid: #E6BC00;
  --white:      #ffffff;
  --gray-50:    #fafafa;
  --gray-100:   #f2f2f2;
  --gray-200:   #e0e0e0;
  --gray-500:   #888888;
  --gray-700:   #444444;
  --gray-900:   #111111;
  --radius-sm:  6px;
  --radius-md:  10px;
  --radius-lg:  14px;
  --shadow-sm:  0 1px 4px rgba(0,0,0,0.08);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.10);
}

/* ─── Reset & Base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.6;
}
a { text-decoration: none; color: var(--red); }
a:hover { color: var(--red-dark); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0 0 .5rem; line-height: 1.2; }

/* ─── Utility ───────────────────────────────────────────────── */
.container { max-width: 1140px; margin: 0 auto; padding: 0 1.5rem; }
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 11px 24px; border-radius: var(--radius-md);
  font-size: 15px; font-weight: 600; cursor: pointer;
  transition: opacity .15s, transform .1s; border: none;
}
.btn:hover { opacity: .88; transform: translateY(-1px); }
.btn-primary { background: var(--yellow); color: var(--red-dark); }
.btn-outline { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,.4); }
.btn-red { background: var(--red); color: var(--white); }
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 600; letter-spacing: .04em;
  padding: 3px 10px; border-radius: 100px;
}
.badge-yellow { background: var(--yellow); color: var(--red-dark); }
.badge-red { background: rgba(204,21,21,.15); color: var(--red); }
.badge-gray { background: var(--gray-100); color: var(--gray-700); }
.section-label {
  font-size: 12px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--red); margin: 0;
}
.section-title { font-size: 28px; font-weight: 700; color: var(--gray-900); margin-top: .3rem; }

/* ─── Announcement Bar ──────────────────────────────────────── */
.announce {
  background: var(--yellow); padding: 8px 1.5rem; text-align: center;
  font-size: 14px; font-weight: 600; color: var(--red-dark);
}
.announce a { color: var(--red-dark); text-decoration: underline; }

/* ─── Navigation ────────────────────────────────────────────── */
.site-nav {
  background: var(--red-deep); position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,.3);
}
.nav-inner { display: flex; align-items: center; gap: 2rem; height: 68px; }
.nav-logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.nav-logo img { height: 48px; width: auto; }
.nav-logo-text { line-height: 1.2; }
.nav-logo-name { font-size: 17px; font-weight: 700; color: var(--white); white-space: nowrap; }
.nav-logo-sub { font-size: 11px; color: rgba(255,255,255,.55); white-space: nowrap; }
.nav-logo .custom-logo { height: 48px; width: auto; }
.nav-menu { display: flex; gap: .25rem; flex: 1; }
.nav-menu li { position: relative; }
.nav-menu a {
  font-size: 14px; font-weight: 500; color: rgba(255,255,255,.78);
  padding: 8px 12px; border-radius: var(--radius-sm); display: block;
  transition: background .15s, color .15s; white-space: nowrap;
}
.nav-menu a:hover, .nav-menu .current-menu-item > a {
  background: rgba(255,255,255,.1); color: var(--white);
}
.nav-menu .sub-menu {
  position: absolute; top: 100%; left: 0; min-width: 200px;
  background: var(--red-deep); border-radius: var(--radius-md);
  box-shadow: var(--shadow-md); padding: .5rem; display: none; z-index: 50;
}
.nav-menu li:hover > .sub-menu { display: block; }
.nav-cta { margin-left: auto; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 6px; margin-left: auto; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--white); margin: 5px 0; border-radius: 2px; transition: .3s; }

/* ─── Hero ──────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--red-deep) 0%, var(--red-dark) 50%, #7a0000 100%);
  padding: 5rem 0 4rem; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23FFD200' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-inner { display: grid; grid-template-columns: 1fr auto; gap: 2.5rem; align-items: center; position: relative; z-index: 1; }
.hero-eyebrow { margin-bottom: 1rem; }
.hero h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; color: var(--white); line-height: 1.15; margin-bottom: 1rem; }
.hero h1 em { font-style: normal; color: var(--yellow); }
.hero-sub { font-size: 17px; color: rgba(255,255,255,.65); max-width: 480px; margin-bottom: 2rem; }
.hero-btns { display: flex; gap: .75rem; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 2rem; margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,.1); }
.hero-stat-num { font-size: 30px; font-weight: 700; color: var(--yellow); }
.hero-stat-lbl { font-size: 12px; color: rgba(255,255,255,.5); font-weight: 500; }

/* Match Card */
.match-card { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius-lg); padding: 1.5rem 1.75rem; min-width: 280px; }
.match-card-label { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.45); margin-bottom: 1.25rem; }
.match-teams { display: flex; align-items: center; gap: 12px; margin-bottom: 1.25rem; }
.match-team { flex: 1; text-align: center; }
.match-team-badge { width: 48px; height: 48px; border-radius: 50%; background: rgba(255,210,0,.15); border: 2px solid rgba(255,210,0,.3); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: var(--yellow); margin: 0 auto 6px; }
.match-team-name { font-size: 12px; font-weight: 600; color: var(--white); }
.match-vs { font-size: 13px; font-weight: 700; color: rgba(255,255,255,.4); }
.match-info { display: flex; flex-direction: column; gap: 6px; }
.match-info-row { display: flex; align-items: center; gap: 8px; font-size: 13px; color: rgba(255,255,255,.6); }

/* ─── Ticker ─────────────────────────────────────────────────── */
.ticker { background: var(--red); overflow: hidden; }
.ticker-inner { display: flex; align-items: stretch; height: 46px; }
.ticker-label { background: var(--yellow); color: var(--red-dark); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 0 1.25rem; display: flex; align-items: center; flex-shrink: 0; white-space: nowrap; }
.ticker-track { overflow: hidden; flex: 1; display: flex; align-items: center; }
.ticker-content { display: flex; gap: 3rem; white-space: nowrap; animation: ticker 30s linear infinite; padding-left: 2rem; }
.ticker-item { font-size: 14px; color: rgba(255,255,255,.9); font-weight: 500; }
.ticker-item::before { content: '●'; font-size: 8px; margin-right: .75rem; color: var(--yellow); vertical-align: middle; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ─── Sections ───────────────────────────────────────────────── */
.section { padding: 4rem 0; }
.section-alt { background: var(--gray-50); }
.section-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 2rem; flex-wrap: wrap; gap: 1rem; }
.section-link { font-size: 14px; font-weight: 600; color: var(--red); }
.section-link::after { content: ' →'; }

/* ─── News Grid ──────────────────────────────────────────────── */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.news-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); overflow: hidden; transition: box-shadow .2s, transform .2s; }
.news-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.news-card-img { height: 180px; background: var(--gray-100); position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.news-card-img img { width: 100%; height: 100%; object-fit: cover; }
.news-card-img.red { background: linear-gradient(135deg, #8B0000, var(--red)); }
.news-card-img.dark { background: linear-gradient(135deg, var(--red-deep), #3a0000); }
.news-card-img.yellow { background: linear-gradient(135deg, #7a6000, #b89000); }
.news-cat { position: absolute; top: 12px; left: 12px; z-index: 2; }
.news-body { padding: 1.1rem 1.25rem 1.35rem; }
.news-title { font-size: 16px; font-weight: 600; line-height: 1.4; margin: .5rem 0; }
.news-title a { color: var(--gray-900); }
.news-title a:hover { color: var(--red); }
.news-excerpt { font-size: 14px; color: var(--gray-500); line-height: 1.5; margin-bottom: .75rem; }
.news-meta { font-size: 13px; color: var(--gray-500); }

/* ─── Fixtures ───────────────────────────────────────────────── */
.fixtures-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.fixture-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); overflow: hidden; }
.fixture-head { background: var(--red-deep); padding: .85rem 1.25rem; display: flex; align-items: center; justify-content: space-between; }
.fixture-head-title { font-size: 14px; font-weight: 600; color: var(--white); }
.fixture-row { padding: .8rem 1.25rem; border-bottom: 1px solid var(--gray-100); display: flex; align-items: center; gap: .75rem; }
.fixture-row:last-child { border-bottom: none; }
.fixture-date { font-size: 12px; color: var(--gray-500); min-width: 70px; }
.fixture-teams { flex: 1; font-size: 14px; font-weight: 500; }
.fixture-teams em { font-style: normal; color: var(--red); font-weight: 700; }
.fixture-result { font-size: 14px; font-weight: 700; padding: 3px 10px; border-radius: var(--radius-sm); min-width: 52px; text-align: center; }
.fixture-result.win { background: #e6f4ea; color: #1e7e34; }
.fixture-result.loss { background: #fce8e8; color: var(--red); }
.fixture-result.draw { background: var(--gray-100); color: var(--gray-700); }
.fixture-result.up { background: var(--yellow); color: var(--red-dark); font-size: 12px; }

/* ─── Standings ──────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }
.standings-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.standings-table thead th { background: var(--red-deep); color: rgba(255,255,255,.65); font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; padding: .7rem 1rem; text-align: left; }
.standings-table thead th:not(:first-child):not(:nth-child(2)) { text-align: center; }
.standings-table tbody tr { border-bottom: 1px solid var(--gray-100); }
.standings-table tbody tr:hover { background: var(--gray-50); }
.standings-table tbody tr.highlight { background: #fff8e1; }
.standings-table td { padding: .7rem 1rem; }
.standings-table td:not(:first-child):not(:nth-child(2)) { text-align: center; color: var(--gray-500); }
.standings-table .pos { color: var(--gray-500); font-weight: 600; width: 32px; }
.standings-table .pos.top { color: var(--red); }
.standings-table .team-name { font-weight: 600; }
.standings-table .team-name.us { color: var(--red); }
.standings-table .pts { font-weight: 700 !important; color: var(--gray-900) !important; }
.standings-table .pts.us { color: var(--red) !important; }

/* ─── Teams ──────────────────────────────────────────────────── */
.teams-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.team-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 1.5rem 1.25rem; text-align: center; transition: box-shadow .2s, transform .2s; }
.team-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.team-card-icon { width: 56px; height: 56px; border-radius: 50%; background: linear-gradient(135deg, #fce8e8, #fff3cd); border: 2px solid var(--gray-200); display: flex; align-items: center; justify-content: center; margin: 0 auto .75rem; font-size: 24px; }
.team-card-name { font-size: 14px; font-weight: 700; margin-bottom: 3px; }
.team-card-sub { font-size: 12px; color: var(--gray-500); }

/* ─── Features ───────────────────────────────────────────────── */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.feature-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 1.75rem; }
.feature-icon { width: 48px; height: 48px; border-radius: var(--radius-md); background: linear-gradient(135deg, #fce8e8, #fff3cd); display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 1rem; }
.feature-title { font-size: 16px; font-weight: 700; margin-bottom: .4rem; }
.feature-desc { font-size: 14px; color: var(--gray-500); line-height: 1.55; }

/* ─── CTA Banner ─────────────────────────────────────────────── */
.cta-banner { background: linear-gradient(135deg, var(--red-dark), var(--red)); padding: 3.5rem 0; text-align: center; position: relative; overflow: hidden; }
.cta-banner::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(45deg, transparent, transparent 20px, rgba(255,210,0,.04) 20px, rgba(255,210,0,.04) 40px); }
.cta-banner > .container { position: relative; z-index: 1; }
.cta-banner h2 { font-size: 30px; font-weight: 700; color: var(--white); margin-bottom: .5rem; }
.cta-banner p { font-size: 17px; color: rgba(255,255,255,.7); margin-bottom: 1.75rem; }
.cta-btns { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }

/* ─── Sponsors ───────────────────────────────────────────────── */
.sponsors { padding: 3rem 0; border-top: 1px solid var(--gray-100); }
.sponsors-label { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gray-500); text-align: center; margin-bottom: 1.5rem; }
.sponsors-row { display: flex; gap: 1.25rem; justify-content: center; flex-wrap: wrap; }
.sponsor-pill { background: var(--gray-100); color: var(--gray-700); border: 1px solid var(--gray-200); padding: .7rem 1.5rem; border-radius: var(--radius-md); font-size: 14px; font-weight: 600; }

/* ─── Content (pages & posts) ────────────────────────────────── */
.page-hero { background: linear-gradient(135deg, var(--red-deep), var(--red-dark)); padding: 3rem 0; }
.page-hero h1 { color: var(--white); font-size: 34px; }
.page-hero .breadcrumb { color: rgba(255,255,255,.6); font-size: 14px; }
.page-hero .breadcrumb a { color: var(--yellow); }
.content-area { padding: 3.5rem 0; }
.content-narrow { max-width: 780px; margin: 0 auto; }
.entry-content { font-size: 17px; line-height: 1.75; color: var(--gray-900); }
.entry-content h2 { font-size: 24px; margin: 2rem 0 .75rem; }
.entry-content h3 { font-size: 20px; margin: 1.5rem 0 .5rem; }
.entry-content p { margin: 0 0 1.25rem; }
.entry-content ul { list-style: disc; padding-left: 1.5rem; margin: 0 0 1.25rem; }
.entry-content li { margin-bottom: .4rem; }
.entry-content img { border-radius: var(--radius-md); margin: 1.5rem 0; }
.entry-content a { color: var(--red); text-decoration: underline; }
.entry-content blockquote { border-left: 4px solid var(--yellow); background: var(--gray-50); padding: 1rem 1.5rem; margin: 1.5rem 0; border-radius: 0 var(--radius-md) var(--radius-md) 0; }
.post-meta { font-size: 14px; color: var(--gray-500); margin-bottom: 1.5rem; display: flex; gap: 1rem; align-items: center; }
.post-cat-badge { display: inline-block; background: var(--yellow); color: var(--red-dark); font-size: 12px; font-weight: 700; padding: 3px 12px; border-radius: 100px; }

/* Blog archive */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.pagination { display: flex; gap: .5rem; justify-content: center; margin-top: 2.5rem; }
.pagination .page-numbers { padding: 8px 14px; border-radius: var(--radius-sm); border: 1px solid var(--gray-200); color: var(--gray-700); font-weight: 600; }
.pagination .page-numbers.current { background: var(--red); color: var(--white); border-color: var(--red); }

/* ─── Footer ─────────────────────────────────────────────────── */
.site-footer { background: var(--red-deep); color: rgba(255,255,255,.7); }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; padding: 3.5rem 0 2.5rem; }
.footer-brand-name { font-size: 18px; font-weight: 700; color: var(--white); margin-bottom: .3rem; }
.footer-brand-sub { font-size: 12px; color: rgba(255,255,255,.4); margin-bottom: 1rem; }
.footer-brand-desc { font-size: 14px; line-height: 1.6; color: rgba(255,255,255,.55); }
.footer-col-title { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.4); margin-bottom: .9rem; }
.footer-col-links a { font-size: 14px; color: rgba(255,255,255,.6); display: block; padding: .3rem 0; }
.footer-col-links a:hover { color: var(--yellow); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 1.25rem 0; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem; }
.footer-copy { font-size: 13px; color: rgba(255,255,255,.35); }
.footer-legal { display: flex; gap: 1.5rem; }
.footer-legal a { font-size: 13px; color: rgba(255,255,255,.35); }
.footer-legal a:hover { color: rgba(255,255,255,.7); }

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .match-card { display: none; }
  .news-grid, .blog-grid { grid-template-columns: 1fr 1fr; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .teams-grid { grid-template-columns: repeat(2, 1fr); }
  .fixtures-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav-menu, .nav-cta { display: none; }
  .nav-toggle { display: block; }
  .nav-menu.open { display: flex; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0; background: var(--red-deep); padding: 1rem 1.5rem; box-shadow: 0 8px 24px rgba(0,0,0,.3); }
  .nav-menu.open .sub-menu { position: static; display: block; box-shadow: none; padding-left: 1rem; }
  .hero { padding: 3rem 0 2.5rem; }
  .news-grid, .blog-grid, .features-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .section-title { font-size: 22px; }
}
