/* Theme homepage98: selbstgebaute Homepage 1996-2000 (docs/themes.md, Abschnitt 4).
   Reihenfolge: 1. Tokens, 2. Elemente, 3. Rahmen aus base.html.twig. Alles unter html.theme-homepage98. */

/* 1. Tokens */
html.theme-homepage98
{
    --theme-bg:           #2a3f8f;
    --theme-fg:           #000000;
    --theme-muted:        #4a4a4a;
    --theme-surface:      #fffff0;
    --theme-surface-alt:  #eeeed8;
    --theme-border:       #707070;
    --theme-accent:       #000080;
    --theme-accent-fg:    #ffff66;
    --theme-accent-soft:  #ffe9a8;
    --theme-accent-text:  #000080;
    --theme-link:         #0000ee;
    --theme-link-visited: #551a8b;
    --theme-link-hover:   #cc0000;
    --theme-notice-bg:    #ffff99;
    --theme-notice-fg:    #000000;
    --theme-danger:       #b00000;
    --theme-success:      #006400;
    --theme-radius:       0;
    --theme-shadow:       none;
    --theme-font:         'Times New Roman', Times, serif;
    --theme-font-heading: 'Comic Sans MS', 'Comic Sans', 'Chalkboard SE', cursive, sans-serif;
    --theme-font-mono:    'Courier New', Courier, monospace;
    --theme-font-size:    17px;

    --h-tile: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32'%3E%3Crect width='32' height='32' fill='%232a3f8f'/%3E%3Crect x='0' y='0' width='16' height='16' fill='%23344aa5'/%3E%3Crect x='16' y='16' width='16' height='16' fill='%23344aa5'/%3E%3Cpath d='M8 3l1.3 3.2 3.2.3-2.4 2.2.7 3.3L8 10.3 5.2 12l.7-3.3L3.5 6.5l3.2-.3z' fill='%23ffd84a' opacity='.55'/%3E%3C/svg%3E");
}

/* 2. Elemente */
html.theme-homepage98 body
{
    background-color: var(--theme-bg);
    background-image: var(--h-tile);
    line-height: 1.45;
}
html.theme-homepage98 a { color: var(--theme-link); text-decoration: underline; }
html.theme-homepage98 a:visited { color: var(--theme-link-visited); }
html.theme-homepage98 a:hover { color: var(--theme-link-hover); }

