/* ==========================================================================
   Accordia Theme — Community Football
   Forest green, warm cream, earthy brown
   ========================================================================== */

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --green-dark: #1B5E20;
    --green: #2E7D32;
    --green-light: #4CAF50;
    --green-pale: #C8E6C9;
    --cream: #FFF8E1;
    --cream-dark: #F5F0D8;
    --brown: #5D4037;
    --brown-light: #795548;
    --brown-pale: #D7CCC8;
    --text: #3E2723;
    --text-light: #6D4C41;
    --white: #FFFFFF;
    --shadow: rgba(46, 125, 50, 0.12);
    --radius: 6px;
    --max-width: 1100px;
    --header-height: 64px;
}

html {
    font-size: 17px;
    scroll-behavior: smooth;
}

body {
    font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    background-color: var(--cream);
    color: var(--text);
    line-height: 1.72;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: var(--green);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--green-dark);
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
}

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--green);
    border-bottom: 3px solid var(--green-dark);
    height: var(--header-height);
    box-shadow: 0 2px 8px var(--shadow);
}

.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--white);
    font-weight: 700;
    font-size: 1.35rem;
    text-decoration: none;
    letter-spacing: 0.02em;
}

.site-logo:hover {
    color: var(--cream);
    text-decoration: none;
}

.logo-icon {
    font-size: 1.5rem;
}

.logo-text {
    font-family: Georgia, "Times New Roman", serif;
    font-style: italic;
}

/* ---------- Navigation ---------- */
.main-nav {
    display: flex;
    align-items: center;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 26px;
    height: 3px;
    background: var(--white);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.nav-toggle.open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

.nav-list {
    list-style: none;
    display: flex;
    gap: 0.25rem;
}

.nav-list li a {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--cream);
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: var(--radius);
    transition: background 0.2s, color 0.2s;
    text-decoration: none;
}

.nav-list li a:hover,
.nav-list li a.active {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    text-decoration: none;
}

/* ---------- Hero ---------- */
.hero {
    background: linear-gradient(rgba(0,0,0,0.45), rgba(0,0,0,0.45)), url('/img/amateurfussball-kreisliga-sportplatz-hero.jpg');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 4rem 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(255,255,255,0.06) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.04) 0%, transparent 50%);
    pointer-events: none;
}

.hero-inner {
    max-width: 720px;
    margin: 0 auto;
    position: relative;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 0.3rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}

.hero h1 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2.4rem;
    line-height: 1.25;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero p {
    font-size: 1.1rem;
    line-height: 1.6;
    opacity: 0.92;
    margin-bottom: 1.75rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    padding: 0.7rem 1.6rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    cursor: pointer;
}

.btn:hover {
    text-decoration: none;
    transform: translateY(-1px);
}

.btn-primary {
    background: var(--white);
    color: var(--green-dark);
}

.btn-primary:hover {
    background: var(--cream);
    color: var(--green-dark);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.6);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--white);
    color: var(--white);
}

/* ---------- Home Articles ---------- */
.home-articles {
    padding: 3rem 1.5rem;
}

.home-articles-inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

.home-articles h2 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.6rem;
    color: var(--green-dark);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--green-pale);
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

/* ---------- Article Card ---------- */
.article-card {
    background: var(--white);
    border: 1px solid var(--brown-pale);
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: box-shadow 0.2s, transform 0.15s;
}

.article-card:hover {
    box-shadow: 0 4px 16px var(--shadow);
    transform: translateY(-2px);
}

.article-card h2,
.article-card h3 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.15rem;
    line-height: 1.35;
    margin-bottom: 0.5rem;
}

.article-card h2 a,
.article-card h3 a {
    color: var(--text);
    text-decoration: none;
}

.article-card h2 a:hover,
.article-card h3 a:hover {
    color: var(--green);
    text-decoration: none;
}

.article-meta {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 0.75rem;
}

.meta-sep {
    margin: 0 0.35rem;
}

.article-excerpt {
    font-size: 0.93rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.read-more {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--green);
}

.read-more:hover {
    color: var(--green-dark);
    text-decoration: none;
}

/* ---------- Home Sections ---------- */
.home-sections {
    padding: 2rem 1.5rem 3.5rem;
    background: var(--cream-dark);
}

.home-sections-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.section-card {
    background: var(--white);
    border-left: 4px solid var(--green);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 1.5rem;
    transition: box-shadow 0.2s;
}

.section-card:hover {
    box-shadow: 0 3px 12px var(--shadow);
}

.section-card h3 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.15rem;
    color: var(--green-dark);
    margin-bottom: 0.5rem;
}

.section-card p {
    font-size: 0.92rem;
    color: var(--text-light);
    margin-bottom: 0.75rem;
    line-height: 1.55;
}

.section-card a {
    font-size: 0.9rem;
    font-weight: 600;
}

/* ---------- Section Listing ---------- */
.section-listing {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 2.5rem 1.5rem;
}

.section-header {
    margin-bottom: 2rem;
}

.section-header h1 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.8rem;
    color: var(--green-dark);
    margin-bottom: 0.5rem;
}

.section-desc {
    font-size: 1.05rem;
    color: var(--text-light);
}

.article-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.article-list .article-card {
    border-left: 3px solid var(--green);
}

/* Article Hero Banner */
.article-hero {
  background: linear-gradient(to bottom, rgba(0,0,0,0.4), rgba(0,0,0,0.7)), url('/img/amateurfussball-kreisliga-sportplatz-hero.jpg');
  background-size: cover;
  background-position: center 40%;
  color: #fff;
  padding: 4rem 2rem 3rem;
}
.article-hero-inner {
  max-width: 800px;
  margin: 0 auto;
}
.article-hero .article-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.8);
}
.article-hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.2;
  color: white;
  margin-bottom: 0.75rem;
}
.article-hero .article-subtitle {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.6;
  max-width: 640px;
}

