:root {
    --text: #ffffff;
    --muted: rgba(255, 255, 255, .78);
    --muted2: rgba(255, 255, 255, .62);

    --panel: rgba(15, 20, 28, .86);
    --panel2: rgba(15, 20, 28, .74);

    --border: rgba(255, 255, 255, .16);
    --border2: rgba(255, 255, 255, .10);

    --accent: #38d6c6;
    --accent2: #ffd166;

    --shadow: 0 26px 80px rgba(0, 0, 0, .58);
    --max: 1100px;
}

* {
    box-sizing: border-box;
}

/* ===== FIXED GLOBAL BACKGROUND (robust) ===== */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;

    background:
        linear-gradient(rgba(0, 0, 0, .55), rgba(0, 0, 0, .78)),
        url("/assets/hero-bg.jpg") center / cover no-repeat;

    will-change: transform;
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial;
    color: var(--text);

    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-bg {
    flex: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Content soll im Wrapper "arbeiten" können */
.wrap {
    flex: 1;
    /* <-- DAS ist bei dir der fehlende Punkt */
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 28px;
}

a {
    text-decoration: none;
    color: inherit
}

/* ===== HEADER ===== */
header {
    position: sticky;
    top: 0;
    z-index: 20;

    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    padding: 16px 28px;

    background: rgba(0, 0, 0, .55);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 900;
    letter-spacing: .3px;
    min-width: 0;
}

.brand img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, .06);
    flex: 0 0 auto;
}

.brand small {
    display: block;
    font-weight: 700;
    color: rgba(255, 255, 255, .65);
    font-size: 12px;
    margin-top: 2px;
    letter-spacing: .2px;
}

nav {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

nav a {
    padding: 8px 14px;
    border-radius: 999px;
    font-weight: 750;
    color: rgba(255, 255, 255, .82);
    transition: .15s;
}

nav a:hover {
    background: rgba(255, 255, 255, .12);
    color: #fff;
}

/* ===== BUTTONS (rund wie am Anfang) ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    padding: 12px 18px;
    border-radius: 999px;
    font-weight: 850;

    background: rgba(255, 255, 255, .12);
    border: 1px solid var(--border);
    transition: .15s;
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
}

.btn:hover {
    background: rgba(255, 255, 255, .18);
}

.btn.primary {
    background: linear-gradient(135deg, var(--accent), #2fa9a0);
    color: #071313;
    border: none;
}

.btn.ghost {
    background: rgba(255, 255, 255, .12);
}

.btn.small {
    padding: 9px 14px;
    font-weight: 800;
    font-size: 13px;
}

/* ===== HERO ===== */
.hero {
    max-width: var(--max);
    margin: 90px auto 18px;
    padding: 40px;

    background: var(--panel);
    border-radius: 28px;
    border: 1px solid var(--border);

    box-shadow: var(--shadow);
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .13);
    border: 1px solid var(--border2);

    font-weight: 800;
    font-size: 13px;
    color: rgba(255, 255, 255, .86);
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent2);
    box-shadow: 0 0 0 4px rgba(255, 209, 102, .16);
    flex: 0 0 auto;
}

h1 {
    margin: 18px 0 12px;
    font-size: 48px;
    line-height: 1.08;
    letter-spacing: -.5px;
}

.highlight {
    color: var(--accent)
}

.lead {
    font-size: 18px;
    color: var(--muted);
    max-width: 820px;
    margin: 0;
}

