/* Theme clan2002: Gaming-Clan-Portal 2000 bis 2005 (docs/themes.md, Abschnitt 4).
   Reihenfolge: 1. Tokens, 2. Elemente, 3. site-Hooks, 4. Rahmen. Alles unter html.theme-clan2002.
   Metall, Riffelblech und Warnstreifen sind reine CSS-Verläufe, es gibt keine Bilddateien. */

/* 1. Tokens ---------------------------------------------------------------- */
html.theme-clan2002
{
    --theme-bg:           #101216;
    --theme-fg:           #dde2e8;
    --theme-muted:        #a3adb8;
    --theme-surface:      #1a1e24;
    --theme-surface-alt:  #232932;
    --theme-border:       #3b434e;
    --theme-accent:       #f2b705;
    --theme-accent-fg:    #14110a;
    --theme-accent-soft:  #2b2610;
    --theme-accent-text:  #ffcf33;
    --theme-link:         #6cc4ff;
    --theme-link-visited: #b9a2ff;
    --theme-link-hover:   #ffcf33;
    --theme-notice-bg:    #3a3210;
    --theme-notice-fg:    #ffe9a0;
    --theme-danger:       #ff7b7b;
    --theme-success:      #62d98f;
    --theme-radius:       0;
    --theme-shadow:       none;
    --theme-font:         Verdana, Tahoma, Geneva, sans-serif;
    --theme-font-heading: 'Silkscreen', 'Courier New', monospace;
    --theme-font-mono:    'Courier New', Courier, monospace;
    --theme-font-size:    13px;

    --cp-metal:  linear-gradient(180deg, #5b626c 0%, #3a4048 45%, #2a2f36 55%, #444b54 100%);
    --cp-brush:  repeating-linear-gradient(90deg, rgba(255,255,255,.035) 0 1px, rgba(0,0,0,.05) 1px 3px);
    --cp-plate:  radial-gradient(ellipse 5px 2px at 50% 50%, rgba(255,255,255,.07) 0 60%, transparent 62%) 0 0 / 14px 14px,
                 radial-gradient(ellipse 2px 5px at 50% 50%, rgba(255,255,255,.05) 0 60%, transparent 62%) 7px 7px / 14px 14px;
    --cp-warn:   repeating-linear-gradient(-45deg, #f2b705 0 10px, #15130c 10px 20px);
}

/* 2. Elemente --------------------------------------------------------------- */
html.theme-clan2002 body
{
    background: var(--theme-bg) var(--cp-plate);
    line-height: 1.5;
}

/* styles.css setzt Linkfarbe mit !important aus --color-link. Deshalb wird die Variable umgelenkt, nicht die Farbe. */
html.theme-clan2002 a { --color-link: var(--theme-link); }
html.theme-clan2002 a:visited { --color-link: var(--theme-link-visited); }
html.theme-clan2002 a:hover { --color-link: var(--theme-link-hover); }

html.theme-clan2002 h1,
html.theme-clan2002 h2,
html.theme-clan2002 h3
{
    letter-spacing: .04em;
}

html.theme-clan2002 .prose h1, html.theme-clan2002 .prose h2, html.theme-clan2002 .prose h3
{
    font-family: var(--theme-font-heading);
    color: var(--theme-accent-text);
    text-transform: uppercase;
}

html.theme-clan2002 hr { border-color: var(--theme-border); }

html.theme-clan2002 img { border-color: var(--theme-border); }

/* Tabellen: Kopf als Metallleiste mit gelber Schrift */
html.theme-clan2002 table thead th
{
    background: var(--cp-metal);
    color: var(--theme-accent-text);
    font-family: var(--theme-font-heading);
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: .06em;
    border-color: #1b1f24;
}

html.theme-clan2002 table th[colspan][scope="rowgroup"]
{
    background: var(--theme-accent-soft);
    color: var(--theme-accent-text);
}

html.theme-clan2002 input:not([type="checkbox"]):not([type="radio"]),
html.theme-clan2002 select,
html.theme-clan2002 textarea
{
    background: #0d0f12;
    border: 1px solid var(--theme-border);
    border-top-color: #000;
    box-shadow: inset 1px 1px 0 rgba(0,0,0,.6);
}

html.theme-clan2002 :focus-visible
{
    outline: 2px solid var(--theme-accent);
    outline-offset: 2px;
}

/* 3. Hooks der Bausteine ---------------------------------------------------- */

/* Seitenkopf: Metallbalken mit gelbem Pixel-Titel und Warnstreifen darunter */
html.theme-clan2002 .site-page-header .page-titlebar,
html.theme-clan2002 .page-titlebar
{
    position: relative;
    background: var(--cp-brush), var(--cp-metal);
    border: 1px solid #14171b;
    border-top-color: #8a929c;
    padding-bottom: .55rem;
    margin-bottom: 1rem;
}

html.theme-clan2002 .page-titlebar::after
{
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 5px;
    background: var(--cp-warn);
}

html.theme-clan2002 .page-titlebar,
html.theme-clan2002 .page-titlebar *
{
    color: var(--theme-accent-text);
}

html.theme-clan2002 .site-page-title,
html.theme-clan2002 .page-titlebar h1
{
    font-family: var(--theme-font-heading);
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    text-shadow: 1px 1px 0 #000;
}

/* Abschnittstitel: kleines Etikett mit Neon-Kante */
html.theme-clan2002 .site-section-title
{
    font-family: var(--theme-font-heading);
    font-size: 11px;
    letter-spacing: .1em;
    color: var(--theme-accent-text);
    background: var(--theme-accent-soft);
    border: 0;
    border-left: 4px solid var(--theme-accent);
    padding: 3px 8px;
}

/* Karten: News-Box mit Kopfbalken-Optik, Rahmen mit Facette */
html.theme-clan2002 .site-card
{
    background: var(--theme-surface);
    border: 1px solid var(--theme-border);
    border-top: 1px solid #66707c;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 2px 0 #000;
}

html.theme-clan2002 .site-card:hover { border-color: var(--theme-accent); }

html.theme-clan2002 .site-card__title
{
    font-family: var(--theme-font-heading);
    font-size: 12px;
    letter-spacing: .03em;
    color: var(--theme-fg);
}

html.theme-clan2002 .site-card--hero { border-left: 4px solid var(--theme-accent); }

html.theme-clan2002 .site-thumb { border-bottom: 1px solid var(--theme-border); background: #0d0f12; }

html.theme-clan2002 .site-chip
{
    font-family: var(--theme-font-heading);
    font-size: 10px;
    text-transform: uppercase;
    background: var(--cp-metal);
    color: var(--theme-fg);
    border: 1px solid #14171b;
    border-top-color: #8a929c;
}

html.theme-clan2002 .site-chip:hover { color: var(--theme-accent-text); text-decoration: none; }
html.theme-clan2002 .site-chip.chip-active,
html.theme-clan2002 .site-chip[aria-pressed="true"]
{
    background: var(--theme-accent);
    color: var(--theme-accent-fg);
}

html.theme-clan2002 .site-tag
{
    font-family: var(--theme-font-mono);
    color: var(--theme-accent-text);
    background: var(--theme-accent-soft);
    border: 1px solid #5a4a10;
}

html.theme-clan2002 .site-badge
{
    font-family: var(--theme-font-heading);
    font-size: 10px;
    text-transform: uppercase;
    background: var(--theme-accent);
    color: var(--theme-accent-fg);
    padding: 0 5px;
}

html.theme-clan2002 .site-button,
html.theme-clan2002 button[type="submit"],
html.theme-clan2002 input[type="submit"]
{
    font-family: var(--theme-font-heading);
    text-transform: uppercase;
    letter-spacing: .06em;
    background: linear-gradient(180deg, #ffd23f 0%, #f2b705 50%, #c78f00 100%);
    color: var(--theme-accent-fg);
    border: 1px solid #5a4300;
    border-top-color: #fff0a6;
    padding: .45rem 1rem;
    cursor: pointer;
    text-shadow: 0 1px 0 rgba(255,255,255,.3);
}

html.theme-clan2002 .site-button:hover,
html.theme-clan2002 button[type="submit"]:hover
{
    filter: brightness(1.1);
    color: var(--theme-accent-fg);
    text-decoration: none;
}

html.theme-clan2002 .site-button:visited { color: var(--theme-accent-fg); }

html.theme-clan2002 .site-pagination a,
html.theme-clan2002 .site-pagination span
{
    border: 1px solid var(--theme-border);
    background: var(--theme-surface);
    padding: 1px 7px;
}

html.theme-clan2002 .site-page-current
{
    background: var(--theme-accent);
    color: var(--theme-accent-fg);
    border-color: var(--theme-accent);
}

html.theme-clan2002 .site-notice
{
    background: var(--theme-notice-bg);
    color: var(--theme-notice-fg);
    border: 1px solid #6b5a14;
    border-left: 4px solid var(--theme-accent);
}

html.theme-clan2002 .site-meta { color: var(--theme-muted); font-family: var(--theme-font-mono); font-size: 12px; }

html.theme-clan2002 .list-row { border-color: var(--theme-border); }
html.theme-clan2002 .list-year { color: var(--theme-accent-text); font-family: var(--theme-font-mono); }

/* Umschalter und Cookie-Hinweis */
html.theme-clan2002 .theme-switcher { margin: 1rem 0; }
html.theme-clan2002 .theme-switcher__label
{
    font-family: var(--theme-font-heading);
    font-size: 11px;
    text-transform: uppercase;
    color: var(--theme-accent-text);
}
html.theme-clan2002 .theme-switcher__list { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: .4rem 0 0; }
html.theme-clan2002 .theme-switcher__item a
{
    display: flex; flex-direction: column; align-items: center; gap: 2px;
    padding: 4px; border: 1px solid var(--theme-border); background: var(--theme-surface);
    font-size: 11px; width: 80px; text-align: center;
}
html.theme-clan2002 .theme-switcher__item.is-current a { border-color: var(--theme-accent); }
html.theme-clan2002 .theme-switcher__preview { border: 1px solid #000; max-width: 100%; height: auto; }

html.theme-clan2002 #cookie-banner
{
    background: var(--cp-metal);
    border: 2px solid var(--theme-accent);
    color: var(--theme-fg);
}

/* 4. Rahmen aus base.html.twig ---------------------------------------------- */
html.theme-clan2002 .cp-skip { position: absolute; left: -9999px; }
html.theme-clan2002 .cp-skip:focus { left: .5rem; top: .5rem; z-index: 100; background: var(--theme-surface); padding: .5rem; }

html.theme-clan2002 .cp-page
{
    max-width: 1100px;
    margin: 0 auto;
    padding: 10px;
    background: rgba(8,9,11,.82);
    border-left: 3px solid #4a525c;
    border-right: 3px solid #4a525c;
    min-height: 100vh;
}

/* Kopfbanner: gebürstetes Metall, Pixel-Logo, Neon-Status */
html.theme-clan2002 .cp-banner
{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 14px 18px;
    background: var(--cp-brush), linear-gradient(180deg, #6a717b 0%, #3c424a 40%, #22262c 100%);
    border: 1px solid #0b0c0e;
    border-top-color: #a3abb5;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), inset 0 -18px 30px rgba(0,0,0,.35);
}

html.theme-clan2002 .cp-logo,
html.theme-clan2002 .cp-logo:visited { display: inline-flex; align-items: baseline; gap: .6rem; color: #fff; text-decoration: none; }
html.theme-clan2002 .cp-logo:hover { text-decoration: none; color: #fff; }

html.theme-clan2002 .cp-logo__tag
{
    font-family: 'Press Start 2P', monospace;
    font-size: 22px;
    color: var(--theme-accent);
    text-shadow: 2px 2px 0 #000, 0 0 12px rgba(242,183,5,.55);
}

html.theme-clan2002 .cp-logo__name
{
    font-family: var(--theme-font-heading);
    font-weight: 700;
    font-size: 26px;
    text-transform: uppercase;
    letter-spacing: .06em;
    text-shadow: 2px 2px 0 #000;
}

html.theme-clan2002 .cp-banner__sub
{
    margin: 4px 0 0;
    font-family: var(--theme-font-mono);
    font-size: 13px;
    color: #f2f4f6;
    text-shadow: 1px 1px 0 #000;
}

html.theme-clan2002 .cp-status
{
    margin: 0;
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: 4px 10px;
    background: #0a0c0e;
    border: 1px solid #000;
    border-bottom-color: #555c66;
    font-family: var(--theme-font-mono);
    font-size: 13px;
    color: #7dffa8;
    white-space: nowrap;
}

html.theme-clan2002 .cp-led
{
    width: 9px; height: 9px; border-radius: 50%;
    background: #3cff7e;
    box-shadow: 0 0 6px #3cff7e, inset 0 0 2px #fff;
}

@media (prefers-reduced-motion: no-preference)
{
    html.theme-clan2002 .cp-led { animation: cp-led 2.4s ease-in-out infinite; }
    @keyframes cp-led { 50% { opacity: .45; } }
}

html.theme-clan2002 .cp-stripe { height: 8px; margin: 6px 0; background: var(--cp-warn); border: 1px solid #000; }

html.theme-clan2002 .cp-layout
{
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr) 190px;
    gap: 10px;
    align-items: start;
}

/* Boxen mit Kopfbalken */
html.theme-clan2002 .cp-box
{
    margin-bottom: 10px;
    background: var(--theme-surface);
    border: 1px solid var(--theme-border);
    border-top-color: #66707c;
    box-shadow: 0 2px 0 #000;
}

html.theme-clan2002 .cp-box__title
{
    margin: 0;
    padding: 4px 8px;
    background: var(--cp-brush), var(--cp-metal);
    border-bottom: 2px solid var(--theme-accent);
    font-size: 10px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--theme-accent-text);
    text-shadow: 1px 1px 0 #000;
}

html.theme-clan2002 .cp-box__title::before { content: '[ '; color: #8a929c; }
html.theme-clan2002 .cp-box__title::after { content: ' ]'; color: #8a929c; }

html.theme-clan2002 .cp-box ul,
html.theme-clan2002 .cp-box dl { margin: 0; padding: 0; list-style: none; }
html.theme-clan2002 .cp-box__body { padding: 8px; }

html.theme-clan2002 .cp-nav li
{
    display: flex; justify-content: space-between; align-items: baseline;
    border-bottom: 1px solid #262c34;
}
html.theme-clan2002 .cp-nav li:last-child { border-bottom: 0; }

html.theme-clan2002 .cp-nav a
{
    display: block;
    flex: 1 1 auto;
    padding: 5px 10px;
    color: var(--theme-fg);
    border-left: 3px solid transparent;
}

html.theme-clan2002 .cp-nav a:visited { color: var(--theme-fg); }
html.theme-clan2002 .cp-nav a:hover
{
    background: var(--theme-accent-soft);
    color: var(--theme-accent-text);
    border-left-color: var(--theme-accent);
    text-decoration: none;
}
html.theme-clan2002 .cp-nav a.is-active
{
    background: var(--theme-accent);
    color: var(--theme-accent-fg);
    font-weight: 700;
    border-left-color: #fff;
}

html.theme-clan2002 .cp-count { padding: 0 8px; font-family: var(--theme-font-mono); color: var(--theme-muted); }

html.theme-clan2002 .cp-stats dl { display: grid; grid-template-columns: 1fr auto; }
html.theme-clan2002 .cp-stats dt,
html.theme-clan2002 .cp-stats dd { margin: 0; padding: 4px 8px; border-bottom: 1px solid #262c34; }
html.theme-clan2002 .cp-stats dd { font-family: var(--theme-font-mono); color: var(--theme-accent-text); text-align: right; }

html.theme-clan2002 .cp-main
{
    min-width: 0;
    padding: 14px 16px 20px;
    background: var(--theme-bg) var(--cp-brush);
    border: 1px solid var(--theme-border);
    border-top-color: #66707c;
    box-shadow: 0 2px 0 #000;
}

html.theme-clan2002 .cp-footer { padding: 6px 4px 14px; font-size: 12px; color: var(--theme-muted); }
html.theme-clan2002 .cp-footer__links { display: flex; flex-wrap: wrap; gap: .25rem 1rem; list-style: none; padding: 0; margin: 0; }
html.theme-clan2002 .cp-footer__note { margin: .5rem 0 0; font-family: var(--theme-font-mono); }

@media (max-width: 960px)
{
    html.theme-clan2002 .cp-layout { grid-template-columns: 150px minmax(0, 1fr); }
    html.theme-clan2002 .cp-right { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
}

@media (max-width: 700px)
{
    html.theme-clan2002 .cp-page { padding: 6px; border-left-width: 0; border-right-width: 0; }
    html.theme-clan2002 .cp-banner { flex-direction: column; align-items: flex-start; padding: 10px 12px; }
    html.theme-clan2002 .cp-logo { flex-wrap: wrap; }
    html.theme-clan2002 .cp-logo__name { font-size: 18px; }
    html.theme-clan2002 .cp-logo__tag { font-size: 16px; }
    html.theme-clan2002 .cp-layout { grid-template-columns: minmax(0, 1fr); }
    html.theme-clan2002 .cp-main { order: 1; padding: 10px; }
    html.theme-clan2002 .cp-left { order: 0; }
    html.theme-clan2002 .cp-right { order: 2; }
    html.theme-clan2002 .cp-left .cp-nav ul { display: flex; flex-wrap: wrap; }
    html.theme-clan2002 .cp-left .cp-nav li { border-bottom: 0; }
}

/* Korrekturen nach Sichtprüfung */
html.theme-clan2002 .cp-nav a.is-active,
html.theme-clan2002 .cp-nav a.is-active:visited,
html.theme-clan2002 .cp-nav a.is-active:hover,
html.theme-clan2002 a.site-button,
html.theme-clan2002 a.site-button:visited,
html.theme-clan2002 a.site-button:hover
{
    --color-link: var(--theme-accent-fg);
    color: var(--theme-accent-fg);
}

html.theme-clan2002 .cp-nav a,
html.theme-clan2002 .cp-nav a:visited { --color-link: var(--theme-fg); }
html.theme-clan2002 .cp-nav a:hover { --color-link: var(--theme-accent-text); }
html.theme-clan2002 .cp-logo,
html.theme-clan2002 .cp-logo:visited,
html.theme-clan2002 .cp-logo:hover { --color-link: #fff; }
html.theme-clan2002 .site-chip,
html.theme-clan2002 .site-chip:visited { --color-link: var(--theme-fg); }
html.theme-clan2002 .site-chip:hover { --color-link: var(--theme-accent-text); }

/* Titelbalken: gelbe Schrift (neutral.css färbt sie sonst in accent-fg) */
html.theme-clan2002[class] .page-titlebar,
html.theme-clan2002[class] .page-titlebar *
{
    color: var(--theme-accent-text);
}

html.theme-clan2002 .cp-search input
{
    text-transform: none;
    letter-spacing: 0;
    font-size: 11px;
    font-weight: 400;
    padding: 4px 6px;
}

html.theme-clan2002 .site-chip.chip-active,
html.theme-clan2002 .site-chip[aria-pressed="true"],
html.theme-clan2002 .site-chip.chip-active:hover { --color-link: var(--theme-accent-fg); color: var(--theme-accent-fg); }

html.theme-clan2002[class] .page-titlebar { margin-top: 0; padding-top: .5rem; }
