/* Dussel.info – Kühlschranktür
   Helles Emaille, Cartoons als Abzüge mit Magneten und Klebeband. */

@font-face {
    font-family: "Lilita One";
    src: url("../fonts/lilita-one.woff2") format("woff2");
    font-weight: 400;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Lilita One";
    src: url("../fonts/lilita-one-ext.woff2") format("woff2");
    font-weight: 400;
    font-display: swap;
    unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "Figtree";
    src: url("../fonts/figtree.woff2") format("woff2");
    font-weight: 300 900;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Figtree";
    src: url("../fonts/figtree-ext.woff2") format("woff2");
    font-weight: 300 900;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "Figtree";
    src: url("../fonts/figtree-italic.woff2") format("woff2");
    font-weight: 300 900;
    font-style: italic;
    font-display: swap;
}

:root {
    /* Tür */
    --door: #f3f6f5;
    --door-edge: #e3e9e7;
    --door-shade: #d5dcda;
    --paper: #ffffff;
    --ink: #1d2430;
    --ink-soft: #4a5463;
    --ink-faint: #6b7584;
    --line: #dbe2e0;

    /* Magnete */
    --cobalt: #2f6fe4;
    --cobalt-dark: #1f4fae;
    --tomato: #e8483a;
    --tomato-dark: #b02f24;
    --sun: #f5b700;
    --sun-dark: #c08a00;
    --mint: #1fa37a;
    --mint-dark: #137656;
    --magenta: #d9468f;
    --magenta-dark: #a52c68;
    --orange: #ff7a00;
    --orange-dark: #c35a00;
    --tape: #fff1b8;

    --font-display: "Lilita One", "Arial Rounded MT Bold", sans-serif;
    --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;

    --radius: 6px;
    --shadow-print: 0 1px 1px rgba(29, 36, 48, .06), 0 6px 14px -4px rgba(29, 36, 48, .16), 0 18px 32px -18px rgba(29, 36, 48, .22);
    --shadow-lift: 0 2px 2px rgba(29, 36, 48, .06), 0 14px 26px -6px rgba(29, 36, 48, .2), 0 34px 48px -24px rgba(29, 36, 48, .28);
    --ease-out: cubic-bezier(.16, 1, .3, 1);
    --wrap: 1240px;
    --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scrollbar-color: var(--door-shade) var(--door);
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--ink);
    background-color: var(--door);
    /* fein gebürstete Emaille-Oberfläche */
    background-image:
        repeating-linear-gradient(90deg, rgba(255,255,255,.55) 0 1px, transparent 1px 3px),
        linear-gradient(90deg, rgba(29,36,48,.035), transparent 18%, transparent 82%, rgba(29,36,48,.035));
    -webkit-font-smoothing: antialiased;
}

::selection { background: var(--sun); color: var(--ink); }

img { max-width: 100%; height: auto; display: block; }

a { color: var(--cobalt-dark); text-underline-offset: .18em; text-decoration-thickness: 1.5px; }
a:hover { color: var(--ink); }

:focus-visible {
    outline: 3px solid var(--cobalt);
    outline-offset: 3px;
    border-radius: 4px;
}

h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: -0.005em;
    text-wrap: balance;
    margin: 0;
}

.wrap {
    width: 100%;
    max-width: var(--wrap);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.skip-link {
    position: absolute;
    left: 12px; top: -60px;
    z-index: 200;
    background: var(--ink); color: #fff;
    padding: 10px 16px; border-radius: var(--radius);
    font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- Kopfzeile: oberer Türrand ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(243, 246, 245, .9);
    backdrop-filter: saturate(1.4) blur(10px);
    -webkit-backdrop-filter: saturate(1.4) blur(10px);
    border-bottom: 1px solid var(--line);
}
.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    height: 76px;
}
.brand { display: inline-flex; flex-shrink: 0; }
.brand img { width: clamp(150px, 22vw, 210px); height: auto; transition: transform .5s var(--ease-out); }
.brand:hover img { transform: rotate(-2deg) scale(1.03); }

