/* marcscheidegger.ch – gemeinsames Design
   Farben passen zu den Übe-Tool-Grafiken (img/tool-*.jpg). */

:root {
    --bg: #0b1220;
    --bg-2: #111a2e;
    --panel: #16213a;
    --line: #2a3a5e;
    --ink: #f5f7fb;
    --muted: #a9b8d6;
    --blue: #8fa8dc;
    --accent: #f2b544;
    --accent-ink: #1a1305;
    --radius: 18px;
    --wrap: 1120px;
    --font: "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font: 400 1.0625rem/1.65 var(--font);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: .2em; }
a:hover { color: #ffd27a; }
h1, h2, h3 { line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 600; }
p { margin: 0 0 1em; }
[id] { scroll-margin-top: 84px; }   /* Sprungziele nicht unter der fixen Kopfzeile */
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- Kopfzeile ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(11, 18, 32, .86);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(42, 58, 94, .6);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1.15rem; letter-spacing: .01em; }
.brand span { color: var(--accent); }
.brand:hover { color: var(--ink); }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.nav a {
    display: block; padding: 8px 14px; border-radius: 999px;
    color: var(--muted); text-decoration: none; font-weight: 500;
}
.nav a:hover { color: var(--ink); background: var(--panel); }
.nav a[aria-current="page"] { color: var(--ink); background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
.nav-toggle {
    display: none; background: none; border: 1px solid var(--line); color: var(--ink);
    border-radius: 10px; padding: 8px 12px; font: inherit; cursor: pointer;
}

@media (max-width: 760px) {
    .nav-toggle { display: block; }
    .js .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--line); }
    .js .nav.open { display: block; }
    .nav ul { flex-direction: column; padding: 8px 16px 16px; }
    .nav a { padding: 12px 14px; border-radius: 12px; }
    html:not(.js) .site-header .wrap { flex-wrap: wrap; padding-block: 10px; }
    html:not(.js) .nav ul { flex-direction: row; flex-wrap: wrap; padding: 0; }
}

/* ---------- Hero ---------- */
.hero {
    position: relative; isolation: isolate;
    min-height: min(82vh, 760px);
    display: flex; align-items: flex-end;
    padding: 120px 0 72px;
}
.hero.small { min-height: 0; padding: 120px 0 56px; }
.hero > img {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; z-index: -2;
}
.hero::after {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background:
        linear-gradient(180deg, rgba(11,18,32,.15) 0%, rgba(11,18,32,.55) 55%, var(--bg) 100%),
        linear-gradient(90deg, rgba(11,18,32,.7) 0%, transparent 70%);
}
.hero.plain::after { background: radial-gradient(circle at 15% 10%, rgba(143,168,220,.22), transparent 55%), radial-gradient(circle at 90% 100%, rgba(242,181,68,.12), transparent 50%); }
.hero .lead { font-size: clamp(1.1rem, 2vw, 1.35rem); color: #dfe6f4; max-width: 38em; }
.kicker {
    display: inline-block; font-size: .8rem; font-weight: 600;
    letter-spacing: .28em; text-transform: uppercase; color: var(--blue); margin-bottom: 14px;
}

/* ---------- Buttons ---------- */
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 22px; border-radius: 999px; font-weight: 600;
    text-decoration: none; background: var(--accent); color: var(--accent-ink);
    border: 1px solid var(--accent); transition: transform .15s, background .15s;
}
.btn:hover { color: var(--accent-ink); background: #ffc95e; transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { background: var(--panel); color: var(--ink); }

/* ---------- Abschnitte ---------- */
.section { padding: 72px 0; }
.section.alt { background: var(--bg-2); border-block: 1px solid rgba(42,58,94,.5); }
.section-head { max-width: 44em; margin-bottom: 36px; }
.section-head p { color: var(--muted); }

.grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.grid.two { grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr)); }

.card {
    background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
    overflow: hidden; display: flex; flex-direction: column;
}
.card > img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.card > img.square { aspect-ratio: 1; }
.card .body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.card .body p { color: var(--muted); }
.card .more { margin-top: auto; font-weight: 600; text-decoration: none; }
.card .more::after { content: " →"; }
a.card { color: inherit; text-decoration: none; transition: transform .2s, border-color .2s; }
a.card:hover { transform: translateY(-3px); border-color: var(--blue); color: inherit; }

