/* Nidoa — Website
   Markenfarben stammen aus plugin-branding.css der Anwendung (neufeld-core),
   damit Seite und Produkt zusammenpassen: #296d78 / #255470 / #16444b. */

:root {
    --ink: #16444b;
    --teal: #296d78;
    --blue: #255470;
    --paper: #f6f1e8;
    --paper-deep: #ece4d6;
    --ochre: #c2762f;
    --ochre-soft: #e8b57a;
    --rule: rgba(22, 68, 75, .16);
    --measure: 64ch;

    --step--1: clamp(.82rem, .79rem + .15vw, .92rem);
    --step-0: clamp(1rem, .95rem + .25vw, 1.15rem);
    --step-1: clamp(1.2rem, 1.1rem + .5vw, 1.5rem);
    --step-2: clamp(1.5rem, 1.3rem + 1vw, 2.1rem);
    --step-3: clamp(2rem, 1.6rem + 2vw, 3.2rem);
    --step-4: clamp(2.6rem, 1.9rem + 3.6vw, 5.4rem);
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: 'Karla', 'Helvetica Neue', sans-serif;
    font-size: var(--step-0);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Papierkorn ueber allem — gibt der Flaeche Textur statt Farbfeld */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9;
    opacity: .35;
    mix-blend-mode: multiply;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}

h1,
h2,
h3 {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -.015em;
    margin: 0;
    font-variation-settings: 'SOFT' 20, 'WONK' 1;
}

p {
    margin: 0 0 1.1em;
    max-width: var(--measure);
}

a {
    color: inherit;
}

.wrap {
    width: min(100% - 2.5rem, 1180px);
    margin-inline: auto;
}

.eyebrow {
    font-size: var(--step--1);
    text-transform: uppercase;
    letter-spacing: .18em;
    font-weight: 700;
    color: var(--teal);
    display: flex;
    align-items: center;
    gap: .8rem;
}

.eyebrow::before {
    content: "";
    width: 2.2rem;
    height: 2px;
    background: var(--ochre);
    flex: none;
}

/* ---------- Kopfzeile ---------- */
header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(246, 241, 232, .88);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--rule);
}

.bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .85rem 0;
}

/* Das Logo bringt den Schriftzug und einen weissen Hintergrund mit (kein Alphakanal).
   Deshalb bewusst als weisses Feld gesetzt statt freigestellt — und ohne
   zusaetzlichen Text daneben, der ihn doppeln wuerde. */
.brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    background: #fff;
    border-radius: 7px;
    padding: .3rem .5rem;
    line-height: 0;
    box-shadow: 0 1px 0 rgba(22, 68, 75, .08);
}

.brand img {
    height: 30px;
    width: auto;
    display: block;
}

nav {
    display: flex;
    align-items: center;
    gap: 1.6rem;
    font-size: var(--step--1);
    font-weight: 500;
}

nav a {
    text-decoration: none;
    opacity: .75;
    transition: opacity .2s;
}

nav a:hover {
    opacity: 1;
}

@media (max-width:760px) {
    nav .hide-sm {
        display: none;
    }
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .7rem 1.35rem;
    border-radius: 999px;
    background: var(--ink);
    color: var(--paper);
    text-decoration: none;
    font-weight: 700;
    font-size: var(--step--1);
    font-family: inherit;
    border: 1px solid var(--ink);
    cursor: pointer;
    transition: transform .18s ease, background .18s ease;
}

.btn:hover {
    transform: translateY(-2px);
    background: var(--teal);
    border-color: var(--teal);
}

.btn-ghost {
    background: transparent;
    color: var(--ink);
    border-color: var(--rule);
}

.btn-ghost:hover {
    background: var(--ink);
    color: var(--paper);
}

.btn-wide {
    width: 100%;
    justify-content: center;
}

/* ---------- Buehne ---------- */
.hero {
    position: relative;
    padding: clamp(3.5rem, 7vw, 7rem) 0 clamp(3rem, 6vw, 5.5rem);
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    right: -14vw;
    top: -12vw;
    width: 58vw;
    height: 58vw;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, rgba(41, 109, 120, .20), rgba(37, 84, 112, .05) 60%, transparent 72%);
    pointer-events: none;
}

.hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: center;
}

@media (max-width:900px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }
}

h1 {
    font-size: var(--step-4);
    margin: 1.4rem 0 0;
}

h1 em {
    font-style: italic;
    color: var(--teal);
    position: relative;
    white-space: nowrap;
}

h1 em::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: .08em;
    height: .14em;
    background: var(--ochre-soft);
    z-index: -1;
    transform: scaleX(0);
    transform-origin: left;
    animation: swipe .8s cubic-bezier(.2, .8, .3, 1) 1s forwards;
}

@keyframes swipe {
    to {
        transform: scaleX(1);
    }
}

.lede {
    font-size: var(--step-1);
    line-height: 1.5;
    margin-top: 1.5rem;
    max-width: 46ch;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .8rem;
    margin-top: 2rem;
}

/* Notizzettel-Karte: der Einsatz, wie ihn ein Elternteil sieht */
.card-note {
    position: relative;
    background: #fff;
    border: 1px solid var(--rule);
    border-radius: 4px;
    padding: 1.6rem 1.5rem 1.4rem;
    box-shadow: 0 1px 0 var(--paper-deep), 0 18px 40px -24px rgba(22, 68, 75, .55);
    transform: rotate(-1.4deg);
}

.card-note::before {
    content: "";
    position: absolute;
    inset: 0;
    border-left: 4px solid var(--teal);
    border-radius: 4px 0 0 4px;
}

.card-note h3 {
    font-size: var(--step-1);
    margin-bottom: .2rem;
}

.note-meta {
    font-size: var(--step--1);
    opacity: .65;
    margin-bottom: 1.1rem;
}

.note-body {
    font-size: var(--step--1);
    opacity: .78;
    margin-bottom: 1.2rem;
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin-bottom: 1.2rem;
}

.chip {
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    padding: .28rem .6rem;
    border-radius: 999px;
    background: rgba(41, 109, 120, .1);
    color: var(--teal);
}

.chip-ochre {
    background: rgba(194, 118, 47, .14);
    color: var(--ochre);
}

.slots {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    border-top: 1px dashed var(--rule);
    padding-top: .9rem;
    font-size: var(--step--1);
}

.slots b {
    font-family: 'Fraunces', serif;
    font-size: 1.5rem;
}

/* ---------- Problemaufriss ---------- */
.band {
    background: var(--ink);
    color: var(--paper);
    padding: clamp(3rem, 6vw, 5rem) 0;
}

.band h2 {
    font-size: var(--step-3);
    max-width: 20ch;
    margin-bottom: 1.5rem;
}

.band .eyebrow {
    color: var(--ochre-soft);
}

.band-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: start;
}

@media (max-width:860px) {
    .band-grid {
        grid-template-columns: 1fr;
    }
}

.band p {
    opacity: .85;
}

.pains {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: .1rem;
}

.pains li {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(246, 241, 232, .16);
    font-size: var(--step-0);
}

.pains li:first-child {
    border-top: 1px solid rgba(246, 241, 232, .16);
}

.pains span {
    font-family: 'Fraunces', serif;
    color: var(--ochre-soft);
    font-size: .95rem;
    padding-top: .2rem;
    flex: none;
}

/* ---------- Abschnitte ---------- */
section {
    padding: clamp(3.5rem, 7vw, 6.5rem) 0;
}

.on-white {
    background: #fff;
    border-block: 1px solid var(--rule);
}

.sec-head {
    margin-bottom: clamp(2rem, 4vw, 3.2rem);
}

.sec-head h2 {
    font-size: var(--step-3);
    margin-top: 1rem;
    max-width: 22ch;
}

.sec-head p {
    margin-top: 1rem;
    font-size: var(--step-1);
    line-height: 1.5;
    opacity: .8;
    max-width: 52ch;
}

/* Zwei Zielgruppen */
.audience {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: clamp(1.2rem, 3vw, 2.2rem);
}

.aud {
    background: #fff;
    border: 1px solid var(--rule);
    border-radius: 6px;
    padding: clamp(1.6rem, 3vw, 2.4rem);
    position: relative;
    overflow: hidden;
}

