@font-face {
    font-family: "Inter";
    src: url("../webfonts/Inter-Regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Inter";
    src: url("../webfonts/InterDisplay-Bold.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/*
 * Look: zentriertes Panel auf dunklem Hintergrund (wie das frühere Dimension-Design),
 * Struktur: eigene Seiten pro Thema. Das HTML bleibt unverändert, nur dieses Stylesheet.
 */

:root {
    --bg: #101617;
    --panel: rgba(19, 23, 25, 0.9);
    --panel-soft: rgba(255, 255, 255, 0.045);
    --text: #ffffff;
    --muted: rgba(255, 255, 255, 0.82);
    /* Markenorange = Farbe des Logos (arrow.svg), einzige Quelle für alle Orange-Töne */
    --accent: #ff8c01;
    --accent-rgb: 255, 140, 1;
    --accent-hover: #ffa333;
    --accent-tint: #ffc277;
    --accent-soft: rgba(var(--accent-rgb), 0.18);
    --line: rgba(255, 255, 255, 0.24);
    --line-soft: rgba(255, 255, 255, 0.14);
    --panel-width: 52rem;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
    margin: 0;
    background-color: var(--bg);
    color: var(--text);
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 1.0625rem;
    line-height: 1.68;
    --shade: 0.72;
}

/* Startseite etwas heller, Unterseiten ruhiger */
body:has(.hero) {
    --shade: 0.5;
}

/* Hintergrund als feststehende Ebene: funktioniert auch auf iOS (dort wird background-attachment: fixed ignoriert) */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(circle at center, rgba(var(--accent-rgb), 0.14) 0%, transparent 58%),
        linear-gradient(rgba(14, 17, 20, var(--shade)), rgba(14, 17, 20, var(--shade))),
        url("../../images/bg.jpg") center / cover;
}

a {
    color: inherit;
    text-decoration-color: rgba(var(--accent-rgb), 0.6);
    text-underline-offset: 0.18em;
}

a:hover {
    color: var(--accent-tint);
}

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

p {
    margin: 0 0 1.1rem;
    color: var(--muted);
}

h1,
h2,
h3 {
    margin: 0 0 0.75rem;
    color: var(--text);
    line-height: 1.15;
}

h1 {
    max-width: 24ch;
    font-size: clamp(1.7rem, 3.4vw, 2.3rem);
    font-weight: 400;
    letter-spacing: 0.01rem;
    line-height: 1.18;
}

h2 {
    margin-top: 2rem;
    padding-bottom: 0.7rem;
    border-bottom: 1px solid var(--accent);
    color: var(--accent);
    font-size: 1.2rem;
    letter-spacing: 0.03rem;
}

h3 {
    margin-top: 1.5rem;
    color: var(--accent);
    font-size: 1rem;
    letter-spacing: 0.03rem;
}

h1 + p,
h2:first-child,
.eyebrow + h1 {
    margin-top: 0;
}

/* ---------- Kopf: Logo, Linie, Navigation ---------- */

.site-header {
    display: flex;
    justify-content: center;
    padding: 3rem 1.1rem 0;
}

.nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
}

.brand img {
    width: 5.5rem;
    height: 5.5rem;
    padding: 0.35rem;
    border: 1px solid rgba(255, 255, 255, 0.48);
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.22);
}

.brand::after {
    content: "";
    width: 1px;
    height: 2.25rem;
    background: rgba(255, 255, 255, 0.7);
}

/* Markenname bleibt für Screenreader erhalten, das Logo trägt ihn visuell */
.brand span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: rgba(12, 16, 18, 0.72);
    backdrop-filter: blur(10px);
    list-style: none;
}

.nav-links li + li {
    border-left: 1px solid var(--line);
}

.nav-links a {
    display: block;
    min-width: 6.5rem;
    height: 3rem;
    padding: 0 1.15rem;
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.04rem;
    line-height: 3rem;
    text-align: center;
    text-decoration: none;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
    background: var(--accent-soft);
    color: #fff;
}

/* ---------- Panel ---------- */

