/* ==========================================================================
   RWZ Theme – Design „Klar & frisch“
   Systemschriften (keine Downloads), CSS-Variablen, mobile first.
   ========================================================================== */

:root {
    --c-text: #0b2540;
    --c-muted: #4d6177;
    --c-accent: #0e7490;          /* Buttons/Links, Kontrast mit Weiß >= 4.5:1 */
    --c-accent-hover: #0b5e75;
    --c-accent-bright: #0ea5b7;   /* nur dekorativ */
    --c-accent-soft: #e3f5f8;
    --c-surface: #f4f8fb;
    --c-border: #dce6ee;
    --c-white: #fff;
    --c-notice: #fff8e6;
    --c-notice-border: #f2d999;

    --font: system-ui, -apple-system, "Segoe UI Variable", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --fs-sm: 0.875rem;
    --fs-base: 1.0625rem;
    --fs-lg: 1.25rem;
    --fs-h3: clamp(1.15rem, 1rem + 0.5vw, 1.35rem);
    --fs-h2: clamp(1.45rem, 1.2rem + 1vw, 1.9rem);
    --fs-h1: clamp(2rem, 1.4rem + 2.6vw, 3.25rem);

    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 1px 2px rgb(11 37 64 / 6%), 0 8px 24px rgb(11 37 64 / 7%);
    --shadow-hover: 0 2px 4px rgb(11 37 64 / 8%), 0 16px 40px rgb(11 37 64 / 12%);

    --container: 1180px;
    --container-narrow: 720px;
    --container-wide: 960px;
    --gutter: clamp(1rem, 4vw, 2rem);
    --space: clamp(3rem, 6vw, 5.5rem);
}

/* ---------- Basis ---------- */

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: 5rem;
}

body {
    margin: 0;
    font-family: var(--font);
    font-size: var(--fs-base);
    line-height: 1.65;
    color: var(--c-text);
    background: var(--c-white);
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Footer bleibt bei kurzen Seiten unten. */
.site-main {
    flex: 1;
}

body.nav-open {
    overflow: hidden;
}

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

a {
    color: var(--c-accent);
    text-underline-offset: 0.18em;
}

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

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

h1,
h2,
h3,
h4 {
    line-height: 1.2;
    letter-spacing: -0.015em;
    margin: 0 0 0.6em;
    font-weight: 700;
}

h1 {
    font-size: var(--fs-h1);
    letter-spacing: -0.025em;
}

h2 {
    font-size: var(--fs-h2);
}

h3 {
    font-size: var(--fs-h3);
}

p {
    margin: 0 0 1.1em;
}

.screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: -4rem;
    z-index: 100;
    padding: 0.75rem 1rem;
    background: var(--c-text);
    color: var(--c-white);
    border-radius: var(--radius-sm);
}

.skip-link:focus {
    top: 1rem;
    color: var(--c-white);
}

.icon {
    width: 1.5em;
    height: 1.5em;
    flex-shrink: 0;
}

/* ---------- Layout ---------- */

.container {
    width: 100%;
    max-width: calc(var(--container) + 2 * var(--gutter));
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.container--narrow {
    max-width: calc(var(--container-narrow) + 2 * var(--gutter));
}

.container--wide {
    max-width: calc(var(--container-wide) + 2 * var(--gutter));
}

.section {
    padding-block: var(--space);
}

.section--tight {
    padding-block: 1.5rem;
}

.section--surface {
    background: var(--c-surface);
}

/* Zwei weiße Sektionen hintereinander: Abstand nicht verdoppeln. */
.section:not(.section--tight, .section--surface, .section--deep) + .section:not(.section--surface, .section--deep) {
    padding-top: 0;
}

.section__head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem 1rem;
    margin-bottom: 1.5rem;
}

.section__head .section__title {
    margin: 0;
}

.section__title {
    margin-bottom: 1.5rem;
}

.grid {
    display: grid;
    gap: clamp(1rem, 2.5vw, 1.75rem);
}

@media (min-width: 640px) {
    .grid--3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1000px) {
    .grid--3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

.eyebrow {
    display: inline-block;
    margin-bottom: 0.75rem;
    font-size: var(--fs-sm);
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--c-accent);
    text-decoration: none;
}

/* ---------- Buttons & Links ---------- */

.button,
.wp-block-button__link,
.prose .produktbox a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
    padding: 0.85em 1.4em;
    border: 2px solid var(--c-accent);
    border-radius: 999px;
    background: var(--c-accent);
    color: var(--c-white);
    font: inherit;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s, transform 0.2s;
}