.split { display: grid; gap: 48px; align-items: center; grid-template-columns: 1fr 1fr; }
.split > * { min-width: 0; }
.split img { border-radius: var(--radius); width: 100%; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- Projekte ---------- */
.project {
    display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px;
    padding: 40px 0; border-top: 1px solid var(--line); align-items: start;
}
.project:first-of-type { border-top: 0; padding-top: 0; }
.project img { border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.project .lineup { color: var(--muted); }
.project .years { font-size: .9rem; color: var(--accent); font-weight: 600; letter-spacing: .05em; margin-bottom: 6px; }
@media (max-width: 760px) { .project { grid-template-columns: 1fr; gap: 20px; } }

.facts { list-style: none; padding: 0; margin: 0 0 1em; }
.facts li { display: grid; grid-template-columns: 6.5em 1fr; gap: 12px; padding: 7px 0; border-bottom: 1px dashed rgba(42,58,94,.8); }
.facts li:last-child { border-bottom: 0; }
.facts b { color: var(--blue); font-weight: 600; font-variant-numeric: tabular-nums; }

.compact { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); }
.compact .card .body { padding: 22px 24px; }
.compact h3 { margin-bottom: .25em; }
.compact .lineup { font-size: .95rem; color: var(--muted); margin-bottom: .8em; }

/* ---------- Clips (Video erst nach Klick laden) ---------- */
.project > .clips, .project > .clip-note { grid-column: 1 / -1; }
.project > .clips { margin-top: 4px; }
.clips { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.card .clips { grid-template-columns: 1fr; margin-top: 8px; }
.clip { margin: 0; }
.clip-play, .clip iframe {
    position: relative; display: block; width: 100%; aspect-ratio: 16 / 9;
    border-radius: 12px; overflow: hidden; border: 0; background: #000;
}
.clip-play img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: opacity .2s, transform .3s; }
.clip-play:hover img { opacity: 1; transform: scale(1.03); }
.clip-icon {
    position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px;
    border-radius: 50%; background: rgba(11, 18, 32, .78); box-shadow: 0 0 0 2px var(--accent);
    transition: transform .2s, background .2s;
}
.clip-icon::after {
    content: ""; position: absolute; left: 26px; top: 20px;
    border-style: solid; border-width: 12px 0 12px 19px; border-color: transparent transparent transparent var(--accent);
}
.clip-play:hover .clip-icon { transform: scale(1.08); background: rgba(11, 18, 32, .92); }
.clip-src {
    position: absolute; left: 10px; top: 10px; padding: 2px 9px; border-radius: 999px;
    background: rgba(11, 18, 32, .8); color: var(--ink); font-size: .75rem; font-weight: 600; letter-spacing: .04em;
}
.clip figcaption { margin-top: 8px; font-weight: 600; font-size: .95rem; }
.clip figcaption span { color: var(--muted); font-weight: 400; }
.clip-note { font-size: .82rem; color: var(--muted); margin: 10px 0 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Hörproben ---------- */
.tracks { margin: 4px 0 8px; }
.tracks-head { font-size: .8rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--blue); margin-bottom: 8px; }
.tracks-head span { letter-spacing: .04em; text-transform: none; color: var(--muted); font-weight: 400; margin-left: 6px; }
.tracks ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.track {
    display: flex; align-items: center; gap: 12px; padding: 9px 14px 9px 10px;
    border-radius: 10px; background: var(--bg); border: 1px solid var(--line);
    color: var(--ink); text-decoration: none;
}
.track::before {
    content: ""; flex: none; width: 30px; height: 30px; border-radius: 50%;
    background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M3 2l5 3-5 3z' fill='%231a1305'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.track b { font-weight: 600; }
.track span { color: var(--muted); font-size: .9rem; margin-left: auto; text-align: right; }
.track:hover { border-color: var(--blue); color: var(--ink); }
.track.spielt { border-color: var(--accent); background: rgba(242, 181, 68, .1); }
.track.spielt::before { animation: puls 1.2s ease-in-out infinite; }
@keyframes puls { 50% { transform: scale(.85); } }
@media (max-width: 560px) { .track { flex-wrap: wrap; } .track span { margin-left: 42px; text-align: left; width: 100%; } }

.mini-player {
    position: fixed; right: 16px; bottom: 16px; z-index: 60; width: min(340px, calc(100% - 32px));
    background: var(--panel); border: 1px solid var(--accent); border-radius: 14px; overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .5);
}
.mp-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 8px 8px 14px; font-weight: 600; font-size: .92rem; }
.mp-head span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mp-head button {
    flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line);
    background: var(--bg); color: var(--ink); font-size: 1.2rem; line-height: 1; cursor: pointer;
}
.mp-head button:hover { border-color: var(--accent); }
.mini-player iframe { display: block; width: 100%; height: 175px; border: 0; }   /* Höhe des Apple-Music-Players */

