:root {
    --bg: #fbfbfd;
    --surface: #f1f3f8;
    --ink: #11131a;
    --text: #3a4150;
    --muted: #6a7081;
    --line: #e3e6ef;
    --line-strong: #d2d7e4;
    --accent: #2c5fd6;
    --accent-hover: #2350bd;
    --accent-deep: #1d3f95;
    --accent-soft: rgba(44, 95, 214, .09);
    --accent-ring: rgba(44, 95, 214, .32);
    --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
    --shadow-md: 0 16px 44px rgba(17, 19, 26, .12);
}

[data-theme="dark"] {
    --bg: #0c0e15;
    --surface: #141823;
    --ink: #f3f5fa;
    --text: #c0c6d4;
    --muted: #888fa1;
    --line: #232a39;
    --line-strong: #313a4d;
    --accent: #5b86f0;
    --accent-hover: #6f95f4;
    --accent-deep: #2b4db0;
    --accent-soft: rgba(91, 134, 240, .15);
    --accent-ring: rgba(91, 134, 240, .42);
    --shadow-md: 0 18px 48px rgba(0, 0, 0, .55);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

* {
    margin: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--bg);
    min-height: 100vh;
    min-height: 100dvh;
    display: grid;
    grid-template-rows: 1fr auto;
    -webkit-font-smoothing: antialiased;
    line-height: 1.65;
    overflow-x: hidden;
    transition: background-color .3s ease, color .3s ease;
}

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

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
    color: inherit;
    cursor: pointer;
    background: none;
    border: 0;
}

:focus-visible {
    outline: 3px solid var(--accent-ring);
    outline-offset: 2px;
    border-radius: 6px;
}

/* Hintergrund-Raster wie im Hero */
.bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        linear-gradient(var(--line) 1px, transparent 1px),
        linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 46px 46px;
    -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 0%, transparent 70%);
    mask-image: radial-gradient(120% 90% at 50% 0%, #000 0%, transparent 70%);
    opacity: .6;
}

[data-theme="dark"] .bg {
    opacity: .4;
}

.theme-toggle {
    position: fixed;
    top: 1.1rem;
    right: 1.1rem;
    z-index: 5;
    width: 44px;
    height: 44px;
    display: inline-grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 12px;
    color: var(--text);
    background: color-mix(in srgb, var(--bg) 70%, transparent);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.theme-toggle:hover {
    background: var(--surface);
    color: var(--ink);
}

.icon {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.icon--sun {
    display: none;
}

[data-theme="dark"] .icon--moon {
    display: none;
}

[data-theme="dark"] .icon--sun {
    display: block;
}

.wrap {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    padding: clamp(2rem, 6vw, 4rem) 1.25rem;
}

.panel {
    text-align: center;
    max-width: 38rem;
}

/* Logo-Medaillon mit Rauten-Ringen */
.mark {
    position: relative;
    display: grid;
    place-items: center;
    width: clamp(150px, 32vw, 210px);
    aspect-ratio: 1;
    margin: 0 auto clamp(1.8rem, 4vw, 2.6rem);
}

.mark__logo {
    width: clamp(78px, 15vw, 104px);
    height: auto;
    position: relative;
    z-index: 2;
}

.mark__logo--light {
    display: block;
}

.mark__logo--dark {
    display: none;
}

[data-theme="dark"] .mark__logo--light {
    display: none;
}

[data-theme="dark"] .mark__logo--dark {
    display: block;
}

.rune {
    position: absolute;
    border: 2px solid var(--accent);
    border-radius: 16px;
    transform: rotate(45deg);
}

.rune--1 {
    width: 58%;
    height: 58%;
    opacity: .28;
}

.rune--2 {
    width: 84%;
    height: 84%;
    opacity: .16;
}

.rune--3 {
    width: 108%;
    height: 108%;
    opacity: .09;
    border-color: var(--ink);
}

@media (prefers-reduced-motion:no-preference) {
    .rune--1 {
        animation: float 7s ease-in-out infinite;
    }

    .rune--2 {
        animation: float 9s ease-in-out infinite reverse;
    }

    .rune--3 {
        animation: float 11s ease-in-out infinite;
    }
}

@keyframes float {

    0%,
    100% {
        transform: rotate(45deg) translateY(0);
    }

    50% {
        transform: rotate(45deg) translateY(-10px);
    }
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    font-family: var(--font-display);
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1rem;
}

.eyebrow::before {
    content: "";
    width: 10px;
    height: 10px;
    background: var(--accent);
    transform: rotate(45deg);
    border-radius: 2px;
}

h1 {
    font-family: var(--font-display);
    color: var(--ink);
    font-weight: 700;
    letter-spacing: -.02em;
    line-height: 1.08;
    font-size: clamp(2rem, 5.5vw, 3.1rem);
    margin-bottom: 1rem;
    text-wrap: balance;
}

.lead {
    font-size: clamp(1.05rem, 1.6vw, 1.2rem);
    color: var(--muted);
    max-width: 34ch;
    margin: 0 auto 2rem;
    text-wrap: pretty;
}

/* "Arbeit läuft" – pulsierende Rauten */
.dots {
    display: flex;
    justify-content: center;
    gap: .7rem;
    margin-bottom: 2.2rem;
}

.dots span {
    width: 12px;
    height: 12px;
    background: var(--accent);
    transform: rotate(45deg);
    border-radius: 2px;
    opacity: .3;
}

@media (prefers-reduced-motion:no-preference) {
    .dots span {
        animation: pulse 1.4s ease-in-out infinite;
    }

    .dots span:nth-child(2) {
        animation-delay: .2s;
    }

    .dots span:nth-child(3) {
        animation-delay: .4s;
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: .25;
        transform: rotate(45deg) scale(.85);
    }

    50% {
        opacity: 1;
        transform: rotate(45deg) scale(1.1);
    }
}

.meta {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .5rem 1.4rem;
    font-size: .95rem;
    color: var(--muted);
    padding: 1rem 1.3rem;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: color-mix(in srgb, var(--surface) 60%, transparent);
}

.meta strong {
    color: var(--ink);
    font-weight: 600;
}

.meta a {
    color: var(--accent);
    font-weight: 600;
    border-bottom: 1px solid transparent;
}

.meta a:hover {
    border-color: currentColor;
}

footer {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    padding: 1.6rem 1.25rem;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: .9rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--ink);
}

.brand__diamond {
    width: 13px;
    height: 13px;
    background: var(--accent);
    transform: rotate(45deg);
    border-radius: 2px;
}

.brand__accent {
    color: var(--accent);
}