.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border-radius: 999px;
    font-weight: 650;
    font-size: .98rem;
    color: var(--ink-soft);
    text-decoration: none;
    transition: background-color .2s, color .2s;
}
.nav a::before {
    content: "";
    width: 9px; height: 9px;
    border-radius: 50%;
    background: var(--dot, var(--door-shade));
    box-shadow: inset 0 -2px 0 rgba(0,0,0,.18);
    transition: transform .3s var(--ease-out);
}
.nav a:hover { background: var(--paper); color: var(--ink); }
.nav a:hover::before { transform: scale(1.35); }
.nav a[aria-current="page"] { color: var(--ink); background: var(--paper); box-shadow: 0 1px 2px rgba(29,36,48,.08); }
.nav a:nth-child(6n+1) { --dot: var(--cobalt); }
.nav a:nth-child(6n+2) { --dot: var(--tomato); }
.nav a:nth-child(6n+3) { --dot: var(--mint); }
.nav a:nth-child(6n+4) { --dot: var(--magenta); }
.nav a:nth-child(6n+5) { --dot: var(--orange); }
.nav a:nth-child(6n+6) { --dot: var(--sun); }

/* Dropdown "Spielereien" */
.nav-drop { position: relative; }
.nav-drop__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px 9px 14px;
    border: 0;
    border-radius: 999px;
    background: none;
    font: inherit;
    font-weight: 650;
    font-size: .98rem;
    color: var(--ink-soft);
    cursor: pointer;
    transition: background-color .2s, color .2s;
}
.nav-drop__btn::before {
    content: "";
    width: 9px; height: 9px;
    border-radius: 50%;
    background: var(--magenta);
    box-shadow: inset 0 -2px 0 rgba(0,0,0,.18);
}
.nav-drop__btn:hover, .nav-drop__btn[aria-expanded="true"] { background: var(--paper); color: var(--ink); }
.nav-drop__btn.is-current { color: var(--ink); background: var(--paper); box-shadow: 0 1px 2px rgba(29,36,48,.08); }
.nav-drop__chev { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ease-out); }
.nav-drop__btn[aria-expanded="true"] .nav-drop__chev { transform: rotate(180deg); }

.nav-drop__menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 60;
    display: grid;
    gap: 2px;
    min-width: 236px;
    padding: 10px;
    background: var(--paper);
    border-radius: 14px;
    box-shadow: 0 0 0 1px var(--line), var(--shadow-lift);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px) rotate(-.6deg);
    transition: opacity .18s, transform .25s var(--ease-out), visibility 0s .25s;
}
.nav-drop__menu::before {
    content: "";
    position: absolute;
    top: -9px; right: 26px;
    width: 18px; height: 18px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.65), rgba(255,255,255,0) 42%), var(--magenta);
    box-shadow: inset 0 -3px 0 var(--magenta-dark), 0 3px 4px rgba(29,36,48,.22);
}
.nav-drop.is-open .nav-drop__menu { opacity: 1; visibility: visible; transform: none; transition: opacity .18s, transform .25s var(--ease-out); }
.nav .nav-drop__menu a { border-radius: 10px; }
.nav .nav-drop__menu a:nth-child(4n+1) { --dot: var(--mint); }
.nav .nav-drop__menu a:nth-child(4n+2) { --dot: var(--tomato); }
.nav .nav-drop__menu a:nth-child(4n+3) { --dot: var(--cobalt); }
.nav .nav-drop__menu a:nth-child(4n+4) { --dot: var(--sun); }
.nav .nav-drop__menu a[aria-current="page"] { background: var(--door); box-shadow: none; }

.nav-toggle {
    display: none;
    width: 46px; height: 46px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--paper);
    color: var(--ink);
    cursor: pointer;
    align-items: center; justify-content: center;
}
.nav-toggle svg { width: 22px; height: 22px; }

