@import url("tokens.css");

/* ---------- Grundlagen ---------- */

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--c-bg);
    color: var(--c-text);
    font-family: var(--font-body);
    font-size: var(--fs-body);
    line-height: var(--lh-body);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

a {
    color: inherit;
    text-decoration-color: var(--c-accent);
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
    transition: color var(--t-fast) ease;
}
a:hover {
    color: var(--c-accent);
}

:focus-visible {
    outline: 3px solid var(--c-accent);
    outline-offset: 3px;
    border-radius: 4px;
}

h1, h2, h3, h4 {
    margin: 0 0 var(--s-2);
    font-family: var(--font-heading);
    font-weight: var(--fw-heading);
    letter-spacing: var(--ls-heading);
    text-wrap: balance;
}
h1 { font-size: var(--fs-h1); line-height: var(--lh-h1); }
h2 { font-size: var(--fs-h2); line-height: var(--lh-h2); }
h3 { font-size: var(--fs-h3); line-height: var(--lh-h3); }

p {
    margin: 0 0 var(--s-2);
}

.label {
    display: inline-block;
    font-family: var(--font-body);
    font-size: var(--fs-label);
    font-weight: 600;
    letter-spacing: var(--ls-label);
    text-transform: uppercase;
}

.muted { color: var(--c-muted); }

/* Hervorhebung in Headlines: kursiv in Gelb */
.hl {
    font-style: italic;
    color: var(--c-accent);
}

.skip-link {
    position: absolute;
    left: var(--s-2);
    top: -100px;
    z-index: 100;
    padding: var(--s-1) var(--s-2);
    background: var(--c-accent);
    color: var(--c-on-accent);
    border-radius: var(--r-pill);
}
.skip-link:focus { top: var(--s-2); }

/* ---------- Raster ---------- */

.container {
    width: 100%;
    max-width: calc(var(--w-text) + 2 * var(--gutter));
    margin: 0 auto;
    padding: 0 var(--gutter);
}
.container-wide {
    max-width: calc(var(--w-media) + 2 * var(--gutter));
}
.prose {
    max-width: var(--w-prose);
}

/* ---------- Abschnitte (Hintergrund-Rhythmus) ---------- */

.section {
    padding: var(--s-6) 0;
}
.section--dark    { background: var(--c-black);    color: var(--c-offwhite); }
.section--surface { background: var(--c-surface);  color: var(--c-offwhite); }
.section--light   { background: var(--c-offwhite); color: var(--c-black); }
.section--yellow  { background: var(--c-yellow);   color: var(--c-black); }
.section--orange  { background: var(--c-orange);   color: var(--c-black); }
.section--green   { background: var(--c-green);    color: var(--c-black); }

/* Auf hellen und farbigen Flächen: Akzente schwarz, nie Orange/Grün als Text */
.section--light,
.section--yellow,
.section--orange,
.section--green {
    --c-text: var(--c-black);
    --c-muted: #4A4741;   /* 8,3 auf Off-White, 6,1 auf Gelb */
}
/* Auf Orange und Grün reicht kein Grau (2,7 bzw. 3,6): Nebentext bleibt schwarz */
.section--orange,
.section--green {
    --c-muted: var(--c-black);
}
.section--light .hl,
.section--yellow .hl,
.section--orange .hl,
.section--green .hl {
    color: inherit;
}
.section--light a,
.section--yellow a,
.section--orange a,
.section--green a {
    text-decoration-color: currentColor;
}
.section--light a:hover,
.section--yellow a:hover,
.section--orange a:hover,
.section--green a:hover {
    color: inherit;
    text-decoration-thickness: 3px;
}

/* gerundeter Container innerhalb eines Abschnitts */
.panel {
    border-radius: var(--r-section);
    padding: var(--s-5) var(--s-3);
}
@media (min-width: 768px) {
    .panel { padding: var(--s-6) var(--s-5); }
}

/* ---------- Header ---------- */

