/* Theme »esther« für frauenhaus-esther.de
   Leitidee: ruhig, groß, vertrauenswürdig. Zwei Farben aus dem Logo (Dunkelblau, Kronen-Orange) auf warmem Weiß.
   Orange trägt nie Text auf Hell (Kontrast zu gering), sondern nur Knöpfe mit dunkler Schrift und Schmuck. */

@font-face { font-family: "Gelasio"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/gelasio-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Gelasio"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/gelasio-latin-400-italic.woff2") format("woff2"); }

:root {
    --tinte: #181e36;
    --tinte-weich: #454b63;
    --gold: #f6961e;
    --gold-hell: #fde9cc;
    --grund: #fbf8f1;
    --sand: #f3ecdd;
    --karte: #ffffff;
    --linie: #e4dccb;
    --gruen: #1f7a4d;
    --breite: 1120px;
    --lesen: 720px;
    --radius: 14px;
    --serif: "Gelasio", Georgia, "Times New Roman", serif;
    --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    /* dieselben Werte für das Spendenformular */
    --esther-tinte: var(--tinte); --esther-gold: var(--gold); --esther-grund: var(--grund); --esther-karte: var(--karte); --esther-linie: var(--linie);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--grund); color: var(--tinte); font: 400 1.1875rem/1.6 var(--gh-font-body, var(--sans)); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--tinte); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--gh-font-heading, var(--serif)); font-weight: 400; line-height: 1.15; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 5.2vw, 3.7rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.4rem; line-height: 1.25; }