@media (max-width: 820px) {
    .nav-toggle { display: inline-flex; }
    .nav {
        position: absolute;
        top: 100%; left: 0; right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        padding: 10px var(--gutter) 18px;
        background: var(--door);
        border-bottom: 1px solid var(--line);
        box-shadow: 0 18px 30px -20px rgba(29,36,48,.3);
        clip-path: inset(0 0 100% 0);
        visibility: hidden;
        transition: clip-path .35s var(--ease-out), visibility 0s .35s;
    }
    .nav.is-open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .35s var(--ease-out); }
    .nav a { padding: 13px 14px; font-size: 1.05rem; }
    .nav-drop__btn { width: 100%; padding: 13px 14px; font-size: 1.05rem; justify-content: flex-start; }
    .nav-drop__chev { margin-left: auto; }
    .nav-drop__menu {
        position: static;
        min-width: 0;
        padding: 2px 0 6px 18px;
        background: none;
        box-shadow: none;
        border-radius: 0;
        transform: none;
        display: none;
        opacity: 1;
        visibility: visible;
        transition: none;
    }
    .nav-drop__menu::before { display: none; }
    .nav-drop.is-open .nav-drop__menu { display: grid; }
}

/* ---------- Grundbausteine ---------- */

main { flex: 1 0 auto; padding-block: clamp(28px, 5vw, 56px) clamp(56px, 8vw, 96px); }

/* Magnet */
.magnet {
    position: absolute;
    z-index: 3;
    width: var(--size, 26px);
    height: var(--size, 26px);
    border-radius: 50%;
    background:
        radial-gradient(circle at 35% 30%, rgba(255,255,255,.65), rgba(255,255,255,0) 42%),
        var(--m, var(--tomato));
    box-shadow:
        inset 0 -3px 0 var(--m-dark, var(--tomato-dark)),
        0 3px 4px rgba(29,36,48,.22),
        0 8px 12px -6px rgba(29,36,48,.35);
    pointer-events: none;
}
.magnet--cobalt { --m: var(--cobalt); --m-dark: var(--cobalt-dark); }
.magnet--tomato { --m: var(--tomato); --m-dark: var(--tomato-dark); }
.magnet--sun { --m: var(--sun); --m-dark: var(--sun-dark); }
.magnet--mint { --m: var(--mint); --m-dark: var(--mint-dark); }
.magnet--magenta { --m: var(--magenta); --m-dark: var(--magenta-dark); }
.magnet--orange { --m: var(--orange); --m-dark: var(--orange-dark); }