html.theme-homepage98 .h-main h1,
html.theme-homepage98 .h-main h2,
html.theme-homepage98 .h-main h3,
html.theme-homepage98 .h-main h4 { font-weight: bold; line-height: 1.2; }
html.theme-homepage98 .h-main h1 { color: #b00020; }
html.theme-homepage98 .h-main h2 { color: #006400; }
html.theme-homepage98 .h-main h3 { color: #0000a0; }
html.theme-homepage98 .h-main h4 { color: #800080; }
html.theme-homepage98 .h-main :is(h1, h2, h3, h4) a { color: inherit; }

html.theme-homepage98 .h-main hr { border: 0; height: 4px; background: repeating-linear-gradient(90deg, #cc0000 0 20px, #ff9900 20px 40px, #009900 40px 60px, #0000cc 60px 80px, #800080 80px 100px); margin: 1rem 0; }

html.theme-homepage98 .h-main img { border: 2px outset #c0c0c0; }
html.theme-homepage98 .h-main .prose { max-width: none; font-size: 1em; }
html.theme-homepage98 .h-main .prose :is(h1,h2,h3,h4) { font-family: var(--theme-font-heading); }

/* Seitentitel: bunte Regenbogenleiste statt Balken, Text bleibt auf ruhigem Grund lesbar */
html.theme-homepage98[class] .page-titlebar,
html.theme-homepage98 .site-page-header
{
    background: var(--theme-accent);
    border: 3px ridge #c0c0c0;
    padding: .35rem .6rem;
    margin-bottom: 1rem;
    text-align: center;
}
html.theme-homepage98 .page-titlebar h1,
html.theme-homepage98 .page-titlebar * { color: var(--theme-accent-fg); font-family: var(--theme-font-heading); }
/* Untertitel steht mit im dunkelblauen Kopf, grauer Nebentext wäre dort unlesbar */
html.theme-homepage98 .site-page-header > p { color: #ffffff; }

html.theme-homepage98 .site-section-title
{
    font-family: var(--theme-font-heading);
    border: 2px dashed #cc0000;
    background: var(--theme-accent-soft);
    color: #7a0000;
    text-transform: none;
    letter-spacing: 0;
    font-size: 1rem;
}

/* Karten wie Linkkästen */
html.theme-homepage98 .site-card
{
    border: 3px ridge #c0c0c0;
    background: var(--theme-surface);
}
html.theme-homepage98 .site-card__title { font-family: var(--theme-font-heading); }

/* Buttons wie Standard-Windows-Knöpfe */
html.theme-homepage98 .site-button,
html.theme-homepage98 button,
html.theme-homepage98 input[type=submit]
{
    border: 3px outset #d8d8d8;
    background: #c0c0c0;
    color: #000;
    font-family: 'Comic Sans MS', 'Comic Sans', cursive, sans-serif;
    padding: .25rem .9rem;
    border-radius: 0;
    text-decoration: none;
}
html.theme-homepage98 .site-button:hover,
html.theme-homepage98 button:hover { color: #000; background: #d8d8d8; }
html.theme-homepage98 .site-button:active,
html.theme-homepage98 button:active { border-style: inset; }

/* Formulare (Gästebuch-Charme beim Kontakt) */
html.theme-homepage98 input:not([type=checkbox]):not([type=radio]),
html.theme-homepage98 select,
html.theme-homepage98 textarea
{
    border: 2px inset #a0a0a0;
    border-radius: 0;
    background: #ffffff;
    color: #000;
}
html.theme-homepage98 .h-main form label { font-family: var(--theme-font-heading); font-weight: bold; }

html.theme-homepage98 .site-chip { border: 2px outset #d8d8d8; background: #e0e0e0; color: #000; }
html.theme-homepage98 .site-pagination a,
html.theme-homepage98 .site-page-current { border: 2px outset #d8d8d8; padding: 0 .5rem; }

html.theme-homepage98 table thead th { font-family: var(--theme-font-heading); }

/* 3. Rahmen */
html.theme-homepage98 .h-skip { position: absolute; left: -9999px; }
html.theme-homepage98 .h-skip:focus { left: .5rem; top: .5rem; z-index: 100; background: #ffff99; color: #000; padding: .5rem; border: 2px solid #000; }

html.theme-homepage98 .h-page
{
    max-width: 880px;
    margin: 0 auto;
    padding: .75rem;
    background: var(--theme-surface);
    border-left: 4px ridge #c0c0c0;
    border-right: 4px ridge #c0c0c0;
    min-height: 100vh;
}

html.theme-homepage98 .h-header { text-align: center; }
html.theme-homepage98 .h-welcome { margin: 0; font-family: var(--theme-font-heading); color: #800080; font-size: 1rem; }
html.theme-homepage98 .h-logo
{
    display: inline-block;
    font-family: var(--theme-font-heading);
    font-weight: bold;
    font-size: clamp(2rem, 8vw, 3.4rem);
    line-height: 1.15;
    text-decoration: none;
    text-shadow: 2px 2px 0 #000;
}
html.theme-homepage98 .h-logo span:nth-child(5n+1) { color: #ff3030; }
html.theme-homepage98 .h-logo span:nth-child(5n+2) { color: #ff9900; }
html.theme-homepage98 .h-logo span:nth-child(5n+3) { color: #f0d800; }
html.theme-homepage98 .h-logo span:nth-child(5n+4) { color: #20c020; }
html.theme-homepage98 .h-logo span:nth-child(5n)   { color: #4090ff; }
html.theme-homepage98 .h-logo:hover span { color: #ffffff; }
html.theme-homepage98 .h-tagline { margin: 0 0 .5rem; font-style: italic; color: var(--theme-muted); }

html.theme-homepage98 .h-marquee
{
    margin: .4rem 0;
    overflow: hidden;
    white-space: nowrap;
    background: #000080;
    border: 3px inset #c0c0c0;
    padding: .15rem 0;
    text-align: center;
}
html.theme-homepage98 .h-marquee__text { color: #ffff66; font-family: var(--theme-font-heading); font-size: .95rem; display: inline-block; }
@media (prefers-reduced-motion: no-preference)
{
    html.theme-homepage98 .h-marquee { text-align: left; }
    html.theme-homepage98 .h-marquee__text { padding-left: 100%; animation: h-scroll 22s linear infinite; }
    html.theme-homepage98 .h-marquee:hover .h-marquee__text { animation-play-state: paused; }
}
@keyframes h-scroll { from { transform: translateX(0); } to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce)
{
    html.theme-homepage98 .h-marquee { white-space: normal; }
}

html.theme-homepage98 .h-rainbow
{
    border: 0; height: 6px; margin: .5rem 0;
    background: repeating-linear-gradient(90deg, #cc0000 0 30px, #ff9900 30px 60px, #e0c800 60px 90px, #009900 90px 120px, #0000cc 120px 150px, #800080 150px 180px);
}

html.theme-homepage98 .h-topnav ul { display: flex; flex-wrap: wrap; justify-content: center; gap: .15rem .9rem; list-style: none; margin: 0 0 1rem; padding: 0; font-family: var(--theme-font-heading); }
html.theme-homepage98 .h-topnav a.is-active { color: #cc0000; font-weight: bold; background: #ffff99; text-decoration: none; }

html.theme-homepage98 .h-layout { display: flex; gap: 1rem; align-items: flex-start; }
html.theme-homepage98 .h-side { flex: 0 0 200px; font-size: .95rem; }
html.theme-homepage98 .h-main { flex: 1 1 auto; min-width: 0; }

html.theme-homepage98 .h-box { border: 3px ridge #c0c0c0; background: var(--theme-surface-alt); margin-bottom: .9rem; }
html.theme-homepage98 .h-box__title { margin: 0; padding: .15rem .4rem; background: var(--theme-accent); color: var(--theme-accent-fg); font-family: var(--theme-font-heading); font-size: .95rem; }
html.theme-homepage98 .h-box ul { margin: 0; padding: .4rem .5rem; list-style: square; list-style-position: inside; }
html.theme-homepage98 .h-box a.is-active { font-weight: bold; color: #cc0000; }
html.theme-homepage98 .h-count { color: var(--theme-muted); }
html.theme-homepage98 .h-search { padding-bottom: .4rem; }
html.theme-homepage98 .h-search > :not(.h-box__title) { margin: .4rem .5rem 0; }

html.theme-homepage98 .h-counters dl { margin: 0; padding: .4rem .5rem; }
html.theme-homepage98 .h-counters dt { font-size: .85rem; margin-top: .3rem; }
html.theme-homepage98 .h-counters dd { margin: 0; }
html.theme-homepage98 .h-lcd
{
    display: inline-block;
    font-family: var(--theme-font-mono);
    font-weight: bold;
    letter-spacing: .12em;
    background: #000;
    color: #39ff14;
    border: 2px inset #808080;
    padding: 0 .4rem;
}

html.theme-homepage98 .h-footer { margin-top: 2rem; text-align: center; font-size: .95rem; }
html.theme-homepage98 .h-construction { display: flex; flex-direction: column; align-items: center; margin: .8rem 0; }
html.theme-homepage98 .h-construction p { margin: .2rem 0 0; }
html.theme-homepage98 .h-ring { border: 3px double #800080; background: #ffe9ff; padding: .4rem; margin: .8rem auto; max-width: 30rem; }
html.theme-homepage98 .h-ring__title { margin: 0; font-family: var(--theme-font-heading); font-weight: bold; color: #800080; }
html.theme-homepage98 .h-ring ul { display: flex; flex-wrap: wrap; justify-content: center; gap: .2rem 1.2rem; list-style: none; margin: .2rem 0 0; padding: 0; }
html.theme-homepage98 .h-footer__links { display: flex; flex-wrap: wrap; justify-content: center; gap: .2rem 1rem; list-style: none; padding: 0; margin: .5rem 0; }
html.theme-homepage98 .h-best { color: var(--theme-muted); font-size: .85rem; }

/* Theme-Umschalter */
html.theme-homepage98 .theme-switcher { margin: .6rem 0; }
html.theme-homepage98 .theme-switcher__label { font-family: var(--theme-font-heading); font-weight: bold; }
html.theme-homepage98 .theme-switcher__list { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; list-style: none; padding: 0; margin: .3rem 0; }
html.theme-homepage98 .theme-switcher__item a { display: flex; flex-direction: column; align-items: center; gap: .15rem; padding: .25rem; border: 2px outset #d8d8d8; background: #e8e8e8; text-decoration: none; font-size: .8rem; }
html.theme-homepage98 .theme-switcher__item.is-current a { border-style: inset; background: #ffff99; font-weight: bold; }
html.theme-homepage98 .theme-switcher__preview { border: 1px solid #000 !important; max-width: 64px; height: auto; }

html.theme-homepage98 #cookie-banner { border: 3px ridge #c0c0c0; font-family: var(--theme-font); }

@media (max-width: 800px)
{
    html.theme-homepage98 .h-page { border-left: 0; border-right: 0; padding: .5rem; }
    html.theme-homepage98 .h-layout { flex-direction: column; }
    html.theme-homepage98 .h-side { flex-basis: auto; width: 100%; order: 2; }
    html.theme-homepage98 .h-main { width: 100%; }
}

/* Windows-Knöpfe: Text schwarz auch dort, wo Tailwind text-white / Akzent setzt */
html.theme-homepage98[class][class] :is(.site-button, .hero-button, button, input[type=submit], #cookie-banner button, #cookie-banner a[role=button]),
html.theme-homepage98[class][class] :is(.site-button, .hero-button, button) *
{
    color: #000000;
    background-color: #c0c0c0;
    border: 3px outset #d8d8d8;
    text-decoration: none;
}
html.theme-homepage98[class][class] :is(.site-button, .hero-button, button):hover { background-color: #dcdcdc; color: #000; }
/* styles.css färbt .hero-button mit !important weiß, nur so kommt Schwarz durch */
html.theme-homepage98 :is(.hero-button, .hero-button:link, .hero-button:visited) { color: #000 !important; }
html.theme-homepage98[class][class] .chip-active { background-color: #000080; color: #ffff66; border-style: inset; }

@media (max-width: 800px)
{
    html.theme-homepage98 .h-main table { display: block; max-width: 100%; overflow-x: auto; }
}
html.theme-homepage98 .h-header { overflow: hidden; }
html.theme-homepage98 .h-page { overflow-x: clip; }
