:root {
    --bg-overlay: rgba(8, 12, 20, 0.82);
    --bg-overlay-strong: rgba(10, 15, 26, 0.92);
    --surface: rgba(22, 28, 40, 0.72);
    --surface-strong: rgba(26, 32, 46, 0.86);
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.16);
    --text: #e1e7ef;
    --text-muted: #8f9aae;
    --accent: #4a90e2;
    --accent-light: #6aa8f0;
    --accent-dark: #357abd;
    --success: #2a9d8f;
    --danger: #c95d5d;
    --shadow: 0 8px 24px rgba(0, 0, 0, 0.24);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.32);
    --radius: 14px;
    --radius-sm: 8px;
    --max-width: 1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--text);
    background:
        linear-gradient(160deg, rgba(6, 10, 18, 0.88), rgba(14, 20, 32, 0.92)),
        url("hintergrund.png") center/cover fixed;
    background-blend-mode: multiply;
    min-height: 100vh;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

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

img { max-width: 100%; height: auto; }

.container,
.header-inner,
.hero-inner,
.section-inner,
.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(10, 15, 24, 0.78);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(16px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 68px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 16px;
    color: var(--text);
}

.brand img {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.main-nav a {
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.15s, background 0.15s;
}

.main-nav a:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.05);
}

.main-nav a[aria-current="page"] {
    color: var(--accent-light);
    background: rgba(74, 144, 226, 0.12);
    font-weight: 600;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text);
    font-weight: 600;
    font-size: 14px;
    transition: all 0.15s ease;
    cursor: pointer;
}

.btn:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--border-hover);
}

.btn.primary {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    color: #fff;
}

.btn.primary:hover {
    background: var(--accent);
    border-color: var(--accent);
}

/* Hero */
.hero {
    padding: 72px 24px 56px;
    border-bottom: 1px solid var(--border);
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 48px;
    align-items: center;
}

.eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent-light);
    margin-bottom: 14px;
}

h1 {
    font-size: clamp(34px, 5vw, 52px);
    line-height: 1.12;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.01em;
}

h2 {
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.2;
    font-weight: 700;
    margin: 0;
}

h3 {
    font-size: 19px;
    font-weight: 600;
    margin: 0 0 10px;
}

.lead {
    font-size: 17px;
    color: var(--text-muted);
    margin: 16px 0 0;
    max-width: 540px;
    line-height: 1.6;
}

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

/* Cards */
.card {
    background: var(--surface-strong);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px;
    box-shadow: var(--shadow);
}

.card p {
    margin: 0 0 12px;
    color: var(--text-muted);
}

.card p:last-child { margin-bottom: 0; }

.card-sub {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0 0 18px;
}

/* Hero panel */
.hero-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(10px);
}

.hero-panel h3 {
    margin: 0 0 8px;
}

.hero-panel > p {
    color: var(--text-muted);
    margin: 0 0 18px;
    font-size: 14px;
}

.quick-stats {
    display: grid;
    gap: 10px;
}

.quick-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-sm);
    font-size: 14px;
    border: 1px solid var(--border);
}

.quick-stat span { color: var(--text-muted); }
.quick-stat strong { font-weight: 600; }

/* Sections */
.section {
    padding: 64px 24px;
}

.section-heading {
    max-width: 620px;
    margin-bottom: 36px;
}

.section-heading p {
    color: var(--text-muted);
    margin: 12px 0 0;
    font-size: 16px;
}

:root {
    --accent-glow: rgba(74, 144, 226, 0.18);
}

/* Feature carousel */
.feature-carousel {
    position: relative;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 8px 0;
}

.feature-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 24px;
    padding: 8px calc(50vw - var(--max-width) / 2);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    scroll-behavior: smooth;
}

.feature-track::-webkit-scrollbar { display: none; }

.feature-card {
    flex: 0 0 auto;
    width: 280px;
    scroll-snap-align: start;
    background: var(--surface-strong);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-6px) scale(1.02);
    border-color: var(--border-hover);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.32), 0 0 30px var(--accent-glow);
}

.feature-card.primary {
    width: 360px;
    background: linear-gradient(145deg, rgba(74, 144, 226, 0.14), rgba(42, 157, 143, 0.1));
    border-color: rgba(74, 144, 226, 0.28);
}

.feature-icon {
    width: 46px;
    height: 46px;
    border-radius: var(--radius-sm);
    display: grid;
    place-items: center;
    background: rgba(74, 144, 226, 0.14);
    color: var(--accent-light);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 18px;
    border: 1px solid rgba(74, 144, 226, 0.22);
}

.feature-card h3 {
    font-size: 17px;
    margin: 0 0 10px;
}

.feature-card p {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.55;
}