/* Klebestreifen */
.tape {
    position: absolute;
    z-index: 3;
    width: 92px; height: 26px;
    background: linear-gradient(90deg, rgba(255,255,255,.4), rgba(255,255,255,0) 40%, rgba(255,255,255,.3)), var(--tape);
    opacity: .92;
    box-shadow: 0 1px 2px rgba(29,36,48,.1);
    -webkit-mask: linear-gradient(90deg, transparent 0 2px, #000 2px calc(100% - 2px), transparent calc(100% - 2px));
            mask: linear-gradient(90deg, transparent 0 2px, #000 2px calc(100% - 2px), transparent calc(100% - 2px));
    pointer-events: none;
}

/* Abzug (ein Cartoon an der Tür) */
.print {
    position: relative;
    display: block;
    background: var(--paper);
    padding: clamp(8px, 1.2vw, 12px) clamp(8px, 1.2vw, 12px) 14px;
    border-radius: 3px;
    box-shadow: var(--shadow-print);
    transform: rotate(var(--tilt, 0deg));
    transition: transform .55s var(--ease-out), box-shadow .55s var(--ease-out);
    color: inherit;
    text-decoration: none;
}
a.print:hover, a.print:focus-visible {
    transform: rotate(0deg) translateY(-4px);
    box-shadow: var(--shadow-lift);
    color: inherit;
}
.print__img {
    display: block;
    width: 100%;
    background: #f7f8f8;
    border-radius: 2px;
}
.print__title {
    display: block;
    margin-top: 12px;
    padding-inline: 4px;
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.3;
    color: var(--ink);
}
.print__meta {
    display: block;
    padding-inline: 4px;
    margin-top: 2px;
    font-size: .85rem;
    color: var(--ink-faint);
    font-variant-numeric: tabular-nums;
}

/* Andocken: Abzüge "schnappen" an die Tür, sichtbar von Anfang an */
@media (prefers-reduced-motion: no-preference) {
    .js .stick { animation: stick .8s var(--ease-out) both; animation-delay: var(--delay, 0ms); }
    .js .stick .magnet { animation: snap .8s var(--ease-out) both; animation-delay: calc(var(--delay, 0ms) + 120ms); }
    @keyframes stick {
        from { transform: translateY(-14px) rotate(calc(var(--tilt, 0deg) * -2)) scale(1.03); box-shadow: var(--shadow-lift); }
        to { transform: rotate(var(--tilt, 0deg)); }
    }
    @keyframes snap {
        0% { transform: scale(1.5) translateY(-6px); }
        55% { transform: scale(.92); }
        100% { transform: scale(1); }
    }
}

/* Knöpfe */
.btn {
    --b: var(--ink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 12px 22px;
    border: 0;
    border-radius: 14px;
    background: var(--b);
    color: #fff;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 750;
    text-decoration: none;
    cursor: pointer;
    box-shadow: inset 0 -3px 0 rgba(0,0,0,.25), 0 6px 14px -8px rgba(29,36,48,.6);
    transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out), background-color .2s;
}
.btn:hover { color: #fff; transform: translateY(-2px); box-shadow: inset 0 -3px 0 rgba(0,0,0,.25), 0 12px 20px -10px rgba(29,36,48,.6); }
.btn:active { transform: translateY(1px); box-shadow: inset 0 -1px 0 rgba(0,0,0,.25); }
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.btn--cobalt { --b: var(--cobalt-dark); }
.btn--whatsapp { --b: #128c4a; }
.btn--telegram { --b: #1b6fa8; }
.btn--light {
    background: var(--paper);
    color: var(--ink);
    box-shadow: inset 0 0 0 1px var(--line), inset 0 -3px 0 var(--line), 0 6px 14px -10px rgba(29,36,48,.5);
}
.btn--light:hover { color: var(--ink); }

/* Zettel */
.note {
    position: relative;
    background: var(--paper);
    padding: 26px 24px 22px;
    border-radius: 3px;
    box-shadow: var(--shadow-print);
    transform: rotate(var(--tilt, 0deg));
}
.note--sun { background: #fff6d6; }
.note--mint { background: #e4f5ee; }

/* Abschnittsköpfe */
.section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: clamp(22px, 3vw, 34px);
}
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); }
.section-head a { font-weight: 700; }

/* ---------- Startseite ---------- */

.door-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
    gap: clamp(28px, 4vw, 56px);
    align-items: start;
}
.door-hero__intro { margin-bottom: clamp(18px, 2.5vw, 28px); max-width: 30ch; }
.door-hero__intro h1 {
    font-size: clamp(2.4rem, 5.6vw, 4.4rem);
    letter-spacing: -0.01em;
}
.door-hero__intro p { margin: 12px 0 0; color: var(--ink-soft); font-size: 1.12rem; }

.hero-print { --tilt: -1.2deg; padding: clamp(10px, 1.6vw, 16px) clamp(10px, 1.6vw, 16px) 20px; }
.hero-print .print__img { max-height: 70vh; object-fit: contain; }
.hero-print .print__title { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.4rem, 2.6vw, 2rem); margin-top: 16px; }
.hero-print .magnet { --size: 34px; }

.door-side { display: grid; gap: clamp(26px, 3.5vw, 40px); padding-top: clamp(0px, 3vw, 40px); }
.door-side .cell:nth-child(1) .print { --tilt: 2deg; }
.door-side .cell:nth-child(2) .print { --tilt: -1.6deg; }
.door-side .cell:nth-child(2) { margin-left: 8%; }
.door-hero__note { margin-top: clamp(30px, 4vw, 48px); max-width: 520px; margin-left: 6%; }
.cell { padding-top: 12px; }

.note h2 { font-size: 1.6rem; margin-bottom: 8px; }
.note p { margin: 0 0 16px; color: var(--ink-soft); }

/* Tür-Raster (Mauerwerk aus Abzügen) */
.door-grid {
    columns: 4 250px;
    column-gap: clamp(20px, 2.6vw, 34px);
}
.door-grid > * {
    break-inside: avoid;
    margin-bottom: clamp(26px, 3vw, 40px);
}
.door-grid > :nth-child(5n+1) .print { --tilt: -1.4deg; }
.door-grid > :nth-child(5n+2) .print { --tilt: 1.1deg; }
.door-grid > :nth-child(5n+3) .print { --tilt: -.6deg; }
.door-grid > :nth-child(5n+4) .print { --tilt: 1.7deg; }
.door-grid > :nth-child(5n+5) .print { --tilt: -1deg; }
.door-grid .magnet, .door-side .magnet { top: -9px; left: calc(50% - 13px); }
.door-grid > :nth-child(3n+2) .magnet, .door-side .cell:nth-child(1) .magnet { left: 18%; }
.door-grid > :nth-child(3n+3) .magnet, .door-side .cell:nth-child(2) .magnet { left: auto; right: 16%; }

.home-section { margin-top: clamp(64px, 9vw, 120px); }

.empty {
    padding: 48px 24px;
    text-align: center;
    color: var(--ink-soft);
    border: 2px dashed var(--door-shade);
    border-radius: 16px;
}

/* ---------- Katalog ---------- */

.page-head { margin-bottom: clamp(26px, 4vw, 44px); }
.page-head h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); }
.page-head p { margin: 10px 0 0; color: var(--ink-soft); font-size: 1.1rem; max-width: 60ch; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: clamp(30px, 4.5vw, 50px); }
.chip {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 44px;
    padding: 8px 16px 8px 12px;
    border-radius: 999px;
    background: var(--paper);
    color: var(--ink);
    font-weight: 650;
    font-size: .97rem;
    text-decoration: none;
    box-shadow: inset 0 0 0 1px var(--line), 0 2px 4px -2px rgba(29,36,48,.2);
    transition: transform .25s var(--ease-out), box-shadow .25s;
}
.chip::before {
    content: "";
    width: 14px; height: 14px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.6), transparent 45%), var(--m, var(--ink-faint));
    box-shadow: inset 0 -2px 0 rgba(0,0,0,.2);
}
.chip:hover { transform: translateY(-2px); color: var(--ink); }
.chip[aria-current="page"] { background: var(--ink); color: #fff; box-shadow: none; }
.chips .chip:nth-child(6n+2) { --m: var(--cobalt); }
.chips .chip:nth-child(6n+3) { --m: var(--tomato); }
.chips .chip:nth-child(6n+4) { --m: var(--mint); }
.chips .chip:nth-child(6n+5) { --m: var(--magenta); }
.chips .chip:nth-child(6n+6) { --m: var(--orange); }
.chips .chip:nth-child(6n+1):not(:first-child) { --m: var(--sun); }

/* ---------- Detailseite ---------- */

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: clamp(30px, 4vw, 40px);
    font-weight: 700;
    color: var(--ink-soft);
    text-decoration: none;
}
.back-link:hover { color: var(--ink); }
.back-link svg { width: 18px; height: 18px; }

