:root {
    --page: #f4efe0;
    --field: #d8dfc7;
    --field-deep: #9eb57d;
    --ink: #17221a;
    --muted: #5c6759;
    --paper: #fffaf0;
    --paper-strong: #fffdf6;
    --leaf: #2f6f48;
    --mint: #b9d9c0;
    --wheat: #e8c76e;
    --soil: #8b6141;
    --tractor: #bd3d32;
    --line: rgba(23, 34, 26, 0.13);
    --line-strong: rgba(23, 34, 26, 0.26);
    --shadow: 0 28px 78px rgba(58, 76, 45, 0.17);
    --shadow-soft: 0 16px 40px rgba(58, 76, 45, 0.11);
    --radius: 12px;
    --radius-soft: 18px;
    --ease: cubic-bezier(0.32, 0.72, 0, 1);
}

* {
    box-sizing: border-box;
    letter-spacing: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 112px;
}

body {
    margin: 0;
    min-height: 100dvh;
    color: var(--ink);
    background:
        radial-gradient(circle at 15% 8%, rgba(255, 250, 240, 0.92), transparent 32rem),
        linear-gradient(180deg, #f8f1df 0%, #e8ddc2 52%, #d7dfc9 100%);
    font-family: "Avenir Next", "Aptos", "Segoe UI", sans-serif;
    overflow-x: hidden;
    text-rendering: geometricPrecision;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background:
        linear-gradient(rgba(23, 34, 26, 0.032) 1px, transparent 1px),
        linear-gradient(90deg, rgba(23, 34, 26, 0.027) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: linear-gradient(180deg, black 0%, rgba(0, 0, 0, 0.72) 42%, transparent 100%);
}

.grain {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: 0.055;
    background-image:
        linear-gradient(45deg, rgba(23, 34, 26, 0.18) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(23, 34, 26, 0.12) 25%, transparent 25%);
    background-size: 5px 5px;
    mix-blend-mode: multiply;
}

a {
    color: inherit;
}

img,
video {
    display: block;
    max-width: 100%;
}

video {
    background: #132019;
}

button,
input,
textarea,
select {
    font: inherit;
}

#spiel,
#bilder,
#eltern,
#rechtliches {
    scroll-margin-top: 112px;
}

.skip-link {
    position: fixed;
    left: 16px;
    top: 14px;
    z-index: 8;
    transform: translateY(-180%);
    padding: 10px 14px;
    border-radius: var(--radius);
    background: var(--ink);
    color: white;
    text-decoration: none;
    transition: transform 260ms var(--ease);
}

.skip-link:focus {
    transform: translateY(0);
}

.topbar {
    position: sticky;
    top: 16px;
    z-index: 6;
    width: min(1180px, calc(100% - 32px));
    min-height: 62px;
    margin: 16px auto 0;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 999px;
    background: rgba(255, 250, 240, 0.86);
    box-shadow: 0 16px 42px rgba(58, 76, 45, 0.16);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.brand-link,
.topbar-links a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    text-decoration: none;
    white-space: nowrap;
}

.brand-link {
    padding: 0 18px;
    background: var(--ink);
    color: var(--paper);
    font-weight: 900;
}

.topbar-links {
    display: flex;
    align-items: center;
    gap: 2px;
}

.topbar-links a {
    padding: 0 15px;
    color: var(--muted);
    font-size: 0.94rem;
    font-weight: 850;
    transition: color 240ms var(--ease), background 240ms var(--ease), transform 240ms var(--ease);
}

.topbar-links a:hover,
.topbar-links a:focus-visible {
    color: var(--ink);
    background: rgba(23, 34, 26, 0.07);
    transform: translateY(-1px);
}

.hero,
.section,
.footer,
.legal-main {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    margin-inline: auto;
}

.hero {
    min-height: min(820px, calc(100dvh - 112px));
    display: grid;
    grid-template-columns: minmax(0, 0.82fr) minmax(520px, 1.18fr);
    align-items: center;
    gap: 54px;
    padding: 54px 0 82px;
}

.section {
    padding: 92px 0;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2 {
    text-wrap: balance;
}

h1 {
    max-width: 760px;
    margin-bottom: 22px;
    font-size: clamp(3.8rem, 7vw, 5.8rem);
    line-height: 0.94;
    font-weight: 930;
}

h2 {
    max-width: 820px;
    margin-bottom: 18px;
    font-size: clamp(2.3rem, 5vw, 3.65rem);
    line-height: 1.02;
    font-weight: 920;
}

h3 {
    margin-bottom: 10px;
    font-size: 1.34rem;
    line-height: 1.2;
    font-weight: 900;
}

p {
    color: var(--muted);
    line-height: 1.68;
    text-wrap: pretty;
}

.eyebrow {
    margin: 0 0 16px;
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 250, 240, 0.72);
    color: #8b2e27;
    font-size: 0.78rem;
    font-weight: 900;
}

.hero-lead,
.section-copy p {
    max-width: 700px;
    font-size: 1.14rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 30px 0 28px;
}

.button {
    min-height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 20px;
    border: 1px solid var(--line);
    border-radius: 999px;
    text-decoration: none;
    font-weight: 900;
    transition: transform 240ms var(--ease), box-shadow 240ms var(--ease), background 240ms var(--ease);
}

.button:hover,
.button:focus-visible {
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

.button-primary {
    background: var(--ink);
    color: var(--paper);
}

.button-secondary {
    background: rgba(255, 250, 240, 0.82);
    color: var(--ink);
}

.button-mark {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
}

.hero-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
}

.hero-facts div {
    min-height: 88px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 250, 240, 0.68);
}

