/* KREDA SafeCase – reines Weiß, neutrale Grauwerte (R=G=B, kein kühles „Tech-Grau“) */
:root {
    --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif;
    --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif;

    --bg-page: #ffffff;
    --bg-elevated: #ffffff;
    --bg-muted: #f5f5f5;
    --ink: #1d1d1f;
    --ink-2: #424245;
    --ink-muted: #6e6e73;
    /* Kein B-Kanal-Plus: Haarlinien wirklich neutral */
    --line: #d2d2d2;
    --line-2: #424245;
    --text-dark: #1d1d1f;
    --text-dark-soft: #424245;

    --ink-deep: #000000;
    --ink-850: #1d1d1f;
    --on-dark-strong: #ffffff;
    --on-dim: rgba(255, 255, 255, 0.9);
    --on-muted: #a1a1a6;
    --line-on-dark: rgba(255, 255, 255, 0.25);

    --text-strong: var(--ink);
    --text-body: var(--ink-2);
    --text-muted: var(--ink-muted);
    --surface-strong: #ffffff;
    --surface: #fafafa;
    --surface-soft: #f5f5f5;
    --surface-light: #ffffff;
    --surface-light-soft: rgba(255, 255, 255, 0.95);

    --accent: #1d1d1f;
    --accent-hover: #2d2d2f;
    --accent-contrast: #ffffff;
    --accent-soft: rgba(0, 0, 0, 0.06);
    --accent-glow: rgba(0, 0, 0, 0.12);
    --success: #1d1d1f;
    --warning: #6e5b00;
    --danger: #6e1f15;
    --shadow-xl: 0 2px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 1px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 1px 3px rgba(0, 0, 0, 0.04);
    --radius-2xl: 18px;
    --radius-xl: 12px;
    --radius-lg: 12px;
    --radius-md: 8px;
    --radius-sm: 8px;
    --max-width: 980px;
    --section-space: clamp(4rem, 9vw, 6.5rem);
}