.button:hover,
.wp-block-button__link:hover,
.prose .produktbox a:hover {
    background: var(--c-accent-hover);
    border-color: var(--c-accent-hover);
    color: var(--c-white);
    transform: translateY(-1px);
}

.button--ghost,
.is-style-outline .wp-block-button__link {
    background: transparent;
    color: var(--c-accent);
}

.button--ghost:hover,
.is-style-outline .wp-block-button__link:hover {
    background: var(--c-accent-soft);
    color: var(--c-accent-hover);
}

.button--small {
    padding: 0.55em 1.1em;
    font-size: var(--fs-sm);
}

.button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.link-arrow {
    font-weight: 600;
    text-decoration: none;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgb(255 255 255 / 92%);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--c-border);
}

.admin-bar .site-header {
    top: 32px;
}

@media (max-width: 782px) {
    .admin-bar .site-header {
        top: 46px;
    }
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 4.25rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--c-text);
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: -0.01em;
    text-decoration: none;
}

.brand:hover {
    color: var(--c-text);
}

.brand__mark {
    display: grid;
    place-items: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--c-accent-bright), var(--c-accent));
    color: var(--c-white);
}

.brand__mark .icon {
    width: 1.25rem;
    height: 1.25rem;
}

.brand--light,
.brand--light:hover {
    color: var(--c-white);
}

.custom-logo {
    max-height: 3rem;
    width: auto;
}

.nav-toggle {
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-sm);
    background: var(--c-white);
    color: var(--c-text);
    cursor: pointer;
}

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
    display: block;
    width: 1.25rem;
    height: 2px;
    background: currentcolor;
    border-radius: 2px;
    transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle__bars {
    position: relative;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
    content: "";
    position: absolute;
    left: 0;
}

.nav-toggle__bars::before {
    top: -6px;
}