.aud::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--teal);
}

.aud.b::before {
    background: var(--ochre);
}

.aud h3 {
    font-size: var(--step-2);
    margin-bottom: .3rem;
}

.aud>p {
    opacity: .75;
    font-size: var(--step--1);
    margin-bottom: 1.4rem;
}

.aud ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: .9rem;
}

/* Einrueckung statt Grid: In einem Grid-Container wird jeder Textabschnitt zu einem
   eigenen Element — der Fliesstext hinter dem <b> landete dadurch in der schmalen
   Markierungsspalte und brach nach jedem Wort um. */
.aud li {
    position: relative;
    padding-left: 1.5rem;
    font-size: var(--step--1);
    line-height: 1.55;
}

.aud li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .52rem;
    width: 9px;
    height: 9px;
    border-radius: 2px;
    background: var(--teal);
    transform: rotate(45deg);
}

.aud.b li::before {
    background: var(--ochre);
}

.aud li b {
    display: block;
    font-weight: 700;
}

/* Ablauf */
.steps {
    counter-reset: s;
    display: grid;
    gap: 0;
}

.step {
    counter-increment: s;
    display: grid;
    grid-template-columns: clamp(3.5rem, 7vw, 6rem) minmax(0, 1fr);
    gap: clamp(1rem, 3vw, 2.5rem);
    padding: clamp(1.4rem, 3vw, 2.2rem) 0;
    border-top: 1px solid var(--rule);
    align-items: start;
}

.step:last-child {
    border-bottom: 1px solid var(--rule);
}

.step::before {
    content: "0" counter(s);
    font-family: 'Fraunces', serif;
    font-size: var(--step-2);
    color: var(--ochre);
    line-height: 1;
}

.step h3 {
    font-size: var(--step-1);
    margin-bottom: .4rem;
}

.step p {
    margin: 0;
    opacity: .78;
    font-size: var(--step--1);
    max-width: 58ch;
}

/* Merkmale — 300px Mindestbreite ergibt im 1180px-Raster genau drei Spalten (3x2)
   statt vier mit angebrochener zweiter Reihe. */
.feats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1px;
    background: var(--rule);
    border: 1px solid var(--rule);
    border-radius: 6px;
    overflow: hidden;
}

.feat {
    background: var(--paper);
    padding: clamp(1.5rem, 3vw, 2.1rem);
    transition: background .25s ease;
}

.feat:hover {
    background: #fff;
}

.feat h3 {
    font-size: var(--step-1);
    margin-bottom: .55rem;
}

.feat p {
    margin: 0;
    font-size: var(--step--1);
    opacity: .78;
    line-height: 1.6;
}

.feat .ico {
    width: 30px;
    height: 30px;
    margin-bottom: 1rem;
    color: var(--teal);
}

/* Kontakt */
.contact {
    background: var(--paper-deep);
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: start;
}

@media (max-width:860px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

.contact-h {
    font-size: var(--step-3);
    margin: 1rem 0;
}

.contact-direct {
    margin-top: 1.6rem;
}

.contact-direct a {
    color: var(--teal);
    font-weight: 700;
}

form {
    background: #fff;
    border: 1px solid var(--rule);
    border-radius: 6px;
    padding: clamp(1.5rem, 3vw, 2.3rem);
}

.row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width:560px) {
    .row {
        grid-template-columns: 1fr;
    }
}

.fld {
    margin-bottom: 1.1rem;
}

label {
    display: block;
    font-size: var(--step--1);
    font-weight: 700;
    margin-bottom: .35rem;
}

input,
select,
textarea {
    width: 100%;
    font: inherit;
    font-size: var(--step--1);
    color: var(--ink);
    padding: .72rem .85rem;
    border: 1px solid var(--rule);
    border-radius: 4px;
    background: var(--paper);
    transition: border-color .18s, box-shadow .18s;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(41, 109, 120, .16);
}

textarea {
    min-height: 130px;
    resize: vertical;
}

.hp {
    position: absolute;
    left: -9999px;
    opacity: 0;
}

