/* ==========================================================================
   choo-choo.de – Entwurf 16 ("Plattformen")
   Reduziert auf das Wesentliche: Header, die sechs Plattformen, Footer mit Impressum.
   Weiß und Anthrazit; jede Plattform bringt ihre eigene Markenfarbe mit.
   ========================================================================== */

/* Inter (SIL Open Font License, lokal gehostet – kein Aufruf externer Server) */
@font-face {
    font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
    src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
    src: url("../fonts/inter-latin-ext-wght-normal.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
    --white: #ffffff;
    --gray-50: #f6f7f8;
    --gray-100: #eef0f2;
    --gray-200: #e2e5e9;
    --gray-400: #a3aab3;
    --gray-500: #767e88;
    --gray-600: #555c66;
    --ink: #1d2126;
    --dark: #272b31;            /* Anthrazit */
    --dark-2: #33383f;

    --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --radius: 18px;
    --wrap: 1180px;
    --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 16px; }
body { margin: 0; background: var(--gray-50); color: var(--ink); font: 400 15.5px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -.025em; }
.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--dark); color: var(--white); border-radius: 8px; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--dark); outline-offset: 3px; }

/* ---------- Header (anthrazit, mit Gleis und Zug) ---------- */
.header {
    position: relative; overflow: hidden; color: var(--white);
    background:
        radial-gradient(900px 320px at 85% -10%, rgb(255 255 255 / .07), transparent 70%),
        linear-gradient(180deg, #23272d 0%, var(--dark) 100%);
}
.header::before {
    content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
    background-image: radial-gradient(circle, rgb(255 255 255 / .07) 1px, transparent 1.2px); background-size: 22px 22px;
    mask-image: linear-gradient(90deg, transparent, #000 60%);
}
.header-bar { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-mark { display: grid; grid-template-columns: 9px 9px; grid-template-rows: 9px 6px; gap: 2px; padding: 5px; border-radius: 8px; background: var(--dark); }
.logo-mark i { border-radius: 2px; background: var(--white); transition: transform .3s var(--ease), opacity .3s; }
.logo-mark i:nth-child(2) { opacity: .45; }
.logo-mark i:nth-child(3) { grid-column: span 2; opacity: .75; }
.logo:hover .logo-mark i:nth-child(1) { transform: translateX(11px); }
.logo:hover .logo-mark i:nth-child(2) { transform: translateX(-11px); opacity: 1; }
.logo-mark-light { background: var(--white); }
.logo-mark-light i { background: var(--dark); }
.logo-text { font-size: 18px; font-weight: 750; letter-spacing: -.02em; color: var(--white); }
.logo-text span { color: #8f97a1; font-weight: 500; }
.header-nav { display: flex; gap: 4px; }
.header-nav a { padding: 7px 12px; border-radius: 8px; font-size: 14px; font-weight: 500; color: #c3c9d1; text-decoration: none; transition: background .15s, color .15s; }
.header-nav a:hover { background: rgb(255 255 255 / .08); color: var(--white); }
.header-claim { position: relative; z-index: 1; padding: 36px 0 64px; }
.header-title { margin: 0; font-size: clamp(28px, 4vw, 46px); font-weight: 800; letter-spacing: -.03em; line-height: 1.08; }

/* ---------- Einleitung ---------- */
.intro { padding: 48px 0 26px; }
.intro-kicker { margin: 0 0 6px; font-size: 13px; font-weight: 700; color: var(--gray-500); }
.intro h1 { font-size: clamp(28px, 3.4vw, 38px); font-weight: 800; }

/* ---------- Plattformen ---------- */
.projects { padding-bottom: 72px; }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.project {
    display: flex; flex-direction: column; overflow: hidden;
    background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius);
    box-shadow: 0 1px 2px rgb(16 20 24 / .04), 0 10px 30px -14px rgb(16 20 24 / .18);
    transition: box-shadow .3s, transform .3s var(--ease);
}
.project:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgb(16 20 24 / .05), 0 26px 50px -20px rgb(16 20 24 / .30); }

/* Screenshot im Browserfenster auf der Markenfarbe der Plattform */
.shot {
    position: relative; display: block; padding: 28px 32px 0; overflow: hidden; text-decoration: none;
    background:
        radial-gradient(120% 90% at 100% 0%, rgb(255 255 255 / .22), transparent 55%),
        var(--shot-bg, linear-gradient(150deg, var(--brand), color-mix(in srgb, var(--brand) 62%, #111418)));
}
.shot::after { content: ""; position: absolute; inset: auto 0 0; height: 1px; background: rgb(0 0 0 / .08); }
.shot-frame {
    display: block; overflow: hidden; border-radius: 10px 10px 0 0; background: var(--white);
    box-shadow: 0 -2px 0 rgb(255 255 255 / .25), 0 18px 40px -10px rgb(0 0 0 / .45);
    transform: translateY(8px); transition: transform .45s var(--ease);
}
.project:hover .shot-frame { transform: translateY(0); }
.shot-bar { display: flex; align-items: center; gap: 5px; padding: 8px 10px; background: var(--gray-100); border-bottom: 1px solid var(--gray-200); }
.shot-bar > i { width: 8px; height: 8px; border-radius: 50%; background: #c9ced4; }
.shot-bar > i:nth-child(1) { background: #ff5f57; }
.shot-bar > i:nth-child(2) { background: #febc2e; }
.shot-bar > i:nth-child(3) { background: #28c840; }
.shot-bar span { flex: 1; max-width: 60%; margin: 0 auto; padding: 2px 10px; border-radius: 6px; background: var(--white); font-size: 11px; font-weight: 600; color: var(--gray-500); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shot-frame img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; object-position: top; }

.project-body { display: flex; flex-direction: column; flex: 1; padding: 22px 26px 24px; }
.project-category { margin: 0 0 6px; font-size: 12.5px; font-weight: 700; letter-spacing: .02em; color: color-mix(in srgb, var(--brand) 85%, #000); }
.project h2 { font-size: 24px; font-weight: 800; overflow-wrap: break-word; }
.project-desc { margin: 6px 0 0; color: var(--gray-600); }
.project-langs { display: flex; align-items: flex-start; gap: 10px; margin: 16px 0 20px; }
.langs-label { flex: none; padding-top: 4px; font-size: 12px; font-weight: 600; color: var(--gray-500); }
.project-langs ul { display: flex; flex-wrap: wrap; gap: 5px; margin: 0; padding: 0; list-style: none; }
.project-langs li { min-width: 30px; padding: 3px 7px; border: 1px solid var(--gray-200); border-radius: 6px; background: var(--gray-50); font-size: 11.5px; font-weight: 700; color: var(--gray-600); text-align: center; }
.project-link {
    display: inline-flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto;
    padding: 11px 14px; border: 1px solid color-mix(in srgb, var(--brand) 28%, #fff); border-radius: 11px;
    background: color-mix(in srgb, var(--brand) 9%, #fff); color: color-mix(in srgb, var(--brand) 78%, #000);
    font-size: 14px; font-weight: 700; text-decoration: none; transition: background .2s, border-color .2s, color .2s;
}
.project-link svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s var(--ease); }
.project-link:hover { background: var(--brand); border-color: var(--brand); color: var(--white); }
.project-link:hover svg { transform: translate(2px, -2px); }

/* ---------- Footer mit Impressum ---------- */
.footer { background: var(--dark); color: #c3c9d1; font-size: 13.5px; }
.footer-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 36px 0 28px; border-bottom: 1px solid rgb(255 255 255 / .1); }
.footer-logo { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 17px; font-weight: 750; color: var(--white); }
.footer-logo > span:last-child > span { color: #8f97a1; font-weight: 500; }
.footer-claim { margin: 0; max-width: 600px; font-size: 14.5px; line-height: 1.55; text-align: right; text-wrap: balance; }
@media (max-width: 760px) { .footer-claim { text-align: left; } }
.impressum { padding: 30px 0 10px; }
.impressum-title { margin-bottom: 18px; font-size: 20px; font-weight: 800; color: var(--white); }
.impressum-body { column-count: 3; column-gap: 40px; }
.impressum-body h2, .impressum-body h3 { break-after: avoid; color: var(--white); }
.impressum-body h2 { margin: 0 0 8px; font-size: 14.5px; }
.impressum-body h3 { margin: 16px 0 4px; font-size: 13.5px; }
.impressum-body p { margin: 0 0 12px; break-inside: avoid; }
.impressum-body * + h2 { margin-top: 22px; }
.impressum-body a { color: var(--white); }
.impressum-body .alert { column-span: all; margin: 0 0 20px; padding: 10px 14px; border-radius: 9px; background: rgb(255 194 51 / .12); border: 1px solid rgb(255 194 51 / .35); color: #f3dfa6; }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; padding: 18px 0 24px; border-top: 1px solid rgb(255 255 255 / .1); font-size: 13px; }
.footer-bottom p { margin: 0; }
.footer-bottom a { text-decoration: none; }
.footer-bottom a:hover { color: var(--white); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .impressum-body { column-count: 2; }
}
@media (max-width: 760px) {
    .header-claim { padding: 20px 0 48px; }
    .header-title { text-wrap: balance; }
    .header-title br { display: none; }
    .header-nav a { padding: 7px 8px; }
    .project-grid { grid-template-columns: 1fr; }
    .shot { padding: 20px 20px 0; }
    .impressum-body { column-count: 1; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; }
}