.nav-toggle__bars::after {
    top: 6px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars {
    background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before {
    transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after {
    transform: translateY(-6px) rotate(-45deg);
}

.primary-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.primary-nav a {
    color: var(--c-text);
    font-weight: 500;
    text-decoration: none;
}

.primary-nav .current-menu-item > a,
.primary-nav .current-menu-ancestor > a,
.primary-nav a:hover {
    color: var(--c-accent);
}

.primary-nav .primary-nav__cta {
    color: var(--c-white);
}

/* Mobil: Menü als ausklappbare Fläche unter dem Header */
@media (max-width: 899px) {
    .primary-nav {
        display: none;
        position: fixed;
        inset: 4.25rem 0 0;
        padding: 1.5rem var(--gutter) 2rem;
        background: var(--c-white);
        overflow-y: auto;
    }

    .admin-bar .primary-nav {
        inset-block-start: calc(4.25rem + 46px);
    }

    .primary-nav.is-open {
        display: block;
    }

    .primary-nav li a {
        display: block;
        padding: 0.85rem 0;
        border-bottom: 1px solid var(--c-border);
        font-size: var(--fs-lg);
    }

    .primary-nav .sub-menu a {
        padding-left: 1rem;
        font-size: var(--fs-base);
    }

    .primary-nav__cta {
        margin-top: 1.5rem;
        width: 100%;
    }
}

/* Desktop: horizontale Navigation, Untermenüs bei Hover/Fokus */
@media (min-width: 900px) {
    .nav-toggle {
        display: none;
    }

    .primary-nav {
        display: flex;
        align-items: center;
        gap: 1.75rem;
    }

    .primary-nav > ul {
        display: flex;
        gap: 1.75rem;
    }

    .primary-nav li {
        position: relative;
    }

    .primary-nav .sub-menu {
        position: absolute;
        top: 100%;
        left: -1rem;
        min-width: 15rem;
        padding: 0.5rem;
        background: var(--c-white);
        border: 1px solid var(--c-border);
        border-radius: var(--radius-sm);
        box-shadow: var(--shadow);
        opacity: 0;
        visibility: hidden;
        transform: translateY(6px);
        transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
    }

    .primary-nav li:hover > .sub-menu,
    .primary-nav li:focus-within > .sub-menu {
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .primary-nav .sub-menu a {
        display: block;
        padding: 0.5rem 0.75rem;
        border-radius: 6px;
    }

    .primary-nav .sub-menu a:hover {
        background: var(--c-surface);
    }
}

/* ---------- Hero ---------- */

.hero {
    position: relative;
    padding-block: clamp(3rem, 8vw, 6.5rem);
    background:
        radial-gradient(60rem 30rem at 85% -10%, rgb(14 165 183 / 16%), transparent 60%),
        radial-gradient(40rem 24rem at -10% 110%, rgb(14 116 144 / 10%), transparent 60%),
        var(--c-surface);
    overflow: hidden;
}

.hero__grid {
    display: grid;
    gap: 2.5rem;
    align-items: center;
}

@media (min-width: 1000px) {
    .hero__grid {
        grid-template-columns: 1.25fr 1fr;
        gap: 4rem;
    }
}

.hero__title {
    max-width: 18ch;
}

.hero__lead {
    max-width: 58ch;
    font-size: var(--fs-lg);
    color: var(--c-muted);
    margin-bottom: 2rem;
}

.hero__panel {
    padding: clamp(1.5rem, 3vw, 2.25rem);
    background: var(--c-white);
    border: 1px solid var(--c-border);
    border-radius: calc(var(--radius) + 4px);
    box-shadow: var(--shadow);
}

.hero__panel-title {
    font-size: var(--fs-h3);
    margin-bottom: 1.25rem;
}

.hero__panel-link {
    display: inline-block;
    margin-top: 1.25rem;
    font-weight: 600;
    text-decoration: none;
}

.steps {
    counter-reset: step;
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 1rem;
}

.steps li {
    counter-increment: step;
    display: grid;
    grid-template-columns: 2.25rem 1fr;
    column-gap: 0.9rem;
}

.steps li::before {
    content: counter(step);
    grid-row: span 2;
    display: grid;
    place-items: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: var(--c-accent-soft);
    color: var(--c-accent);
    font-weight: 700;
}

.steps span {
    color: var(--c-muted);
    font-size: var(--fs-sm);
}

/* ---------- Trust-Leiste ---------- */

.trust {
    list-style: none;
    margin-block: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem 2rem;
    font-weight: 600;
    font-size: var(--fs-sm);
}

.trust li {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.trust .icon {
    color: var(--c-accent-bright);
}

/* ---------- Hubs & Karten ---------- */

.hub {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.75rem;
    background: var(--c-white);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    color: var(--c-text);
    text-decoration: none;
    transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}

.hub:hover {
    color: var(--c-text);
    border-color: transparent;
    box-shadow: var(--shadow-hover);
    transform: translateY(-3px);
}

.hub__icon {
    display: grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    margin-bottom: 0.5rem;
    border-radius: 14px;
    background: var(--c-accent-soft);
    color: var(--c-accent);
}

.hub__title {
    font-size: var(--fs-h3);
    font-weight: 700;
}

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

.card {
    height: 100%;
}

.card__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--c-white);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    overflow: hidden;
    color: var(--c-text);
    text-decoration: none;
    transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}

.card__link:hover {
    color: var(--c-text);
    border-color: transparent;
    box-shadow: var(--shadow-hover);
    transform: translateY(-3px);
}

.card__media {
    aspect-ratio: 16 / 10;
    background: var(--c-surface);
}

.card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card__media--placeholder {
    display: grid;
    place-items: center;
    color: var(--c-accent-bright);
    background: linear-gradient(135deg, var(--c-accent-soft), var(--c-surface));
}

.card__media--placeholder .icon {
    width: 3rem;
    height: 3rem;
}

.card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1.25rem 1.4rem 1.5rem;
}

.card__title {
    font-size: var(--fs-h3);
    margin-bottom: 0.5rem;
}

.card__excerpt {
    color: var(--c-muted);
    font-size: 0.975rem;
    margin-bottom: 1rem;
}

.card__more {
    margin-top: auto;
    color: var(--c-accent);
    font-weight: 600;
    font-size: var(--fs-sm);
}

/* ---------- Artikel ---------- */

.article__header {
    padding-top: clamp(2.5rem, 6vw, 4.5rem);
    margin-bottom: 1.5rem;
}

.article__title {
    margin-bottom: 0.75rem;
}

.article__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 0.5rem;
    color: var(--c-muted);
    font-size: var(--fs-sm);
    margin: 0;
}

.article__media {
    margin-block: 2rem;
}

.article__media img {
    width: 100%;
    border-radius: var(--radius);
}

/* Abstand zum Footer, wenn der Artikel das letzte Element ist; sonst zur Folgesektion. */
.article {
    padding-bottom: var(--space);
}

.ad-notice {
    margin: 0 0 1.5rem;
    padding: 0.85rem 1rem;
    background: var(--c-notice);
    border: 1px solid var(--c-notice-border);
    border-radius: var(--radius-sm);
    font-size: var(--fs-sm);
}

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

/* Fließtext aus dem Block-Editor */
.prose {
    padding-bottom: 1rem;
}

.prose > * + * {
    margin-top: 0;
}

.prose h2 {
    margin-top: 2.25em;
}

.prose h3 {
    margin-top: 1.75em;
}

.prose ul,
.prose ol {
    padding-left: 1.3em;
    margin: 0 0 1.25em;
}

.prose li + li {
    margin-top: 0.35em;
}

.prose li::marker {
    color: var(--c-accent);
}

.prose blockquote {
    margin: 2rem 0;
    padding: 1rem 1.5rem;
    border-left: 4px solid var(--c-accent-bright);
    background: var(--c-surface);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

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

.prose figure {
    margin: 2rem 0;
}

.prose img {
    border-radius: var(--radius-sm);
}

.prose figcaption,
.prose .wp-element-caption {
    margin-top: 0.5rem;
    color: var(--c-muted);
    font-size: var(--fs-sm);
    text-align: center;
}

.prose .alignwide {
    margin-inline: calc(-1 * min(8vw, 120px));
}

.prose .alignfull {
    margin-inline: calc(50% - 50vw);
    max-width: 100vw;
}

.prose .alignfull img {
    border-radius: 0;
}

.prose .wp-block-buttons {
    margin-block: 1.5rem;
}

.prose hr {
    border: 0;
    border-top: 1px solid var(--c-border);
    margin: 2.5rem 0;
}

/*
 * Alte Produktbox aus dem Editor (Spalten-Block mit Klasse „produktbox“):
 * links Produkt, rechts Link mit Gutscheincode. Optisch wie .rwz-product des Plugins.
 */
.prose .produktbox {
    gap: 1rem 1.5rem;
    margin-block: 2rem;
    padding: 1.25rem 1.5rem;
    border: 1px solid var(--c-border);
    border-left: 4px solid var(--c-accent);
    border-radius: var(--radius);
    background: var(--c-white);
    box-shadow: var(--shadow);
}

.prose .produktbox > .wp-block-column {
    align-self: center;
}

.prose .produktbox p {
    margin: 0;
}

/* Produktname als eigene Zeile, die Merkmale darunter gedämpft */
.prose .produktbox > .wp-block-column:first-child p {
    color: var(--c-muted);
    font-size: var(--fs-sm);
}

.prose .produktbox > .wp-block-column:first-child strong {
    display: block;
    margin-bottom: 0.2rem;
    color: var(--c-text);
    font-size: var(--fs-lg);
    line-height: 1.3;
}

/* Rechte Spalte: Button, darunter Code-Chip und Werbehinweis */
.prose .produktbox > .wp-block-column:last-child p {
    color: var(--c-muted);
    font-size: 0.78rem;
    line-height: 2.2;
}

.prose .produktbox a {
    margin-bottom: 0.4rem;
    font-size: var(--fs-base);
}

.prose .produktbox > .wp-block-column:last-child strong {
    display: inline-block;
    padding: 0.15em 0.6em;
    border: 1px dashed var(--c-accent);
    border-radius: 8px;
    background: var(--c-accent-soft);
    color: var(--c-accent);
    font-size: var(--fs-sm);
    line-height: 1.5;
    letter-spacing: 0.04em;
}

@media (min-width: 782px) {
    .prose .produktbox > .wp-block-column:last-child {
        flex: 0 0 auto;
        text-align: right;
    }
}

/* Tabellen (Vergleiche) horizontal scrollbar statt Layout-Bruch */
.wp-block-table {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.prose table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    font-variant-numeric: tabular-nums;
}

.prose th,
.prose td {
    padding: 0.75rem 0.9rem;
    border-bottom: 1px solid var(--c-border);
    text-align: left;
    vertical-align: top;
}

.prose thead th {
    background: var(--c-surface);
    font-weight: 700;
    border-bottom: 2px solid var(--c-border);
}

/* Rahmen des Core-Tabellenblocks durch dezente Zeilenlinien ersetzen. */
.prose .wp-block-table table,
.prose .wp-block-table thead,
.prose .wp-block-table th,
.prose .wp-block-table td {
    border-width: 0;
}

.prose .wp-block-table th,
.prose .wp-block-table td {
    border-bottom: 1px solid var(--c-border);
}

.prose .wp-block-table thead th {
    border-bottom-width: 2px;
}

.prose .wp-block-table td:nth-child(2) {
    font-weight: 600;
}

.prose tbody tr:hover {
    background: rgb(244 248 251 / 60%);
}

/* ---------- Übersichten, Suche, Pagination ---------- */

.listing__header {
    margin-bottom: 2rem;
}

.listing__title {
    margin-bottom: 0.75rem;
}

.search-form {
    display: flex;
    gap: 0.5rem;
    max-width: 32rem;
    margin-block: 1.5rem;
}

.search-form__field {
    flex: 1;
    min-width: 0;
    padding: 0.8em 1.1em;
    border: 1px solid var(--c-border);
    border-radius: 999px;
    font: inherit;
    color: inherit;
    background: var(--c-white);
}

.search-form__field:focus {
    border-color: var(--c-accent);
    outline: 3px solid var(--c-accent-soft);
}

.pagination {
    margin-top: 3rem;
}

.pagination .nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem;
}

.pagination .page-numbers {
    min-width: 2.75rem;
    padding: 0.6rem 0.9rem;
    border: 1px solid var(--c-border);
    border-radius: 999px;
    text-align: center;
    text-decoration: none;
    color: var(--c-text);
}

.pagination .page-numbers.current {
    background: var(--c-text);
    border-color: var(--c-text);
    color: var(--c-white);
}

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

.site-footer {
    padding-top: clamp(3rem, 6vw, 4.5rem);
    background: var(--c-text);
    color: rgb(255 255 255 / 78%);
    font-size: 0.95rem;
}

.site-footer a {
    color: var(--c-white);
    text-decoration: none;
}

.site-footer a:hover {
    text-decoration: underline;
}

.site-footer__grid {
    display: grid;
    gap: 2.5rem;
}

@media (min-width: 800px) {
    .site-footer__grid {
        grid-template-columns: 2fr 1fr 1fr;
        gap: 3rem;
    }
}

.site-footer__about .brand {
    margin-bottom: 1rem;
}

.site-footer__small {
    font-size: var(--fs-sm);
    color: rgb(255 255 255 / 62%);
}

.site-footer__small a {
    text-decoration: underline;
}

.site-footer__heading {
    font-size: var(--fs-sm);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--c-white);
    margin-bottom: 1rem;
}

