/* lovebude.de – Gestaltung Stufe 1. Mobil zuerst, keine fremden Schriften oder Skripte. */

@font-face {
  font-family: "Outfit";
  src: url("outfit-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --grund: #F7F5F0;
  --grund-ton: #ECE8DF;
  --karte: #FFFFFF;
  --tinte: #1D1E2C;
  --tinte-leise: #55566A;
  --linie: #E3DFD5;
  --rot: #D8341B;
  --rot-dunkel: #B3260F;
  --rot-hell: #FFE3DD;
  --radius: 20px;
  --schrift: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

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

body {
  margin: 0;
  background: var(--grund);
  color: var(--tinte);
  font-family: var(--schrift);
  font-size: 1.0625rem;
  line-height: 1.55;
}

h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }

a { color: var(--rot-dunkel); }
a:hover { color: var(--tinte); }
:focus-visible { outline: 3px solid var(--tinte); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--tinte); color: #fff; padding: 10px 16px; border-radius: 10px; z-index: 10; }
.skip:focus { left: 8px; color: #fff; }

.rahmen { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.rahmen--text { max-width: 720px; }

/* Kopf */
.kopf { border-bottom: 1px solid var(--linie); }
.kopf__innen { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.logo { display: inline-flex; align-items: center; color: var(--tinte); text-decoration: none; font-weight: 700; font-size: 1.5rem; letter-spacing: -0.02em; min-height: 44px; }
.logo svg { width: 0.72em; height: 0.72em; margin: 0.1em 0.04em 0; fill: var(--rot); }
.logo:hover { color: var(--tinte); }
.nav { display: flex; gap: 8px; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 22px; color: var(--tinte); text-decoration: none; font-weight: 500; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--grund-ton); }

/* Überschriften */
h1 { font-size: clamp(2.25rem, 7vw, 4rem); line-height: 1.02; letter-spacing: -0.03em; font-weight: 700; }
h2 { font-size: clamp(1.5rem, 4vw, 2rem); line-height: 1.15; letter-spacing: -0.02em; font-weight: 700; }
h3 { font-size: 1.1875rem; line-height: 1.25; font-weight: 600; }
.dachzeile { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; color: var(--rot-dunkel); margin-bottom: 12px; }

/* Hero und Seitenkopf */
.hero { background: var(--grund-ton); }
.hero__innen { padding-top: 56px; padding-bottom: 64px; display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.hero .dachzeile { margin-bottom: -8px; }
.hero h1 { max-width: 14ch; }
.hero__text { max-width: 34rem; font-size: 1.1875rem; color: var(--tinte-leise); }
.hero p:last-child { display: flex; flex-wrap: wrap; gap: 10px; }

.seitenkopf { padding: 48px 0 8px; }
.seitenkopf h1 { font-size: clamp(2rem, 6vw, 3.25rem); max-width: 18ch; }
.seitenkopf__text { margin-top: 16px; max-width: 36rem; color: var(--tinte-leise); font-size: 1.125rem; }

/* Knöpfe */
.knopf { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px; border-radius: 26px; background: var(--rot); color: #fff; font-weight: 600; text-decoration: none; border: 2px solid var(--rot); }
.knopf:hover { background: var(--rot-dunkel); border-color: var(--rot-dunkel); color: #fff; }
.knopf--rand { background: transparent; color: var(--tinte); border-color: var(--tinte); }
.knopf--rand:hover { background: var(--tinte); border-color: var(--tinte); color: #fff; }

/* Abschnitte */
.abschnitt { padding: 56px 0; }
.abschnitt--eng { padding-top: 32px; }
.abschnitt--ton { background: var(--grund-ton); }
.abschnitt h2 { margin-bottom: 28px; }
.abschnitt__kopf { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; margin-bottom: 28px; }
.abschnitt__kopf h2 { margin-bottom: 0; }
.mehr { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; text-decoration: none; }

/* Schritte */
.schritte { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 28px; }
.schritte li { display: flex; flex-direction: column; gap: 8px; }
.schritte__nr { width: 40px; height: 40px; border-radius: 50%; background: var(--tinte); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; margin-bottom: 4px; }
.schritte p { color: var(--tinte-leise); }

/* Karten */
.karten { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 20px; }
.karte { display: flex; flex-direction: column; gap: 10px; padding: 24px; background: var(--karte); border-radius: var(--radius); text-decoration: none; color: var(--tinte); transition: transform 0.15s ease; }
.karte:hover { color: var(--tinte); transform: translateY(-3px); }
.karte__thema { font-size: 0.8125rem; font-weight: 600; color: var(--rot-dunkel); }
.karte__titel { font-size: 1.3125rem; line-height: 1.2; font-weight: 700; letter-spacing: -0.01em; }
.karte__text { color: var(--tinte-leise); font-size: 1rem; }

/* Artikel und Textseiten */
.artikel { padding: 40px 0 64px; }
.artikel h1 { font-size: clamp(2rem, 6vw, 3rem); line-height: 1.06; }
.pfad { font-size: 0.9375rem; color: var(--tinte-leise); margin-bottom: 16px; }
.pfad a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; text-decoration: none; }
.prosa { margin-top: 28px; font-size: 1.125rem; line-height: 1.65; overflow-wrap: break-word; }
.prosa > * + * { margin-top: 1.1em; }
.prosa h2 { font-size: 1.5rem; margin-top: 2em; }
.prosa h3 { font-size: 1.25rem; margin-top: 1.8em; }
.prosa h4 { font-size: 1.0625rem; margin: 1.6em 0 0; }
.prosa ul, .prosa ol { padding-left: 1.3em; }
.prosa ul { list-style: disc; }
.prosa ol { list-style: decimal; }
.prosa li + li { margin-top: 0.4em; }
.prosa img { max-width: 100%; height: auto; }
.hinweis { padding: 16px 20px; background: var(--rot-hell); border-radius: 14px; font-size: 1rem; }

/* Fuß */
.fuss { background: var(--tinte); color: #fff; }
.fuss__innen { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-top: 24px; padding-bottom: 24px; }
.fuss__marke { font-weight: 700; font-size: 1.125rem; }
.fuss__links { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.fuss__links a { display: inline-flex; align-items: center; min-height: 44px; color: #D8D5CC; text-decoration: none; font-size: 0.9375rem; }
.fuss__links a:hover { color: #fff; }

@media (min-width: 760px) {
  .rahmen { padding: 0 32px; }
  .hero__innen { padding-top: 88px; padding-bottom: 96px; }
  .abschnitt { padding: 72px 0; }
}

@media (prefers-reduced-motion: reduce) {
  .karte { transition: none; }
  .karte:hover { transform: none; }
}

/* Stufe 2a: Formulare und Konto */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.rahmen--schmal { max-width: 520px; }
.nav { flex-wrap: wrap; justify-content: flex-end; }
.nav .nav__knopf { background: var(--rot); color: #fff; font-weight: 600; }
@media (max-width: 599px) { .nav li:has(.nav__knopf) { display: none; } }
.nav .nav__knopf:hover { background: var(--rot-dunkel); color: #fff; }
.formseite { padding: 40px 0 72px; }
.formseite h1 { font-size: clamp(2rem, 6vw, 2.75rem); line-height: 1.06; }
.formseite h2 { font-size: 1.375rem; margin: 48px 0 12px; }
.formseite__text { margin-top: 14px; color: var(--tinte-leise); }
.formseite__wechsel { margin-top: 24px; color: var(--tinte-leise); }
.formseite__wechsel a, .haken a { font-weight: 600; }
.formular { display: flex; flex-direction: column; gap: 20px; margin-top: 28px; align-items: flex-start; }
.formular .feld { width: 100%; }
.feld { display: flex; flex-direction: column; gap: 6px; }
.feld > label { font-weight: 600; font-size: 0.9375rem; }
.feld input[type="text"], .feld input[type="email"], .feld input[type="password"], .feld input[type="date"], .feld select, .feld textarea {
  width: 100%; min-height: 52px; padding: 12px 14px; border: 1.5px solid #C9C4B8; border-radius: 14px; background: #fff;
  color: var(--tinte); font: inherit; font-size: 1rem;
}
.feld textarea { min-height: 140px; resize: vertical; line-height: 1.5; }
.feld input:focus-visible, .feld select:focus-visible, .feld textarea:focus-visible { outline: 3px solid var(--tinte); outline-offset: 1px; border-color: var(--tinte); }
.feld [aria-invalid="true"] { border-color: var(--rot-dunkel); }
.hilfe { font-size: 0.875rem; color: var(--tinte-leise); }
.fehler { font-size: 0.9375rem; font-weight: 600; color: var(--rot-dunkel); }
.feld--falle { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.feld > label.haken { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; font-size: 0.9375rem; line-height: 1.45; }
.haken input, .auswahl input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--rot); }
button.knopf { font: inherit; font-weight: 600; cursor: pointer; }
.knopf--breit { width: 100%; }
.knopf--leise { background: var(--grund-ton); border-color: var(--grund-ton); color: var(--tinte); }
.knopf--leise:hover { background: var(--linie); border-color: var(--linie); color: var(--tinte); }
.meldung { margin-top: 20px; padding: 14px 18px; background: #DDF3E6; color: #14532D; border-radius: 14px; font-weight: 500; }
.auswahl { border: 0; padding: 0; margin: 0; width: 100%; display: flex; flex-direction: column; gap: 10px; }
.auswahl__zeile { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; background: #fff; border-radius: 14px; font-size: 0.9375rem; line-height: 1.45; cursor: pointer; }
.kontolinks { margin: 36px 0 16px; border-top: 1px solid var(--linie); }
.kontolinks li { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; border-bottom: 1px solid var(--linie); }
.kontolinks a { font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.kontolinks span { color: var(--tinte-leise); font-size: 0.875rem; overflow-wrap: anywhere; text-align: right; }

/* Stufe 2b: Anzeigen, Suche, Postfach */
.abschnitt--linie { border-top: 1px solid var(--linie); }
.knopf--dunkel { background: var(--tinte); border-color: var(--tinte); }
.knopf--dunkel:hover { background: #000; border-color: #000; }
.knopf--flach { min-height: 44px; padding: 0 18px; font-size: 0.9375rem; }
.aktionen { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; align-items: center; }
.zaehler { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; margin-left: 6px; padding: 0 6px; border-radius: 11px; background: var(--rot); color: #fff; font-size: 0.8125rem; font-weight: 700; }
.suche { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin-top: 24px; padding: 16px; background: var(--grund-ton); border-radius: var(--radius); }
.suche .feld { flex: 1 1 150px; }
.suche .feld--klein { flex: 0 1 90px; }
.suche .knopf { flex: 1 1 120px; }
.feld input[type="number"] { width: 100%; min-height: 52px; padding: 12px 14px; border: 1.5px solid #C9C4B8; border-radius: 14px; background: #fff; color: var(--tinte); font: inherit; font-size: 1rem; }
.zweispaltig { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; width: 100%; }
.treffer { color: var(--tinte-leise); margin-bottom: 16px; }
.anzeigen { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 20px; }
.anzeige { display: flex; flex-direction: column; gap: 10px; padding: 20px; background: var(--karte); border-radius: var(--radius); border: 2px solid transparent; }
.anzeige--top { border-color: var(--rot); }
.anzeige__kopf { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.anzeige__ort, .anzeige__fuss span, .anzeige__daten { color: var(--tinte-leise); font-size: 0.875rem; }
.anzeige .anzeige__titel, .anzeige__titel { font-size: 1.25rem; line-height: 1.2; font-weight: 700; letter-spacing: -0.01em; margin: 0; }
.anzeige__titel a { color: var(--tinte); text-decoration: none; }
.anzeige__titel a:hover { color: var(--rot-dunkel); }
.anzeige__text { color: var(--tinte-leise); font-size: 1rem; flex: 1; }
.anzeige__fuss { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.anzeige__mehr { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; text-decoration: none; font-size: 0.9375rem; }
.anzeige__daten { margin-top: 12px; font-size: 1rem; }
.schilder { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.anzeige .schilder { margin-bottom: 0; }
.schild { display: inline-block; padding: 3px 10px; border-radius: 8px; background: var(--grund-ton); color: var(--tinte); font-size: 0.8125rem; font-weight: 600; }
.schild--sie-sucht-ihn, .schild--sie-sucht-sie { background: var(--rot-hell); color: #A82410; }
.schild--er-sucht-sie, .schild--er-sucht-ihn { background: #E6E8F5; color: #2B3270; }
.schild--top { background: var(--rot); color: #fff; }
.schild--gut { background: #DDF3E6; color: #14532D; }
.leer { padding: 40px 24px; background: var(--karte); border-radius: var(--radius); display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.leer h2 { margin: 0; }
.leer p { color: var(--tinte-leise); max-width: 36rem; }
.blaettern { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 32px; color: var(--tinte-leise); }
.kasten { margin-top: 32px; padding: 24px; background: var(--grund-ton); border-radius: var(--radius); }
.kasten h2 { font-size: 1.375rem; margin: 0 0 8px; }
.melden { margin-top: 32px; color: var(--tinte-leise); }
.melden summary { cursor: pointer; min-height: 44px; display: inline-flex; align-items: center; font-weight: 600; font-size: 0.9375rem; }
.unterhaltungen { display: flex; flex-direction: column; gap: 10px; margin-top: 24px; }
.unterhaltung { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; background: #EFECE5; border-radius: var(--radius); color: var(--tinte); text-decoration: none; }
.unterhaltung--neu { background: var(--karte); font-weight: 600; }
.unterhaltung:hover { color: var(--tinte); background: var(--karte); }
.avatar { flex: none; width: 48px; height: 48px; border-radius: 50%; background: var(--rot-hell); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.25rem; }
.unterhaltung__mitte { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.unterhaltung__kopf { display: flex; justify-content: space-between; gap: 8px; }
.unterhaltung__kopf span { font-size: 0.8125rem; color: var(--tinte-leise); font-weight: 400; white-space: nowrap; }
.unterhaltung__text { font-size: 0.9375rem; color: var(--tinte-leise); overflow-wrap: anywhere; }
.unterhaltung--neu .unterhaltung__text { color: var(--tinte); }
.punkt { flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--rot); margin-top: 6px; }
.verlauf { display: flex; flex-direction: column; gap: 10px; margin: 24px 0 8px; }
.blase { max-width: 85%; align-self: flex-start; padding: 12px 16px; background: var(--karte); border-radius: 18px 18px 18px 4px; overflow-wrap: anywhere; }
.blase--ich { align-self: flex-end; background: var(--tinte); color: #fff; border-radius: 18px 18px 4px 18px; }
.blase__zeit { display: block; margin-top: 4px; font-size: 0.75rem; opacity: 0.75; }
.tabelle { overflow-x: auto; margin-top: 12px; }
.tabelle table { width: 100%; border-collapse: collapse; background: var(--karte); border-radius: 14px; font-size: 0.9375rem; }
.tabelle th, .tabelle td { padding: 10px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--linie); }
.tabelle .aktionen { margin: 0 0 6px; }

@media (max-width: 599px) {
  .kopf__innen { flex-wrap: wrap; row-gap: 0; padding-top: 6px; padding-bottom: 6px; }
  .nav { gap: 0; }
  .nav a { padding: 0 10px; font-size: 0.9375rem; }
}

/* Fotos */
.feld input[type="file"] { width: 100%; padding: 12px; border: 1.5px dashed #C9C4B8; border-radius: 14px; background: #fff; font: inherit; font-size: 0.9375rem; }
.fotoliste, .galerie { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 24px; }
.fotoliste li { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.fotoliste img, .galerie img { display: block; width: 160px; height: 160px; object-fit: cover; border-radius: 16px; background: var(--grund-ton); }
.galerie img { width: 200px; height: 200px; }
.fotoliste .aktionen { margin-top: 0; }

/* Zeichenzähler */
.zeichen { font-size: 0.875rem; color: var(--tinte-leise); text-align: right; font-variant-numeric: tabular-nums; }
.zeichen[data-zustand="wenig"], .zeichen[data-zustand="viel"] { color: var(--rot-dunkel); font-weight: 600; }
.zeichen[data-zustand="gut"] { color: #14532D; font-weight: 600; }

/* SEO: Artikel-Datum, Städte-Links */
.artikel__stand { margin-top: 12px; color: var(--tinte-leise); font-size: 0.9375rem; }
.staedte { display: flex; flex-wrap: wrap; gap: 8px; }
.staedte a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; background: var(--karte); border-radius: 22px; color: var(--tinte); text-decoration: none; font-weight: 500; font-size: 0.9375rem; }
.staedte a:hover { color: var(--rot-dunkel); }

/* Ratgeber: Themen-Sprungmarken, Fragen-Block */
.themen { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.themen__link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; background: var(--karte); border-radius: 999px; color: var(--tinte); font-weight: 600; text-decoration: none; }
.themen__link:hover { color: var(--rot-dunkel); }
.themen__link span { color: var(--tinte-leise); font-weight: 500; font-size: 0.875rem; }
.themenkopf { margin-bottom: 20px; }
.themenkopf h2 { font-size: 1.625rem; }
.themenkopf p { margin-top: 4px; color: var(--tinte-leise); }
section[id] { scroll-margin-top: 16px; }
.pfad a + span + a { margin-left: 0; }
.fragen { margin-top: 40px; }
.fragen h2 { font-size: 1.5rem; margin-bottom: 12px; }
.frage { border-top: 1px solid var(--linie); }
.frage:last-child { border-bottom: 1px solid var(--linie); }
.frage summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 12px 0; font-size: 1.125rem; font-weight: 600; cursor: pointer; list-style: none; }
.frage summary::-webkit-details-marker { display: none; }
.frage summary::after { content: "+"; flex: none; font-size: 1.5rem; font-weight: 400; color: var(--rot-dunkel); }
.frage[open] summary::after { content: "–"; }
.frage p { padding: 0 0 18px; font-size: 1.0625rem; line-height: 1.6; color: var(--tinte-leise); max-width: 62ch; }