.feature-card .meta {
    display: inline-block;
    margin-top: 16px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent-light);
}

.feature-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 28px;
}

.feature-nav button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--surface-strong);
    color: var(--text);
    font-size: 18px;
    cursor: pointer;
    transition: all 0.15s ease;
    display: grid;
    place-items: center;
}

.feature-nav button:hover {
    border-color: var(--border-hover);
    background: rgba(255, 255, 255, 0.06);
}

.feature-dots {
    display: flex;
    gap: 8px;
}

.feature-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    transition: background 0.15s;
}

.feature-dots span.active {
    background: var(--accent);
    width: 22px;
    border-radius: 999px;
}

/* Info grid */
.info-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 18px;
}

.check-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 12px;
}

.check-list li {
    position: relative;
    padding-left: 26px;
    color: var(--text-muted);
    font-size: 15px;
}

.check-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: 700;
}

/* Status */
.status-list {
    display: grid;
    gap: 10px;
}

.status-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-sm);
    font-size: 14px;
    border: 1px solid var(--border);
}

.status-name {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-weight: 500;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-muted);
}

.status-item.is-online .status-dot { background: var(--success); }
.status-item.is-offline .status-dot { background: var(--danger); }
.status-item.is-online .status-value { color: var(--success); font-weight: 600; }
.status-item.is-offline .status-value { color: var(--danger); font-weight: 600; }

.status-value {
    font-variant-numeric: tabular-nums;
    color: var(--text);
    font-weight: 600;
}

.gauges {
    display: flex;
    gap: 16px;
    justify-content: flex-end;
}

.gauge { text-align: center; }

.gauge canvas {
    width: 130px;
    height: 75px;
}

.gauge-label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

/* FAQ */
.faq-list {
    display: grid;
    gap: 12px;
    max-width: 800px;
}

.faq-item {
    background: var(--surface-strong);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    padding: 18px 22px;
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question::after {
    content: "+";
    color: var(--accent-light);
    font-size: 20px;
    font-weight: 500;
}

.faq-item.open .faq-question::after { content: "−"; }

.faq-answer {
    display: none;
    padding: 0 22px 18px;
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.6;
}

.faq-item.open .faq-answer { display: block; }

/* Footer */
.site-footer {
    border-top: 1px solid var(--border);
    background: rgba(10, 15, 24, 0.7);
    padding: 28px 24px;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    color: var(--text-muted);
    font-size: 14px;
}

.footer-links {
    display: flex;
    gap: 18px;
}

.footer-links a {
    color: var(--text-muted);
    transition: color 0.15s;
}

.footer-links a:hover { color: var(--text); }

/* Tags */
.tag-list {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(74, 144, 226, 0.12);
    color: var(--accent-light);
    font-size: 12px;
    font-weight: 600;
    border: 1px solid rgba(74, 144, 226, 0.18);
}

/* Link cards */
.link-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.link-card {
    display: block;
    background: var(--surface-strong);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--shadow);
    transition: transform 0.15s, border-color 0.15s;
}

.link-card:hover {
    transform: translateY(-3px);
    border-color: var(--border-hover);
}

.link-card .label {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent-light);
    margin-bottom: 12px;
}

.link-card h3 {
    font-size: 16px;
    margin: 0 0 6px;
}

.link-card p {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0;
}

/* Skill cards */
.skill-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.skill-card {
    background: var(--surface-strong);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--shadow);
}

.skill-card .skill-icon {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    display: grid;
    place-items: center;
    background: rgba(74, 144, 226, 0.14);
    color: var(--accent-light);
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 14px;
    border: 1px solid rgba(74, 144, 226, 0.22);
}

.skill-card h3 {
    font-size: 16px;
    margin: 0 0 6px;
}

.skill-card p {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0;
}

/* About grid */
.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 18px;
}

.panel {
    background: var(--surface-strong);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px;
    box-shadow: var(--shadow);
}

.panel p {
    color: var(--text-muted);
    margin: 0 0 14px;
}

.panel p:last-child { margin-bottom: 0; }

/* Profile card */
.profile-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(10px);
}

.profile-top {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}

.head {
    width: 68px;
    height: 68px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.profile-top h2 {
    font-size: 20px;
}

.profile-top p {
    margin: 2px 0 0;
    color: var(--text-muted);
    font-size: 14px;
}

.skin-frame {
    min-height: 300px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border);
}

#skin_container {
    width: 260px;
    height: 320px;
}

/* Legal pages */
.page-shell {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 28px;
    align-items: start;
}

.toc {
    position: sticky;
    top: 86px;
    background: var(--surface-strong);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
}

.toc h2 {
    font-size: 13px;
    margin: 0 0 14px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

.toc ol {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 4px;
}

.toc a {
    display: block;
    padding: 7px 10px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--text-muted);
    transition: all 0.15s;
}