.consent {
    font-size: .8rem;
    opacity: .7;
    line-height: 1.5;
    margin: 0 0 1.2rem;
}

/* ---------- Rechtstexte (Impressum, Datenschutz) ---------- */
.legal {
    padding: clamp(3rem, 6vw, 5rem) 0 clamp(3rem, 6vw, 5rem);
}

.legal h1 {
    font-size: var(--step-3);
    margin: 1rem 0 2rem;
}

.prose {
    max-width: 70ch;
}

.prose h2 {
    font-size: var(--step-1);
    margin: 2.4rem 0 .7rem;
}

.prose h3 {
    font-size: var(--step-0);
    font-family: 'Karla', sans-serif;
    font-weight: 700;
    margin: 1.6rem 0 .4rem;
}

.prose p,
.prose li {
    max-width: 70ch;
}

.prose ul {
    padding-left: 1.2rem;
}

.prose li {
    margin-bottom: .4rem;
}

.prose a {
    color: var(--teal);
    font-weight: 500;
}

/* Fusszeile */
footer {
    background: var(--ink);
    color: var(--paper);
    padding: clamp(2.5rem, 5vw, 4rem) 0 2rem;
}

.foot-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(246, 241, 232, .16);
}

footer nav {
    gap: 1.4rem;
    flex-wrap: wrap;
}

footer a {
    opacity: .8;
}

.foot-claim {
    opacity: .7;
    font-size: var(--step--1);
    margin: .8rem 0 0;
    max-width: 34ch;
}

.foot-note {
    padding-top: 1.5rem;
    font-size: var(--step--1);
    opacity: .6;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
}

/* Einblendungen — nur wenn JavaScript laeuft.
   Die Klasse "js" setzt ein Inline-Skript ganz oben im <head>. Ohne JavaScript
   greift keine dieser Regeln und die Seite ist vollstaendig sichtbar; andernfalls
   bliebe alles unterhalb der Buehne dauerhaft unsichtbar, weil das Einblenden
   vom IntersectionObserver abhaengt. */
.js .rise {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .7s cubic-bezier(.2, .8, .3, 1), transform .7s cubic-bezier(.2, .8, .3, 1);
}

.js .rise.in {
    opacity: 1;
    transform: none;
}

.js .hero .rise {
    animation: rise .9s cubic-bezier(.2, .8, .3, 1) forwards;
    transition: none;
}

.js .hero .rise:nth-child(1) {
    animation-delay: .05s;
}

.js .hero .rise:nth-child(2) {
    animation-delay: .15s;
}

.js .hero .rise:nth-child(3) {
    animation-delay: .25s;
}

.js .hero .rise:nth-child(4) {
    animation-delay: .35s;
}

.js .hero-art {
    animation: rise 1s cubic-bezier(.2, .8, .3, 1) .45s forwards;
    opacity: 0;
}

@keyframes rise {
    to {
        opacity: 1;
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-delay: 0ms !important;
        transition-duration: .01ms !important;
    }

    .js .rise,
    .js .hero-art {
        opacity: 1 !important;
        transform: none !important;
    }

    h1 em::after {
        transform: scaleX(1);
    }
}

.skip {
    position: absolute;
    left: -9999px;
}

.skip:focus {
    left: 1rem;
    top: 1rem;
    z-index: 99;
    background: var(--ink);
    color: var(--paper);
    padding: .7rem 1rem;
    border-radius: 4px;
}

/* Rueckmeldung unter dem Kontaktformular. Leer und damit unsichtbar, solange
   nichts zu melden ist — :empty verhindert, dass ein Abstand entsteht. */
.form-status {
    margin: .9rem 0 0;
    font-size: .95rem;
    line-height: 1.5;
    color: var(--ink);
}

.form-status:empty {
    display: none;
}

.form-status.ist-fehler {
    color: #8c2f1d;
}

.form-status.ist-fehler a {
    color: inherit;
}

/* ---------- Haeufige Fragen ----------
   <details>/<summary> statt JavaScript: klappt ohne Skript auf, ist per Tastatur
   bedienbar und Bildschirmleser kennen den Zustand von Haus aus. Der Browser
   findet beim Suchen (Strg+F) seit einiger Zeit auch Text in zugeklappten
   Abschnitten und oeffnet sie selbst. */