.site-header {
    position: sticky;
    top: var(--s-2);
    z-index: 50;
    padding: 0 var(--gutter);
}
.site-header__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--s-2);
    max-width: var(--w-media);
    margin: var(--s-2) auto 0;
    padding: 10px 10px 10px var(--s-3);
    background: var(--c-surface);
    border-radius: var(--r-pill);
    box-shadow: var(--shadow-header);
}
.site-header__logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 20px;
    text-decoration: none;
    white-space: nowrap;
}
.site-header__logo img {
    height: 32px;
    width: auto;
}
.site-nav ul {
    display: flex;
    gap: var(--s-3);
    margin: 0;
    padding: 0;
    list-style: none;
}
.site-nav a {
    font-size: var(--fs-small);
    font-weight: 500;
    text-decoration: none;
}
.site-nav .nav-current a {
    color: var(--c-accent);
}
.site-header__menu-toggle {
    display: none;
}
@media (max-width: 860px) {
    .site-nav { display: none; }
    .site-header.is-open .site-nav {
        display: block;
        position: absolute;
        top: calc(100% + var(--s-1));
        left: var(--gutter);
        right: var(--gutter);
        padding: var(--s-3);
        background: var(--c-surface);
        border-radius: var(--r-card);
        box-shadow: var(--shadow-header);
    }
    .site-header.is-open .site-nav ul {
        flex-direction: column;
        gap: var(--s-2);
    }
    .site-header__menu-toggle {
        display: inline-flex;
        margin-left: auto;
        padding: 10px 14px;
        background: none;
        border: 0;
        color: inherit;
        font: inherit;
        font-size: var(--fs-small);
        font-weight: 600;
        cursor: pointer;
    }
}

/* ---------- Buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--s-1);
    padding: 13px 24px;
    border: 0;
    border-radius: var(--r-pill);
    background: var(--c-accent);
    color: var(--c-on-accent);
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: transform var(--t-base) var(--ease-out), box-shadow var(--t-base) var(--ease-out), background var(--t-fast) ease;
}
.btn:hover {
    color: var(--c-on-accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}
.btn--ghost {
    background: transparent;
    color: var(--c-text);
    box-shadow: inset 0 0 0 2px currentColor;
}
.btn--ghost:hover {
    color: var(--c-text);
    box-shadow: inset 0 0 0 2px currentColor, var(--shadow-soft);
}
/* Auf gelber Fläche: schwarzer Button */
.section--yellow .btn:not(.btn--ghost),
.section--orange .btn:not(.btn--ghost),
.section--green .btn:not(.btn--ghost) {
    background: var(--c-black);
    color: var(--c-offwhite);
}
.btn--block { width: 100%; }

/* ---------- Newsletter-Feld ---------- */

.nl-form {
    display: grid;
    gap: var(--s-1);
    max-width: 420px;
}
.nl-form input {
    width: 100%;
    padding: 13px 22px;
    border: 2px solid transparent;
    border-radius: var(--r-pill);
    background: var(--c-surface-2);
    color: var(--c-offwhite);
    font: inherit;
    font-size: 16px;
}
.section--light .nl-form input,
.section--yellow .nl-form input {
    background: var(--c-white);
    color: var(--c-black);
    border-color: var(--c-black);
}
.nl-form input::placeholder { color: var(--c-muted); }
.nl-form__msg { display: none; font-size: var(--fs-small); }
.nl-form.success .nl-form__msg--success,
.nl-form.error .nl-form__msg--error { display: block; }
.nl-form.loading .btn { opacity: 0.7; }

/* ---------- Karten ---------- */