.detail {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr);
    gap: clamp(30px, 4.5vw, 64px);
    align-items: start;
}
.detail-print { --tilt: -.8deg; padding: clamp(10px, 1.8vw, 18px); }
.detail-print .print__img { max-height: 78vh; object-fit: contain; margin-inline: auto; width: auto; }
.detail-print .tape:nth-of-type(1) { top: -12px; left: -18px; transform: rotate(-38deg); }
.detail-print .tape:nth-of-type(2) { bottom: -10px; right: -16px; transform: rotate(-34deg); }

.detail-info h1 { font-size: clamp(2rem, 3.8vw, 3rem); margin-bottom: 14px; }
.detail-meta {
    display: flex; flex-wrap: wrap; gap: 6px 18px;
    margin: 0 0 22px;
    color: var(--ink-faint);
    font-size: .95rem;
    font-variant-numeric: tabular-nums;
}
.detail-meta span { display: inline-flex; align-items: center; gap: 6px; }
.detail-meta svg { width: 16px; height: 16px; }
.detail-desc { margin: 0 0 22px; color: var(--ink-soft); max-width: 62ch; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; padding: 0; list-style: none; }
.tags li {
    padding: 4px 11px;
    border-radius: 6px;
    background: var(--tape);
    font-size: .88rem;
    font-weight: 650;
    color: #5c4a00;
    transform: rotate(var(--tilt, -1deg));
}
.tags li:nth-child(even) { --tilt: 1deg; }

