/* ============================================================
   Desperado Glitterboys – Stylesheet
   Idea: a sheet of paper on a sky-blue wall, framed by tulip garlands.
   Childlike on purpose – hand lettering, pastel colours, wobbly heads.
   ============================================================ */

@font-face {
    font-family: 'Patrick Hand';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(fonts/patrick-hand-latin-400-normal.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Patrick Hand';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(fonts/patrick-hand-latin-ext-400-normal.woff2) format('woff2');
    unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
    --sky:      #33ccff;
    --sky-dark: #0099cc;
    --paper:    #F7F6C7;
    --paper-2:  #fffde6;
    --pink:     #ff66cc;
    --pink-lt:  #ffd4ec;
    --purple:   #9900cc;
    --magenta:  #D857C3;
    --green:    #33cc66;
    --ink:      #222;
    --ink-soft: #555;
    --link:     #0000ee;
    --hand:     'Patrick Hand', 'Comic Sans MS', 'Chalkboard SE', cursive;
    --text:     Arial, Helvetica, sans-serif;
    --sheet-w:  1100px;
}

* { box-sizing: border-box; }

html { background: var(--sky); }
body {
    margin: 0;
    padding: 24px 16px 40px;
    font: 16px/1.55 var(--text);
    color: var(--ink);
    background:
        radial-gradient(circle at 20% 15%, rgba(255,255,255,.35) 0 60px, transparent 61px),
        radial-gradient(circle at 85% 8%,  rgba(255,255,255,.30) 0 40px, transparent 41px),
        radial-gradient(circle at 70% 90%, rgba(255,255,255,.25) 0 80px, transparent 81px),
        var(--sky);
    background-attachment: fixed;
}

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

a:link    { color: var(--link); font-weight: bold; text-decoration: none; }
a:visited { color: #cc0000; font-weight: bold; text-decoration: none; }
a:hover, a:focus { color: #ff0000; text-decoration: underline; }

h1, h2, h3 { font-family: var(--hand); font-weight: normal; line-height: 1.15; }
h1 { font-size: 2.4rem; margin: .2em 0 .4em; text-align: center; }
h2 { font-size: 1.8rem; margin: 1.2em 0 .4em; }
h3 { font-size: 1.35rem; margin: 1em 0 .3em; }

/* ---- The sheet (with tulip garlands left and right) ---- */
#sheet {
    max-width: var(--sheet-w);
    margin: 0 auto;
    background: var(--paper);
    border-radius: 6px;
    box-shadow: 0 10px 30px rgba(0,40,80,.35);
    padding: 0 90px;
    background-image: url(graphics/bg_tulpen.gif), url(graphics/bg_tulpen.gif);
    background-repeat: repeat-y, repeat-y;
    background-position: 12px 0, right 12px top 300px;
    position: relative;
}

/* ---- Header ---- */
#site-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 18px 0 8px;
}
#site-header .logo img { display: block; width: 170px; transform: rotate(-3deg); }
#site-title { flex: 1; }
#site-title .site-heading { margin: 0; font: inherit; }
#site-title a.site-name, #site-title a.site-name:visited {
    font-family: var(--hand);
    font-size: 3rem;
    line-height: 1;
    color: #000;
    font-weight: normal;
    text-decoration: none;
}
.site-tagline {
    font-family: var(--hand);
    font-size: 1.6rem;
    color: var(--magenta);
    transform: rotate(-1.5deg);
    display: inline-block;
    margin-top: 4px;
}
.site-subline { font-size: .85rem; color: var(--ink-soft); }