.faq {
    max-width: 78ch;
    border-top: 1px solid var(--rule);
}

.faq details {
    border-bottom: 1px solid var(--rule);
}

.faq summary {
    cursor: pointer;
    list-style: none;
    padding: 1.15rem 2.5rem 1.15rem 0;
    position: relative;
    font-family: 'Fraunces', serif;
    font-size: var(--step-1);
    line-height: 1.35;
    transition: color .2s ease;
}

/* Das Standard-Dreieck beider Engines abschalten — wir zeichnen ein eigenes. */
.faq summary::-webkit-details-marker {
    display: none;
}

.faq summary:hover {
    color: var(--teal);
}

.faq summary:focus-visible {
    outline: 2px solid var(--teal);
    outline-offset: 3px;
    border-radius: 3px;
}

/* Plus, das beim Oeffnen zum Minus wird: zwei Striche, einer dreht sich weg. */
.faq summary::before,
.faq summary::after {
    content: "";
    position: absolute;
    right: .35rem;
    top: 50%;
    width: 15px;
    height: 2px;
    background: var(--ochre);
    transition: transform .25s ease, opacity .25s ease;
}

.faq summary::before {
    transform: translateY(-50%);
}

.faq summary::after {
    transform: translateY(-50%) rotate(90deg);
}

.faq details[open] summary::after {
    transform: translateY(-50%) rotate(0deg);
    opacity: 0;
}

.faq details[open] summary {
    color: var(--teal);
}

.faq details p {
    margin: 0 0 1.3rem;
    padding-right: 2.5rem;
    max-width: 62ch;
    opacity: .85;
}

@media (prefers-reduced-motion: reduce) {

    .faq summary,
    .faq summary::before,
    .faq summary::after {
        transition: none;
    }
}

/* Vier Kacheln: zwei Spalten statt auto-fit, sonst bleibt in der zweiten Reihe
   die Haelfte des Gitters leer. */
.feats.zwei {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width:760px) {
    .feats.zwei {
        grid-template-columns: 1fr;
    }
}

/* ---------- Referenz ----------
   Zweispaltig: links die Erzaehlung, rechts eine Karte mit nachpruefbaren Angaben.
   Die Karte ist bewusst schmal (keine 1fr-Haelfte) — sie soll wie ein Beleg neben
   dem Text wirken, nicht wie eine zweite Spalte Fliesstext. */
.ref-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: start;
}

@media (max-width:860px) {
    .ref-grid {
        grid-template-columns: 1fr;
    }
}

.ref-grid h2 {
    font-size: var(--step-2);
    max-width: 22ch;
    margin: 0 0 1.2rem;
}

.ref-grid p {
    max-width: 56ch;
}

.ref-note {
    border-left: 3px solid var(--ochre-soft);
    padding-left: 1rem;
    opacity: .85;
}

.ref-karte {
    background: var(--paper);
    border: 1px solid var(--rule);
    border-radius: 14px;
    padding: 1.6rem 1.7rem;
    /* Leicht angehoben gegen den Text — die Karte ist der Beleg, nicht die Fussnote. */
    box-shadow: 0 18px 40px -32px rgba(22, 68, 75, .7);
}

.ref-k {
    font-family: 'Fraunces', Georgia, serif;
    font-size: var(--step-1);
    margin: 0 0 1.1rem;
    color: var(--teal);
}

.ref-fakten {
    margin: 0;
    display: grid;
    gap: .9rem;
}

.ref-fakten div {
    display: grid;
    gap: .1rem;
}

.ref-fakten dt {
    font-size: var(--step--1);
    letter-spacing: .08em;
    text-transform: uppercase;
    opacity: .6;
}

.ref-fakten dd {
    margin: 0;
    font-weight: 600;
}

.ref-fuss {
    margin: 1.4rem 0 0;
    padding-top: 1.1rem;
    border-top: 1px solid var(--rule);
    font-size: var(--step--1);
    opacity: .75;
}
