/* helgadigital.de · Handy zuerst · Schriften liegen selbst gehostet in /fonts (SIL Open Font License).
   Farbe A „Tiefer See“, Schrift 1: Fraunces für Überschriften, Atkinson Hyperlegible für Text. */

@font-face { font-family: "Fraunces"; src: url("/fonts/fraunces.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("/fonts/atkinson-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("/fonts/atkinson-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("/fonts/atkinson-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  --see: #1E5A55;          /* Grundfarbe, tiefes Seegrün */
  --see-dunkel: #14403C;
  --see-hell: #BFE0DA;     /* kleine Zeilen auf Grün */
  --see-hauch: #EAF2F0;
  --papier: #FBFAF7;
  --weiss: #FFFFFF;
  --rot: #C2362B;          /* Knöpfe und Akzente */
  --rot-dunkel: #A12A21;
  --tinte: #1C2B29;
  --grau: #52605C;
  --linie: #D9E3DF;
  --entwurf: #FFF1A8;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Atkinson Hyperlegible", Verdana, "Segoe UI", system-ui, sans-serif;
  --breit: 1080px;
  --schmal: 40rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--papier); color: var(--tinte); font-family: var(--sans); font-size: 18px; line-height: 1.65; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--serif); font-weight: 650; line-height: 1.12; margin: 0; text-wrap: balance; letter-spacing: -.005em; }
p { margin: 0; }
a { color: var(--see); text-underline-offset: 3px; }
a:hover { color: var(--rot); }
:focus-visible { outline: 3px solid var(--rot); outline-offset: 3px; }

.wrap {
  width: 100%; max-width: var(--breit); margin: 0 auto;
  padding-left: max(18px, env(safe-area-inset-left, 0px));
  padding-right: max(18px, env(safe-area-inset-right, 0px));
}
.eng { max-width: calc(var(--schmal) + 36px); }

.zeile { font-size: .82rem; letter-spacing: .13em; text-transform: uppercase; font-weight: 700; color: var(--see); }
.gross { font-size: 1.22rem; line-height: 1.6; }
.kennzeichnung { justify-self: start; font-size: .82rem; font-weight: 700; color: var(--grau); border: 1px solid var(--linie); border-radius: 4px; padding: 2px 8px; background: var(--weiss); }
.leise { color: var(--grau); }

