/*
Theme Name: Tanzclub Schwarz-Rot Modern
Theme URI: https://schwarz-rot-dueren.de/
Author: Tanzclub Schwarz-Rot Düren e.V.
Description: Modernes, barrierearmes Vereins-Theme für Tanzangebote, Trainingszeiten, Veranstaltungen und Vereinsinformationen.
Version: 1.0.1
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: tcsr-modern
*/

:root {
    --tcsr-black: #0c0c10;
    --tcsr-ink: #17171d;
    --tcsr-red: #b5121b;
    --tcsr-red-dark: #7f0910;
    --tcsr-red-light: #fbeaec;
    --tcsr-white: #fff;
    --tcsr-paper: #f7f7f9;
    --tcsr-muted: #666773;
    --tcsr-line: #e4e4e9;
    --tcsr-gold: #f5b942;
    --tcsr-violet: #7c3aed;
    --tcsr-turquoise: #0f9f91;
    --tcsr-blue: #2563eb;
    --tcsr-radius: 22px;
    --tcsr-shadow: 0 18px 45px rgba(12, 12, 16, .10);
    --tcsr-content: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--tcsr-ink);
    background:
        radial-gradient(circle at 8% 8%, rgba(181, 18, 27, .07), transparent 28rem),
        radial-gradient(circle at 96% 28%, rgba(124, 58, 237, .06), transparent 24rem),
        var(--tcsr-paper);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}
body.admin-bar .site-header { top: 32px; }
a { color: var(--tcsr-red); text-underline-offset: .18em; }
a:hover, a:focus { color: var(--tcsr-red-dark); }
img { max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 3px solid var(--tcsr-gold); outline-offset: 3px; }