.hero-facts dt {
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 850;
}

.hero-facts dd {
    margin: 0;
    color: var(--ink);
    font-size: 1.1rem;
    font-weight: 930;
    font-variant-numeric: tabular-nums;
}

.hero-media {
    display: grid;
    gap: 14px;
}

.device-frame {
    position: relative;
    overflow: hidden;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: var(--radius-soft);
    background:
        linear-gradient(180deg, rgba(255, 250, 240, 0.88), rgba(240, 232, 210, 0.72)),
        #132019;
    box-shadow: var(--shadow);
}

.device-frame::before {
    content: "";
    display: block;
    position: absolute;
    left: 50%;
    top: 6px;
    width: 86px;
    height: 5px;
    transform: translateX(-50%);
    border-radius: 999px;
    background: rgba(23, 34, 26, 0.22);
    z-index: 2;
}

.device-frame img,
.device-frame video {
    width: 100%;
    aspect-ratio: 1560 / 720;
    object-fit: contain;
    border-radius: 10px;
}

.media-note {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 250, 240, 0.84);
    box-shadow: var(--shadow-soft);
}

.media-note img {
    width: 70px;
    height: 70px;
    border-radius: var(--radius);
}

.media-note strong,
.media-note span {
    display: block;
}

.media-note strong {
    margin-bottom: 4px;
    font-weight: 930;
}

.media-note span {
    color: var(--muted);
    line-height: 1.45;
}

.section-copy {
    margin-bottom: 34px;
}

.media-story {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
    gap: 18px;
    align-items: stretch;
}

.story-video,
.parent-card,
.legal-teaser,
.shot-card,
.legal-document,
.legal-side-card {
    border: 1px solid var(--line);
    border-radius: var(--radius-soft);
    background: rgba(255, 250, 240, 0.78);
    box-shadow: var(--shadow-soft);
}

.story-video {
    padding: 14px;
    display: grid;
    gap: 16px;
}

.story-video-small {
    align-content: start;
}

.story-copy {
    padding: 0 6px 8px;
}

.story-copy > span,
.shot-card figcaption > span,
.parent-card > span {
    color: var(--muted);
    font-size: 0.83rem;
    font-weight: 900;
}

.story-copy p,
.shot-card figcaption span,
.parent-card p {
    margin-bottom: 0;
}

.shot-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.shot-card {
    margin: 0;
    overflow: hidden;
}

.shot-card-wide {
    grid-column: 1 / -1;
}

.shot-card picture {
    display: block;
    padding: 10px;
    background: rgba(23, 34, 26, 0.08);
}

    .shot-card img {
        width: 100%;
        height: auto;
        aspect-ratio: 1560 / 720;
        object-fit: contain;
        border-radius: 10px;
        background: #132019;
    }

.shot-card figcaption {
    padding: 18px 20px 20px;
}

.shot-card figcaption strong,
.parent-card strong {
    display: block;
    margin-bottom: 6px;
    font-size: 1.22rem;
    line-height: 1.2;
    font-weight: 930;
}

.parent-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.parent-card {
    min-height: 230px;
    padding: 24px;
}

.parent-card > span {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    margin-bottom: 34px;
    border-radius: 50%;
    background: var(--ink);
    color: var(--paper);
    font-variant-numeric: tabular-nums;
}

.legal-teaser {
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr);
    gap: 34px;
    align-items: center;
    padding: 28px;
    background:
        linear-gradient(135deg, rgba(255, 250, 240, 0.92), rgba(219, 233, 212, 0.78)),
        var(--paper);
}

.legal-teaser img {
    width: 170px;
    height: 170px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
}

.legal-teaser p {
    max-width: 780px;
}

.legal-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.footer {
    min-height: 110px;
    padding: 34px 0 46px;
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr) auto;
    gap: 22px;
    align-items: center;
    color: var(--muted);
    font-size: 0.92rem;
}