/* Entwurfs-Hinweise, verschwinden vor dem Veröffentlichen */
.entwurf-band { background: var(--entwurf); color: #3a3000; font-size: .9rem; text-align: center; padding: 6px 12px; }
.offen { background: var(--entwurf); color: #3a3000; padding: 0 4px; border-radius: 4px; }

/* Knöpfe */
.knoepfe { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.knopf {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px;
  padding: 14px 26px; border-radius: 8px; border: 2px solid var(--rot);
  background: var(--rot); color: var(--weiss); font-weight: 700; font-size: 1.05rem; text-decoration: none;
  transition: background .15s, border-color .15s;
}
.knopf:hover { background: var(--rot-dunkel); border-color: var(--rot-dunkel); color: var(--weiss); }
.knopf.hohl { background: transparent; color: var(--see); border-color: var(--see); }
.knopf.hohl:hover { background: var(--see); color: var(--weiss); }
.auf-gruen .knopf.hohl { color: var(--weiss); border-color: var(--weiss); }
.auf-gruen .knopf.hohl:hover { background: var(--weiss); color: var(--see); }

/* Kopfleiste */
.kopf { background: var(--papier); border-bottom: 1px solid var(--linie); }
.kopf .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; flex-wrap: wrap; padding-block: 8px; }
.marke { display: inline-flex; align-items: center; text-decoration: none; }
.marke img { height: 44px; width: auto; }
@media (min-width: 760px) { .marke img { height: 52px; } }
.kopf { position: relative; z-index: 20; }
.kopf .wrap { flex-wrap: nowrap; }
.knopf-klein { min-height: 42px; padding: 8px 16px; font-size: .95rem; white-space: nowrap; }

/* Leiste am Rechner */
.leiste { display: none; }
.leiste > a, .aufklapp summary { color: var(--tinte); text-decoration: none; padding: 8px 0; cursor: pointer; }
.leiste > a:hover, .aufklapp summary:hover { color: var(--rot); }
.aufklapp { position: relative; }
.aufklapp summary { list-style: none; }
.aufklapp summary::-webkit-details-marker { display: none; }
.aufklapp summary::after { content: " ▾"; font-size: .8em; }
.aufklapp-liste {
  position: absolute; top: calc(100% + 6px); left: -14px; min-width: 190px;
  background: var(--weiss); border: 1px solid var(--linie); border-radius: 8px;
  box-shadow: 0 8px 24px rgba(20, 50, 47, .12); padding: 6px; display: grid;
}
.aufklapp-liste a { padding: 9px 12px; border-radius: 6px; text-decoration: none; color: var(--tinte); }
.aufklapp-liste a:hover { background: var(--see-hauch); color: var(--rot); }

/* Menü auf dem Handy */
.handy-menue summary {
  list-style: none; cursor: pointer; min-height: 42px; padding: 8px 12px; border: 1.5px solid var(--see);
  border-radius: 8px; color: var(--see); font-weight: 700; font-size: .95rem; display: inline-flex; align-items: center;
}
.handy-menue summary::-webkit-details-marker { display: none; }
.handy-menue[open] summary { background: var(--see); color: var(--weiss); }
.handy-menue nav {
  position: absolute; left: 0; right: 0; top: 100%; background: var(--papier); border-bottom: 1px solid var(--linie);
  box-shadow: 0 12px 24px rgba(20, 50, 47, .12); display: grid; padding: 8px max(18px, env(safe-area-inset-left, 0px)) 16px;
}
.handy-menue nav a { padding: 11px 0; text-decoration: none; color: var(--tinte); font-size: 1.05rem; border-bottom: 1px solid var(--linie); }
.handy-menue nav a:last-child { border-bottom: 0; }
.handy-menue .menue-gruppe { padding: 11px 0 2px; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: var(--grau); }
.handy-menue .eingerueckt { padding-left: 16px; }
.kopf .wrap { gap: 10px; }
.kopf .marke { margin-right: auto; }

@media (min-width: 980px) {
  .leiste { display: flex; align-items: center; gap: 22px; margin-right: 8px; }
  .handy-menue { display: none; }
}
@media (max-width: 380px) {
  .knopf-klein { padding: 8px 10px; font-size: .88rem; }
}

/* Großes Foto oben, Text liegt darauf */
.oben { position: relative; color: var(--weiss); background: var(--see-dunkel); overflow: hidden; }
.oben picture, .oben .bild { position: absolute; inset: 0; }
.oben .bild { width: 100%; height: 100%; object-fit: cover; object-position: 80% 35%; }
.oben::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(14,40,37,.92) 0%, rgba(14,40,37,.62) 38%, rgba(14,40,37,0) 64%);
}
.oben .wrap { position: relative; z-index: 1; min-height: min(calc(100svh - 150px), 820px); display: flex; align-items: flex-end; padding-block: 40px 32px; }
.oben .text { display: grid; gap: 16px; max-width: 30rem; }
.oben .zeile { color: var(--see-hell); }
.oben h1 { font-size: clamp(2.3rem, 9vw, 3.9rem); }
.oben .unter { font-size: 1.15rem; line-height: 1.55; }
.oben .selbst { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 1.35rem; }
@media (min-width: 760px) {
  .oben .bild { object-position: 60% 40%; }
  .oben::after { background: linear-gradient(90deg, rgba(14,40,37,.86) 0%, rgba(14,40,37,.55) 36%, rgba(14,40,37,0) 58%); }
  .oben .wrap { align-items: center; min-height: min(86svh, 780px); }
}

/* Abschnitte */
.abschnitt { padding-block: 64px; }
.abschnitt + .abschnitt { border-top: 1px solid var(--linie); }
.stapel { display: grid; gap: 18px; }
.abschnitt h2 { font-size: clamp(1.9rem, 6.5vw, 2.7rem); color: var(--see); }
.mitte { text-align: center; justify-items: center; }
.auf-gruen { background: var(--see); color: var(--weiss); border-top: 0 !important; }
.auf-gruen h2 { color: var(--weiss); }
.auf-gruen .zeile { color: var(--see-hell); }
.auf-gruen a:not(.knopf) { color: var(--weiss); }
.auf-hauch { background: var(--see-hauch); border-top: 0 !important; }

/* Reihe „mein Leben“: auf dem Handy wischen, am Rechner vier nebeneinander */
.leben { list-style: none; margin: 28px 0 0; padding: 0 max(18px, env(safe-area-inset-left, 0px)); display: grid; grid-auto-flow: column; grid-auto-columns: 42%; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.leben li { scroll-snap-align: start; }
.leben figure { margin: 0; display: grid; gap: 8px; }
.leben img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 6px; }
.leben figcaption { font-size: .95rem; color: var(--grau); }
.wisch-hinweis { font-size: .9rem; color: var(--grau); margin-top: 10px; }
@media (min-width: 760px) {
  .leben { grid-auto-flow: column; grid-auto-columns: 1fr; overflow: visible; max-width: 720px; margin-inline: auto; padding-right: max(18px, env(safe-area-inset-right, 0px)); }
  .wisch-hinweis { display: none; }
}