.screen-reader-text {
    border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
    height: 1px; margin: -1px; overflow: hidden; padding: 0;
    position: absolute !important; width: 1px; word-wrap: normal !important;
}
.screen-reader-text:focus {
    clip: auto !important; clip-path: none; display: block; height: auto; width: auto;
    left: 12px; top: 12px; z-index: 100000; padding: 12px 16px;
    background: var(--tcsr-white); color: var(--tcsr-black); border-radius: 10px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 999;
    color: var(--tcsr-white);
    background: rgba(12, 12, 16, .95);
    border-bottom: 1px solid rgba(255,255,255,.09);
    backdrop-filter: blur(18px);
    box-shadow: 0 8px 28px rgba(0,0,0,.18);
}
.site-header::after {
    content: ""; display: block; height: 3px;
    background: linear-gradient(90deg, var(--tcsr-red) 0 46%, var(--tcsr-gold) 46% 62%, var(--tcsr-violet) 62% 78%, var(--tcsr-turquoise) 78%);
}
.header-inner {
    width: min(var(--tcsr-content), calc(100% - 36px));
    min-height: 92px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(260px, auto) 1fr auto;
    align-items: center;
    gap: clamp(18px, 3vw, 40px);
}
.site-branding { display: flex; align-items: center; gap: 13px; min-width: 0; }
.custom-logo-link { flex: 0 0 auto; display: block; }
.custom-logo { width: 68px; max-height: 68px; object-fit: contain; display: block; }
.site-branding__text { min-width: 0; }
.site-title {
    display: block; color: var(--tcsr-white); text-decoration: none;
    font-size: clamp(1rem, 1.6vw, 1.35rem); font-weight: 900; line-height: 1.12;
    letter-spacing: -.02em;
}
.site-tagline { margin: 4px 0 0; color: #c8c8d0; font-size: .78rem; line-height: 1.35; }
.site-navigation { justify-self: end; }
.site-navigation ul { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.site-navigation a {
    display: block; padding: 11px 10px; border-radius: 12px;
    color: #f7f7fa; text-decoration: none; font-size: .91rem; font-weight: 750;
    transition: color .18s ease, background .18s ease, transform .18s ease;
}
.site-navigation a:hover, .site-navigation a:focus, .site-navigation .current-menu-item > a {
    color: var(--tcsr-white); background: rgba(181,18,27,.88); transform: translateY(-1px);
}
.header-cta {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 44px; padding: 10px 16px; border-radius: 999px;
    background: var(--tcsr-red); color: var(--tcsr-white); text-decoration: none; font-weight: 850;
    box-shadow: 0 8px 20px rgba(181,18,27,.28);
}
.header-cta:hover, .header-cta:focus { background: #d11924; color: var(--tcsr-white); }
.menu-toggle {
    display: none; width: 46px; height: 42px; border: 1px solid rgba(255,255,255,.2);
    border-radius: 12px; background: rgba(255,255,255,.08); color: var(--tcsr-white); cursor: pointer;
}
.menu-toggle span, .menu-toggle::before, .menu-toggle::after {
    content: ""; display: block; width: 22px; height: 2px; margin: 5px auto; background: currentColor; border-radius: 2px;
}

.site-content { min-height: 60vh; }
.content-shell {
    width: min(980px, calc(100% - 36px)); margin: clamp(32px, 6vw, 76px) auto;
    padding: clamp(24px, 4vw, 52px); background: var(--tcsr-white);
    border: 1px solid var(--tcsr-line); border-radius: var(--tcsr-radius); box-shadow: var(--tcsr-shadow);
}
.content-shell--wide { width: min(var(--tcsr-content), calc(100% - 36px)); }
.entry-header { margin-bottom: 28px; }
.entry-title { margin: 0; font-size: clamp(2.1rem, 5vw, 4.3rem); line-height: 1.02; letter-spacing: -.055em; }
.entry-meta { margin-top: 12px; color: var(--tcsr-muted); }
.entry-content > *:first-child { margin-top: 0; }
.entry-content h2, .entry-content h3 { line-height: 1.18; letter-spacing: -.025em; }
.entry-content h2 { margin-top: 2.2em; }
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th, .entry-content td { padding: 12px; border: 1px solid var(--tcsr-line); }
.entry-content th { background: var(--tcsr-black); color: var(--tcsr-white); }
.post-list { display: grid; gap: 22px; }
.post-card { padding: 26px; border: 1px solid var(--tcsr-line); border-radius: 18px; background: var(--tcsr-white); }
.post-card h2 { margin-top: 0; }
.pagination { margin-top: 32px; }

/* VereinsPortal: eigener moderner Auftritt in allen Theme-Seiten. */
.wp-theme-tanzclub-schwarz-rot-modern .vpp-site-main,
body[class*="tanzclub-schwarz-rot-modern"] .vpp-site-main {
    width: min(var(--tcsr-content), calc(100% - 36px)) !important;
    margin: clamp(22px, 4vw, 52px) auto !important;
    padding-top: 0 !important;
}
.vpp-local-hero {
    position: relative; isolation: isolate; overflow: hidden;
    min-height: min(560px, 68vh); display: flex; flex-direction: column; justify-content: center;
    padding: clamp(34px, 7vw, 84px) !important; border: 0 !important; border-radius: 30px !important;
    background:
        radial-gradient(circle at 82% 18%, rgba(245,185,66,.30), transparent 16rem),
        radial-gradient(circle at 92% 92%, rgba(124,58,237,.44), transparent 22rem),
        linear-gradient(122deg, #09090c 0 18%, #7f0910 52%, #c31320 100%) !important;
    box-shadow: 0 28px 70px rgba(91,7,13,.28) !important;
}
.vpp-local-hero::before, .vpp-local-hero::after {
    content: ""; position: absolute; z-index: -1; border: 1px solid rgba(255,255,255,.16); border-radius: 50%;
}
.vpp-local-hero::before { width: 330px; height: 330px; right: -70px; top: -90px; }
.vpp-local-hero::after { width: 470px; height: 470px; right: 9%; bottom: -360px; }
.vpp-local-hero .vpp-eyebrow { color: #ffe1a0 !important; font-size: .85rem !important; letter-spacing: .16em !important; }
.vpp-local-hero h1 {
    max-width: 850px; margin: 0 0 18px !important; color: var(--tcsr-white) !important;
    font-size: clamp(2.7rem, 7vw, 6.8rem) !important; line-height: .94 !important; letter-spacing: -.065em !important;
    text-wrap: balance; text-shadow: 0 8px 30px rgba(0,0,0,.3) !important;
}
.vpp-local-hero > p:not(.vpp-eyebrow) { max-width: 800px; color: #fff !important; font-size: clamp(1rem, 1.65vw, 1.24rem); }
.vpp-hero-actions a { min-height: 50px; padding: 11px 20px !important; background: var(--tcsr-white) !important; color: var(--tcsr-black) !important; border: 0 !important; }
.vpp-hero-actions a:last-child { background: var(--tcsr-gold) !important; }
.vpp-hero-actions a:hover, .vpp-hero-actions a:focus { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0,0,0,.2); }
.vpp-page-nav { gap: 10px !important; margin: 24px 0 30px !important; }
.vpp-page-nav a {
    padding: 11px 15px !important; border: 1px solid var(--tcsr-line); background: var(--tcsr-white) !important;
    color: var(--tcsr-ink) !important; box-shadow: 0 8px 22px rgba(0,0,0,.06) !important;
}
.vpp-page-nav a:hover, .vpp-page-nav a:focus { background: var(--tcsr-red) !important; border-color: var(--tcsr-red); color: var(--tcsr-white) !important; }
.vpp-home-grid { gap: 22px !important; }
.vpp-home-tile, .vpp-card, .vpp-day-card, .vpp-training-day-card {
    border-color: var(--tcsr-line) !important; border-radius: 22px !important; box-shadow: 0 14px 36px rgba(12,12,16,.07) !important;
}
.vpp-home-tile { padding: clamp(18px, 3vw, 30px) !important; }
.vpp-section-title, .vpp-home-tile h2 { letter-spacing: -.035em; color: var(--tcsr-black); }
.vpp-training-day-card:nth-child(5n+1) .vpp-day-head { background: var(--tcsr-red) !important; }
.vpp-training-day-card:nth-child(5n+2) .vpp-day-head { background: var(--tcsr-violet) !important; }
.vpp-training-day-card:nth-child(5n+3) .vpp-day-head { background: var(--tcsr-turquoise) !important; }
.vpp-training-day-card:nth-child(5n+4) .vpp-day-head { background: #b77700 !important; }
.vpp-training-day-card:nth-child(5n+5) .vpp-day-head { background: var(--tcsr-blue) !important; }
.vpp-training-day-card.vpp-training-day-empty .vpp-day-head { background: #4b5563 !important; }
.vpp-training-item { background: #fbfbfd !important; }
.vpp-action-button, .vpp-form button, .vpp-download { background: var(--tcsr-red) !important; }

.site-footer { margin-top: clamp(50px, 8vw, 100px); color: #d9d9df; background: var(--tcsr-black); }
.footer-accent { height: 5px; background: linear-gradient(90deg, var(--tcsr-red), var(--tcsr-gold), var(--tcsr-violet), var(--tcsr-turquoise)); }
.footer-inner {
    width: min(var(--tcsr-content), calc(100% - 36px)); margin: 0 auto; padding: 55px 0 34px;
    display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: clamp(28px, 5vw, 70px);
}
.footer-title { margin: 0 0 12px; color: var(--tcsr-white); font-size: 1.35rem; font-weight: 900; }
.footer-heading { margin: 0 0 12px; color: var(--tcsr-white); font-size: .83rem; letter-spacing: .12em; text-transform: uppercase; }
.site-footer p { margin: 7px 0; }
.site-footer a { color: #f6f6f8; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 7px 0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); }
.footer-bottom__inner { width: min(var(--tcsr-content), calc(100% - 36px)); margin: 0 auto; padding: 20px 0; display: flex; justify-content: space-between; gap: 20px; font-size: .88rem; }

@media (max-width: 1320px) {
    .header-inner { grid-template-columns: 1fr auto auto; }
    .menu-toggle { display: block; }
    .site-navigation {
        display: none; position: absolute; left: 18px; right: 18px; top: calc(100% + 4px);
        padding: 14px; border-radius: 18px; background: #15151b; box-shadow: var(--tcsr-shadow);
    }
    .site-navigation.is-open { display: block; }
    .site-navigation ul { display: grid; grid-template-columns: repeat(3, 1fr); }
    .site-navigation a { padding: 12px; }
}
@media (max-width: 782px) {
    body.admin-bar .site-header { top: 46px; }
    .header-inner { min-height: 78px; width: min(100% - 24px, var(--tcsr-content)); gap: 10px; }
    .custom-logo { width: 54px; max-height: 54px; }
    .site-tagline, .header-cta { display: none; }
    .site-title { font-size: .98rem; }
    .site-navigation ul { grid-template-columns: 1fr 1fr; }
    .wp-theme-tanzclub-schwarz-rot-modern .vpp-site-main,
    body[class*="tanzclub-schwarz-rot-modern"] .vpp-site-main { width: 100% !important; margin-top: 0 !important; }
    .vpp-local-hero { min-height: 520px; border-radius: 0 0 26px 26px !important; padding: 40px 22px !important; }
    .vpp-local-hero h1 { font-size: clamp(2.5rem, 14vw, 4.6rem) !important; }
    .vpp-page-nav { padding: 0 14px; }
    .vpp-home-grid { padding: 0 14px; }
    .footer-inner { grid-template-columns: 1fr; padding-top: 42px; }
    .footer-bottom__inner { display: block; }
}
@media (max-width: 480px) {
    .site-navigation ul { grid-template-columns: 1fr; }
    .vpp-hero-actions { display: grid !important; }
    .vpp-hero-actions a { width: 100%; }
    .content-shell { width: min(100% - 20px, 980px); padding: 22px 18px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