.footer a {
    font-weight: 900;
    text-decoration: none;
}

.footer nav {
    display: flex;
    gap: 16px;
}

.footer a:hover,
.footer a:focus-visible {
    color: var(--ink);
}

.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 760ms var(--ease), transform 760ms var(--ease);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.legal-main {
    padding: 54px 0 80px;
}

.legal-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 28px;
    align-items: end;
    padding: 62px 0 40px;
}

.legal-hero > div {
    min-width: 0;
}

.legal-hero h1 {
    margin-bottom: 16px;
    overflow-wrap: anywhere;
}

.legal-hero p {
    max-width: 760px;
    font-size: 1.14rem;
}

.legal-badge {
    justify-self: end;
    width: 180px;
    height: 180px;
    border-radius: var(--radius-soft);
    background: var(--paper);
    box-shadow: var(--shadow-soft);
}

.legal-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 20px;
    align-items: start;
}

.legal-document {
    padding: 34px;
    overflow-wrap: anywhere;
}

.legal-document section + section {
    margin-top: 34px;
    padding-top: 28px;
    border-top: 1px solid var(--line);
}

.legal-document h2 {
    margin-bottom: 12px;
    font-size: clamp(1.55rem, 3vw, 2.2rem);
}

.legal-document ul {
    margin: 14px 0 0;
    padding-left: 1.2rem;
    color: var(--muted);
    line-height: 1.7;
}

.legal-document a {
    font-weight: 900;
}

.legal-side {
    display: grid;
    gap: 14px;
}

.legal-side-card {
    padding: 22px;
}

.legal-side-card strong,
.legal-side-card span {
    display: block;
}

.legal-side-card strong {
    margin-bottom: 8px;
    font-size: 1.18rem;
}

.legal-side-card span {
    color: var(--muted);
    line-height: 1.55;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 1ms !important;
        animation-duration: 1ms !important;
        animation-iteration-count: 1 !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}

@media (max-width: 980px) {
    .hero,
    .media-story,
    .legal-layout,
    .legal-hero {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: auto;
        gap: 34px;
        padding-top: 44px;
    }

    .parent-grid {
        grid-template-columns: 1fr;
    }

    .legal-badge {
        justify-self: start;
        width: 132px;
        height: 132px;
    }
}

@media (max-width: 740px) {
    html {
        scroll-padding-top: 154px;
    }

    #spiel,
    #bilder,
    #eltern,
    #rechtliches {
        scroll-margin-top: 154px;
    }

    .topbar {
        top: 8px;
        width: min(100% - 20px, 1180px);
        align-items: stretch;
        border-radius: var(--radius);
        flex-direction: column;
    }

    .brand-link {
        width: 100%;
    }

    .topbar-links {
        width: 100%;
        justify-content: space-between;
    }

    .topbar-links a {
        flex: 1 1 0;
        padding: 0 8px;
        font-size: 0.9rem;
    }

    .hero,
    .section,
    .footer,
    .legal-main {
        width: min(100% - 24px, 1180px);
    }

    .hero {
        padding: 34px 0 52px;
    }

    .section {
        padding: 62px 0;
    }

    .hero-lead,
    .section-copy p {
        font-size: 1.04rem;
    }

    .hero-actions,
    .legal-links {
        align-items: stretch;
        flex-direction: column;
    }

    .button {
        width: 100%;
    }

    .hero-facts,
    .shot-gallery,
    .legal-teaser,
    .footer {
        grid-template-columns: 1fr;
    }

    .hero-facts div {
        min-height: 76px;
    }

    .device-frame {
        width: calc(100vw - 24px);
        margin-left: calc(50% - 50vw + 12px);
        border-radius: 0;
        padding: 8px;
    }

    .device-frame::before {
        display: none;
    }

    .media-note {
        grid-template-columns: 58px minmax(0, 1fr);
    }

    .media-note img {
        width: 58px;
        height: 58px;
    }

    .story-video,
    .shot-card,
    .parent-card,
    .legal-document,
    .legal-side-card {
        border-radius: var(--radius);
    }

    .shot-card picture {
        padding: 8px;
    }

    .shot-card img {
        aspect-ratio: 5 / 4;
        object-fit: cover;
        object-position: center;
    }

    .legal-teaser {
        padding: 22px;
    }

    .legal-teaser img {
        width: 126px;
        height: 126px;
    }

    .footer {
        align-items: start;
    }

    .footer nav {
        flex-wrap: wrap;
    }

    .legal-main {
        padding-top: 28px;
    }

    .legal-hero h1 {
        font-size: clamp(2.45rem, 11vw, 3.35rem);
        line-height: 0.98;
    }

    .legal-hero p {
        font-size: 1rem;
    }

    .legal-document {
        padding: 22px;
    }
}