.site-footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.6rem;
}

.site-footer__bottom {
    margin-top: 3rem;
    padding-block: 1.5rem;
    border-top: 1px solid rgb(255 255 255 / 12%);
    font-size: var(--fs-sm);
    color: rgb(255 255 255 / 55%);
}

/* ---------- Bewegung reduzieren ---------- */

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

/* ==========================================================================
   Startseite: Gutschein-Landingpage
   ========================================================================== */

@media (min-width: 1000px) {
    .hero__grid {
        grid-template-columns: 1.2fr 1fr;
    }
}

.section__lead {
    max-width: 62ch;
    margin-top: -0.75rem;
    margin-bottom: 2rem;
    color: var(--c-muted);
}

/* Drei Schritte */
.step-cards {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: step-card;
}

.step-card {
    counter-increment: step-card;
    position: relative;
    padding: 1.75rem 1.5rem 1.5rem;
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    background: var(--c-white);
}

.step-card::before {
    content: counter(step-card);
    display: grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    margin-bottom: 1rem;
    border-radius: 50%;
    background: var(--c-accent);
    color: var(--c-white);
    font-weight: 700;
}

.step-card__title {
    margin-bottom: 0.4rem;
}

.step-card__text {
    margin: 0;
    color: var(--c-muted);
}