.toc a:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.05);
}

.content {
    display: grid;
    gap: 18px;
}

.legal-section {
    background: var(--surface-strong);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px;
    box-shadow: var(--shadow);
    scroll-margin-top: 86px;
}

.legal-section h2 {
    font-size: 21px;
    margin-bottom: 14px;
}

.legal-section h3 {
    font-size: 16px;
    margin: 22px 0 10px;
}

.legal-section p,
.legal-section li {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.65;
}

.legal-section ul {
    margin: 12px 0;
    padding-left: 20px;
}

.legal-section li { margin-bottom: 6px; }

.meta-card {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    background: var(--surface-strong);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 18px;
    box-shadow: var(--shadow);
}

/* Calculator */
.calc-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 18px;
    align-items: start;
}

.slider-row {
    padding: 18px 0;
    border-top: 1px solid var(--border);
}

.slider-row:first-of-type {
    border-top: 0;
    padding-top: 0;
}

.slider-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 8px;
}

.slider-head .label {
    font-weight: 600;
    font-size: 15px;
}

.slider-head .value {
    font-weight: 700;
    color: var(--accent-light);
}

.slider-hint {
    margin: 0 0 10px;
    font-size: 13px;
    color: var(--text-muted);
}

input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
    cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent);
    border: 3px solid var(--surface-strong);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    cursor: pointer;
}

input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent);
    border: 3px solid var(--surface-strong);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    cursor: pointer;
}

.result {
    position: sticky;
    top: 86px;
}

.price {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 6px;
}

.price .amount {
    font-size: clamp(34px, 5vw, 46px);
    font-weight: 800;
    color: var(--accent-light);
    line-height: 1;
}

.price .per { color: var(--text-muted); font-weight: 600; }

.price-note {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0 0 18px;
}

.breakdown {
    list-style: none;
    padding: 16px 0 0;
    margin: 0;
    border-top: 1px solid var(--border);
    display: grid;
    gap: 8px;
}

.breakdown li {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--text-muted);
}

.breakdown li strong {
    color: var(--text);
    font-weight: 600;
}

.breakdown li.total {
    margin-top: 8px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
    font-weight: 700;
    color: var(--text);
}

.breakdown li.total strong { color: var(--accent-light); }

.formula {
    margin-top: 18px;
}

.formula code {
    display: block;
    padding: 14px 16px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--text);
    overflow-x: auto;
}

.formula .legend {
    list-style: none;
    padding: 0;
    margin: 14px 0 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.formula .legend li {
    font-size: 13px;
    color: var(--text-muted);
}

.formula .legend b { color: var(--text); }

/* Rechner Promo */
.calc-promo {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 24px;
    align-items: center;
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.16), rgba(42, 157, 143, 0.12));
    border: 1px solid rgba(74, 144, 226, 0.25);
}

.calc-promo h3 {
    color: var(--text);
}

.calc-promo p {
    color: var(--text-muted);
    margin: 0;
}

/* Sticky card */
.sticky-card {
    position: sticky;
    top: 86px;
}

.sticky-card p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 10px;
}

.sticky-card p:last-child { margin-bottom: 0; }

/* Responsive */
@media (max-width: 980px) {
    .hero-inner,
    .info-grid,
    .calc-grid,
    .page-shell,
    .about-grid,
    .calc-promo {
        grid-template-columns: 1fr;
    }

    .hero-panel,
    .result,
    .toc,
    .sticky-card {
        position: static;
    }

    .feature-card,
    .feature-card.primary {
        width: 260px;
    }

    .link-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gauges { justify-content: flex-start; }
}

@media (max-width: 680px) {
    body { background-attachment: scroll; }

    .site-header { position: static; }

    .header-inner {
        flex-direction: column;
        align-items: stretch;
        padding: 14px 18px;
        gap: 12px;
        min-height: auto;
    }

    .brand { justify-content: center; }

    .main-nav {
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero { padding: 44px 18px 36px; }
    .section { padding: 44px 18px; }

    .container,
    .header-inner,
    .hero-inner,
    .section-inner,
    .footer-inner {
        padding-left: 18px;
        padding-right: 18px;
    }

    .feature-track {
        padding: 8px 18px;
        scroll-padding: 18px;
    }

    .feature-card,
    .feature-card.primary {
        width: 85vw;
        max-width: 300px;
    }

    .link-grid,
    .skill-grid,
    .formula .legend {
        grid-template-columns: 1fr;
    }

    .hero-actions,
    .btn {
        width: 100%;
    }

    .footer-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .toc ol { grid-template-columns: repeat(2, 1fr); }

    #skin_container {
        width: 220px;
        height: 280px;
    }
}