/* Nur noch genutzte, wirklich dunkle Blöcke (CTA) */
.section--dark {
    --text-strong: var(--on-dark-strong);
    --text-body: var(--on-dim);
    --text-muted: var(--on-muted);
    --line-strong: var(--line-on-dark);
    --line-soft: var(--line-on-dark);
    color: var(--on-dim);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    color-scheme: only light;
    background-color: #ffffff;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    font-family: var(--font-body);
    color: var(--text-body);
    line-height: 1.65;
    background-color: #ffffff;
    background-image: none;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body.menu-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

a:visited {
    color: inherit;
}

img {
    display: block;
    max-width: 100%;
}

button,
input,
select,
textarea {
    font: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid rgba(0, 0, 0, 0.45);
    outline-offset: 2px;
}

::selection {
    background: rgba(0, 0, 0, 0.1);
    color: var(--ink);
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 20px;
    z-index: 500;
    padding: 12px 16px;
    border-radius: 8px;
    background: #000;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 16px;
}

.site-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main section[id] {
    scroll-margin-top: 100px;
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section-block {
    margin-bottom: var(--section-space);
}

.eyebrow,
.display-kicker,
.section-kicker,
.eyebrow-mini,
.chip,
.pill {
    display: inline;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: -0.01em;
    text-transform: none;
    line-height: 1.3;
    padding: 0;
    border: none;
    background: none;
    color: var(--ink-muted);
}

/* Überschriften-Zeile über Headlines, ohne Pill */
.section-kicker,
.display-kicker {
    display: block;
    margin-bottom: 0.4rem;
}

.eyebrow-mini {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 12px;
    color: var(--ink-muted);
}

.page-hero .display-kicker,
.page-hero .section-kicker,
.section--dark .display-kicker,
.section--dark .section-kicker,
.section--dark .eyebrow-mini {
    color: var(--ink-muted);
}

.chip,
.pill {
    display: inline;
    font-size: 14px;
    color: var(--ink-muted);
    font-weight: 400;
    padding: 0;
    border: none;
    background: none;
    letter-spacing: 0;
}

.chip::after,
.pill::after {
    content: " · ";
    color: #d2d2d2;
}

.chip:last-child::after,
.pill:last-child::after,
.chip:only-child::after {
    content: "";
}

.chip.accent,
.pill.accent {
    color: var(--ink-2);
}

.page-hero .chip,
.section--dark .chip {
    color: var(--ink-muted);
}

.status-badge {
    display: inline-flex;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--ink-2);
}

.status-badge.ok {
    border-color: #d2d2d2;
    background: #f5f5f5;
}

.status-badge.warn {
    background: #faf7e8;
    border-color: #e8d9a0;
    color: #5c4a00;
}

.status-badge.err {
    background: #faf0ee;
    border-color: #e0c4bd;
    color: #5c1f12;
}

.page-title,
.section-title,
.card-title,
.wizard-step-title {
    margin: 0;
    font-family: var(--font-body);
    font-weight: 600;
    letter-spacing: -0.025em;
    color: var(--text-strong);
}

.section-title {
    font-size: clamp(1.9rem, 3.5vw, 2.9rem);
    line-height: 1.12;
}

.page-title {
    font-size: clamp(2.1rem, 4vw, 3.2rem);
    line-height: 1.1;
}

.lead,
.section-subtitle,
.muted,
.mini {
    color: var(--text-body);
}

.lead,
.section-subtitle {
    font-size: clamp(1.02rem, 1.6vw, 1.2rem);
    line-height: 1.7;
}

.muted,
.mini,
.info-text-small,
.submit-hint {
    font-size: 0.92rem;
    color: var(--text-muted);
}

.text-link,
.form-legal-links a {
    color: var(--ink);
    text-decoration: underline;
    text-decoration-color: #86868b;
    text-underline-offset: 0.15em;
}

.text-link:hover,
.form-legal-links a:hover {
    text-decoration-color: var(--ink);
}

.hero-actions,
.display-actions,
.status-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.btn-primary,
.btn-secondary,
.btn-ghost,
.btn-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 50px;
    padding: 12px 24px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.01em;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn-primary {
    background: #1d1d1f;
    color: #ffffff;
    box-shadow: none;
}

.btn-primary:hover {
    transform: none;
    background: #000;
    box-shadow: none;
}

.btn-primary:disabled,
.btn-ghost:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-secondary,
.btn-ghost {
    border-color: #d2d2d2;
    background: #fff;
    color: #1d1d1f;
}

.btn-secondary:hover,
.btn-ghost:hover {
    transform: none;
    border-color: #1d1d1f;
    background: #f5f5f5;
}

.page-hero .btn-secondary,
.section--dark .btn-secondary {
    border-color: #d2d2d2;
    background: #fff;
    color: #1d1d1f;
    backdrop-filter: none;
}

.page-hero .btn-secondary:hover,
.section--dark .btn-secondary:hover {
    background: #f5f5f5;
    border-color: #1d1d1f;
}

.btn-link {
    min-height: 0;
    padding: 0;
    background: transparent;
    color: #1d1d1f;
    font-weight: 400;
    border-radius: 0;
    border: none;
}

.btn-link:hover {
    text-decoration: underline;
    text-decoration-color: #1d1d1f;
    color: #000;
}

.compact-card.dark .btn-link {
    color: #ffffff;
}

.compact-card.dark .btn-link:hover {
    color: #fff;
    text-decoration-color: #fff;
}

.surface-card,
.article-card,
.article-sidebar,
.contact-form,
.legal-panel,
.note-panel,
.status-card,
.wizard-step,
.story-card,
.metric-box,
.stat-card,
.stat-card-image,
.quote-block,
.highlight-box,
.warn-box {
    border: 1px solid #d2d2d2;
    background: var(--surface-elevated, #fff);
    box-shadow: none;
    border-radius: var(--radius-xl);
}

.card-title {
    font-size: clamp(1.2rem, 1.8vw, 1.5rem);
    line-height: 1.2;
}

.story-card,
.article-card,
.article-sidebar,
.contact-form,
.legal-panel,
.note-panel,
.status-card,
.wizard-step,
.metric-box,
.stat-card,
.stat-card-image,
.quote-block,
.highlight-box,
.warn-box {
    padding: 24px;
}

.feature-list,
.article-card ul,
.article-sidebar ul,
.legal-panel ul,
.note-panel ul {
    margin: 0;
    padding-left: 1.1em;
    color: var(--text-body);
}

.feature-list li + li,
.article-card li + li,
.article-sidebar li + li,
.legal-panel li + li,
.note-panel li + li {
    margin-top: 8px;
}

.story-card h3,
.story-card p,
.story-card li {
    color: var(--text-body);
}

.feature-list strong,
.article-card strong,
.note-panel strong,
.legal-panel strong {
    color: var(--ink);
}

.section-intro {
    max-width: 720px;
    margin: 0 0 1.5rem;
}

.section-intro.centered {
    margin: 0 auto 1.75rem;
    text-align: center;
}

.section-intro p {
    margin: 0.9rem 0 0;
    color: var(--text-body);
}

.grid-2,
.grid-3,
.grid-4,
.stats-grid,
.article-grid,
.article-hero,
.contact-grid-premium,
.legal-grid-premium {
    display: grid;
    gap: 20px;
}

.grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3,
.stats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.contact-grid-premium {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    align-items: start;
}

.legal-grid-premium {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.quote-block,
.highlight-box,
.warn-box {
    color: var(--text-body);
}

.quote-block {
    position: relative;
    padding-left: 1.4rem;
    background: #fff;
}

.quote-block::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.4rem;
    bottom: 0.4rem;
    width: 2px;
    border-radius: 1px;
    background: #1d1d1f;
    opacity: 0.2;
}

.highlight-box {
    background: #f5f5f5;
    border-color: #d2d2d2;
}

.warn-box {
    background: #faf6ec;
    border-color: #e0d2b0;
}

.stat-card,
.metric-box {
    text-align: left;
    background: #fff;
}

.stat-value,
.summary-value {
    display: block;
    font-family: var(--font-body);
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    line-height: 1;
    letter-spacing: -0.03em;
    color: var(--ink);
    margin-bottom: 8px;
    font-weight: 600;
}

.summary-item {
    color: var(--text-body);
    font-size: 0.95rem;
}

.summary-item + .summary-item {
    margin-top: 10px;
}

.contact-form {
    padding: 28px;
    background: #fff;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 14px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-field label,
label {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-2);
}

.form-field input,
.form-field select,
.form-field textarea,
input,
select,
textarea {
    width: 100%;
    border: 1px solid #d2d2d2;
    border-radius: 10px;
    background: #fff;
    color: var(--ink);
    padding: 14px 15px;
    box-shadow: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

input::placeholder,
textarea::placeholder {
    color: var(--ink-muted);
}

select option {
    color: var(--ink);
}

.form-field textarea,
textarea {
    min-height: 130px;
    resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus,
input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #1d1d1f;
    box-shadow: 0 0 0 1px #1d1d1f;
}

.form-footer {
    margin-top: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    color: var(--text-muted);
}

.form-footer-row,
.check-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.form-footer-row input[type="checkbox"],
.check-row input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 3px;
    flex-shrink: 0;
    accent-color: #1d1d1f;
}

.form-submit {
    display: flex;
    justify-content: flex-start;
}

.calculator-summary {
    display: grid;
    gap: 12px;
}

.page-shell,
.status-shell {
    position: relative;
    flex: 1;
}

.status-shell {
    padding: 34px 0 54px;
}

.status-card {
    width: 100%;
    max-width: 860px;
    margin: 0 auto;
}

.wizard-top {
    margin-bottom: 18px;
}

.wizard-count {
    margin-bottom: 10px;
    color: var(--ink-2);
    font-size: 0.9rem;
    font-weight: 600;
}

.wizard-bar {
    height: 8px;
    border-radius: 999px;
    background: #e0e0e0;
    overflow: hidden;
}

.wizard-bar-fill {
    height: 100%;
    width: 0;
    border-radius: 999px;
    background: var(--accent);
    transition: width 0.24s ease;
}

.wizard-step {
    display: none;
}

.wizard-step.is-active {
    display: block;
}

.wizard-step-title {
    font-size: clamp(1.45rem, 3vw, 2rem);
    line-height: 1.12;
    margin-bottom: 10px;
}

.wizard-step-sub {
    margin: 0 0 14px;
    color: var(--text-body);
}

.wizard-nav {
    display: flex;
    gap: 10px;
    margin-top: 18px;
    padding: 12px;
    position: sticky;
    bottom: 8px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(12px);
}

.step-note {
    margin-top: 12px;
    padding: 14px;
    border-radius: 16px;
    background: #f5f5f5;
    border: 1px solid var(--line);
}

.article-page {
    background: #ffffff;
}

.article-shell {
    padding: 32px 0 56px;
}

.article-anchor-nav {
    position: sticky;
    top: 88px;
    z-index: 120;
    margin-bottom: 18px;
    padding: 8px 10px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-md);
}

.article-anchor-nav-inner {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
}

.article-anchor-nav-inner::-webkit-scrollbar {
    display: none;
}

.article-anchor-nav a {
    white-space: nowrap;
    padding: 9px 15px;
    border-radius: 999px;
    background: #f5f5f5;
    color: var(--ink-2);
    font-size: 13px;
    font-weight: 600;
}

.article-anchor-nav a.primary {
    background: var(--ink);
    color: #ffffff;
}

.article-hero {
    grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
    align-items: stretch;
}

.article-card p,
.article-card li,
.article-sidebar p,
.article-sidebar li,
.legal-panel p,
.legal-panel li,
.note-panel p,
.note-panel li {
    color: var(--text-body);
}

.note-panel,
.legal-panel {
    background: #fff;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.article-grid {
    grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
    align-items: start;
}

.sources-list {
    margin: 0;
    padding-left: 1.1em;
}

.sources-list li + li {
    margin-top: 8px;
}

.stat-card-image {
    overflow: hidden;
    padding: 0;
}

.stat-card-image img,
.media-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media-frame {
    overflow: hidden;
    border-radius: var(--radius-xl);
    min-height: 100%;
    border: 1px solid #d2d2d2;
    box-shadow: none;
    background: #e8e8e8;
}

.media-frame img {
    min-height: 100%;
}

[data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }

    [data-reveal] {
        opacity: 1;
        transform: none;
    }
}

@media (max-width: 1080px) {
    .grid-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .contact-grid-premium,
    .article-hero,
    .article-grid,
    .legal-grid-premium {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .container {
        padding: 0 18px;
    }

    .form-row,
    .grid-2,
    .grid-3,
    .grid-4,
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .hero-actions,
    .display-actions,
    .status-actions,
    .wizard-nav {
        flex-direction: column;
    }

    .btn-primary,
    .btn-secondary,
    .btn-ghost {
        width: 100%;
    }

    .article-anchor-nav {
        top: 76px;
        border-radius: 20px;
    }

    .story-card,
    .article-card,
    .article-sidebar,
    .contact-form,
    .legal-panel,
    .note-panel,
    .status-card,
    .wizard-step,
    .metric-box,
    .stat-card,
    .stat-card-image,
    .quote-block,
    .highlight-box,
    .warn-box {
        padding: 20px;
        border-radius: 20px;
    }
}
