/* Autismus-Netzwerk · Fassung 1 · 12.10.2026 – Farben und Aufbau wie das Autismus-Forum, ohne Karte (Helge 06:23) */
:root {
  --blau: #003366; --blau-2: #0b4a80; --blau-mittel: #5a7fa6; --hell: #eef3f8; --rand: #c9d6e4;
  --text: #1d2733; --grau: #4a5560; --karte: #fff; --dunkel: rgba(0, 25, 55, .62); --fokus: #ffbf47;
  --herz: #d6455d; --linie: rgba(255, 255, 255, .78); --fehler: #a4161a; --gruen: #2e7d32;
}
* { box-sizing: border-box; }
html { font-size: 100%; -webkit-text-size-adjust: 100%; background: #46678d; }
html.nw-dunkel { background: #1b2c3f; }
body {
  margin: 0; min-height: 100vh; font-family: Arial, Helvetica, sans-serif; color: var(--text); line-height: 1.55;
  background: linear-gradient(rgba(0, 0, 0, .22), rgba(0, 0, 0, .22)), linear-gradient(135deg, #003366, #5a7fa6 62%, #e6e6e6);
  background-attachment: fixed;
}
a { color: var(--blau); }
:focus-visible { outline: 3px solid var(--fokus); outline-offset: 3px; border-radius: 6px; }
.nw-sprung { position: absolute; left: -9999px; top: 0; background: #fff; padding: .6rem 1rem; z-index: 300; border-radius: 8px; }
.nw-sprung:focus { left: 1rem; top: 1rem; }
.nw-unsichtbar { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Bereich 1: Hilfen oben links (wie im Forum) ---------- */
.nw-hilfen { position: fixed; top: 20px; left: 20px; z-index: 200; display: flex; gap: 4px; background: var(--dunkel); padding: 6px; border-radius: 14px; box-shadow: 0 8px 22px rgba(0, 0, 0, .25); }
.nw-hilfen button { display: inline-flex; align-items: center; gap: 8px; background: transparent; border: 0; color: #fff; font: inherit; font-weight: bold; font-size: .95rem; padding: .55rem .8rem; border-radius: 10px; cursor: pointer; }
.nw-hilfen button:hover, .nw-hilfen button[aria-pressed="true"] { background: rgba(255, 255, 255, .18); }
.nw-hilfen svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Bereich 2: Stiftung oben rechts ---------- */
.nw-stiftung { position: fixed; top: 20px; right: 25px; z-index: 200; display: flex; align-items: center; gap: 14px; background: rgba(255, 255, 255, .97); padding: 12px 18px; border-radius: 14px; text-decoration: none; box-shadow: 0 10px 26px rgba(0, 0, 0, .28); }
.nw-stiftung img { display: block; width: 144px; height: 58px; object-fit: contain; }
.nw-stiftung > span { display: flex; flex-direction: column; }
.nw-stiftung strong { color: #061b4d; font-size: 1.125rem; line-height: 1.2; }
.nw-stiftung span span { color: #6b2f90; font-size: .875rem; font-weight: bold; }

/* ---------- Bereich 3: Mitte ---------- */
.nw-mitte { width: 100%; max-width: 1480px; margin: 0 auto; padding: 118px 28px 0; min-height: 100vh; display: flex; flex-direction: column; }
.nw-kopf { text-align: center; color: #fff; max-width: 1000px; margin: 0 auto; }
.nw-kopf h1 { font-size: clamp(2.8rem, 5.4vw, 5.8rem); line-height: 1.05; margin: 0 0 .25em; letter-spacing: -.01em; text-shadow: 0 4px 16px rgba(0, 0, 0, .3); }
.nw-unter { font-size: clamp(1.15rem, 1.6vw, 1.45rem); margin: 0 0 .2em; text-shadow: 0 2px 8px rgba(0, 0, 0, .25); }
.nw-unter2 { font-size: clamp(1.05rem, 1.35vw, 1.25rem); margin: 0 0 1.2em; opacity: .95; text-shadow: 0 2px 8px rgba(0, 0, 0, .25); }
.nw-kopf-klein { padding-bottom: 6px; }
.nw-kopf-klein h1 { font-size: clamp(2.2rem, 4vw, 3.8rem); }
.nw-marke { margin: 0 0 .3em; font-size: 1.3rem; font-weight: bold; }
.nw-marke a, .nw-pfad a { color: #fff; text-decoration: none; text-shadow: 0 2px 8px rgba(0, 0, 0, .3); }
.nw-marke a:hover, .nw-pfad a:hover { text-decoration: underline; }
.nw-pfad { font-size: 1rem; margin-bottom: .6em; color: rgba(255, 255, 255, .92); }

.nw-leicht { display: none; text-align: left; background: rgba(255, 255, 255, .96); color: var(--text); border-radius: 16px; padding: 18px 24px; margin: 0 auto 18px; max-width: 760px; box-shadow: 0 10px 26px rgba(0, 0, 0, .2); }
.nw-leicht h2 { color: var(--blau); font-size: 1.35rem; margin: 0 0 .4em; }
.nw-leicht p { font-size: 1.2rem; line-height: 1.7; margin: .5em 0; }
html.nw-leicht .nw-leicht { display: block; }

.nw-suche { display: flex; gap: 10px; max-width: 760px; margin: 0 auto 8px; }
.nw-suche input { flex: 1; min-width: 0; font: inherit; font-size: 1.1rem; padding: .85rem 1.1rem; border: 0; border-radius: 14px; background: #fff; color: var(--text); box-shadow: 0 10px 26px rgba(0, 0, 0, .22); }
.nw-knopf { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--blau); color: #fff; border: 2px solid var(--blau); border-radius: 14px; padding: .8rem 1.4rem; font: inherit; font-weight: bold; font-size: 1.05rem; text-decoration: none; cursor: pointer; box-shadow: 0 8px 20px rgba(0, 0, 0, .18); }
.nw-knopf:hover { background: #00264d; border-color: #00264d; color: #fff; }
.nw-knopf.nw-zweit { background: #fff; color: var(--blau); box-shadow: none; }
.nw-knopf.nw-zweit:hover { background: var(--hell); color: var(--blau); }

/* ---------- Das Netz: Herz in der Mitte, acht Hauptarme ringsum ---------- */
.nw-netz {
  position: relative; display: grid; gap: 34px 46px; margin: 34px auto 10px; width: 100%;
  grid-template-columns: 1fr minmax(250px, .82fr) 1fr;
  grid-template-areas: "p1 p2 p3" "p8 herz p4" "p7 p6 p5";
  align-items: center;
}
.nw-linien { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; overflow: visible; }
.nw-linien path { fill: none; stroke: var(--linie); stroke-width: 2.4; stroke-linecap: round; transition: stroke-width .25s, stroke .25s, opacity .25s; }
.nw-linien path.nw-fluss { stroke: #fff; stroke-width: 2.4; stroke-dasharray: 2 14; opacity: .9; }
.nw-linien circle { fill: #fff; }
.nw-linien .nw-aktiv { stroke: #ffd77a; stroke-width: 4; }
.nw-linien .nw-gedimmt { opacity: .25; }
.nw-p1 { grid-area: p1; } .nw-p2 { grid-area: p2; } .nw-p3 { grid-area: p3; } .nw-p4 { grid-area: p4; }
.nw-p5 { grid-area: p5; } .nw-p6 { grid-area: p6; } .nw-p7 { grid-area: p7; } .nw-p8 { grid-area: p8; }

.nw-arm { position: relative; z-index: 1; background: var(--karte); border-radius: 18px; padding: 16px 18px 12px; box-shadow: 0 14px 34px rgba(0, 20, 50, .24); transition: transform .2s, box-shadow .2s, opacity .2s; max-width: 430px; width: 100%; justify-self: center; }
.nw-arm:hover, .nw-arm.nw-aktiv { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(0, 20, 50, .32); }
.nw-arm.nw-gedimmt { opacity: .45; }
.nw-arm-kopf { display: flex; align-items: center; justify-content: space-between; gap: 10px; text-decoration: none; color: var(--blau); }
.nw-arm-name { font-size: 1.22rem; font-weight: bold; line-height: 1.25; }
.nw-zahl { flex: none; min-width: 2.1em; text-align: center; background: var(--blau); color: #fff; border-radius: 999px; font-size: .9rem; font-weight: bold; padding: .15em .6em; }
.nw-arm-kurz { margin: .25em 0 .5em; color: var(--grau); font-size: .95rem; }
.nw-zweige { list-style: none; margin: 0; padding: 0 0 0 16px; border-left: 2px solid var(--rand); }
.nw-zweige li { position: relative; }
.nw-zweige li::before { content: ""; position: absolute; left: -16px; top: 50%; width: 12px; border-top: 2px solid var(--rand); }
.nw-zweige a { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: .32rem .55rem; border-radius: 9px; color: var(--text); text-decoration: none; font-size: 1rem; }
.nw-zweige a::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--blau-mittel); margin-right: 2px; }
.nw-zweige a span { flex: 1; }
.nw-zweige a em { font-style: normal; font-size: .85rem; font-weight: bold; color: var(--blau); }
.nw-zweige a:hover { background: var(--hell); color: var(--blau); }
.nw-zweige li.nw-treffer a { background: #fff4d6; }

.nw-herz { grid-area: herz; position: relative; z-index: 2; justify-self: center; width: min(250px, 100%); aspect-ratio: 1; border-radius: 50%; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 18px; box-shadow: 0 0 0 12px rgba(255, 255, 255, .28), 0 0 0 26px rgba(255, 255, 255, .12), 0 18px 44px rgba(0, 20, 50, .35); }
.nw-herz svg { width: 74px; height: 66px; fill: var(--herz); margin-bottom: 6px; }
.nw-herz strong { color: var(--blau); font-size: 1.45rem; }
.nw-herz span { color: var(--grau); font-size: .92rem; }

/* ---------- Bereich 4 und Knopf: unten ---------- */
.nw-eintragen-knopf { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 12px; background: #fff; color: var(--blau); text-decoration: none; border-radius: 16px; padding: 12px 22px 12px 14px; box-shadow: 0 12px 30px rgba(0, 0, 0, .3); }
.nw-eintragen-knopf strong { display: block; font-size: 1.12rem; }
.nw-eintragen-knopf small { display: block; color: var(--gruen); font-weight: bold; font-size: .9rem; }
.nw-eintragen-knopf:hover { background: var(--hell); }
.nw-plus { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--blau); color: #fff; font-size: 1.6rem; font-weight: bold; line-height: 1; }
.nw-fuss { color: #fff; padding: 30px 0 18px; margin-top: auto; }
.nw-fuss-reihe { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 14px 20px; }
.nw-fuss-reihe > .nw-eintragen-knopf { grid-column: 1; justify-self: start; }
.nw-fuss-reihe > nav { grid-column: 2; }
.nw-fuss-reihe > .nw-folgen { grid-column: 2; justify-self: center; }
.nw-hinweis-eintragen { margin: 4px 0 0; font-size: 1rem; text-shadow: 0 2px 8px rgba(0, 0, 0, .3); }
.nw-hinweis-eintragen a { color: #fff; font-weight: bold; }
.nw-fuss nav { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 4px 20px; background: var(--dunkel); padding: 10px 22px; border-radius: 10px; }
.nw-fuss nav a, .nw-folgen a { color: #fff; font-weight: bold; text-decoration: none; }
.nw-fuss nav a:hover, .nw-folgen a:hover { text-decoration: underline; }
.nw-fuss .nw-eintragen-knopf { color: var(--blau); }
.nw-folgen { display: inline-block; margin: 10px 0 0; background: var(--dunkel); padding: .35rem .9rem; border-radius: 8px; font-size: .95rem; }

/* ---------- Unterseiten ---------- */
.nw-blatt { width: 100%; max-width: 1000px; margin: 14px auto 0; }
.nw-karte-weiss { background: var(--karte); border-radius: 16px; padding: 28px 32px; margin: 0 0 22px; box-shadow: 0 12px 30px rgba(0, 0, 0, .2); }
.nw-lesetext { font-size: 1.1rem; line-height: 1.7; }
.nw-karte-weiss h2 { color: var(--blau); }
.nw-lesetext h2 { color: var(--blau); font-size: 1.45rem; margin: 1.2em 0 .4em; }
.nw-lesetext h2:first-child { margin-top: 0; }
.nw-grundsaetze li { margin: .45em 0; }
.nw-meta { color: var(--grau); font-size: .95rem; }
.nw-unterarme { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.nw-unterarme a { background: rgba(255, 255, 255, .92); color: var(--blau); text-decoration: none; font-weight: bold; padding: .45rem .9rem; border-radius: 999px; }
.nw-unterarme a em { font-style: normal; color: var(--grau); font-weight: normal; }
.nw-unterarme a[aria-current="page"] { background: var(--blau); color: #fff; box-shadow: 0 0 0 2px #fff; }
.nw-unterarme a[aria-current="page"] em { color: #dce6f1; }
.nw-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; background: rgba(255, 255, 255, .92); padding: 10px 14px; border-radius: 14px; margin: 0 0 18px; }
.nw-filter label { font-weight: bold; color: var(--blau); }
.nw-filter select { font: inherit; padding: .55rem .7rem; border-radius: 10px; border: 2px solid var(--rand); min-width: 220px; }
.nw-filter .nw-knopf { padding: .55rem 1.1rem; box-shadow: none; }
.nw-eintraege { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.nw-eintrag { background: var(--karte); border-radius: 16px; padding: 20px 24px; box-shadow: 0 10px 26px rgba(0, 0, 0, .18); }
.nw-eintrag h2 { color: var(--blau); font-size: 1.3rem; margin: 0 0 .2em; }
.nw-geprueft { display: inline-block; vertical-align: middle; margin-left: 6px; padding: .05em .6em; border-radius: 999px; background: var(--gruen); color: #fff; font-size: .8rem; }
.nw-kontakt a { font-weight: bold; }
.nw-zurueck a { color: #fff; font-weight: bold; text-decoration: none; text-shadow: 0 2px 8px rgba(0, 0, 0, .3); }
.nw-treffer { background: var(--karte); border-radius: 16px; padding: 20px 24px; margin: 18px auto 0; max-width: 1000px; width: 100%; box-shadow: 0 12px 30px rgba(0, 0, 0, .2); }
.nw-treffer h2 { color: var(--blau); margin: 0 0 .5em; font-size: 1.35rem; }
.nw-trefferliste { list-style: none; padding: 0; margin: 0 0 10px; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.nw-trefferliste a { display: block; background: var(--hell); border-radius: 12px; padding: 10px 14px; text-decoration: none; }
.nw-trefferliste span { display: block; color: var(--grau); font-size: .92rem; }

/* ---------- Eintragsformular (Fenster und Seite) ---------- */
.nw-dialog { width: min(880px, calc(100% - 32px)); max-height: calc(100vh - 40px); padding: 0; border: 0; border-radius: 18px; box-shadow: 0 24px 60px rgba(0, 0, 0, .45); color: var(--text); background: var(--karte); }
.nw-dialog::backdrop { background: rgba(0, 20, 45, .62); }
.nw-dialog-kopf { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--blau); color: #fff; padding: 16px 24px; }
.nw-dialog-kopf h2 { margin: 0; font-size: 1.4rem; }
.nw-zu { background: rgba(255, 255, 255, .15); color: #fff; border: 0; border-radius: 10px; width: 42px; height: 42px; font-size: 1.2rem; cursor: pointer; }
.nw-zu:hover { background: rgba(255, 255, 255, .3); }
.nw-dialog .nw-form { padding: 22px 26px 26px; }
.nw-kostenlos { background: #eaf5ea; border-left: 5px solid var(--gruen); padding: 10px 14px; border-radius: 0; margin: 0 0 16px; }
.nw-form fieldset { border: 1px solid var(--rand); border-radius: 14px; padding: 14px 18px 6px; margin: 0 0 16px; }
.nw-form legend { font-weight: bold; color: var(--blau); font-size: 1.1rem; padding: 0 .4em; }
.nw-feld { display: flex; flex-direction: column; margin: 0 0 14px; min-width: 0; }
.nw-feld label { font-weight: bold; margin-bottom: 4px; }
.nw-pflicht { color: var(--fehler); font-weight: normal; font-size: .9em; }
.nw-frei { color: var(--grau); font-weight: normal; font-size: .9em; }
.nw-form input[type="text"], .nw-form input:not([type]), .nw-form input[type="email"], .nw-form input[type="url"], .nw-form input[type="tel"], .nw-form select, .nw-form textarea {
  font: inherit; font-size: 1.05rem; padding: .7rem .8rem; border: 2px solid var(--rand); border-radius: 10px; background: #fff; color: var(--text); width: 100%; min-height: 3rem;
}
.nw-form input:focus, .nw-form select:focus, .nw-form textarea:focus { border-color: var(--blau); }
.nw-form textarea { resize: vertical; min-height: 7rem; }
.nw-zwei { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.nw-haken { display: flex; gap: 12px; align-items: flex-start; margin: 4px 0 12px; cursor: pointer; }
.nw-haken input { flex: none; width: 24px; height: 24px; margin-top: 2px; accent-color: var(--blau); }
.nw-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.nw-chip { display: inline-flex; align-items: center; gap: 8px; border: 2px solid var(--rand); border-radius: 999px; padding: .4rem .9rem; cursor: pointer; }
.nw-chip input { width: 20px; height: 20px; accent-color: var(--blau); }
.nw-chip:has(input:checked) { border-color: var(--blau); background: var(--hell); font-weight: bold; }
.nw-aktionen { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.nw-fehler { border: 2px solid var(--fehler); background: #fdf1f1; color: var(--fehler); border-radius: 12px; padding: 10px 18px; margin: 0 0 16px; }
.nw-fehler p { font-weight: bold; margin: .3em 0; }
.nw-falle { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Dunkel ---------- */
html.nw-dunkel body { background: linear-gradient(rgba(0, 0, 0, .5), rgba(0, 0, 0, .5)), linear-gradient(135deg, #001a33, #2b4a6b 62%, #4a5560); background-attachment: fixed; }
html.nw-dunkel { --karte: #15202b; --text: #e8edf2; --grau: #b7c3cf; --hell: #1f2f40; --rand: #34495e; --linie: rgba(158, 201, 255, .6); }
html.nw-dunkel .nw-arm-kopf, html.nw-dunkel .nw-herz strong, html.nw-dunkel .nw-lesetext h2, html.nw-dunkel .nw-eintrag h2, html.nw-dunkel .nw-treffer h2, html.nw-dunkel .nw-form legend, html.nw-dunkel .nw-leicht h2, html.nw-dunkel .nw-karte-weiss a, html.nw-dunkel .nw-zweige a em { color: #9ec9ff; }
html.nw-dunkel .nw-herz, html.nw-dunkel .nw-leicht, html.nw-dunkel .nw-eintragen-knopf, html.nw-dunkel .nw-stiftung { background: var(--karte); color: var(--text); }
html.nw-dunkel .nw-eintragen-knopf { color: #9ec9ff; }
html.nw-dunkel .nw-karte-weiss a.nw-knopf, html.nw-dunkel .nw-karte-weiss h2 { color: #fff; }
html.nw-dunkel .nw-karte-weiss h2 { color: #9ec9ff; }
html.nw-dunkel .nw-stiftung strong { color: #e8edf2; }
html.nw-dunkel .nw-stiftung span span { color: #d4b8ec; }
html.nw-dunkel .nw-stiftung img { background: #fff; border-radius: 8px; }
html.nw-dunkel .nw-suche input, html.nw-dunkel .nw-form input, html.nw-dunkel .nw-form select, html.nw-dunkel .nw-form textarea, html.nw-dunkel .nw-filter select { background: #0f1822; color: var(--text); }
html.nw-dunkel .nw-unterarme a, html.nw-dunkel .nw-filter { background: rgba(21, 32, 43, .92); color: #9ec9ff; }
html.nw-dunkel .nw-kostenlos { background: #17301a; }
html.nw-dunkel .nw-zahl { background: #9ec9ff; color: #0f1822; }

/* ---------- Laptop / Tablet / Handy ---------- */
@media (max-width: 1240px) { .nw-netz { gap: 26px 26px; } .nw-arm-name { font-size: 1.12rem; } .nw-zweige a { font-size: .95rem; } }
@media (max-width: 1080px) {
  .nw-netz { grid-template-columns: 1fr 1fr; grid-template-areas: "herz herz" "p1 p2" "p3 p4" "p5 p6" "p7 p8"; }
  .nw-linien { display: none; }
  .nw-herz { width: 210px; }
}
@media (max-width: 760px) {
  .nw-hilfen { position: absolute; top: 92px; left: 50%; transform: translateX(-50%); }
  .nw-hilfen button span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .nw-hilfen button { padding: .6rem .75rem; }
  .nw-stiftung { position: absolute; left: 12px; right: 12px; top: 12px; justify-content: center; padding: 8px 12px; }
  .nw-stiftung img { width: 110px; height: 44px; }
  .nw-mitte { padding: 158px 14px 0; }
  .nw-netz { grid-template-columns: 1fr; grid-template-areas: "herz" "p1" "p2" "p3" "p4" "p5" "p6" "p7" "p8"; gap: 16px; }
  .nw-herz { width: 190px; }
  .nw-arm { max-width: none; }
  .nw-suche { flex-direction: column; }
  .nw-zwei { grid-template-columns: 1fr; }
  .nw-karte-weiss { padding: 20px 16px; }
  .nw-dialog .nw-form { padding: 16px 14px 20px; }
  .nw-fuss-reihe { grid-template-columns: 1fr; justify-items: center; }
  .nw-fuss-reihe > .nw-eintragen-knopf, .nw-fuss-reihe > nav, .nw-fuss-reihe > .nw-folgen { grid-column: 1; justify-self: center; }
  .nw-herz span { font-size: .82rem; }
  .nw-herz { padding: 26px; }
}
@media (prefers-reduced-motion: no-preference) {
  .nw-linien path.nw-fluss { animation: nw-fluss 2.4s linear infinite; }
  @keyframes nw-fluss { to { stroke-dashoffset: -32; } }
  .nw-herz { animation: nw-puls 4s ease-in-out infinite; }
  @keyframes nw-puls { 0%, 100% { box-shadow: 0 0 0 12px rgba(255, 255, 255, .28), 0 0 0 26px rgba(255, 255, 255, .12), 0 18px 44px rgba(0, 20, 50, .35); } 50% { box-shadow: 0 0 0 16px rgba(255, 255, 255, .32), 0 0 0 34px rgba(255, 255, 255, .1), 0 18px 44px rgba(0, 20, 50, .35); } }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