/* Fünf Filterstufen als Wasserweg */
.stages {
    position: relative;
    padding-left: 2.25rem;
}

.stages::before {
    content: "";
    position: absolute;
    top: 0.6rem;
    bottom: 0.6rem;
    left: 0.6rem;
    width: 6px;
    border-radius: 3px;
    background: linear-gradient(180deg, #b9c7d1, var(--c-accent-bright) 55%, #7fd6e8);
}

.stages__end {
    position: relative;
    margin: 0 0 1rem;
    font-size: var(--fs-sm);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--c-muted);
}

.stages__end--out {
    margin: 1rem 0 0;
    color: var(--c-accent);
}

.stages__end::before {
    content: "";
    position: absolute;
    left: -2.05rem;
    top: 0.2em;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background: var(--c-white);
    border: 3px solid currentcolor;
}

.stages__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.75rem;
    counter-reset: stage;
}

.stages__item {
    counter-increment: stage;
    position: relative;
    padding: 1.1rem 1.25rem;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-sm);
    background: var(--c-white);
}

.stages__item::before {
    content: counter(stage);
    position: absolute;
    left: -2.3rem;
    top: 1.1rem;
    display: grid;
    place-items: center;
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 50%;
    background: var(--c-accent);
    color: var(--c-white);
    font-size: 0.8rem;
    font-weight: 700;
}