.actions { display: grid; gap: 12px; margin-bottom: 26px; }
.actions .btn { width: 100%; }
.share-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.usage-note {
    --tilt: .8deg;
    font-size: .92rem;
    color: var(--ink-soft);
    padding: 18px 18px 16px;
}
.usage-note strong { color: var(--ink); }
.usage-note .magnet { --size: 20px; top: -8px; right: 18px; }

.pager {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: clamp(48px, 7vw, 80px);
    padding-top: 28px;
    border-top: 1px solid var(--line);
}
.pager a {
    display: flex; flex-direction: column; gap: 2px;
    padding: 14px 16px;
    border-radius: 12px;
    text-decoration: none;
    color: var(--ink);
    transition: background-color .2s;
}
.pager a:hover { background: var(--paper); }
.pager small { color: var(--ink-faint); font-weight: 650; font-size: .85rem; }
.pager strong { font-weight: 700; line-height: 1.3; }
.pager .pager__next { text-align: right; grid-column: 2; }

/* ---------- CMS-Seiten ---------- */

.sheet {
    --tilt: -.4deg;
    max-width: 820px;
    margin-inline: auto;
    padding: clamp(28px, 5vw, 64px) clamp(22px, 5vw, 64px);
}
.sheet .tape { top: -13px; left: calc(50% - 46px); transform: rotate(-3deg); }
.sheet h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: 26px; }
.prose { max-width: 68ch; }
.prose h1, .prose h2, .prose h3 { margin: 1.6em 0 .5em; }
.prose h2 { font-size: 1.7rem; }
.prose h3 { font-size: 1.3rem; }
.prose p, .prose ul, .prose ol { margin: 0 0 1em; }
.prose a { color: var(--cobalt-dark); }

/* ---------- 404 ---------- */

.lost { text-align: center; max-width: 640px; margin: clamp(20px, 6vw, 70px) auto; }
.lost__fallen {
    position: relative;
    width: 180px; height: 120px;
    margin: 0 auto 26px;
}
.lost__fallen .magnet { --size: 46px; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); }
.lost__fallen .shadow { position: absolute; bottom: -6px; left: 50%; width: 70px; height: 10px; transform: translateX(-50%); background: radial-gradient(rgba(29,36,48,.25), transparent 70%); }
@media (prefers-reduced-motion: no-preference) {
    .lost__fallen .magnet { animation: fall 1.4s var(--ease-out) both; }
    @keyframes fall {
        0% { transform: translate(-50%, -110px); }
        45% { transform: translate(-50%, 0); }
        62% { transform: translate(-50%, -26px); }
        78% { transform: translate(-50%, 0); }
        88% { transform: translate(-50%, -6px); }
        100% { transform: translate(-50%, 0); }
    }
}
.lost h1 { font-size: clamp(2.4rem, 6vw, 4rem); margin-bottom: 12px; }
.lost p { color: var(--ink-soft); margin: 0 0 28px; font-size: 1.12rem; }