#site-social { display: flex; flex-direction: column; gap: 8px; }
.btn-social, .btn-social:link, .btn-social:visited {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 999px;
    border: 2px solid #000;
    color: #fff;
    font-family: var(--hand);
    font-size: 1.15rem;
    font-weight: normal;
    text-align: center;
    box-shadow: 2px 3px 0 rgba(0,0,0,.25);
    transition: transform .15s;
}
.btn-social:hover { color: #fff; text-decoration: none; transform: rotate(-3deg) scale(1.05); }
.btn-spotify  { background: #1DB954; }
.btn-facebook { background: #1877F2; }

/* ---- Navigation: pink pill buttons with wobbling heads ---- */
#nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 14px;
    padding: 10px 0 14px;
    border-bottom: 3px dashed var(--sky);
}
#nav a, #nav a:visited {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 18px 4px 8px;
    border: 2px solid #000;
    border-radius: 999px;
    background: linear-gradient(#ffc6ea, var(--pink));
    color: #000;
    font-family: var(--hand);
    font-size: 1.35rem;
    font-weight: normal;
    box-shadow: 2px 3px 0 rgba(0,0,0,.2);
    transition: transform .15s;
}
#nav a:nth-child(odd):hover  { transform: rotate(-4deg); text-decoration: none; }
#nav a:nth-child(even):hover { transform: rotate(4deg);  text-decoration: none; }
#nav a.active { background: linear-gradient(#fff9a8, #ffd800); }
.nav-kopf { width: 30px; height: 30px; display: block; }
/* Heads only show up on the active item and on hover */
#nav a:not(.active) .nav-kopf { opacity: 0; transition: opacity .15s; }
#nav a:not(.active):hover .nav-kopf { opacity: 1; }

/* ---- Main ---- */
#main { padding: 16px 0 30px; min-height: 50vh; overflow-wrap: break-word; }
#main h1, #main h2, #main h3, #main p { hyphens: auto; }

/* Legacy table layouts must not overflow the sheet */
#main table { max-width: 100%; }

.intro { max-width: 760px; margin: 0 auto 1em; text-align: center; font-size: 1.05rem; }

/* ---- Footer ---- */
#site-footer {
    border-top: 3px dashed var(--sky);
    padding: 14px 0 20px;
    text-align: center;
    font-size: .9rem;
    color: var(--ink-soft);
}
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; margin-bottom: 8px; }
.footer-links a { font-family: var(--hand); font-size: 1.2rem; font-weight: normal; }
.footer-prod img { vertical-align: middle; }

/* ============================================================
   Cards, polaroids, notes
   ============================================================ */