/* Zwei Spalten: Text und Bild/Kasten */
.zweier { display: grid; gap: 28px; align-items: center; }
@media (min-width: 860px) { .zweier { grid-template-columns: 1.1fr .9fr; gap: 56px; } }
.kasten { background: var(--weiss); border: 1px solid var(--linie); border-radius: 10px; padding: 26px 24px; display: grid; gap: 12px; }
.kasten h3 { font-size: 1.4rem; color: var(--see); }

/* Anmeldung „Helga mittendrin“ mit Sonnenuntergang */
.mittendrin { position: relative; color: var(--weiss); background: var(--see-dunkel); overflow: hidden; }
.mittendrin picture, .mittendrin .bild { position: absolute; inset: 0; }
.mittendrin .bild { width: 100%; height: 100%; object-fit: cover; object-position: 66% 50%; }
@media (min-width: 860px) { .mittendrin .bild { object-position: 50% 40%; } }
.mittendrin::after { content: ""; position: absolute; inset: 0; background: rgba(14,40,37,.62); }
.mittendrin .wrap { position: relative; z-index: 1; padding-block: 48px; }
.mittendrin h2 { color: var(--weiss); font-size: clamp(1.7rem, 5.5vw, 2.4rem); }
.mittendrin .zeile { color: var(--see-hell); }
.anmeldung { display: grid; gap: 6px; width: 100%; max-width: 19rem; }
.anmeldung label { font-weight: 700; font-size: .95rem; margin-top: 4px; }
.anmeldung .feld { display: flex; flex-wrap: wrap; gap: 10px; }
.anmeldung .knopf { justify-self: start; margin-top: 6px; }
.anmeldung input[type="email"], .anmeldung input[type="text"] {
  width: 100%; min-width: 0; min-height: 42px; padding: 8px 12px; font: inherit; font-size: 1rem; color: var(--tinte);
  border: 2px solid var(--weiss); border-radius: 8px; background: var(--weiss);
}
.anmeldung .klein { font-size: .92rem; line-height: 1.5; color: #E4F0ED; }
.anmeldung .klein a { color: var(--weiss); }

/* Karten mit Mockup */
.karten { display: grid; gap: 24px; margin-top: 8px; }
@media (min-width: 760px) { .karten { grid-template-columns: 1fr 1fr; gap: 32px; } }
.karte { display: grid; gap: 12px; align-content: start; justify-items: start; }
.karte h3 { font-size: 1.5rem; color: var(--see); }
/* Mockups auf Seegrün mit kleinem rotem Punkt als Akzent */
.mockup-flaeche { position: relative; width: 100%; border-radius: 10px; background: var(--see); padding: 22px 18px; overflow: hidden; display: grid; place-items: center; }
.mockup-flaeche::before { content: ""; position: absolute; width: 16%; aspect-ratio: 1; border-radius: 50%; background: var(--rot); top: 7%; right: 6%; }
.mockup-flaeche img { position: relative; width: 100%; height: auto; }
.mockup-12 { width: 100%; max-width: 230px; height: auto; border-radius: 10px; box-shadow: 0 14px 34px rgba(0, 0, 0, .3); }
@media (min-width: 860px) {
  .mittendrin-inhalt > .stapel { grid-template-columns: 1fr 1fr; column-gap: 48px; }
  .mittendrin-inhalt > .stapel > :not(.mockup-12) { grid-column: 1; }
  .mockup-12 { grid-column: 2; grid-row: 1 / span 5; align-self: center; max-width: 280px; }
}
.stimmen { font-size: .95rem; }

/* Unterseiten */
.seitentitel { font-size: clamp(2.1rem, 7.5vw, 3.2rem); color: var(--see); }
.klein-text { font-size: .95rem; line-height: 1.55; }
.portrait { width: 100%; max-width: 420px; justify-self: center; border-radius: 10px; }

/* Kanäle */
.kanaele { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* Fuß */
.fuss { background: var(--see-dunkel); color: #D5E6E2; font-size: .95rem; }
.fuss .wrap { display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; padding-block: 28px calc(28px + env(safe-area-inset-bottom, 0px)); }
.fuss nav { display: flex; gap: 18px; flex-wrap: wrap; }
.fuss a { color: var(--weiss); }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
.mockup-flaeche.ohne-punkt::before { display: none; }  /* Floskel-Check hat schon den roten Stempel */

/* Rechtstexte */
.rechtstext h2 { font-size: 1.35rem; color: var(--see); margin-top: 14px; }
.rechtstext ul { margin: 0; padding-left: 22px; }
.rechtstext a { overflow-wrap: anywhere; }
.seitentitel { hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
.stapel > * { min-width: 0; }
.rechtstext h3 { font-size: 1.1rem; color: var(--tinte); margin-top: 6px; }
.falle { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Blog */
.rubriken { display: flex; flex-wrap: wrap; gap: 8px; }
.rubrik { display: inline-block; background: var(--see-hauch); color: var(--see); font-weight: 700; font-size: .9rem; padding: 4px 12px; border-radius: 999px; }
.rubrik.klein { font-size: .8rem; padding: 2px 10px; }
.beitraege { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 14px; }
.beitraege a { display: grid; gap: 6px; justify-items: start; padding: 20px 22px; background: var(--weiss); border: 1px solid var(--linie); border-radius: 10px; text-decoration: none; color: var(--tinte); }
.beitraege a:hover { border-color: var(--see); }
.beitrag-titel { font-family: var(--serif); font-weight: 650; font-size: 1.5rem; color: var(--see); line-height: 1.2; }
.beitrag h2 { font-size: 1.5rem; margin-top: 18px; }
.beitrag .zeile a { color: inherit; }
.anzeige-klein { font-size: .82rem; color: var(--grau); white-space: nowrap; }

/* Wegweiser unter dem ersten Bildschirm */
.wegweiser { padding-block: 40px; }
.kacheln { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
@media (min-width: 860px) { .kacheln { grid-template-columns: repeat(4, 1fr); gap: 16px; } }
.kacheln a { display: grid; gap: 4px; height: 100%; padding: 16px 14px; border: 1px solid var(--linie); border-radius: 10px; background: var(--weiss); text-decoration: none; color: var(--tinte); }
.kacheln a:hover { border-color: var(--see); }
.kacheln a:focus-visible { outline: 3px solid var(--tinte); outline-offset: 3px; }
.kacheln strong { color: var(--see); font-size: 1.05rem; line-height: 1.25; }
.kacheln span { font-size: .92rem; line-height: 1.4; color: var(--grau); }

/* Zurück zur Startseite (Unterseiten) */
.zurueck { padding-block: 16px; }
.zurueck a { font-weight: 700; color: var(--see); text-decoration: none; }
.zurueck a:hover { text-decoration: underline; }

/* Auswahl auf der Seite „Kostenlos“: Vorschaubild und Titel in einer Zeile */
.waehlen { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 14px; }
.waehlen a { display: grid; grid-template-columns: 120px 1fr; gap: 16px; align-items: center; padding: 12px; border: 1px solid var(--linie); border-radius: 10px; background: var(--weiss); text-decoration: none; color: var(--tinte); }
.waehlen a:hover { border-color: var(--see); }
.waehlen a:focus-visible { outline: 3px solid var(--tinte); outline-offset: 3px; }
.waehlen .mockup-flaeche { padding: 10px; border-radius: 8px; }
.waehlen .mockup-flaeche::before { display: none; }
.waehlen-text { display: grid; gap: 4px; }
.waehlen-text strong { color: var(--see); font-size: 1.15rem; line-height: 1.25; }
.waehlen-text span { color: var(--grau); line-height: 1.4; }
@media (min-width: 760px) { .waehlen a { grid-template-columns: 180px 1fr; } }
.waehlen .foto { display: block; border-radius: 8px; overflow: hidden; aspect-ratio: 1; }
.waehlen .foto img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; display: block; }
.waehlen-text .kennzeichnung { justify-self: start; }

/* Schlichte Seite wie eine E-Mail: weiß, linksbündig, schwarze Schrift */
body.schlicht { background: #fff; color: #000; font-family: Verdana, Arial, sans-serif; font-size: 17px; line-height: 1.6; }
body.schlicht main { max-width: 560px; margin: 0 auto; padding: 32px 20px 24px; text-align: left; }
body.schlicht main p { margin: 0 0 16px; }
body.schlicht main a { color: #000; text-decoration: underline; }
body.schlicht .klein-text { font-size: .85rem; color: #555; }
body.schlicht .fuss { background: #fff; color: #555; border-top: 0; }
body.schlicht .fuss .wrap { max-width: 560px; padding-inline: 20px; justify-content: flex-start; }
body.schlicht .fuss a { color: #555; }

/* Stimmen von Nutzerinnen */
.stimmen-liste { display: grid; gap: 12px; }
.stimmen-liste blockquote { margin: 0; padding: 4px 0 4px 16px; border-left: 3px solid var(--see-hell); }
.stimmen-liste blockquote p { margin: 0; font-style: italic; }
.stimmen-liste footer { font-size: .92rem; color: var(--grau); margin-top: 2px; }

/* Echte Nachrichten als Bilder */
.stimmen-bilder { display: grid; gap: 14px; }
@media (min-width: 640px) { .stimmen-bilder { grid-template-columns: 1fr 1fr; align-items: start; } }
.stimmen-bilder figure { margin: 0; display: grid; gap: 4px; }
.stimmen-bilder img { width: 100%; height: auto; border-radius: 8px; }
.stimmen-bilder figcaption { font-size: .9rem; color: var(--grau); }
@media (min-width: 640px) { .stimmen-bilder figure:first-child { grid-column: 1 / -1; } }