/* ---------- Article Single ---------- */
.article-single {
    max-width: 760px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 3rem;
}

.article-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--green-pale);
}

.article-header h1 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2rem;
    line-height: 1.25;
    color: var(--text);
    margin-bottom: 0.6rem;
}

.article-content {
    font-size: 1rem;
    line-height: 1.78;
}

.article-content h2 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.45rem;
    color: var(--green-dark);
    margin: 2.2rem 0 0.8rem;
    padding-bottom: 0.3rem;
    border-bottom: 1px solid var(--green-pale);
}

.article-content h3 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.2rem;
    color: var(--brown);
    margin: 1.8rem 0 0.6rem;
}

.article-content h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--brown-light);
    margin: 1.4rem 0 0.5rem;
}

.article-content p {
    margin-bottom: 1.1rem;
}

.article-content ul,
.article-content ol {
    margin: 0.8rem 0 1.2rem 1.5rem;
}

.article-content li {
    margin-bottom: 0.35rem;
}

.article-content blockquote {
    border-left: 4px solid var(--green);
    background: var(--cream-dark);
    margin: 1.5rem 0;
    padding: 1rem 1.5rem;
    font-style: italic;
    color: var(--text-light);
    border-radius: 0 var(--radius) var(--radius) 0;
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.93rem;
}

.article-content th {
    background: var(--green);
    color: var(--white);
    padding: 0.6rem 0.8rem;
    text-align: left;
    font-weight: 600;
}

.article-content td {
    padding: 0.55rem 0.8rem;
    border-bottom: 1px solid var(--brown-pale);
}

.article-content tr:nth-child(even) td {
    background: var(--cream-dark);
}

.article-content strong {
    color: var(--green-dark);
}

.article-content code {
    background: var(--cream-dark);
    padding: 0.15rem 0.4rem;
    border-radius: 3px;
    font-size: 0.9em;
}

.article-content pre {
    background: var(--text);
    color: var(--cream);
    padding: 1.2rem;
    border-radius: var(--radius);
    overflow-x: auto;
    margin: 1.5rem 0;
}

.article-content pre code {
    background: none;
    padding: 0;
    color: inherit;
}

/* ---------- Article Footer ---------- */
.article-footer {
    margin-top: 2.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--brown-pale);
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    display: inline-block;
    background: var(--green-pale);
    color: var(--green-dark);
    padding: 0.25rem 0.7rem;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 500;
}

.tag:hover {
    background: var(--green);
    color: var(--white);
    text-decoration: none;
}

/* ---------- Legal Page ---------- */
.page-legal {
    max-width: 760px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 3rem;
}

.page-header {
    margin-bottom: 2rem;
}

.page-header h1 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.8rem;
    color: var(--green-dark);
}

.page-content {
    line-height: 1.78;
}

.page-content h2 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.3rem;
    color: var(--brown);
    margin: 1.8rem 0 0.7rem;
}

.page-content p {
    margin-bottom: 1rem;
}

.page-content ul {
    margin: 0.5rem 0 1rem 1.5rem;
}

.page-content li {
    margin-bottom: 0.3rem;
}

.page-content a {
    color: var(--green);
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--brown);
    color: var(--cream);
    margin-top: auto;
    padding-top: 2.5rem;
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

.footer-col h4 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1rem;
    color: var(--white);
    margin-bottom: 0.75rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid rgba(255,255,255,0.15);
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 0.4rem;
}

.footer-col a {
    color: var(--cream);
    font-size: 0.93rem;
    opacity: 0.85;
    transition: opacity 0.2s;
}

.footer-col a:hover {
    opacity: 1;
    color: var(--white);
    text-decoration: none;
}

.footer-col p {
    font-size: 0.9rem;
    line-height: 1.55;
    opacity: 0.85;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    text-align: center;
    padding: 1rem 1.5rem;
    font-size: 0.85rem;
    opacity: 0.7;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .article-hero { padding: 2.5rem 1.5rem 2rem; }
  .article-hero h1 { font-size: 1.75rem; }
  .article-hero .article-subtitle { font-size: 1rem; }

    html {
        font-size: 16px;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-list {
        display: none;
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--green);
        border-top: 1px solid var(--green-dark);
        padding: 0.75rem 0;
        box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    }

    .nav-list.open {
        display: flex;
    }

    .nav-list li a {
        padding: 0.7rem 1.5rem;
        border-radius: 0;
    }

    .hero {
        padding: 3rem 1.25rem;
        background-position: center top;
    }

    .hero h1 {
        font-size: 1.75rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .article-grid {
        grid-template-columns: 1fr;
    }

    .home-sections-inner {
        grid-template-columns: 1fr;
    }

    .article-header h1 {
        font-size: 1.55rem;
    }

    .article-content h2 {
        font-size: 1.25rem;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 2.25rem 1rem;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        text-align: center;
        max-width: 260px;
    }

    .article-single,
    .page-legal,
    .section-listing {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* ---------- Print ---------- */
@media print {
    .site-header,
    .site-footer,
    .nav-toggle,
    .hero-actions {
        display: none;
    }

    body {
        background: white;
        color: black;
        font-size: 12pt;
    }

    .article-single,
    .page-legal {
        max-width: 100%;
        padding: 0;
    }

    a {
        color: black;
        text-decoration: underline;
    }

    a[href]::after {
        content: " (" attr(href) ")";
        font-size: 0.85em;
    }
}