.stages__title {
    margin-bottom: 0.3rem;
    font-size: var(--fs-lg);
}

.stages__text {
    margin: 0;
}

.stages__note {
    margin: 0.5rem 0 0;
    color: var(--c-muted);
    font-size: var(--fs-sm);
}

/* Sparrechner auf dunklem Grund */
.section--deep {
    background:
        radial-gradient(40rem 20rem at 100% 0%, rgb(14 165 183 / 35%), transparent 70%),
        var(--c-text);
    color: rgb(255 255 255 / 85%);
}

.section--deep .section__title {
    color: var(--c-white);
}

.calc {
    display: grid;
    gap: 2rem;
    align-items: start;
}

@media (min-width: 1000px) {
    .calc {
        grid-template-columns: 1fr 1.3fr;
        gap: 4rem;
    }
}

.calc__card {
    display: grid;
    gap: 1.25rem;
    padding: clamp(1.5rem, 3vw, 2rem);
    border-radius: calc(var(--radius) + 4px);
    background: var(--c-white);
    color: var(--c-text);
}

.calc__field {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.4rem 1rem;
    align-items: baseline;
}

.calc__field label {
    font-weight: 600;
}

.calc__field output {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--c-accent);
}

.calc__field input[type="range"] {
    grid-column: 1 / -1;
    width: 100%;
    accent-color: var(--c-accent);
}

.calc__result {
    display: grid;
    gap: 0.5rem;
    margin: 0.5rem 0 0;
    padding-top: 1rem;
    border-top: 1px solid var(--c-border);
}

.calc__result > div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

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

.calc__result dd {
    margin: 0;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.calc__saving {
    margin-top: 0.4rem;
    padding: 0.85rem 1rem;
    border-radius: var(--radius-sm);
    background: var(--c-accent-soft);
}

.calc__saving dt {
    color: var(--c-text);
    font-weight: 600;
}

.calc__saving dd {
    color: var(--c-accent);
    font-size: 1.35rem;
}

.calc__note {
    margin: 0;
    color: var(--c-muted);
    font-size: 0.8rem;
    line-height: 1.5;
}

/* Vergleich und FAQ aus dem Seiteninhalt */
.front-content > h2:first-child {
    margin-top: 0;
}

.prose .wp-block-details {
    margin: 0;
    border-bottom: 1px solid var(--c-border);
}

.prose .wp-block-details:first-of-type {
    border-top: 1px solid var(--c-border);
}

.prose .wp-block-details summary {
    position: relative;
    padding: 1rem 2.5rem 1rem 0;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
}

.prose .wp-block-details summary::-webkit-details-marker {
    display: none;
}

.prose .wp-block-details summary::after {
    content: "+";
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--c-accent);
    font-size: 1.5rem;
    font-weight: 400;
}

.prose .wp-block-details[open] summary::after {
    content: "–";
}

.prose .wp-block-details > :not(summary) {
    margin-top: 0;
    padding-bottom: 1rem;
    color: var(--c-muted);
}

/* Band zum Finder */
.finder-band {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 2rem;
    margin-bottom: var(--space);
    padding: clamp(1.25rem, 3vw, 2rem);
    border-radius: var(--radius);
    background: var(--c-white);
    border: 1px solid var(--c-border);
}

.finder-band__title {
    margin-bottom: 0.3rem;
    font-size: var(--fs-h3);
}

.finder-band p {
    margin: 0;
    color: var(--c-muted);
}
/* Werbehinweis direkt unter dem Hero der Startseite */
.front-notice {
    padding-top: 1.5rem;
}

.front-notice .ad-notice {
    margin-bottom: 0;
}