.card {
    padding: var(--s-4) var(--s-3);
    background: var(--c-surface);
    border-radius: var(--r-card);
    transition: transform var(--t-base) var(--ease-out), box-shadow var(--t-base) var(--ease-out);
}
a.card { display: block; text-decoration: none; }
a.card:hover { color: inherit; transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.section--light .card { background: var(--c-white); }
.card--accent { background: var(--c-yellow); color: var(--c-black); }

.grid {
    display: grid;
    gap: var(--s-3);
}
@media (min-width: 768px) {
    .grid--2 { grid-template-columns: repeat(2, 1fr); }
    .grid--3 { grid-template-columns: repeat(3, 1fr); }
}

/* Vergleichskarten (Haltung) */
.compare-card ul {
    margin: var(--s-2) 0 0;
    padding: 0;
    list-style: none;
}
.compare-card li {
    padding: 10px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.12);
}

/* ---------- System-Liste ---------- */

.system-list {
    display: grid;
    gap: var(--s-2);
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: system;
}
.system-list li {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: var(--s-3);
    align-items: start;
    padding: var(--s-3);
    background: var(--c-surface);
    border-radius: var(--r-card);
    counter-increment: system;
}
.system-list li::before {
    content: counter(system);
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 2px solid var(--c-yellow);
    border-radius: 50%;
    color: var(--c-yellow);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 20px;
}
.system-list strong {
    display: block;
    font-weight: 600;
}
.system-list span {
    color: var(--c-muted);
}

.status-strip {
    display: inline-flex;
    align-items: center;
    gap: var(--s-1);
    padding: 6px 14px;
    border-radius: var(--r-pill);
    background: rgba(106, 177, 135, 0.15);
    color: var(--c-green);
}
.status-strip::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--c-green);
}

/* ---------- Tags ---------- */

.tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--r-pill);
    background: rgba(0, 0, 0, 0.12);
    font-size: 13px;
    font-weight: 500;
}
.section--dark .tag,
.section--surface .tag {
    background: var(--c-surface-2);
    color: var(--c-muted);
}

/* ---------- Laufband ---------- */

.marquee {
    overflow: hidden;
    padding: var(--s-2) 0;
    background: var(--c-yellow);
    color: var(--c-black);
    white-space: nowrap;
}
.marquee__track {
    display: inline-flex;
    gap: var(--s-5);
    animation: marquee 30s linear infinite;
}
.marquee a { text-decoration: none; font-weight: 600; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee {
    to { transform: translateX(-50%); }
}

/* ---------- Beiträge und Seiten ---------- */

.post-header {
    padding: calc(var(--s-6) + var(--s-4)) 0 var(--s-4);
}
.post-feature-image {
    max-width: var(--w-media);
    margin: 0 auto var(--s-5);
    padding: 0 var(--gutter);
}
.post-feature-image img {
    width: 100%;
    border-radius: var(--r-card);
}
.gh-content {
    max-width: var(--w-prose);
    margin: 0 auto;
    padding: 0 var(--gutter) var(--s-6);
}
.gh-content > * + * { margin-top: var(--s-3); }
.gh-content h2 { margin-top: var(--s-5); font-size: var(--fs-h3); }
.gh-content blockquote {
    margin-left: 0;
    padding-left: var(--s-3);
    border-left: 3px solid var(--c-yellow);
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 1.2em;
}
.gh-content figure { margin: var(--s-4) 0; }
.gh-content figcaption {
    margin-top: var(--s-1);
    color: var(--c-muted);
    font-size: var(--fs-small);
    text-align: center;
}
.gh-content img { border-radius: var(--r-card); }

/* Ghost-Karten: Pflichtklassen für breite und volle Bilder */
.kg-width-wide {
    position: relative;
    width: min(var(--w-text), 100vw - 2 * var(--gutter));
    left: 50%;
    transform: translateX(-50%);
}
.kg-width-full {
    position: relative;
    width: 100vw;
    left: 50%;
    transform: translateX(-50%);
}
.kg-width-full img { border-radius: 0; }

.post-feed {
    display: grid;
    gap: var(--s-3);
}
@media (min-width: 768px) {
    .post-feed { grid-template-columns: repeat(3, 1fr); }
}
.post-card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: var(--s-2);
}

.pagination {
    display: flex;
    justify-content: space-between;
    padding: var(--s-5) 0 0;
}

