:root {
    --bg: #1ebfd5;
    --card: #fff;
    --text: #1e293b;
    --muted: #64748b;
    --primary: #0ea5e9;
    --primary-strong: #0369a1;
    --shadow: 0 10px 30px rgba(15, 23, 42, .08);
}

* {
    box-sizing: border-box
}

body {
    margin: 0;
    font-family: system-ui, Segoe UI, Roboto, Arial, sans-serif;
    background: var(--bg);
    color: var(--text)
}

header {
    position: sticky;
    top: 0;
    background: #ffffffcc;
    backdrop-filter: blur(8px);
    border-bottom: 1px solid #e5e7eb;
    padding: 1.25rem;
    text-align: center
}

h1 {
    margin: .2rem 0 .6rem
}

h13 {
    display: block;
    font-size: 2.5rem;
    font-weight: bold;
    margin: .2rem 0 .6rem;
}

nav a {
    display: inline-block;
    margin: 0 .4rem;
    padding: .5rem .9rem;
    border-radius: 999px;
    text-decoration: none;
    color: var(--primary-strong);
    background: #e0f2fe;
    transition: .2s
}

nav a:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-1px)
}

nav a.active {
    background: var(--primary);
    color: #fff
}

.main {
    max-width: 960px;
    margin: 2rem auto;
    padding: 2rem;
    background: var(--card);
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    box-shadow: var(--shadow)
}

h2 {
    margin-top: 0;
    color: var(--primary-strong)
}

p {
    color: var(--muted);
    line-height: 1.7
}

footer {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--muted)
}

.btn {
    display: inline-block;
    margin-top: 1rem;
    padding: .65rem 1rem;
    border-radius: 10px;
    background: var(--primary);
    color: #fff;
    text-decoration: none
}

body.rainbow {
    background: linear-gradient(120deg,
    #ff0080, #ff8c00, #ffd300, #21d19f, #00c2ff, #7a5cff, #ff00b1);
    background-size: 400% 400%;
    animation: rainbowShift 14s ease infinite;
}

canvas#stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
}

/* Sanfter Farbverlauf-Drift */
@keyframes rainbowShift {
    0% { background-position: 0% 50% }
    50% { background-position: 100% 50% }
    100% { background-position: 0% 50% }
}


@media (prefers-reduced-motion: reduce) {
    body.rainbow { animation: none; }
}


.skateboard-container {
    position: fixed;
    bottom: 40px;
    left: -300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: fahren 6s ease-out forwards;
    z-index: 1000;
}

.skateboard {
    width: 212px;
    margin-bottom: -110px;
}

.skate-line {
    width: 150px;
    height: 4px;
    background: linear-gradient(90deg, #ff0080, #7928ca, #2af598);
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(0,0,0,0.4);
}

/* Animation für den ganzen Container */
@keyframes fahren {
    0%   { left: -300px; transform: rotate(-5deg) translateY(0); }
    25%  { transform: rotate(-3deg) translateY(-10px); }
    50%  { transform: rotate(0deg) translateY(0); }
    75%  { transform: rotate(3deg) translateY(-8px); }
    100% { left: 110vw; transform: rotate(5deg) translateY(0); }
}

/*  Hobby Galerie */
.hobby-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 2rem 0;
}

.hobby-gallery img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    cursor: pointer;
}

.hobby-gallery img:hover {
    transform: scale(1.08) rotate(-1deg);
    box-shadow: 0 12px 25px rgba(0,0,0,0.5);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.8);
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.lightbox img {
    max-width: 90%;
    max-height: 80%;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(255,255,255,0.5);
}

.lightbox .close {
    position: absolute;
    top: 20px; right: 40px;
    font-size: 2rem;
    color: white;
    cursor: pointer;
}

/* ===== Secret Modal ===== */
#secret-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    opacity: 1;
    transition: opacity .25s ease;
    overflow: auto;
}
#secret-modal-backdrop.hide{ opacity: 0; }

#secret-modal{
    width:min(560px, 92vw);
    background:#fff;
    color:#1e293b;
    border-radius:16px;
    box-shadow: 0 20px 60px rgba(2,6,23,.3);
    padding: 1.4rem 1.6rem 1.2rem;
    position: relative;
    transform: translateY(10px);
    animation: popIn .25s ease forwards;
}
@keyframes popIn{
    to{ transform: translateY(0); }
}

#secret-modal h3{
    margin:.2rem 0 .6rem;
    color:#0ea5e9;
}
#secret-modal p{ margin:.4rem 0; color:#475569; }

#secret-modal .combo{
    margin: .8rem 0 1rem;
    font-size: 1.1rem;
    letter-spacing: .5px;
    display:flex; gap:.5rem; flex-wrap: wrap; align-items:center;
}
#secret-modal .kbd{
    display:inline-block; padding:.2rem .45rem; border-radius:6px;
    background:#f1f5f9; border:1px solid #e2e8f0; color:#0f172a;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size:.95rem;
}

#secret-modal .actions{ display:flex; gap:.6rem; margin-top:.6rem; }
#secret-modal .btn-primary,
#secret-modal .btn-secondary{
    border:none; cursor:pointer; border-radius:10px; padding:.6rem 1rem;
    font-weight:600;
}
#secret-modal .btn-primary{ background:#0ea5e9; color:#fff; }
#secret-modal .btn-primary:hover{ background:#0284c7; }
#secret-modal .btn-secondary{ background:#e2e8f0; color:#0f172a; }
#secret-modal .btn-secondary:hover{ background:#cbd5e1; }

#secret-modal .close{
    position:absolute; top:10px; right:12px;
    width:32px; height:32px; border:none; border-radius:8px;
    background:#f1f5f9; color:#0f172a; cursor:pointer; font-size:18px;
}
#secret-modal .close:hover{ background:#e2e8f0; }

/* kleiner Hinweis, der kurz ein-/ausblendet */
.key-hint{
    position: fixed; bottom:20px; left:50%; transform: translateX(-50%) translateY(10px);
    background: rgba(15,23,42,.9); color:#fff; padding:.7rem 1rem; border-radius:10px;
    box-shadow: 0 10px 30px rgba(2,6,23,.3);
    opacity:0; transition: opacity .25s ease, transform .25s ease; z-index: 3200;
}
.key-hint.show{ opacity:1; transform: translateX(-50%) translateY(0); }
