/* SR Games: eigenes Design, nicht das der Projects-Seite.
   Leitbild: ein Spieleabend am Küchentisch. Warmes Papier, Tinte, Messing; Kartons mit hartem Schatten statt Glühen und Neon.
   Farben nur über die Variablen in :root, keine Hex-Werte in den Komponenten. */

@font-face { font-family: "Fraunces"; font-weight: 100 900; font-style: normal; font-display: swap;
    src: url("../fonts/fraunces-latin-ext.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; }
@font-face { font-family: "Fraunces"; font-weight: 100 900; font-style: normal; font-display: swap;
    src: url("../fonts/fraunces-latin.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: "Figtree"; font-weight: 300 900; font-style: normal; font-display: swap;
    src: url("../fonts/figtree-latin-ext.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; }
@font-face { font-family: "Figtree"; font-weight: 300 900; font-style: normal; font-display: swap;
    src: url("../fonts/figtree-latin.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; }

:root {
    --paper:      #f5eddc;
    --paper-2:    #ece1c8;
    --card:       #fffaf0;
    --ink:        #2c2218;
    --ink-soft:   #6a5a47;
    --line:       #d8c9aa;
    --brass:      #b8782a;
    --brass-ink:  #fff7e6;
    --shadow:     rgba(44, 34, 24, 0.16);
    --egg:        #c8442b;   /* Drachenbrut */
    --felt:       #2f6b52;   /* Würfelspiel */
    --soon:       #8a6d3b;
    --hero-fade:  #1b130d;
    --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
    --font-body:    "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
}
@media (prefers-color-scheme: dark) {
    :root {
        --paper:      #1c1611;
        --paper-2:    #251d16;
        --card:       #2b2219;
        --ink:        #f3e9d5;
        --ink-soft:   #c0af95;
        --line:       #46382a;
        --brass:      #e3a94c;
        --brass-ink:  #26190a;
        --shadow:     rgba(0, 0, 0, 0.45);
        --egg:        #e2674a;
        --felt:       #58b08a;
        --soon:       #d9b878;
    }
}
html[data-theme="light"] {
    --paper:#f5eddc; --paper-2:#ece1c8; --card:#fffaf0; --ink:#2c2218; --ink-soft:#6a5a47; --line:#d8c9aa; --brass:#b8782a; --brass-ink:#fff7e6;
    --shadow:rgba(44,34,24,0.16); --egg:#c8442b; --felt:#2f6b52; --soon:#8a6d3b;
}
html[data-theme="dark"] {
    --paper:#1c1611; --paper-2:#251d16; --card:#2b2219; --ink:#f3e9d5; --ink-soft:#c0af95; --line:#46382a; --brass:#e3a94c; --brass-ink:#26190a;
    --shadow:rgba(0,0,0,0.45); --egg:#e2674a; --felt:#58b08a; --soon:#d9b878;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    min-height: 100vh;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
/* Papierstruktur: feines Rauschen, dazu ein sanfter Lichtkegel von oben */
body::before {
    content: "";
    position: fixed; inset: 0; z-index: -1; pointer-events: none;
    background:
        radial-gradient(ellipse 80% 50% at 50% -10%, rgba(255, 220, 150, 0.22), transparent 70%),
        url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.35  0 0 0 0 0.25  0 0 0 0 0.12  0 0 0 .09 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
a { color: inherit; }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; border-radius: 6px; }

.wrapper { max-width: 1080px; margin: 0 auto; padding: 0 24px 40px; }

/* Kopfzeile ------------------------------------------------------- */
.site-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 0 8px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: 21px; letter-spacing: -0.01em; }
.brand-seal {
    /* Das bekannte SR-Monogramm, als Maske eingefärbt: so folgt es Tinte und Design (hell/dunkel) */
    width: 46px; height: 46px; display: block;
    background-color: var(--ink);
    -webkit-mask: url("../img/monogram.png") center / contain no-repeat;
            mask: url("../img/monogram.png") center / contain no-repeat;
    transition: background-color .15s ease, transform .15s ease;
}
.brand:hover .brand-seal { background-color: var(--brass); transform: rotate(-4deg); }
.brand-sub { font-family: var(--font-body); font-weight: 500; font-size: 14px; color: var(--ink-soft); }
.controls { display: flex; gap: 8px; }
.ctrl-btn {
    appearance: none; cursor: pointer; font: inherit; font-weight: 700; font-size: 13px; color: var(--ink);
    height: 38px; min-width: 38px; padding: 0 10px; border-radius: 12px;
    background: var(--card); border: 2px solid var(--ink); box-shadow: 2px 2px 0 var(--shadow);
    display: inline-flex; align-items: center; justify-content: center;
    transition: transform .12s ease, box-shadow .12s ease;
}
.ctrl-btn:hover { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--shadow); }
.ctrl-btn:active { transform: translate(1px, 1px); box-shadow: 0 0 0 var(--shadow); }
.ctrl-btn svg { width: 18px; height: 18px; }
.icon-sun { display: none; } .icon-moon { display: block; }
@media (prefers-color-scheme: light) { .icon-sun { display: block; } .icon-moon { display: none; } }
html[data-theme="dark"] .icon-sun { display: none; } html[data-theme="dark"] .icon-moon { display: block; }
html[data-theme="light"] .icon-sun { display: block; } html[data-theme="light"] .icon-moon { display: none; }

/* Übersicht: Kopf --------------------------------------------------- */
.hero { text-align: center; padding: 54px 0 34px; }
.hero h1 { font-family: var(--font-display); font-weight: 800; font-size: clamp(44px, 8vw, 84px); line-height: 1; letter-spacing: -0.02em; margin: 0 0 16px; }
.hero h1 em { font-style: normal; color: var(--brass); }
.hero-platforms { margin: -4px 0 14px; font-size: 15px; font-weight: 600; letter-spacing: .02em; color: var(--ink-soft); opacity: .8; }
.hero-claim { font-size: clamp(18px, 2.6vw, 23px); margin: 0 auto; max-width: 34em; color: var(--ink-soft); }
.hero-pieces { display: flex; justify-content: center; align-items: flex-end; gap: 6px; margin-top: 26px; min-height: 76px; }
.hero-pieces img { width: 58px; height: 58px; object-fit: contain; filter: drop-shadow(2px 3px 0 var(--shadow)); }
.hero-pieces img:nth-child(odd) { transform: translateY(8px) rotate(-8deg); }
.hero-pieces img:nth-child(even) { transform: translateY(-4px) rotate(6deg); }
.hero-pieces svg { width: 58px; height: 58px; }

.section-head { font-family: var(--font-display); font-weight: 700; font-size: 26px; letter-spacing: -0.01em; margin: 44px 0 20px; display: flex; align-items: center; gap: 14px; }
.section-head::after { content: ""; flex: 1; border-top: 2px dotted var(--line); }

/* Spielekartons ------------------------------------------------------ */
.shelf { display: grid; gap: 34px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 760px) { .shelf { grid-template-columns: 1fr; } }
.box {
    --accent: var(--brass);
    position: relative; display: flex; flex-direction: column; text-decoration: none; overflow: hidden;
    background: var(--card); border: 2px solid var(--ink); border-radius: 18px;
    box-shadow: 7px 7px 0 var(--shadow);
    transition: transform .16s ease, box-shadow .16s ease;
}
a.box:hover { transform: translate(-3px, -4px) rotate(-0.5deg); box-shadow: 11px 12px 0 var(--shadow); }
.box-lid { height: 260px; position: relative; overflow: hidden; border-bottom: 2px solid var(--ink); background: var(--accent); }
.box-lid img { width: 100%; height: 100%; object-fit: cover; object-position: 18% 12%; display: block; }
.box-lid svg { width: 100%; height: 100%; display: block; }
.box-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.box-kicker { font-size: 12px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.box-name { font-family: var(--font-display); font-weight: 800; font-size: 30px; line-height: 1.1; margin: 0; letter-spacing: -0.015em; }
.box-name small { display: block; font-family: var(--font-body); font-weight: 600; font-size: 13px; color: var(--ink-soft); letter-spacing: 0; margin-top: 4px; }
.box-desc { margin: 0; color: var(--ink-soft); font-size: 17px; }
.box-foot { margin-top: auto; padding-top: 10px; display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: 15px; }
.box-foot .arrow { display: inline-block; transition: transform .16s ease; }
a.box:hover .arrow { transform: translateX(4px); }
.box-platform { font-weight: 600; font-size: 13px; color: var(--ink-soft); }
.stamp {
    position: absolute; top: 14px; right: 14px; z-index: 2; transform: rotate(5deg);
    padding: 4px 10px; font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--brass-ink); background: var(--accent); border: 2px solid var(--ink); border-radius: 8px; box-shadow: 2px 2px 0 var(--shadow);
}
.box-egg { --accent: var(--egg); }
.box-dice { --accent: var(--felt); }

.about { margin-top: 56px; padding: 26px 28px; background: var(--paper-2); border: 2px solid var(--line); border-radius: 18px; }
.about h2 { font-family: var(--font-display); font-size: 24px; margin: 0 0 10px; }
.about p { margin: 0 0 10px; color: var(--ink-soft); }
.about p:last-child { margin-bottom: 0; }

/* Spielseite: Titelbild ----------------------------------------------- */
.game-hero {
    position: relative; margin: 14px 0 0; min-height: 520px; border: 2px solid var(--ink); border-radius: 22px; overflow: hidden;
    background: var(--hero-fade); box-shadow: 8px 8px 0 var(--shadow); display: grid; align-items: center;
}
.game-hero > img.game-hero-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: left bottom; }
.game-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 22%, rgba(27, 19, 13, 0.88) 62%, var(--hero-fade) 100%); }
.game-hero-copy { position: relative; z-index: 1; margin-left: auto; width: min(560px, 62%); padding: 40px 44px 40px 0; color: #f6ead2; }
.game-hero-copy .logo { width: min(100%, 440px); height: auto; display: block; margin: 0 0 8px; filter: drop-shadow(0 4px 0 rgba(0,0,0,.35)); }
.game-hero-copy h1 { margin: 0 0 8px; font-family: var(--font-display); font-weight: 700; font-size: clamp(24px, 3.4vw, 34px); line-height: 1.15; letter-spacing: -0.01em; }
.game-hero-copy p { margin: 0 0 18px; font-size: 18px; color: #e6d7bb; }
.game-hero-copy .meta { font-size: 14px; color: #bfae92; margin-top: 16px; margin-bottom: 0; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn {
    display: inline-flex; align-items: center; gap: 8px; text-decoration: none; cursor: pointer; font: inherit; font-weight: 800; font-size: 16px;
    padding: 12px 20px; border-radius: 14px; border: 2px solid var(--ink); color: var(--ink); background: var(--card); box-shadow: 4px 4px 0 var(--shadow);
    transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--shadow); }
.btn-primary { background: var(--brass); color: var(--brass-ink); }
.btn[aria-disabled="true"] { opacity: .78; cursor: default; }
.btn[aria-disabled="true"]:hover { transform: none; box-shadow: 4px 4px 0 var(--shadow); }
.game-hero .btn { border-color: #120c07; box-shadow: 4px 4px 0 rgba(0,0,0,.4); }

/* Einleitung unter dem Titelbild: eine Frage, die man sich selbst schon gestellt hat */
.intro { max-width: 52em; margin: 52px auto 6px; text-align: center; }
.intro-question { font-family: var(--font-display); font-weight: 700; font-size: clamp(26px, 4vw, 38px); line-height: 1.2; letter-spacing: -0.015em; margin: 0 0 16px; text-wrap: balance; }
.intro-question::before { content: ""; display: block; width: 56px; height: 5px; margin: 0 auto 20px; border-radius: 3px; background: var(--brass); }
.intro-body { margin: 0; font-size: 19px; color: var(--ink-soft); text-wrap: pretty; }

/* Abschnitte der Spielseite ------------------------------------------- */
.lead { font-size: 19px; color: var(--ink-soft); }
.steps { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); counter-reset: step; }
.step { position: relative; background: var(--card); border: 2px solid var(--ink); border-radius: 16px; padding: 22px 22px 20px; box-shadow: 5px 5px 0 var(--shadow); counter-increment: step; }
.step::before {
    content: counter(step); position: absolute; top: -16px; left: 18px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
    font-family: var(--font-display); font-weight: 800; background: var(--brass); color: var(--brass-ink); border: 2px solid var(--ink);
}
.step img { position: absolute; top: 12px; right: 16px; width: 64px; height: 64px; object-fit: contain; filter: drop-shadow(2px 3px 0 var(--shadow)); }
.step h3 { font-family: var(--font-display); font-size: 22px; margin: 6px 80px 8px 0; min-height: 52px; }
.step p { margin: 0; color: var(--ink-soft); font-size: 16px; }

.families { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); }
.family { text-align: center; background: var(--card); border: 2px solid var(--line); border-radius: 14px; padding: 16px 10px 14px; }
.family img { width: 72px; height: 72px; object-fit: contain; filter: drop-shadow(2px 3px 0 var(--shadow)); }
.family h3 { font-family: var(--font-display); font-size: 19px; margin: 8px 0 2px; }
.family p { margin: 0; font-size: 14px; color: var(--ink-soft); line-height: 1.4; }
.family .strong { display: inline-block; margin-top: 6px; padding: 1px 8px; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; border-radius: 999px; background: var(--brass); color: var(--brass-ink); }

.specials { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.special { display: flex; gap: 16px; align-items: center; background: var(--paper-2); border: 2px solid var(--line); border-radius: 16px; padding: 16px 18px; }
.special img { width: 66px; height: 66px; flex: none; object-fit: contain; filter: drop-shadow(2px 3px 0 var(--shadow)); }
.special h3 { font-family: var(--font-display); font-size: 19px; margin: 0 0 2px; }
.special p { margin: 0; font-size: 15px; color: var(--ink-soft); line-height: 1.45; }

.modes { display: grid; gap: 26px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.mode { background: var(--card); border: 2px solid var(--ink); border-radius: 18px; overflow: hidden; box-shadow: 6px 6px 0 var(--shadow); }
.mode img { display: block; width: 100%; border-bottom: 2px solid var(--ink); }
.mode div { padding: 16px 20px 20px; }
.mode .mode-eggs { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; padding: 22px 16px 18px; background: var(--card); border-bottom: 2px solid var(--ink); }
.mode .mode-eggs img { width: 44px; height: 44px; border: 0; }
.mode h3 { font-family: var(--font-display); font-size: 24px; margin: 0 0 6px; }
.mode p { margin: 0; color: var(--ink-soft); }

.shots { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); margin: 0; padding: 0; list-style: none; }
.shots figure { margin: 0; }
.shots img { display: block; width: 100%; border-radius: 12px; border: 2px solid var(--ink); box-shadow: 5px 5px 0 var(--shadow); }
.shots figcaption { margin-top: 10px; font-size: 14px; color: var(--ink-soft); text-align: center; }

.promise { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-top: 8px; }
.promise-item { background: var(--card); border: 2px solid var(--line); border-radius: 14px; padding: 14px 16px; font-weight: 700; display: flex; gap: 10px; align-items: center; }
.promise-item svg { width: 24px; height: 24px; flex: none; color: var(--brass); }
.promise-text { color: var(--ink-soft); margin-top: 14px; }

/* Rechtstexte und Hilfe ------------------------------------------------ */
.back { padding: 10px 0 0; font-weight: 700; }
.back a { text-decoration: none; }
.back a:hover { text-decoration: underline; }
.legal { max-width: 46em; margin: 12px auto 0; padding: 12px 0 0; }
.legal h1 { font-family: var(--font-display); font-weight: 800; font-size: clamp(32px, 5vw, 46px); line-height: 1.1; letter-spacing: -0.02em; margin: 14px 0 10px; }
.legal h2 { font-family: var(--font-display); font-size: 25px; margin: 34px 0 8px; }
.legal h3 { font-size: 17px; margin: 22px 0 6px; }
.legal p, .legal li { color: var(--ink-soft); }
.legal li { margin-bottom: 6px; }
.legal address { font-style: normal; color: var(--ink-soft); }
.legal a { color: var(--brass); font-weight: 600; }
.legal kbd { font: inherit; font-weight: 700; font-size: 14px; padding: 1px 8px; border: 2px solid var(--line); border-bottom-width: 3px; border-radius: 7px; background: var(--card); color: var(--ink); }

/* Fuß ------------------------------------------------------------------- */
.footer { margin-top: 64px; padding-top: 22px; border-top: 2px dotted var(--line); display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between; font-size: 15px; color: var(--ink-soft); }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.footer a { text-decoration: none; font-weight: 600; }
.footer a:hover { color: var(--ink); text-decoration: underline; }
.footer-copy { margin: 0; flex-basis: 100%; font-size: 13px; }

@media (max-width: 760px) {
    .game-hero { min-height: 0; }
    .game-hero > img.game-hero-art { position: relative; height: 260px; display: block; }
    .game-hero::after { display: none; }
    .game-hero-copy { width: 100%; margin: 0; padding: 26px 22px 30px; background: var(--hero-fade); }
    .game-hero { display: block; }
    body { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