/* ---------- Footer ---------- */

.site-footer {
    padding: var(--s-6) 0 var(--s-4);
    background: var(--c-black);
    border-top: 1px solid var(--c-line);
}
.site-footer__farewell {
    font-family: var(--font-heading);
    font-size: var(--fs-h2);
    line-height: var(--lh-h2);
    margin-bottom: var(--s-5);
}
.site-footer__cols {
    display: grid;
    gap: var(--s-4);
}
@media (min-width: 768px) {
    .site-footer__cols { grid-template-columns: repeat(4, 1fr); }
}
.site-footer ul {
    margin: var(--s-2) 0 0;
    padding: 0;
    list-style: none;
}
.site-footer li + li { margin-top: var(--s-1); }
.site-footer a { text-decoration: none; }
.site-footer__legal {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s-3);
    margin-top: var(--s-5);
    color: var(--c-muted);
    font-size: var(--fs-small);
}

/* ---------- Einblenden beim Scrollen ---------- */

.js .reveal {
    opacity: 0;
    transform: translateY(var(--reveal-shift));
    transition: opacity var(--t-reveal) var(--ease-out), transform var(--t-reveal) var(--ease-out);
    transition-delay: calc(var(--reveal-index, 0) * var(--reveal-stagger));
}
.js .reveal.is-visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
    .js .reveal {
        opacity: 1;
        transform: none;
    }
}

/* ---------- Startseite ---------- */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* Fotos: leicht entsättigt und kontrastreicher, ruhig und etwas geheimnisvoll */
.photo {
    margin: 0;
    overflow: hidden;
    border-radius: var(--r-card);
    background: var(--c-surface);
}
.photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.85) contrast(1.05);
    transition: filter var(--t-reveal) var(--ease-out), transform var(--t-reveal) var(--ease-out);
}
.photo:hover img {
    filter: saturate(1) contrast(1);
}

.hero {
    padding-top: calc(var(--s-6) + var(--s-5));
}
.hero__grid {
    display: grid;
    gap: var(--s-5);
    align-items: center;
}
.hero__text {
    max-width: 760px;
}
.hero:not(.hero--photo) .hero__text {
    margin: 0 auto;
    text-align: center;
}
.hero:not(.hero--photo) .nl { margin: 0 auto; }
.hero__sub {
    max-width: 600px;
    margin: 0 0 var(--s-4);
    color: var(--c-muted);
    font-size: 1.1em;
}
.hero:not(.hero--photo) .hero__sub { margin-left: auto; margin-right: auto; }
.hero__photo {
    aspect-ratio: 4 / 5;
    max-height: 82vh;
}
@media (min-width: 900px) {
    .hero--photo .hero__grid { grid-template-columns: 1.1fr 0.9fr; }
}

.nl {
    display: grid;
    gap: var(--s-2);
    max-width: 440px;
}
.nl__intro { margin: 0; font-weight: 500; }
.nl__note { margin: 0; font-size: var(--fs-small); }

.arrow-link {
    display: inline-flex;
    align-items: center;
    gap: var(--s-1);
    margin-top: var(--s-3);
    font-weight: 600;
    text-decoration: none;
}
.arrow-link::after {
    content: "→";
    transition: transform var(--t-base) var(--ease-out);
}
a.arrow-link:hover::after,
a:hover > .arrow-link::after {
    transform: translateX(4px);
}

.compare { margin-top: var(--s-4); }

/* Story */
.story__grid {
    display: grid;
    gap: var(--s-5);
    align-items: start;
}
.story__photo { aspect-ratio: 4 / 5; }
.story__intro { font-size: 1.15em; }
.story__block { margin-top: var(--s-4); }
.story__block .label { margin-bottom: var(--s-1); }
@media (min-width: 900px) {
    .story__grid { grid-template-columns: 0.9fr 1.1fr; }
    .story__photo { position: sticky; top: 120px; }
}