main {
    width: min(var(--panel-width), calc(100% - 2.2rem));
    margin: 1.5rem auto 3rem;
    padding: clamp(2rem, 5vw, 3.25rem) clamp(1.25rem, 5vw, 2.75rem);
    border: 1px solid var(--line);
    border-radius: 4px;
    background: var(--panel);
    box-shadow: 0 2rem 4rem rgba(0, 0, 0, 0.32);
    backdrop-filter: blur(12px);
    overflow-wrap: break-word;
}

.section {
    padding: 0;
}

.section + .section {
    margin-top: 2.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--line-soft);
}

.section-inner,
.section-narrow {
    width: 100%;
    margin: 0;
}

.eyebrow {
    margin: 0 0 0.9rem;
    color: var(--accent);
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.04rem;
}

.lead {
    max-width: 44rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
}

/* Startseite: Bild zuerst, dann zentrierter Einstieg */
.hero {
    text-align: center;
}

.hero h1,
.hero .lead,
.hero .intro-copy {
    margin-right: auto;
    margin-left: auto;
}

.hero h1 {
    max-width: 26ch;
    margin-bottom: 1.25rem;
    font-size: clamp(1.75rem, 4vw, 2.6rem);
    line-height: 1.15;
}

.hero .portrait {
    margin: 1.75rem auto 0;
}

.hero .actions {
    justify-content: center;
}

.intro-copy {
    max-width: 44rem;
    margin-top: 1.75rem;
}

.hero-card {
    margin: 0 auto;
    max-width: 38rem;
}

.hero-card img,
.section-inner > .hero-card img {
    border-radius: 4px;
}

.hero-card p {
    margin: 0.9rem 0 0;
    font-size: 0.9rem;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.5rem;
}

.actions + p {
    margin-top: 1.5rem;
}

.button,
button.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
    padding: 0.6rem 1.4rem;
    border: 1px solid #fff;
    border-radius: 4px;
    background: transparent;
    color: var(--text);
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    letter-spacing: 0.04rem;
    text-decoration: none;
}

.button:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.button.primary {
    border-color: var(--accent);
    background: var(--accent);
    color: #19130d;
}

.button.primary:hover {
    border-color: var(--accent-hover);
    background: var(--accent-hover);
    color: #19130d;
}

/* Zweite Stufe: Akzent-Rahmen mit Pfeil, der beim Hover nach rechts rückt */
.button.accent {
    border-color: rgba(var(--accent-rgb), 0.7);
    color: var(--accent-tint);
}

.button.accent:hover {
    border-color: var(--accent);
    background: var(--accent-soft);
    color: #fff;
}

.button.arrow::after {
    content: "\2192";
    margin-left: 0.65rem;
    transition: transform 0.2s ease;
}

.button.arrow:hover::after {
    transform: translateX(0.3rem);
}

.split .button {
    margin-top: 0.5rem;
}

/* Textlink mit Pfeil (z. B. in Karten) */
.more-link {
    color: var(--accent-tint);
    font-weight: 700;
    text-decoration: none;
}

.more-link::after {
    content: "\2192";
    display: inline-block;
    margin-left: 0.45rem;
    transition: transform 0.2s ease;
}

.more-link:hover {
    color: #fff;
}

.more-link:hover::after {
    transform: translateX(0.25rem);
}

/* ---------- Raster, Karten, Zitat ---------- */

.split,
.grid,
.grid.two {
    display: grid;
    gap: 1rem;
}

.split {
    grid-template-columns: 1fr;
    gap: 1.75rem;
}

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

.grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card,
.contact-box {
    padding: 1.1rem 1.25rem;
    border: 1px solid var(--line-soft);
    border-radius: 4px;
    background: var(--panel-soft);
}

.card h2,
.contact-box h2 {
    margin: 0 0 0.5rem;
    padding: 0;
    border: 0;
    font-size: 1rem;
}

.card p,
.contact-box p {
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
}

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