.note {
    background: var(--paper-2);
    border: 2px solid #000;
    border-radius: 4px 14px 6px 12px;
    padding: 14px 18px;
    box-shadow: 3px 4px 0 rgba(0,0,0,.15);
}
.note-pink   { background: var(--pink-lt); }
.note-blue   { background: #d6f3ff; }
.note-green  { background: #dbffe4; }
.note h2, .note h3 { margin-top: 0; }

/* Tape strip on top of an element */
.tape { position: relative; }
.tape::before {
    content: '';
    position: absolute;
    top: -12px; left: 50%;
    width: 90px; height: 24px;
    margin-left: -45px;
    background: rgba(255,255,200,.75);
    border: 1px solid rgba(0,0,0,.08);
    transform: rotate(-4deg);
}

.polaroid, .polaroid:visited {
    display: block;
    background: #fff;
    padding: 10px 10px 8px;
    box-shadow: 2px 4px 10px rgba(0,0,0,.25);
    color: var(--ink);
    font-weight: normal;
    text-align: center;
    transition: transform .2s;
}
.polaroid { position: relative; }
.sticker-spotify {
    position: absolute;
    top: -8px; right: -10px;
    padding: 3px 10px;
    background: #1DB954;
    color: #fff;
    border: 2px solid #000;
    border-radius: 999px;
    font-family: var(--hand);
    font-size: 1rem;
    transform: rotate(8deg);
    box-shadow: 1px 2px 0 rgba(0,0,0,.25);
}
.polaroid:hover { text-decoration: none; transform: rotate(0deg) scale(1.06) !important; z-index: 2; position: relative; }
.polaroid .cover, .polaroid img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.polaroid-title { font-family: var(--hand); font-size: 1.25rem; line-height: 1.1; margin-top: 6px; color: #000; hyphens: auto; overflow-wrap: anywhere; }
.polaroid-meta { font-size: .8rem; color: var(--ink-soft); }

/* Placeholder cover when no image exists */
.cover-none {
    display: flex !important;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1;
    padding: 10px;
    background: repeating-linear-gradient(45deg, #ffe600 0 14px, #ffcf00 14px 28px);
    font-family: var(--hand);
    font-size: 1.6rem;
    text-align: center;
    color: #000;
    border: 2px solid #000;
}

.cover-wall {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(160px, 40%), 1fr));
    gap: 28px 22px;
    padding: 10px 6px;
}
.cover-wall > :nth-child(4n+1) { transform: rotate(-3deg); }
.cover-wall > :nth-child(4n+2) { transform: rotate(2deg); }
.cover-wall > :nth-child(4n+3) { transform: rotate(-1deg); }
.cover-wall > :nth-child(4n)   { transform: rotate(3deg); }

/* ============================================================
   Player
   ============================================================ */
.player {
    background: #fff;
    border: 3px solid #000;
    border-radius: 16px 8px 18px 10px;
    padding: 16px;
    box-shadow: 4px 6px 0 rgba(0,0,0,.18);
}
.player-head { display: flex; gap: 16px; align-items: center; }
.player-cover { width: 110px; height: 110px; flex-shrink: 0; border: 2px solid #000; object-fit: cover; transform: rotate(-3deg); }
.player-cover.cover-none { font-size: 1rem; }
.player.is-playing .player-cover { animation: wobble 1.6s ease-in-out infinite; }
@keyframes wobble { 0%,100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }
.player-label { font-family: var(--hand); color: var(--magenta); font-size: 1.2rem; }
.player-title { font-family: var(--hand); font-size: 2rem; line-height: 1.05; }
.player-album { color: var(--ink-soft); font-size: .9rem; }
.player-controls { display: flex; align-items: center; gap: 12px; margin: 14px 0 8px; }
.btn-play {
    width: 52px; height: 52px; flex-shrink: 0;
    border: 3px solid #000; border-radius: 50%;
    background: var(--green); color: #fff;
    font-size: 1.3rem; line-height: 1; cursor: pointer;
    box-shadow: 2px 3px 0 rgba(0,0,0,.25);
}
.btn-play:hover { transform: rotate(-8deg) scale(1.05); }
.player.is-playing .btn-play { background: var(--pink); }
.player-seek { flex: 1; min-width: 0; accent-color: var(--magenta); cursor: pointer; }
.player-time { font-family: var(--hand); font-size: 1.1rem; white-space: nowrap; min-width: 5.5em; text-align: right; }

/* ---- Mini player (keeps playing while browsing) ---- */
#mini-player {
    position: fixed;
    right: 18px; bottom: 18px;
    z-index: 900;
    display: flex; align-items: center; gap: 10px;
    max-width: min(380px, calc(100vw - 36px));
    padding: 8px 10px 12px 8px;
    background: #fff;
    border: 3px solid #000;
    border-radius: 18px 10px 20px 12px;
    box-shadow: 4px 6px 0 rgba(0,0,0,.25);
    transform: rotate(-1.5deg);
    animation: mini-in .35s ease-out;
}
#mini-player[hidden] { display: none; }
@keyframes mini-in { from { transform: translateY(120%) rotate(-8deg); } to { transform: rotate(-1.5deg); } }
.mini-cover { width: 46px; height: 46px; border-radius: 50%; border: 2px solid #000; object-fit: cover; flex-shrink: 0; }
#mini-player.is-playing .mini-cover { animation: spin 4s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.mini-info, .mini-info:visited { display: flex; flex-direction: column; min-width: 0; flex: 1; color: #000; font-weight: normal; }
.mini-info:hover { text-decoration: none; }
.mini-info:hover .mini-title { text-decoration: underline; }
.mini-title { font-family: var(--hand); font-size: 1.2rem; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-album { font-size: .75rem; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-play, .mini-close {
    width: 38px; height: 38px; flex-shrink: 0;
    border: 2px solid #000; border-radius: 50%;
    cursor: pointer; line-height: 1;
}
.mini-play  { background: var(--green); color: #fff; font-size: .95rem; }
#mini-player.is-playing .mini-play { background: var(--pink); }
.mini-close { background: #fff; font-size: 1.3rem; width: 30px; height: 30px; }
.mini-progress { position: absolute; left: 14px; right: 14px; bottom: 4px; height: 4px; background: #eee; border-radius: 2px; overflow: hidden; }
.mini-progress span { display: block; height: 100%; width: 0; background: var(--magenta); }

html.is-loading, html.is-loading * { cursor: progress !important; }
.player-buttons { display: flex; gap: 8px; flex-wrap: wrap; }
.player-buttons button {
    font: 1.1rem var(--hand);
    padding: 4px 14px;
    border: 2px solid #000;
    border-radius: 999px;
    background: var(--pink-lt);
    cursor: pointer;
}
.player-buttons button:hover { background: var(--pink); }
.player-buttons .btn-random { background: #fff59a; margin-left: auto; }
.player-buttons .btn-random:hover { background: #ffe600; }

.tracklist { list-style: none; margin: 12px 0 0; padding: 0; counter-reset: track; }
.tracklist li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 6px;
    border-bottom: 1px dashed #ccc;
    counter-increment: track;
}
.tracklist li::before { content: counter(track) '.'; width: 1.8em; text-align: right; color: var(--ink-soft); font-size: .9rem; }
.tracklist li.is-current { background: #fff9c4; border-radius: 6px; }
.tracklist li.is-random { background: #e7fbff; }
.track-play {
    width: 30px; height: 30px; flex-shrink: 0;
    border: 2px solid #000; border-radius: 50%;
    background: var(--green); color: #fff;
    font-size: .8rem; cursor: pointer; line-height: 1;
}
.player.is-playing li.is-current .track-play { background: var(--pink); }
.track-cover { width: 34px; height: 34px; object-fit: cover; border: 1px solid #999; flex-shrink: 0; }
.track-cover.cover-none { font-size: .5rem; padding: 2px; border-width: 1px; }
.track-title { flex: 1; min-width: 0; }
.track-album { color: var(--ink-soft); font-size: .85rem; flex: 1; min-width: 0; }
.track-meta { display: flex; align-items: center; gap: 10px; font-size: .85rem; color: var(--ink-soft); white-space: nowrap; }
.track-len { min-width: 3em; text-align: right; }
img.rating { width: 18px; height: 18px; vertical-align: middle; }

/* ============================================================
   Start page
   ============================================================ */
.start-hero { display: grid; grid-template-columns: 3fr 2fr; gap: 28px; align-items: start; }
.start-side > * + * { margin-top: 22px; }
.hitlist { list-style: none; padding: 0; margin: 0; counter-reset: hit; }
.hitlist li { counter-increment: hit; padding: 4px 0; border-bottom: 1px dashed rgba(0,0,0,.15); display: flex; gap: 8px; align-items: baseline; }
.hitlist li::before { content: counter(hit); font-family: var(--hand); font-size: 1.3rem; color: var(--magenta); width: 1.2em; }
.hitlist .hit-count { margin-left: auto; color: var(--ink-soft); font-size: .85rem; white-space: nowrap; }
.counter { font-family: var(--hand); font-size: 1.25rem; text-align: center; margin: 26px auto; max-width: 760px; }
.counter b { font-size: 1.6rem; color: var(--magenta); font-weight: normal; }
.zeitkapsel { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; margin-top: 10px; }
.zeitkapsel .polaroid { transform: rotate(2deg); max-width: 360px; margin: 0 auto; }
.zeitkapsel .polaroid img { aspect-ratio: 4/3; }
.cta { text-align: center; }
.cta .btn-social { margin: 6px; font-size: 1.4rem; padding: 8px 24px; }

/* ============================================================
   Music pages
   ============================================================ */
.album-head { display: grid; grid-template-columns: 260px 1fr; gap: 30px; align-items: start; margin-bottom: 24px; }
.album-head .polaroid { transform: rotate(-3deg); }
.album-head h1 { text-align: left; margin-top: 0; }
.album-facts { color: var(--ink-soft); margin-bottom: 10px; }
.album-text p { margin: 0 0 .8em; }
.back-link { display: inline-block; margin-bottom: 8px; font-family: var(--hand); font-size: 1.2rem; font-weight: normal; }
.song-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; grid-template-areas: "player rate" "extras rate"; gap: 0 28px; align-items: start; }
.song-player { grid-area: player; }
.song-extras { grid-area: extras; }
.song-layout > aside { grid-area: rate; }
.lyrics { white-space: pre-line; font-family: var(--hand); font-size: 1.25rem; line-height: 1.4; }
.rate-buttons { display: flex; gap: 10px; justify-content: center; margin: 10px 0; }
.rate-buttons button {
    display: flex; flex-direction: column; align-items: center; gap: 2px;
    background: #fff; border: 2px solid #000; border-radius: 12px;
    padding: 8px 10px; cursor: pointer; font: 1rem var(--hand);
}
.rate-buttons button:hover { background: #fff59a; transform: rotate(-3deg); }
.rate-buttons img { width: 28px; height: 28px; }
.rate-bars div { display: flex; align-items: center; gap: 6px; font-size: .85rem; margin: 3px 0; }
.rate-bars span.bar { height: 10px; border: 1px solid #000; border-radius: 5px; min-width: 2px; }
.flash { text-align: center; font-family: var(--hand); font-size: 1.3rem; color: #008800; }
.flash.warn { color: #cc6600; }

/* ============================================================
   Band
   ============================================================ */
.band-intro { display: grid; grid-template-columns: 2fr 3fr; gap: 30px; align-items: start; margin-bottom: 10px; }
.band-intro .polaroid { transform: rotate(-2deg); }
.band-intro .polaroid img { aspect-ratio: 4/3; }
.steckbriefe { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 30px; }
.steckbrief { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 18px; align-items: start; scroll-margin-top: 20px; }
.steckbrief:nth-child(odd)  { transform: rotate(-.6deg); }
.steckbrief:nth-child(even) { transform: rotate(.6deg); }
.steckbrief:nth-child(5n+1) { background: var(--pink-lt); }
.steckbrief:nth-child(5n+2) { background: #d6f3ff; }
.steckbrief:nth-child(5n+3) { background: #dbffe4; }
.steckbrief:nth-child(5n+4) { background: #fff3c4; }
.steckbrief:nth-child(5n)   { background: #eadcff; }
.steckbrief .polaroid { padding: 6px 6px 18px; transform: rotate(-4deg); }
.steckbrief .polaroid img { aspect-ratio: 3/4; }
.steckbrief:target { outline: 4px dashed var(--magenta); outline-offset: 6px; }
.steckbrief h3 { margin: 0 0 6px; font-size: 1.7rem; }
.steckbrief-label { font-family: var(--hand); color: var(--magenta); font-size: 1.1rem; }
.steckbrief-value { margin: 0 0 6px; font-weight: bold; }
.steckbrief-text p { margin: 0 0 .6em; font-size: .95rem; }
.steckbrief-mail { display: block; max-width: 100%; margin-top: 6px; mix-blend-mode: multiply; }

/* ============================================================
   Photos
   ============================================================ */
.foto-wall .polaroid img { aspect-ratio: 4/3; }
.foto-wall .polaroid-title { font-size: 1.1rem; }
.thumb-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 16px;
    padding: 10px 4px;
}
.thumb-grid img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    background: #fff;
    padding: 5px 5px 14px;
    box-shadow: 1px 3px 6px rgba(0,0,0,.25);
    cursor: zoom-in;
    transition: transform .15s;
}
.thumb-grid img:nth-child(3n+1) { transform: rotate(-2deg); }
.thumb-grid img:nth-child(3n+2) { transform: rotate(1.5deg); }
.thumb-grid img:hover { transform: scale(1.08); position: relative; z-index: 2; }

#lb { display: none; position: fixed; inset: 0; background: rgba(0,30,60,.9); z-index: 9999; align-items: center; justify-content: center; }
#lb.open { display: flex; }
#lb-img { max-width: 90vw; max-height: 84vh; background: #fff; padding: 10px 10px 30px; box-shadow: 0 6px 30px rgba(0,0,0,.5); }
#lb-close { position: absolute; top: 8px; right: 18px; color: #fff; font-size: 42px; cursor: pointer; line-height: 1; }
#lb-prev, #lb-next {
    position: absolute; top: 50%; transform: translateY(-50%);
    color: #000; background: var(--pink); border: 2px solid #000; border-radius: 50%;
    width: 52px; height: 52px; display: flex; align-items: center; justify-content: center;
    font-size: 26px; cursor: pointer; user-select: none;
}
#lb-prev { left: 12px; } #lb-next { right: 12px; }
#lb-info { position: absolute; bottom: 10px; left: 0; right: 0; text-align: center; color: #fff; font-family: var(--hand); font-size: 1.2rem; }

/* ============================================================
   Malbuch
   ============================================================ */
.malbuch { max-width: 700px; margin: 0 auto 10px; text-align: center; }
#toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; margin-bottom: 10px; }
#palette { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; }
.swatch { width: 24px; height: 24px; border-radius: 50%; border: 2px solid #000; cursor: pointer; }
.swatch.active { transform: scale(1.3); box-shadow: 0 0 0 2px #fff, 0 0 0 4px #000; }
#size-group { display: flex; align-items: center; gap: 6px; font-family: var(--hand); font-size: 1.1rem; }
#sizeSlider { width: 90px; }
#toolbar button, #submit-area button {
    font: 1.1rem var(--hand); padding: 3px 14px; border: 2px solid #000; border-radius: 999px;
    background: #fff; cursor: pointer;
}
#toolbar button.active { background: #fff59a; }
#drawCanvas {
    display: block; width: 100%; max-width: 640px; height: auto; margin: 0 auto;
    border: 3px solid #000; border-radius: 6px; background: #fff;
    cursor: crosshair; touch-action: none;
}
#submit-area { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 12px; }
#submit-area input { font: 1.1rem var(--hand); padding: 4px 10px; border: 2px solid #000; border-radius: 8px; }
#submit-area #submitBtn { background: var(--green); color: #fff; }
#statusMsg { min-height: 1.4em; margin: 8px 0 0; }
.malbuch-wall { grid-template-columns: repeat(auto-fill, minmax(min(220px, 45%), 1fr)); }
.malbuch-wall .polaroid { margin: 0; }
.malbuch-wall .polaroid img { aspect-ratio: 4/3; object-fit: contain; background: #fff; }

/* ============================================================
   Archive chronicle
   ============================================================ */
.year-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 10px; margin: 0 auto 20px; max-width: 800px; }
.year-nav a, .year-nav a:visited {
    font-family: var(--hand); font-size: 1.2rem; font-weight: normal; color: #000;
    padding: 1px 12px; border: 2px solid #000; border-radius: 999px; background: #fff;
}
.year-nav a:hover { background: #fff59a; text-decoration: none; }
.chronik { max-width: 820px; margin: 0 auto; }
.chronik-year { scroll-margin-top: 10px; }
.chronik-year h2 {
    font-size: 2.6rem; color: var(--magenta); margin: 30px 0 10px;
    display: inline-block; transform: rotate(-3deg);
}
.chronik-item {
    display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 14px;
    padding: 10px 0 12px; border-left: 4px dashed var(--sky); margin-left: 10px;
}
.chronik-date { font-family: var(--hand); font-size: 1.15rem; color: var(--ink-soft); padding-left: 12px; position: relative; }
.chronik-date::before {
    content: ''; position: absolute; left: -12px; top: 6px;
    width: 16px; height: 16px; border-radius: 50%; border: 2px solid #000; background: var(--pink);
}
.chronik-konzert .chronik-date::before { background: #ffd800; }
.chronik-platte  .chronik-date::before { background: var(--green); }
.chronik-fotos   .chronik-date::before { background: var(--sky); }
.chronik-presse  .chronik-date::before { background: #fff; }
.chronik-body h3 { margin: 2px 0; font-size: 1.4rem; }
.chronik-body p { margin: 4px 0; font-size: .95rem; }
.chronik-label {
    display: inline-block; font-size: .75rem; text-transform: uppercase; letter-spacing: .05em;
    padding: 0 8px; border-radius: 999px; background: var(--pink-lt); border: 1px solid #000;
}
.chronik-konzert .chronik-label { background: #fff59a; }
.chronik-platte  .chronik-label { background: #c8f7d6; }
.chronik-fotos   .chronik-label { background: #d6f3ff; }
.chronik-presse  .chronik-label { background: #eee; }
.chronik-place { color: var(--ink-soft); font-size: .9rem; }
.chronik-links { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 4px; font-size: .95rem; }
.chronik-cover { display: block; width: 90px; height: 90px; object-fit: cover; margin: 6px 0; border: 2px solid #000; transform: rotate(-3deg); }
.chronik-cover.cover-none { font-size: .8rem; }

/* ============================================================
   Blog posts & archive (legacy markup)
   ============================================================ */
.post-list, .post-detail { max-width: 760px; margin: 0 auto; }
.post-item {
    background: rgba(255,255,255,.6);
    border-left: 5px solid var(--sky);
    margin: 0 0 18px;
    padding: 10px 16px;
    border-radius: 0 10px 10px 0;
}
.post-title { font-family: var(--hand); font-weight: normal; font-size: 1.6rem; margin: 0 0 3px; }
.post-title a, .post-title a:visited { color: #000055; font-weight: normal; }
.post-meta { font-size: .85rem; color: #666; font-style: italic; margin-bottom: 7px; }
.post-preview { font-size: .95rem; color: #333; }
.post-readmore { display: inline-block; margin-top: 7px; font-size: .95rem; }
.post-detail .post-title { font-size: 2.2rem; }
.post-body { margin-top: 12px; }
.post-back { margin-top: 22px; padding-top: 10px; border-top: 1px dashed #aaa; }

.archive-list { max-width: 640px; margin: 0 auto; }
.archive-year { margin-bottom: 18px; }
.archive-year h3 { color: var(--magenta); border-bottom: 2px dashed var(--purple); margin-bottom: 4px; }
.archive-year ul { list-style: none; margin: 0; padding: 0; }
.archive-year li { padding: 3px 0; border-bottom: 1px solid rgba(0,0,80,.08); }
.archive-date { display: inline-block; width: 52px; color: #666; font-style: italic; }

/* ============================================================
   Small screens
   ============================================================ */
@media (max-width: 900px) {
    #sheet { padding: 0 20px; background-image: none; }
    .start-hero, .zeitkapsel, .song-layout, .band-intro, .steckbriefe { grid-template-columns: minmax(0, 1fr); }
    .song-layout { grid-template-areas: "player" "rate" "extras"; }
    .song-layout > aside { margin-top: 22px; }
    .album-head { grid-template-columns: minmax(0, 1fr); }
    .album-head .polaroid { max-width: 260px; margin: 0 auto; }
    .album-head h1 { text-align: center; }
}
@media (max-width: 640px) {
    .stats-table th, .stats-table td { padding: .4em .45em; font-size: .9rem; }
    .chart { padding-left: 36px; }
    .chart-x span { font-size: .75rem; }
    .stats-kpi-value { font-size: 2rem; }
    #mini-player { left: 8px; right: 8px; bottom: 8px; max-width: none; transform: none; animation: none; }
    .btn-play { width: 44px; height: 44px; }
    .chronik-item { grid-template-columns: 78px minmax(0, 1fr); gap: 8px; }
    .chronik-year h2 { font-size: 2rem; }
    .steckbrief { grid-template-columns: 100px minmax(0, 1fr); }
    body { padding: 0; }
    #sheet { border-radius: 0; padding: 0 14px; }
    #site-header { display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: 6px 12px; padding: 10px 0 4px; }
    #site-header .logo img { width: 78px; }
    #site-title a.site-name { font-size: 1.85rem; }
    .site-tagline { font-size: 1.2rem; margin-top: 2px; }
    .site-subline { font-size: .75rem; }
    #site-social { grid-column: 1 / -1; flex-direction: row; justify-content: center; }
    .btn-social { font-size: 1rem; padding: 3px 14px; }
    #nav { gap: 8px 8px; padding: 6px 0 10px; }
    #nav a { font-size: 1.15rem; padding: 2px 12px 2px 4px; }
    .nav-kopf { width: 24px; height: 24px; }
    h1 { font-size: 2rem; }
    .player-title { font-size: 1.5rem; }
    .player-cover { width: 80px; height: 80px; }
    .track-plays, .track-album { display: none; }
    .track-play { width: 38px; height: 38px; }
    .footer-links a { display: inline-block; padding: 8px 4px; }
    .swatch { width: 30px; height: 30px; }
    .cover-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 16px; }
}

/* ============================================================
   Legal pages
   ============================================================ */
.legal { max-width: 760px; margin: 0 auto; }
.legal h2 { font-size: 1.5rem; margin: 1.2em 0 .2em; }
.legal p { margin: .3em 0 .8em; }
.legal .small { font-size: .85rem; color: var(--ink-soft); }
mark.todo { background: #ffe600; padding: 0 4px; border: 1px dashed #000; }

/* Keep the page end visible above the mini player */
body:has(#mini-player:not([hidden])) { padding-bottom: 90px; }

/* ============================================================
   Share button
   ============================================================ */
.album-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 12px; }
.share { position: relative; display: inline-block; }
.btn-share {
    font: 1.15rem var(--hand);
    padding: 6px 16px;
    border: 2px solid #000;
    border-radius: 999px;
    background: #fff59a;
    cursor: pointer;
    box-shadow: 2px 3px 0 rgba(0,0,0,.2);
}
.btn-share:hover { background: #ffe600; transform: rotate(-3deg); }
.share-menu {
    position: absolute;
    left: 0; top: calc(100% + 8px);
    z-index: 50;
    display: flex; flex-direction: column; gap: 2px;
    min-width: 180px;
    padding: 8px;
    background: #fff;
    border: 2px solid #000;
    border-radius: 10px;
    box-shadow: 3px 4px 0 rgba(0,0,0,.2);
}
.share-menu[hidden] { display: none; }
.share-menu a, .share-menu button {
    display: block; width: 100%;
    padding: 8px 10px;
    font: 1.1rem var(--hand); text-align: left;
    color: #000; background: none; border: 0; border-radius: 6px; cursor: pointer;
}
.share-menu a:visited { color: #000; }
.share-menu a:hover, .share-menu button:hover { background: var(--pink-lt); text-decoration: none; }
.share-whatsapp::before { content: '💬 '; }
.share-facebook::before { content: '👍 '; }
.share-copy::before { content: '🔗 '; }

/* ============================================================
   Visitor statistics
   ============================================================ */
.stats-since, .stats-sub { color: var(--ink-soft); font-size: .9rem; }
.stats-sub { margin: 0 0 .6rem; }
.stats-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; margin: 18px 0 8px; }
.stats-kpi { display: flex; flex-direction: column; text-align: center; }
.stats-kpi:nth-child(odd)  { transform: rotate(-1deg); }
.stats-kpi:nth-child(even) { transform: rotate(1deg); }
.stats-kpi-value { font-family: var(--hand); font-size: 2.6rem; line-height: 1.1; color: var(--magenta); font-variant-numeric: tabular-nums; }
.stats-kpi-label { font-size: .9rem; color: var(--ink-soft); }
.chart { padding: 12px 12px 8px 46px; background: #fff; border: 3px solid #000; border-radius: 14px 8px 16px 10px; box-shadow: 4px 6px 0 rgba(0,0,0,.15); }
.chart-plot { position: relative; height: 190px; }
.chart-line { position: absolute; left: 0; right: 0; border-top: 1px dashed #ddd; }
.chart-line span { position: absolute; right: 100%; margin-right: 8px; transform: translateY(-50%); font-size: .75rem; color: #666; font-variant-numeric: tabular-nums; }
.chart-cols { position: absolute; inset: 0; display: flex; align-items: flex-end; gap: 3px; }
.chart-col { flex: 1; display: flex; align-items: flex-end; justify-content: center; height: 100%; border-radius: 6px 6px 0 0; }
.chart-col:hover { background: #fff59a; }
.chart-bar { display: block; width: 100%; max-width: 30px; background: var(--pink); border: 2px solid #000; border-bottom: 0; border-radius: 6px 6px 0 0; box-sizing: border-box; }
.chart-bar[style^="height:0.00"] { border: 0; }
.chart-x { display: grid; margin-top: 4px; }
.chart-x span { overflow: visible; white-space: nowrap; text-align: center; font-family: var(--hand); font-size: .9rem; color: #555; }
.stats-table { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border: 3px solid #000; border-radius: 12px; overflow: hidden; }
.stats-table th { padding: .5em .7em; background: var(--sky); font-family: var(--hand); font-size: 1.15rem; font-weight: normal; text-align: left; }
.stats-table td { padding: .4em .7em; border-top: 1px dashed #ccc; }
.stats-table tbody tr:nth-child(even) { background: #fffde6; }
.stats-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.stats-table th.num { white-space: normal; }
.stats-flag { font-size: 1.2em; }
.stats-details { margin: 10px 0 0; }
.stats-details summary { cursor: pointer; font-family: var(--hand); font-size: 1.15rem; }
.stats-details .stats-table { margin-top: 8px; }
.stats-tops { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; margin-top: 30px; }
.stats-note { margin-top: 2rem; font-size: .85rem; color: var(--ink-soft); }