.actions {
    margin-top: 22px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.pillrow {
    margin-top: 16px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 14px;
    border-radius: 999px;
    border: 1px solid var(--border2);
    background: rgba(255, 255, 255, .08);
    font-weight: 800;
    font-size: 13px;
    color: rgba(255, 255, 255, .84);
    white-space: nowrap;
}

/* ===== LAYOUT GRID ===== */
.heroGrid {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 18px;
    align-items: stretch;
    max-width: var(--max);
    margin: 0 auto;
}

.side {
    background: var(--panel);
    border-radius: 28px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    padding: 22px;
    height: 100%;
}

.mini {
    background: rgba(255, 255, 255, .06);
    border: 1px solid var(--border2);
    border-radius: 22px;
    padding: 18px;
    margin-bottom: 14px;
}

.mini:last-child {
    margin-bottom: 0;
}

.mini h3 {
    margin: 0 0 8px;
    font-size: 15px;
    letter-spacing: .2px;
}

.mini p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

.row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.ipBox {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 10px;
}

.ip {
    flex: 1 1 240px;
    min-width: 240px;

    padding: 10px 14px;
    border-radius: 16px;

    background: rgba(0, 0, 0, .60);
    border: 1px solid var(--border);

    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-weight: 850;
    letter-spacing: .2px;

    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;

    max-width: 100%;
    overflow: hidden;
}

.ip span:first-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ip span:last-child {
    color: rgba(255, 255, 255, .55);
    font-size: 12px;
    flex: 0 0 auto;
    margin-left: 10px;
}

/* ===== SECTIONS ===== */
section {
    max-width: var(--max);
    margin: 24px auto 0;
}

.sectionHead {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    padding: 0 0 10px;
}

.sectionHead h2 {
    margin: 0;
    font-size: 20px;
    letter-spacing: .2px;
}

.sectionHead p {
    margin: 0;
    color: var(--muted2);
    font-size: 13px;
}

.cards {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 16px;
}

.card {
    grid-column: span 4;
    background: var(--panel2);
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 18px;
    box-shadow: 0 14px 44px rgba(0, 0, 0, .35);
    transition: transform .12s ease, background .12s ease;
}

.card:hover {
    transform: translateY(-1px);
    background: rgba(15, 20, 28, .82);
}

.icon {
    width: 36px;
    height: 36px;
    border-radius: 14px;
    border: 1px solid var(--border2);
    background: rgba(255, 255, 255, .08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    font-weight: 900;
}

.card h3 {
    margin: 0 0 6px;
    font-size: 16px;
}

.card p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

/* ===== Big info panels ===== */
.panel {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 28px;
    padding: 22px;
    box-shadow: var(--shadow);
}

.panel strong {
    font-size: 16px;
}

.panel .sub {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 13px;
}

.cta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;

    background: rgba(15, 20, 28, .82);
    border: 1px solid var(--border);
    border-radius: 28px;
    padding: 20px;

    box-shadow: 0 18px 54px rgba(0, 0, 0, .40);
}

/* ===== Footer ===== */
footer {
    margin-top: 34px;
    padding: 24px;
    text-align: center;

    background: rgba(0, 0, 0, .55);
    border-top: 1px solid var(--border);
    color: var(--muted2);
    font-size: 13px;
}

.footLinks {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(0, 0, 0, .55);
    backdrop-filter: blur(8px);
    color: rgba(255, 255, 255, .92);
    font-weight: 850;
    font-size: 13px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .15s ease, transform .15s ease;
    z-index: 50;
    max-width: calc(100% - 24px);
    text-align: center;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(-2px);
}

/* ===== Responsive ===== */
@media (max-width: 980px) {
    .heroGrid {
        grid-template-columns: 1fr;
    }

    .card {
        grid-column: span 6;
    }

    h1 {
        font-size: 40px;
    }
}

@media (max-width: 640px) {
    header {
        padding: 14px 16px;
        flex-wrap: wrap;
    }

    .wrap {
        padding: 0 16px;
    }

    .hero {
        margin: 60px auto 16px;
        padding: 22px;
    }

    h1 {
        font-size: 34px;
    }

    nav {
        display: none;
    }

    .side {
        padding: 16px;
    }

    .card {
        grid-column: span 12;
    }

    /* Mobile usability */
    .actions .btn {
        width: 100%;
    }

    .ipBox .btn {
        width: 100%;
    }

    .ip {
        min-width: 0;
        width: 100%;
    }
}

/* Mobile browsers often dislike fixed background; keep look but avoid jank */
@media (hover: none) and (pointer: coarse) {
    .site-bg {
        background:
            linear-gradient(rgba(0, 0, 0, .55), rgba(0, 0, 0, .78)),
            url("hero-bg.jpg") center / cover no-repeat scroll;
    }
}

/* ===== PAGE CONTENT (Impressum, AGB, Datenschutz etc.) ===== */
.page {
    margin-top: 90px;
    /* exakt wie Hero */
}