/* Zitat mit Quelle: zentrierte Karte mit großem Anführungszeichen */
.quote {
    margin: 0 0 2.25rem;
    padding: 1.4rem 1.5rem 1.6rem;
    border: 1px solid var(--line-soft);
    border-radius: 4px;
    background: var(--panel-soft);
    text-align: center;
}

.quote blockquote {
    max-width: 34rem;
    margin: 0 auto;
}

.quote blockquote::before {
    content: "\201C";
    display: block;
    height: 2.7rem;
    color: var(--accent);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 5.5rem;
    line-height: 1;
}

.quote blockquote p {
    margin: 0;
    color: var(--text);
    font-size: 1.25rem;
    line-height: 1.5;
}

.quote figcaption {
    margin-top: 1rem;
    color: var(--accent-tint);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.quote figcaption::before {
    content: "\2014\00a0";
}

/* Eigene Kernaussage: getönte Box mit Akzentbalken */
.callout {
    margin: 0 0 2.25rem;
    padding: 1.25rem 1.5rem;
    border: 1px solid rgba(var(--accent-rgb), 0.35);
    border-left: 4px solid var(--accent);
    border-radius: 0 4px 4px 0;
    background: rgba(var(--accent-rgb), 0.09);
    color: var(--text);
    font-size: 1.08rem;
}

.callout p {
    margin: 0;
    color: var(--text);
}

.callout-title {
    margin-bottom: 0.9rem !important;
    color: var(--accent-tint) !important;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.callout .list {
    margin: 0;
}

.callout .list li {
    margin-bottom: 0.6rem;
    color: var(--text);
}

.callout .list li:last-child {
    margin-bottom: 0;
}

.list {
    margin: 1.2rem 0 1.5rem;
    padding: 0;
    list-style: none;
}

.list li {
    position: relative;
    margin-bottom: 0.7rem;
    padding-left: 1.55rem;
    color: var(--muted);
}

.list li::before {
    content: "";
    position: absolute;
    top: 0.72rem;
    left: 0;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 999px;
    background: var(--accent);
}

.article-list {
    display: grid;
    gap: 0.8rem;
    margin-top: 1.4rem;
}

.article-card {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    align-content: center;
    padding: 1.15rem 4.5rem 1.15rem 1.4rem;
    border: 1px solid var(--line-soft);
    border-radius: 4px;
    background: var(--panel-soft);
    text-decoration: none;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.article-card::before {
    content: "";
    position: absolute;
    top: -1px;
    bottom: -1px;
    left: -1px;
    width: 4px;
    border-radius: 4px 0 0 4px;
    background: var(--accent);
    opacity: 0.55;
    transition: opacity 0.2s ease;
}

.article-card strong {
    color: var(--text);
    font-size: 1.1rem;
    line-height: 1.3;
}

.article-card span {
    margin-top: 0.25rem;
    color: var(--muted);
    font-size: 0.95rem;
}

.article-card::after {
    content: "\2192";
    position: absolute;
    top: 50%;
    right: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    margin-top: -1.25rem;
    border: 1px solid rgba(var(--accent-rgb), 0.6);
    border-radius: 999px;
    color: var(--accent);
    font-size: 1.15rem;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.article-card:hover {
    transform: translateY(-2px);
    border-color: rgba(var(--accent-rgb), 0.55);
    background: rgba(var(--accent-rgb), 0.07);
}

.article-card:hover::before {
    opacity: 1;
}

.article-card:hover strong {
    color: var(--accent-tint);
}

.article-card:hover::after {
    background: var(--accent);
    color: #19130d;
    transform: translateX(0.2rem);
}

.article-card:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    .article-card,
    .article-card::after,
    .button.arrow::after,
    .more-link::after {
        transition: none;
    }

    .article-card:hover,
    .article-card:hover::after,
    .button.arrow:hover::after,
    .more-link:hover::after {
        transform: none;
    }
}

.portrait {
    width: 8.25rem;
    height: auto;
    aspect-ratio: 1 / 1;
    margin: 0 auto;
    object-fit: cover;
    object-position: center 25%;
    border: 2px solid rgba(255, 255, 255, 0.76);
    border-radius: 999px;
    box-shadow: 0 1rem 2.25rem rgba(0, 0, 0, 0.28);
}

/* ---------- Kontakt, Dankeseite ---------- */

.section-narrow.contact-box,
.contact-box.thanks {
    padding: 0;
    border: 0;
    background: none;
}

.thanks h1 {
    max-width: none;
}

.success-mark {
    display: block;
    width: 4.2rem;
    height: 4.2rem;
    margin-bottom: 1.4rem;
    color: var(--accent);
}

.thanks-more {
    margin-top: 3rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.field.full {
    grid-column: 1 / -1;
}

label {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 700;
}

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

.form-hint {
    margin-top: 1rem;
    color: var(--muted);
    font-size: 0.9rem;
}

.form-hint + .actions {
    margin-top: 0.75rem;
}

textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.28);
    color: var(--text);
    font: inherit;
    padding: 0.8rem 0.9rem;
}

input:hover,
select:hover,
textarea:hover {
    border-color: rgba(255, 255, 255, 0.7);
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.35);
    outline: 0;
}

input:user-invalid,
select:user-invalid,
textarea:user-invalid {
    border-color: #ff7a6b;
}

textarea {
    min-height: 9rem;
    resize: vertical;
}

.honeypot {
    display: none;
}

/* ---------- Fuß ---------- */

.site-footer {
    margin-top: auto;
    padding: 0 1.1rem 2.5rem;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    text-align: center;
}

.footer-links {
    display: flex;
    gap: 1.2rem;
}

/* ---------- Türen (Startseite), Angebotsblöcke, Zeitstrahl, Ablauf ---------- */

.doors {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.25rem;
}

.door {
    display: flex;
    flex-direction: column;
    padding: 1.2rem 1.35rem 1.25rem;
    border: 1px solid var(--line-soft);
    border-radius: 4px;
    background: var(--panel-soft);
}

.door.core {
    grid-column: 1 / -1;
    border-color: rgba(var(--accent-rgb), 0.55);
    background: rgba(var(--accent-rgb), 0.07);
}

.door h2,
.door h3 {
    margin: 0 0 0.55rem;
    padding: 0;
    border: 0;
    color: var(--text);
    font-size: 1.1rem;
}

.door.core h2,
.door.core h3 {
    font-size: 1.25rem;
}

.door p {
    margin-bottom: 0.9rem;
    font-size: 0.95rem;
}

.door .more-link {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    min-height: 2.75rem;
    margin-top: auto;
}

.door-tag {
    display: inline-block;
    margin: 0 0 0.6rem;
    color: var(--accent);
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.09rem;
    text-transform: uppercase;
}

/* Angebot: je Bereich ein Block mit beschrifteten Zeilen */
.offer {
    margin: 0 0 1.25rem;
    padding: 1.2rem 1.35rem 1.3rem;
    border: 1px solid var(--line-soft);
    border-radius: 4px;
    background: var(--panel-soft);
}

.offer.core {
    border-color: rgba(var(--accent-rgb), 0.55);
}

.offer h2 {
    margin: 0 0 0.9rem;
    padding: 0;
    border: 0;
    color: var(--text);
    font-size: 1.2rem;
}

.offer dl {
    margin: 0 0 1rem;
}

.offer dt {
    margin: 0.85rem 0 0.2rem;
    color: var(--accent);
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.09rem;
    text-transform: uppercase;
}

.offer dt:first-child {
    margin-top: 0;
}

.offer dd {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
}

.offer .list {
    margin: 0.2rem 0 0;
}

.offer .list li {
    margin-bottom: 0.35rem;
    font-size: 0.95rem;
}

/* Zeitstrahl für „Über mich“ */
.timeline {
    margin: 1.25rem 0 1.75rem;
    padding: 0;
    list-style: none;
}

.timeline li {
    position: relative;
    margin: 0;
    padding: 0 0 1.35rem 1.6rem;
    border-left: 1px solid var(--line);
}

.timeline li:last-child {
    padding-bottom: 0;
    border-left-color: transparent;
}

.timeline li::before {
    content: "";
    position: absolute;
    top: 0.4rem;
    left: -0.3rem;
    width: 0.6rem;
    height: 0.6rem;
    border-radius: 999px;
    background: var(--accent);
}

.timeline .when {
    display: block;
    margin-bottom: 0.15rem;
    color: var(--accent);
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.08rem;
    text-transform: uppercase;
}

.timeline strong {
    display: block;
    color: var(--text);
    font-weight: 700;
}

.timeline p {
    margin: 0.2rem 0 0;
    font-size: 0.95rem;
}

/* Ablauf in vier Schritten */
.steps {
    display: grid;
    gap: 0.8rem;
    margin: 1.25rem 0 1.75rem;
    padding: 0;
    list-style: none;
    counter-reset: step;
}

.steps li {
    position: relative;
    margin: 0;
    padding: 1rem 1.2rem 1rem 3.6rem;
    border: 1px solid var(--line-soft);
    border-radius: 4px;
    background: var(--panel-soft);
    counter-increment: step;
}

.steps li::before {
    content: counter(step);
    position: absolute;
    top: 1rem;
    left: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.7rem;
    height: 1.7rem;
    border-radius: 999px;
    background: var(--accent);
    color: #101617;
    font-size: 0.9rem;
    font-weight: 700;
}

.steps strong {
    display: block;
    margin-bottom: 0.15rem;
    color: var(--text);
}

.steps p {
    margin: 0;
    font-size: 0.95rem;
}

select option {
    background: #101617;
    color: var(--text);
}

.lang-note {
    margin-top: 1.25rem;
    font-size: 0.9rem;
}

/*
 * Stimmen (Referenzen): vorbereitet, aktuell auf keiner Seite eingebunden.
 * Einbau: docs/stimmen.md. Nur echte, freigegebene Aussagen verwenden.
 */
.stimmen {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin: 1.25rem 0;
}

.stimme {
    margin: 0;
    padding: 1.1rem 1.25rem;
    border: 1px solid var(--line-soft);
    border-left: 3px solid var(--accent);
    border-radius: 4px;
    background: var(--panel-soft);
}

.stimme blockquote {
    margin: 0 0 0.7rem;
    color: var(--text);
}

.stimme blockquote p {
    margin: 0;
}

.stimme figcaption {
    color: var(--accent-tint);
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.06rem;
    text-transform: uppercase;
}

/* ---------- Schmale Bildschirme ---------- */

@media (max-width: 820px) {
    body {
        font-size: 1rem;
    }

    .site-header {
        padding: 2rem 0.75rem 0;
    }

    main {
        width: calc(100% - 1.5rem);
        margin-top: 1.25rem;
        padding: 1.75rem 1.1rem;
    }

    h1 {
        font-size: clamp(1.4rem, 5.8vw, 1.9rem);
    }

    .nav-links {
        width: 100%;
    }

    .nav-links li {
        flex: 1 1 33%;
    }

    .nav-links li + li {
        border-left: 0;
    }

    .nav-links li {
        border-top: 1px solid var(--line);
    }

    .nav-links li:nth-child(-n + 3) {
        border-top: 0;
    }

    .nav-links li:not(:nth-child(3n + 1)) {
        border-left: 1px solid var(--line);
    }

    .nav-links a {
        min-width: 0;
        padding: 0 0.5rem;
    }

    .grid,
    .grid.two,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .article-card {
        padding: 1rem 3.9rem 1rem 1.2rem;
    }

    .article-card::after {
        right: 0.9rem;
    }

    .hero h1 {
        font-size: clamp(1.5rem, 6.4vw, 2.1rem);
    }

    .actions .button {
        width: 100%;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0 0.4rem;
    }

    .footer-links a {
        display: inline-block;
        padding: 0.7rem 0.6rem;
    }
}

@media (max-width: 820px) {
    .doors,
    .stimmen {
        grid-template-columns: 1fr;
    }

    .door.core {
        grid-column: auto;
    }
}