p { margin: 0 0 1.1em; }
.skip { position: absolute; left: -999px; top: 0; background: var(--tinte); color: #fff; padding: .6em 1em; z-index: 100; }
.skip:focus { left: 12px; top: 12px; }

.rahmen { width: min(100% - 40px, var(--breite)); margin-inline: auto; }
.schmal { width: min(100% - 40px, var(--lesen)); margin-inline: auto; }
.abschnitt { padding: clamp(40px, 6vw, 72px) 0; }
.abschnitt.sand { background: var(--sand); }
.abschnitt.dunkel { background: var(--tinte); color: #fff; }
.abschnitt.dunkel a { color: #fff; }
.auge { font: 700 .875rem/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--tinte-weich); margin: 0 0 .9em; display: flex; align-items: center; gap: .7em; }
.auge::before { content: ""; width: 28px; height: 3px; background: var(--gold); border-radius: 2px; }
.dunkel .auge { color: #cfd3e3; }
.kopfzeile { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 32px; margin-bottom: 26px; }
.kopfzeile h2 { margin: 0; }
.mehr { font-weight: 700; white-space: nowrap; }

/* Knöpfe */
.knopf { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 54px; padding: .7em 1.6em; border-radius: 999px; font: 700 1.125rem/1.2 var(--sans); text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .12s ease, box-shadow .12s ease; }
.knopf:hover { transform: translateY(-1px); }
.knopf.gold { background: var(--gold); color: var(--tinte); box-shadow: 0 2px 0 #c9720a; }
.knopf.hell { background: transparent; color: var(--tinte); border-color: var(--tinte); }
.dunkel .knopf.hell { color: #fff; border-color: #fff; }
.knopf.klein { min-height: 46px; padding: .5em 1.2em; font-size: 1rem; }

/* Kopf */
.kopf { background: var(--grund); border-bottom: 1px solid var(--linie); position: sticky; top: 0; z-index: 50; }
.kopf .rahmen { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.marke { display: flex; align-items: center; gap: 12px; text-decoration: none; font: 400 1.35rem/1.1 var(--serif); }
.marke img { height: 52px; width: auto; }
.marke small { display: block; font: 400 .8rem/1.2 var(--sans); color: var(--tinte-weich); letter-spacing: .02em; }
.menue { display: flex; align-items: center; gap: 6px 26px; list-style: none; margin: 0; padding: 0; }
.menue a { text-decoration: none; font-weight: 600; font-size: 1.0625rem; padding: .4em 0; white-space: nowrap; }
.marke { white-space: nowrap; }
.menue a:hover, .menue .nav-current a { box-shadow: 0 3px 0 var(--gold); }
.kopf-rechts { display: flex; align-items: center; gap: 22px; }
.menue-knopf { display: none; background: none; border: 2px solid var(--tinte); border-radius: 10px; min-height: 48px; padding: 0 14px; font: 700 1rem var(--sans); color: var(--tinte); cursor: pointer; }
/* Ab hier klappt das Menü ein. 1040 px, weil fünf Menüpunkte samt Logo und Knopf darunter umbrechen. */
@media (max-width: 1040px) {
    .menue-knopf { display: inline-flex; align-items: center; gap: 8px; }
    .kopf-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--grund); border-bottom: 1px solid var(--linie); padding: 12px 20px 22px; }
    .kopf-nav.offen { display: block; }
    .menue { flex-direction: column; align-items: stretch; gap: 0; }
    .menue a { display: block; padding: .85em 0; border-bottom: 1px solid var(--linie); font-size: 1.2rem; }
    .kopf .knopf.gold { min-height: 48px; padding: .5em 1.1em; font-size: 1rem; }
    .marke small { display: none; }
}

/* Bühne der Startseite */
.buehne { padding: clamp(36px, 6vw, 84px) 0 clamp(40px, 6vw, 80px); }
.buehne .rahmen { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.buehne p.lead { font-size: 1.35rem; line-height: 1.5; color: var(--tinte-weich); max-width: 34em; }
.buehne-knoepfe { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 22px; }
.vertrauen { display: flex; flex-wrap: wrap; gap: 6px 20px; padding: 0; margin: 0; list-style: none; font-size: 1rem; color: var(--tinte-weich); }
.vertrauen li { display: flex; align-items: center; gap: 8px; }
.vertrauen li::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); flex: none; }
.buehne-bild { position: relative; }
.buehne-bild img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 22px; }
.buehne-bild::after { content: ""; position: absolute; inset: auto -14px -14px auto; width: 46%; height: 46%; border-radius: 22px; background: var(--gold-hell); z-index: -1; }
.vers { font: italic 400 1.2rem/1.5 var(--serif); color: var(--tinte-weich); border-left: 3px solid var(--gold); padding-left: 16px; margin: 0 0 22px; max-width: 30em; }
.vers cite { display: block; font: 400 .95rem var(--sans); margin-top: 4px; }
@media (max-width: 880px) { .buehne .rahmen { grid-template-columns: 1fr; } .buehne-bild img { aspect-ratio: 4 / 3; } }

/* Zahlen */
.zahlen { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.zahl { background: var(--karte); border: 1px solid var(--linie); border-radius: var(--radius); padding: 26px 24px; }
.zahl b { display: block; font: 400 clamp(2.4rem, 5vw, 3.4rem)/1 var(--serif); margin-bottom: 8px; }
.zahl span { color: var(--tinte-weich); }
@media (max-width: 720px) { .zahlen { grid-template-columns: 1fr; } }

/* Karten */
.raster { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.raster.zwei { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 960px) { .raster { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .raster, .raster.zwei { grid-template-columns: 1fr; } }
.karte { background: var(--karte); border: 1px solid var(--linie); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; position: relative; }
.karte-bild img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.karte-bild { background: var(--sand); }  /* Platzhalterfarbe, solange das Bild noch lädt */
.karte-text { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.karte h3 { margin: 0; }
.karte h3 a { text-decoration: none; }
.karte h3 a::after { content: ""; position: absolute; inset: 0; }
.karte { box-shadow: 0 1px 2px rgba(24, 30, 54, .04); transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.karte:hover { border-color: var(--tinte); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(24, 30, 54, .09); }
@media (prefers-reduced-motion: reduce) { .karte, .knopf { transition: none; } .karte:hover, .knopf:hover { transform: none; } }
.karte p { margin: 0; color: var(--tinte-weich); font-size: 1.0625rem; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }  /* höchstens drei Zeilen je Karte */
.datum { font: 600 .9rem/1.3 var(--sans); color: var(--tinte-weich); letter-spacing: .02em; }
.etikett { display: inline-block; font: 700 .8rem/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; background: var(--gold-hell); color: var(--tinte); align-self: flex-start; }
.etikett.gruen { background: #dcefe4; color: #14553a; }

/* Projekt mit Stand */
.stand { margin-top: auto; padding-top: 10px; }
.stand-leiste { height: 12px; border-radius: 999px; background: var(--sand); overflow: hidden; }
.stand-leiste i { display: block; height: 100%; width: 0; background: var(--gold); border-radius: 999px; }
.stand-leiste.fertig i { background: var(--gruen); }
.stand-text { display: flex; justify-content: space-between; gap: 12px; font: 600 1rem var(--sans); margin-top: 8px; }

/* Geschichte */
.geschichte { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(24px, 5vw, 60px); align-items: center; }
.geschichte img { border-radius: 22px; aspect-ratio: 1 / 1; object-fit: cover; width: 100%; }
.geschichte blockquote { margin: 0 0 20px; font: 400 clamp(1.5rem, 2.8vw, 2.1rem)/1.3 var(--serif); }
.geschichte .hinweis { font-size: .95rem; color: var(--tinte-weich); }
@media (max-width: 800px) { .geschichte { grid-template-columns: 1fr; } }

/* Rundbrief und Anmeldung */
.zweispaltig { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
@media (max-width: 800px) { .zweispaltig { grid-template-columns: 1fr; } }
.anmeldung { background: var(--karte); border: 1px solid var(--linie); border-radius: var(--radius); padding: 28px; }
.anmeldung form { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.anmeldung input[type=email] { flex: 1 1 240px; min-height: 54px; padding: 0 18px; border: 2px solid var(--tinte); border-radius: 999px; font: inherit; background: #fff; color: var(--tinte); min-width: 0; }
.anmeldung .meldung { display: none; margin: 14px 0 0; font-weight: 600; }
.anmeldung form.success ~ .meldung.ok, .anmeldung form.error ~ .meldung.fehler { display: block; }
.anmeldung form.loading button { opacity: .6; }
.klein { font-size: .95rem; color: var(--tinte-weich); }

/* Spendenruf */
.ruf { display: grid; grid-template-columns: 1.3fr auto; gap: 28px; align-items: center; }
.ruf h2 { margin-bottom: .3em; }
.ruf p { margin: 0; color: #cfd3e3; max-width: 36em; }
@media (max-width: 800px) { .ruf { grid-template-columns: 1fr; } }

/* Beitrag und Seite */
.beitrag-kopf { padding: clamp(36px, 6vw, 72px) 0 0; }
.beitrag-kopf h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); }
.beitrag-kopf .lead { font-size: 1.3rem; color: var(--tinte-weich); }
.beitrag-bild { margin: 32px auto 0; width: min(100% - 40px, 960px); }
.beitrag-bild img { width: 100%; border-radius: 22px; max-height: 620px; object-fit: cover; }
.beitrag-bild figcaption { font-size: .95rem; color: var(--tinte-weich); margin-top: 10px; text-align: center; }
.inhalt { padding: 36px 0 64px; font-size: 1.25rem; line-height: 1.65; }
.inhalt > * { width: min(100% - 40px, var(--lesen)); margin-left: auto; margin-right: auto; }
.inhalt h2 { margin-top: 1.6em; font-size: 1.9rem; }
.inhalt h3 { margin-top: 1.4em; }
.inhalt blockquote { border-left: 3px solid var(--gold); margin-top: 1.4em; margin-bottom: 1.4em; padding: 4px 0 4px 22px; font: italic 400 1.4rem/1.5 var(--serif); }
.inhalt ul, .inhalt ol { padding-left: 1.3em; }
.inhalt li { margin-bottom: .45em; }
.inhalt img { border-radius: var(--radius); }
.inhalt figure { margin-top: 1.6em; margin-bottom: 1.6em; }
.inhalt figcaption { font-size: .95rem; color: var(--tinte-weich); text-align: center; margin-top: 8px; }
.inhalt .kg-width-wide { width: min(100% - 40px, 960px); }
.inhalt .kg-width-full { width: 100%; }
.inhalt .kg-width-full img { border-radius: 0; width: 100%; }
.inhalt .kg-callout-card { border-radius: var(--radius); background: var(--sand); padding: 22px 24px; display: flex; gap: 14px; }
.inhalt .kg-callout-card .kg-callout-text { font-size: 1.15rem; }
.inhalt .kg-button-card { display: flex; justify-content: center; }
.inhalt .kg-button-card a.kg-btn { background: var(--gold); color: var(--tinte); border-radius: 999px; font: 700 1.125rem var(--sans); padding: .9em 1.8em; height: auto; text-decoration: none; box-shadow: 0 2px 0 #c9720a; }
.inhalt .kg-gallery-container { display: flex; flex-direction: column; gap: 12px; }
.inhalt .kg-gallery-row { display: flex; gap: 12px; }
.inhalt .kg-gallery-image { flex: 1 1 0; }
.inhalt .kg-gallery-image img { width: 100%; height: 100%; object-fit: cover; }
.inhalt .kg-file-card a { display: flex; align-items: center; justify-content: space-between; gap: 16px; border: 2px solid var(--tinte); border-radius: var(--radius); padding: 18px 22px; text-decoration: none; font-weight: 700; }
.zurueck { display: inline-block; margin-bottom: 18px; font-weight: 600; }
.nach-beitrag { border-top: 1px solid var(--linie); padding: 40px 0 0; }

/* Spendenseite */
.spenden-raster { display: grid; grid-template-columns: 1fr minmax(0, 520px); gap: clamp(28px, 5vw, 64px); align-items: start; padding-bottom: 72px; }
.spenden-raster .inhalt { padding: 0; }
.spenden-raster .inhalt > * { width: 100%; }
@media (max-width: 960px) { .spenden-raster { grid-template-columns: 1fr; } }
.bank { background: var(--karte); border: 1px solid var(--linie); border-radius: var(--radius); padding: 26px; margin-top: 22px; }
.bank h2 { font-size: 1.5rem; }
.bank dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; font-size: 1.1rem; }
.bank dt { color: var(--tinte-weich); }
.bank dd { margin: 0; font-weight: 700; word-break: break-word; }
.bank-zeile { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; margin-top: 18px; }
.bank-zeile img { width: 148px; height: 148px; border-radius: 8px; border: 1px solid var(--linie); }
.bank-zeile p { flex: 1 1 200px; margin: 0; font-size: 1rem; color: var(--tinte-weich); }

/* Liste und Seitenzahlen */
.liste-kopf { padding: clamp(36px, 6vw, 72px) 0 32px; }
.liste-kopf p { color: var(--tinte-weich); font-size: 1.3rem; max-width: 34em; }
.liste-leer { grid-column: 1 / -1; font-size: 1.2rem; color: var(--tinte-weich); max-width: 34em; margin: 0; }
.pagination { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 40px 0 0; font-weight: 600; }

/* Fuß */
.fuss { background: var(--tinte); color: #dfe2ee; padding: 56px 0 88px; font-size: 1.0625rem; }  /* unten Platz für den Knopf »Abonnieren« von Ghost */
.fuss a { color: #fff; }
.fuss-raster { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 36px; }
.fuss h2 { font: 700 .9rem/1.3 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: #aab0c8; margin-bottom: 14px; }
.fuss ul { list-style: none; margin: 0; padding: 0; }
.fuss li { margin-bottom: 8px; }
.fuss-unten { border-top: 1px solid #353c5a; margin-top: 36px; padding-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; font-size: .95rem; color: #aab0c8; }
@media (max-width: 800px) { .fuss-raster { grid-template-columns: 1fr; } }

/* Hinweiskasten für Beiträge nur für Mitglieder */
.tor { background: var(--sand); border-radius: var(--radius); padding: 28px; text-align: center; }

/* Handy: Kopfzeile darf nicht überlaufen, das Formular steht vor dem langen Text */
@media (max-width: 880px) {
    .kopf-rechts { gap: 10px; }
    .marke { font-size: 1.1rem; min-width: 0; }
    .marke img { height: 44px; }
}
@media (max-width: 460px) { .marke span { display: none; } }
@media (max-width: 960px) { .spenden-raster > div:last-child { order: -1; } }

/* Zweites Menü in der Fußzeile: untereinander, ohne Unterstreichung des Hauptmenüs */
.fuss .menue { display: block; }
.fuss .menue a { font-weight: 400; font-size: inherit; padding: 0; display: inline; border: 0; box-shadow: none; text-decoration: underline; }

/* 0.1.5: Projekte auf der Startseite. Zwei laufende Karten und daneben, was geschafft ist; die Spalten füllen die Breite. */
.raster.frei { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.karte-bild.leer { aspect-ratio: 3 / 2; display: grid; place-items: center; }
.karte-bild.leer img { width: 124px; aspect-ratio: auto; opacity: .45; }
.geschafft-karte { background: transparent; border-style: dashed; box-shadow: none; }
.geschafft-karte:hover { transform: none; box-shadow: none; border-color: var(--linie); }
.geschafft-karte ul { list-style: none; margin: 8px 0 0; padding: 0; }
.geschafft-karte li { position: relative; padding: 10px 0 10px 30px; border-top: 1px solid var(--linie); font: 400 1.2rem/1.3 var(--serif); }
.geschafft-karte li:first-child { border-top: 0; }
.geschafft-karte li::before { content: ""; position: absolute; left: 4px; top: 15px; width: 13px; height: 7px; border-left: 3px solid var(--gruen); border-bottom: 3px solid var(--gruen); transform: rotate(-45deg); }
.geschafft-karte a { text-decoration: none; }
.geschafft-karte a:hover { text-decoration: underline; }
/* Projektliste: Laufendes zuerst, Geschafftes danach */
.raster .projekt.geschafft { order: 1; }