/* ---------- Satire-Hinweis ---------- */

.satire-dialog {
    width: min(640px, calc(100% - 32px));
    max-height: calc(100dvh - 40px);
    padding: 0;
    border: 0;
    background: transparent;
    overflow: visible;
}
.satire-dialog::backdrop { background: rgba(29,36,48,.45); backdrop-filter: blur(4px); }
.satire-dialog .note {
    --tilt: -.6deg;
    max-height: calc(100dvh - 40px);
    overflow-y: auto;
    padding: clamp(28px, 5vw, 44px);
    background: #fffbe9;
}
.satire-dialog .magnet { --size: 30px; top: 12px; left: calc(50% - 15px); }
.satire-dialog h2 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin-bottom: 14px; }
.satire-dialog p { margin: 0 0 14px; color: var(--ink-soft); }
.satire-dialog .lead { color: var(--ink); font-weight: 700; }
.satire-dialog .distance {
    margin: 18px 0 24px;
    padding: 16px 18px;
    background: var(--paper);
    border-radius: 8px;
    font-size: .92rem;
    color: var(--ink-soft);
    box-shadow: inset 0 0 0 1px var(--line);
}
.satire-dialog .distance strong { display: block; color: var(--ink); margin-bottom: 6px; }
.satire-dialog .distance em { display: block; margin-top: 8px; color: var(--ink-faint); }
@media (prefers-reduced-motion: no-preference) {
    .satire-dialog[open] .note { animation: stick .7s var(--ease-out) both; }
}

/* ---------- Fußzeile: unterer Türrand mit Griff ---------- */