/* ---------- Konzerte ---------- */
.gigs { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.gigs li {
    display: grid; grid-template-columns: 7.5em 1fr; gap: 20px; align-items: center;
    padding: 16px 22px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
}
.gigs li[hidden] { display: none; }
.gigs time { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.gigs time b { color: var(--accent); font-size: 1.5rem; font-weight: 700; }
.gigs strong { display: block; font-weight: 600; }
.gigs span { color: var(--muted); }
.gigs a { margin-left: 10px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.gigs-empty { color: var(--muted); }
@media (max-width: 560px) {
    .gigs li { grid-template-columns: 1fr; gap: 4px; padding: 14px 18px; }
    .gigs a { margin-left: 0; display: inline-block; margin-top: 4px; }
    .gigs span { display: block; }
}

/* ---------- Chronologie ---------- */
.years-nav { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 40px; }
.years-nav a {
    padding: 4px 11px; border-radius: 999px; border: 1px solid var(--line);
    color: var(--muted); text-decoration: none; font-size: .9rem; font-variant-numeric: tabular-nums;
}
.years-nav a:hover { color: var(--ink); border-color: var(--blue); }
.timeline { position: relative; margin: 0; padding: 0; list-style: none; }
.timeline::before { content: ""; position: absolute; left: 4.6em; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.year { display: grid; grid-template-columns: 4.6em 1fr; gap: 0 32px; padding: 14px 0; scroll-margin-top: 90px; }
.year > h2 {
    font-size: 1.25rem; color: var(--accent); margin: 0; padding-top: 2px;
    font-variant-numeric: tabular-nums; position: relative;
}
.year > h2::after {
    content: ""; position: absolute; right: -21px; top: 10px; width: 12px; height: 12px;
    border-radius: 50%; background: var(--bg); border: 2px solid var(--accent);
}
.year ul { list-style: none; margin: 0; padding: 0; }
.year li { padding: 2px 0 8px; }
.year li a { color: var(--ink); font-weight: 600; text-decoration: none; }
.year li a:hover { color: var(--accent); }
.year li span { color: var(--muted); }
@media (max-width: 560px) {
    .timeline::before { left: 3.4em; }
    .year { grid-template-columns: 3.4em 1fr; gap: 0 22px; }
    .year > h2 { font-size: 1.05rem; }
    .year > h2::after { right: -16px; }
}

/* ---------- E-Mail ---------- */
.btn svg { width: 1.2em; height: 1.2em; }
.mail-card {
    align-items: center; justify-content: center; text-align: center; gap: 6px;
    padding: 48px 24px; min-height: 100%;
}
.mail-icon {
    display: grid; place-items: center; width: 96px; height: 96px; margin-bottom: 14px;
    border-radius: 50%; background: var(--accent); color: var(--accent-ink);
    transition: transform .2s;
}
.mail-icon svg { width: 46px; height: 46px; }
.mail-card .kicker { margin: 0; }
.mail-card strong { font-size: clamp(1.15rem, 3vw, 1.5rem); word-break: break-all; }
.mail-card .more { margin-top: 10px; color: var(--accent); font-weight: 600; }
.mail-card .more::after { content: " →"; }
.mail-card:hover .mail-icon { transform: scale(1.06); }

.links { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.links a {
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
    padding: 14px 18px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line);
    color: var(--ink); text-decoration: none; font-weight: 500;
}
.links a::after { content: "↗"; color: var(--blue); margin-left: auto; }
.links a { justify-content: flex-start; }
.links .ico { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--panel); color: var(--accent); }
.links .ico svg { width: 20px; height: 20px; }
.links a:hover { border-color: var(--blue); }

.prose { max-width: 46em; }
.prose h2 { font-size: 1.5rem; margin-top: 1.6em; }
.prose p, .prose li { color: #dbe3f2; }

/* ---------- Fusszeile ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0; color: var(--muted); font-size: .95rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: center; }
.site-footer ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 0; padding: 0; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--ink); }
.site-footer .social { gap: 10px; }
.site-footer .social a {
    display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
    border: 1px solid var(--line); color: var(--muted); transition: color .15s, border-color .15s, transform .15s;
}
.site-footer .social a:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-2px); }
.site-footer .social svg { width: 20px; height: 20px; }

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; }
}