/* Projekte */
.project {
    padding: var(--s-6) 0;
}
.project__inner { max-width: calc(860px + 2 * var(--gutter)); }
.project h2 { font-size: clamp(28px, 3.4vw, 48px); }
.project__dash { font-weight: 400; }
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s-1);
    margin-top: var(--s-2);
}

/* Drei Wege */
.way h3 { margin-top: var(--s-1); }
.way { display: flex; flex-direction: column; }
.way .arrow-link { margin-top: auto; padding-top: var(--s-2); }

/* Fundstücke: Bildkarten aus der Seite "fundstuecke" als Raster */
.finds__grid {
    display: grid;
    gap: var(--s-2);
    margin: var(--s-5) 0 0;
    padding: 0;
    list-style: none;
    grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 768px) {
    .finds__grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1100px) {
    .finds__grid { grid-template-columns: repeat(4, 1fr); }
}
.finds__grid > * { margin: 0 !important; }
.finds__grid .kg-image-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--r-card);
    background: var(--c-black);
}
.finds__grid .kg-image-card img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    filter: saturate(0.85) contrast(1.05);
    transition: transform var(--t-reveal) var(--ease-out), filter var(--t-reveal) var(--ease-out);
}
.finds__grid .kg-image-card:hover img {
    transform: scale(1.03);
    filter: none;
}
.finds__grid figcaption {
    padding: 12px 14px;
    color: var(--c-muted);
    font-size: 14px;
    line-height: 1.4;
}
.finds__grid figcaption strong,
.finds__grid figcaption b {
    display: block;
    color: var(--c-offwhite);
    font-weight: 600;
}
.finds__grid--text li {
    padding: var(--s-3);
    background: var(--c-black);
    border-radius: var(--r-card);
    color: var(--c-muted);
    font-size: 15px;
}
.finds__grid--text strong {
    display: block;
    margin-bottom: 4px;
    color: var(--c-offwhite);
    font-family: var(--font-heading);
    font-size: 20px;
}

.door { text-align: center; }
.door p { max-width: 620px; margin: 0 auto var(--s-3); }

/* ---------- Footer-Ergänzungen ---------- */

.site-footer__social {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s-3);
    margin-top: var(--s-5);
    font-weight: 600;
}
@media (min-width: 768px) {
    .site-footer__cols { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Unterseiten ---------- */

.gh-content h3 { margin-top: var(--s-4); font-size: 22px; }
.gh-content ul,
.gh-content ol { padding-left: 1.2em; }
.gh-content li + li { margin-top: var(--s-1); }
.gh-content hr {
    margin: var(--s-5) 0;
    border: 0;
    border-top: 1px solid var(--c-line);
}
.gh-content table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--fs-small);
}
.gh-content th,
.gh-content td {
    padding: 10px 12px 10px 0;
    border-bottom: 1px solid var(--c-line);
    text-align: left;
    vertical-align: top;
}
.gh-content th {
    color: var(--c-muted);
    font-size: var(--fs-label);
    font-weight: 600;
    letter-spacing: var(--ls-label);
    text-transform: uppercase;
}
.gh-content td:first-child { white-space: nowrap; font-weight: 600; color: var(--c-yellow); }

/* Kapitel-Listen (LeanChapters) und Videos */
.gh-content .chapters {
    margin: var(--s-3) 0 0;
    padding: 0;
    list-style: none;
    counter-reset: chapter;
}
.gh-content .chapters li {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: var(--s-2);
    margin: 0;
    padding: var(--s-2) 0;
    border-top: 1px solid var(--c-line);
    counter-increment: chapter;
}
.gh-content .chapters li::before {
    content: counter(chapter, decimal-leading-zero);
    color: var(--c-yellow);
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
}
.gh-content .chapters strong { display: block; }
.gh-content .chapters span { color: var(--c-muted); font-size: var(--fs-small); }