.site-footer {
    flex-shrink: 0;
    background: var(--door-edge);
    border-top: 1px solid var(--door-shade);
    color: var(--ink-soft);
    font-size: .95rem;
}
.site-footer__handle {
    display: block;
    width: min(320px, 60%);
    height: 14px;
    margin: -8px auto 0;
    border-radius: 999px;
    background: linear-gradient(180deg, #fbfcfc, #c9d1cf);
    box-shadow: 0 4px 8px -3px rgba(29,36,48,.3), inset 0 -1px 0 rgba(29,36,48,.12);
}
.site-footer__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 18px 32px;
    padding-block: 34px 40px;
}
.site-footer img { width: 132px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.site-footer a { color: var(--ink-soft); font-weight: 600; text-decoration: none; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; }
.site-footer small { display: block; width: 100%; color: var(--ink-faint); font-size: .85rem; }

/* ---------- Responsiv ---------- */

@media (max-width: 960px) {
    .door-hero { grid-template-columns: 1fr; }
    .door-side { grid-template-columns: 1fr 1fr; padding-top: 0; align-items: start; }
    .door-side .cell:nth-child(2) { margin-left: 0; }
    .door-hero__note { margin-left: 0; max-width: none; }
    .door-hero > div:first-child { display: contents; }
    .door-hero__intro { order: -2; }
    .hero-print { order: -1; }
    .door-hero__note { order: 1; }
    .detail { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    body { font-size: 1rem; }
    .door-grid { columns: 2 150px; column-gap: 16px; }
    .door-grid .print__title { font-size: .92rem; }
    .door-grid .print__meta { display: none; }
    .door-grid .magnet { --size: 20px; }
    .door-side { gap: 22px 16px; }
    .door-side .print__title { font-size: .92rem; }
    .pager { grid-template-columns: 1fr; }
    .pager .pager__next { grid-column: 1; }
    .share-row { grid-template-columns: 1fr; }
    .detail-print .tape { width: 64px; height: 20px; }
    .detail-print .tape:nth-of-type(1) { top: -8px; left: -10px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
}

@media print {
    .site-header, .site-footer, .actions, .pager, .back-link { display: none !important; }
    body { background: #fff; }
    .print { box-shadow: none; transform: none; }
}

/* ---------- Daumen hoch ---------- */

.like-form { margin: 0; }
.like-btn {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    min-height: 64px;
    padding: 10px 12px 10px 10px;
    border: 0;
    border-radius: 18px;
    background: var(--paper);
    color: var(--ink);
    font: inherit;
    font-weight: 750;
    font-size: 1.08rem;
    cursor: pointer;
    box-shadow: inset 0 0 0 1px var(--line), inset 0 -3px 0 var(--line), 0 8px 18px -12px rgba(29,36,48,.5);
    transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out), background-color .25s;
}
.like-btn:hover { transform: translateY(-2px); }
.like-btn__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px; height: 46px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.6), transparent 45%), var(--sun);
    box-shadow: inset 0 -3px 0 var(--sun-dark), 0 4px 8px -3px rgba(29,36,48,.35);
    color: var(--ink);
    transition: transform .4s var(--ease-out), background-color .3s;
}
.like-btn__icon svg { width: 24px; height: 24px; }
.like-btn__count {
    margin-left: auto;
    min-width: 46px;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--door);
    text-align: center;
    font-variant-numeric: tabular-nums;
}
.like-btn[aria-pressed="true"] { background: #fff6d6; box-shadow: inset 0 0 0 2px var(--sun), inset 0 -3px 0 var(--sun-dark), 0 8px 18px -12px rgba(29,36,48,.5); }
.like-btn[aria-pressed="true"] .like-btn__icon svg { fill: var(--ink); }
.like-btn.is-popping .like-btn__icon { animation: thumb-pop .6s var(--ease-out); }
@keyframes thumb-pop {
    0% { transform: scale(1) rotate(0); }
    30% { transform: scale(1.35) rotate(-18deg); }
    60% { transform: scale(.92) rotate(6deg); }
    100% { transform: scale(1) rotate(0); }
}
.print__likes { display: inline-flex; align-items: center; gap: 4px; }
.print__likes svg { width: 14px; height: 14px; }

/* Sortierung im Katalog */
.sort { display: inline-flex; gap: 4px; padding: 4px; margin: 0 0 18px; border-radius: 999px; background: var(--door-edge); }
.sort a {
    display: inline-flex; align-items: center; gap: 6px;
    min-height: 40px; padding: 6px 16px;
    border-radius: 999px;
    font-weight: 700; font-size: .95rem;
    color: var(--ink-soft); text-decoration: none;
}
.sort a svg { width: 16px; height: 16px; }
.sort a[aria-current="true"] { background: var(--paper); color: var(--ink); box-shadow: 0 1px 3px rgba(29,36,48,.15); }

/* ---------- Videos ---------- */

.play-badge {
    position: absolute;
    z-index: 2;
    top: 50%; left: 50%;
    width: 54px; height: 54px;
    margin: -38px 0 0 -27px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: rgba(29,36,48,.78);
    color: #fff;
    box-shadow: 0 6px 16px -6px rgba(0,0,0,.5);
    backdrop-filter: blur(2px);
    transition: transform .3s var(--ease-out);
}
.play-badge svg { width: 26px; height: 26px; margin-left: 3px; }
.play-badge--big { width: 84px; height: 84px; margin: -52px 0 0 -42px; }
.play-badge--big svg { width: 38px; height: 38px; }
a.print:hover .play-badge { transform: scale(1.1); }
.print__video { width: 100%; max-height: 78vh; background: #11151b; border-radius: 2px; }