/* Systeme auf "Gebaut": je System eine Fläche */
.gh-content .system {
    margin: var(--s-4) 0;
    padding: var(--s-4) var(--s-3);
    border-radius: var(--r-card);
    color: var(--c-black);
}
.gh-content .system--green { background: var(--c-green); }
.gh-content .system--yellow { background: var(--c-yellow); }
.gh-content .system--orange { background: var(--c-orange); }
.gh-content .system h3 { margin-top: 0; font-size: var(--fs-h3); }
.gh-content .system dt {
    margin-top: var(--s-2);
    font-size: var(--fs-label);
    font-weight: 600;
    letter-spacing: var(--ls-label);
    text-transform: uppercase;
}
.gh-content .system dd { margin: 4px 0 0; }
.gh-content .system a { color: inherit; font-weight: 600; text-decoration-color: currentColor; }

/* Buttons aus dem Editor (Button-Karte) wie unsere Buttons */
.gh-content .kg-button-card { display: block; margin-top: var(--s-4); }
.gh-content .kg-button-card a.kg-btn,
.gh-content .kg-button-card a.kg-btn-accent {
    display: inline-flex;
    align-items: center;
    padding: 13px 24px;
    border-radius: var(--r-pill);
    background: var(--c-yellow);
    color: var(--c-black);
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: transform var(--t-base) var(--ease-out), box-shadow var(--t-base) var(--ease-out);
}
.gh-content .kg-button-card a.kg-btn:hover,
.gh-content .kg-button-card a.kg-btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

/* YouTube erst nach Klick */
.yt {
    position: relative;
    aspect-ratio: 16 / 9;
    margin: var(--s-3) 0;
    overflow: hidden;
    border-radius: var(--r-card);
    background: var(--c-surface);
}
.yt iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
.yt__play {
    position: absolute;
    inset: 0;
    display: grid;
    place-content: center;
    justify-items: center;
    gap: var(--s-1);
    padding: var(--s-3);
    border: 0;
    background: radial-gradient(70% 70% at 50% 40%, #242424, var(--c-surface));
    color: var(--c-offwhite);
    font: inherit;
    text-align: center;
    cursor: pointer;
}
.yt__icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--c-yellow);
    clip-path: circle(50%);
    position: relative;
}
.yt__icon::after {
    content: "";
    position: absolute;
    left: 26px;
    top: 20px;
    border-left: 18px solid var(--c-black);
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
}
.yt__title { font-weight: 600; max-width: 520px; }
.yt__hint { color: var(--c-muted); font-size: 13px; }
.yt__play:hover .yt__icon { transform: scale(1.06); }

/* Bewerbung */
.apply {
    display: grid;
    gap: var(--s-2);
    margin-top: var(--s-3);
}
.apply__row {
    display: grid;
    gap: var(--s-2);
}
@media (min-width: 640px) {
    .apply__row { grid-template-columns: 1fr 1fr; }
}
.apply label {
    display: grid;
    gap: 6px;
    font-size: var(--fs-small);
    font-weight: 600;
}
.apply input,
.apply select,
.apply textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid transparent;
    border-radius: 12px;
    background: var(--c-surface-2);
    color: var(--c-offwhite);
    font: inherit;
    font-weight: 400;
}
.apply input:focus,
.apply select:focus,
.apply textarea:focus {
    outline: none;
    border-color: var(--c-yellow);
}
.apply .is-invalid { border-color: var(--c-orange); }
.apply__hp {
    position: absolute;
    left: -9999px;
}
.apply__privacy { font-size: 13px; }
.apply .btn { justify-self: start; }
.apply__msg { display: none; margin: 0; }
.apply.is-success .apply__msg--success,
.apply.is-error .apply__msg--error,
.apply.is-fail .apply__msg--fail { display: block; }
.apply.is-success .apply__msg--success { color: var(--c-green); font-weight: 600; }
.apply.is-error .apply__msg--error,
.apply.is-fail .apply__msg--fail { color: var(--c-orange); }
.apply__after { margin-top: var(--s-4); font-size: var(--fs-small); }

/* ---------- Testseite ---------- */

.sg-swatches {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: var(--s-2);
}
.sg-swatch {
    border-radius: var(--r-card);
    overflow: hidden;
    background: var(--c-surface);
    font-size: 13px;
}
.sg-swatch__color {
    height: 96px;
    display: grid;
    place-items: center;
    font-weight: 600;
}
.sg-swatch__meta { padding: 10px 12px; }
.sg-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--s-2);
}
.sg-space {
    display: flex;
    align-items: center;
    gap: var(--s-2);
    font-size: 13px;
}
.sg-space span:first-child {
    display: block;
    height: 16px;
    background: var(--c-yellow);
    border-radius: 4px;
}
.card--light {
    background: var(--c-offwhite);
    color: var(--c-black);
    --c-muted: #4A4741;
}

/* ---------- Link Stack ---------- */

.link-stack {
    min-height: 100vh;
    padding: var(--s-5) var(--gutter);
    background:
        radial-gradient(60% 40% at 50% 0%, rgba(244, 204, 112, 0.10), transparent 70%),
        var(--c-black);
}
.link-stack__inner {
    max-width: 520px;
    margin: 0 auto;
    text-align: center;
}
.link-stack__avatar {
    width: 112px;
    height: 112px;
    margin: 0 auto var(--s-3);
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 0 0 3px var(--c-black), 0 0 0 5px var(--c-yellow);
}
.link-stack__name {
    font-size: clamp(32px, 7vw, 44px);
    line-height: 1.1;
    margin-bottom: var(--s-1);
}
.link-stack__bio {
    margin-bottom: var(--s-4);
}

/* Inhalt aus dem Editor: Button-Karten als volle, runde Zeilen */
.link-stack__links > * + * { margin-top: var(--s-2); }
.link-stack__links h2,
.link-stack__links h3 {
    margin: var(--s-4) 0 0;
    font-family: var(--font-body);
    font-size: var(--fs-label);
    font-weight: 600;
    letter-spacing: var(--ls-label);
    text-transform: uppercase;
    color: var(--c-muted);
}
.link-stack__links p { color: var(--c-muted); font-size: var(--fs-small); }
.link-stack__links .kg-button-card {
    display: block;
    margin: var(--s-2) 0 0;
}
.link-stack__links .kg-button-card a.kg-btn,
.link-stack__links .kg-button-card a.kg-btn-accent {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 56px;
    padding: 14px 24px;
    border-radius: var(--r-pill);
    background: var(--c-surface);
    color: var(--c-offwhite);
    box-shadow: inset 0 0 0 1px var(--c-line);
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: transform var(--t-base) var(--ease-out), box-shadow var(--t-base) var(--ease-out), background var(--t-fast) ease;
}
.link-stack__links .kg-button-card a.kg-btn:hover,
.link-stack__links .kg-button-card a.kg-btn-accent:hover {
    transform: translateY(-2px);
    background: var(--c-surface-2);
    box-shadow: inset 0 0 0 1px var(--c-yellow), var(--shadow-soft);
}
/* Erste Button-Karte = wichtigster Link, in Gelb */
.link-stack__links .kg-button-card:first-of-type a {
    background: var(--c-yellow);
    color: var(--c-black);
    box-shadow: none;
}
.link-stack__links .kg-button-card:first-of-type a:hover {
    background: var(--c-yellow);
    color: var(--c-black);
}
.link-stack__newsletter {
    margin-top: var(--s-5);
    padding: var(--s-4) var(--s-3);
    background: var(--c-surface);
    border-radius: var(--r-card);
    text-align: left;
}
.link-stack__newsletter .nl-form { max-width: none; }
.link-stack__foot {
    margin-top: var(--s-5);
    color: var(--c-muted);
    font-size: 13px;
}
.link-stack__foot a { text-decoration: none; }
.nl-form__archive {
    justify-self: center;
    margin-top: 4px;
    font-size: var(--fs-small);
}
