/* Krippenfamilie Mutters – bewusst einfach: große Schrift, starke Kontraste, große Knöpfe */

/* Überschriften-Schrift "Fraunces" (SIL Open Font License) – liegt auf dem eigenen Webspace,
   es werden keine Daten an Google übertragen. */
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url("fonts/fraunces-latin-600-normal.woff2") format("woff2");
}

:root {
  --schrift-titel: "Fraunces", Georgia, "Times New Roman", serif;
  --text: #2b2118;
  --hell: #f5e5c0;
  --weiss: #fdf4dc;
  --braun: #7a4a27;
  --braun-dunkel: #5a3519;
  --akzent: #c4851c;
  --rand: #e2c88c;
  --fokus: #1a5fb4;
}
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 125%; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--hell);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--braun); text-decoration: underline; text-underline-offset: .15em; }
a:hover { color: var(--braun-dunkel); }
:focus-visible { outline: 4px solid var(--fokus); outline-offset: 3px; }

h1, h2, h3 { font-family: var(--schrift-titel); font-weight: 600; line-height: 1.2; color: var(--braun-dunkel); letter-spacing: .005em; }
h1 { font-size: 2rem; margin: 0 0 1.4rem; }
h2 { font-size: 1.55rem; margin: 2rem 0 .8rem; }
h3 { font-size: 1.25rem; margin: 0 0 .4rem; }
/* kleiner Zierstrich unter großen Überschriften, wie ein Schnitzmesser-Schwung */
h1::after, .hero h1::after {
  content: ""; display: block; width: 4.5rem; height: 6px; margin-top: .7rem;
  background: var(--akzent); border-radius: 6px 2px 6px 2px;
}
@media (min-width: 46rem) { h1 { font-size: 2.4rem; } h2 { font-size: 1.8rem; } }
p { margin: 0 0 1rem; }
.klein { font-size: .85rem; }
.breit { max-width: 62rem; margin: 0 auto; padding: 0 1rem; }
.text { max-width: 42rem; }

.sprung { position: absolute; left: -999px; top: 0; }
.sprung:focus { left: 1rem; top: 1rem; background: #fff; padding: .6rem 1rem; z-index: 20; }

/* Kopf und Menü */
.kopf { background: var(--weiss); border-bottom: 6px solid var(--akzent); }
.kopf .breit { padding-top: .8rem; padding-bottom: .9rem; }
.logo { display: flex; align-items: center; gap: .8rem; text-decoration: none; color: var(--braun-dunkel); margin-bottom: .8rem; }
.logo img { height: 4.5rem; width: auto; flex: none; }
.logo-text strong { display: block; font-family: var(--schrift-titel); font-weight: 600; font-size: 1.55rem; line-height: 1.2; }
.logo-text span { font-size: .85rem; }
.menue ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: .5rem; }
.menue li:last-child:nth-child(odd) { grid-column: 1 / -1; }
.menue a {
  display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: 3rem; padding: .4rem .6rem; background: var(--braun); color: #fff;
  font-weight: 700; text-decoration: none; border-radius: .4rem;
}
.menue a:hover { background: var(--braun-dunkel); color: #fff; }
.menue a[aria-current="page"] { background: var(--text); }
@media (min-width: 46rem) {
  .menue ul { display: flex; flex-wrap: wrap; }
  .menue a { padding: .4rem 1rem; }
}

main { padding: 1.5rem 0 3rem; }
main section { margin-bottom: 1.5rem; }
main section > h2:first-child { margin-top: 1rem; }

/* Knöpfe */
.knopf {
  display: inline-block; min-height: 3rem; padding: .7rem 1.4rem; margin: .3rem .5rem .3rem 0;
  background: var(--braun); color: #fff; font: inherit; font-weight: 700; text-decoration: none;
  border: 3px solid var(--braun); border-radius: .5rem; cursor: pointer; text-align: center;
}
.knopf:hover { background: var(--braun-dunkel); border-color: var(--braun-dunkel); color: #fff; }
.knopf.hell { background: var(--weiss); color: var(--braun); }
.knopf.hell:hover { background: var(--hell); color: var(--braun-dunkel); }
.knopf[hidden] { display: none; }

/* Karten */
.karte { background: var(--weiss); border: 2px solid var(--rand); border-radius: .6rem; padding: 1.2rem; }
.hero { background: var(--weiss); border: 2px solid var(--rand); border-radius: .6rem; padding: 1.4rem; margin-bottom: 1.5rem; }
/* Startseite mit Hintergrundfoto: das Foto bleibt gut sichtbar, der Begrüßungstext liegt auf einer hellen Karte,
   die das Foto unten nur leicht überlappt (so ist der Text immer gut lesbar) */
.hero-foto { padding: 0; background: none; border: 0; position: relative; }
.hero-foto > picture { display: block; border-radius: .6rem; overflow: hidden; border: 2px solid var(--rand); background: #3a3a3a; }
.hero-foto > picture img { width: 100%; height: 14rem; object-fit: cover; object-position: 50% 45%; }
.hero-foto .hero-text { position: relative; margin: -2.2rem .6rem 0; padding: 1.2rem 1.2rem .6rem; background: rgba(255, 253, 249, .98);
  border: 2px solid var(--rand); border-radius: .6rem; box-shadow: 0 4px 16px rgba(40, 25, 10, .25); }
@media (min-width: 46rem) {
  .hero-foto > picture img { height: 26rem; }
  .hero-foto .hero-text { margin: -5rem 0 0 2rem; max-width: 38rem; padding: 1.6rem 1.8rem .8rem; }
}
/* Titelbild oben auf den anderen Seiten */
.banner { margin: 0 0 1.5rem; border-radius: .6rem; overflow: hidden; border: 2px solid var(--rand); background: #f0dca8; }
.banner img { width: 100%; height: 10rem; object-fit: cover; }
@media (min-width: 46rem) { .banner img { height: 16rem; } }

.zitat { font-family: var(--schrift-titel); font-weight: 600; font-size: 1.3rem; line-height: 1.35; color: var(--braun); border-left: 6px solid var(--akzent); padding-left: 1rem; margin: 1.2rem 0; }

.liste, .raster, .galerie { list-style: none; margin: 0 0 1rem; padding: 0; }
.liste { display: grid; gap: 1rem; }
.raster { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); }

/* Termine */
.termin h3 { display: inline; margin: 0; }
.termin-kopf { margin-bottom: .6rem; }
.termin .wann, .termin .ort { margin-bottom: .5rem; }
.leer { font-weight: 700; }
.chip {
  display: inline-block; padding: .1rem .7rem; margin: 0 .5rem .4rem 0; border-radius: 2rem;
  font-size: .8rem; font-weight: 700; background: #f0dca8; color: var(--braun-dunkel); border: 2px solid var(--akzent);
}
.chip:empty { display: none; }
.chip-kurs { background: #dfeedd; border-color: #3d7a37; color: #1f4a1b; }
.chip-ausstellung { background: #f6e3cf; border-color: #a7653a; }
.chip-sozialkrippe { background: #e3e6f6; border-color: #3f4fa0; color: #1f2860; }
.chip-inarbeit { background: #fff1c2; border-color: #a07a00; color: #5a4400; }

/* Projekte */
.projekt-karte { padding: 0; overflow: hidden; }
.projekt-karte a { display: block; text-decoration: none; color: var(--text); height: 100%; }
.projekt-karte a:hover { background: var(--hell); }
.projekt-karte img, .platzhalter { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.platzhalter { display: flex; align-items: center; justify-content: center; background: #f0dca8; color: var(--braun-dunkel); font-weight: 700; }
.projekt-karte .titel { display: block; padding: .8rem 1rem .2rem; font-family: var(--schrift-titel); font-size: 1.25rem; font-weight: 600; line-height: 1.25; color: var(--braun-dunkel); text-decoration: underline; }
.projekt-karte .meta { display: block; padding: 0 1rem .8rem; font-size: .9rem; }
.projekt-karte .chip { margin-left: 1rem; }
.meta { margin-top: -.5rem; }
.zurueck { margin-bottom: .5rem; }
.daten { display: grid; grid-template-columns: max-content 1fr; gap: .3rem 1.2rem; max-width: 42rem; margin: 0 0 1.2rem; padding: 1rem; background: var(--weiss); border: 2px solid var(--rand); border-radius: .6rem; }
.daten dt { font-weight: 700; }
.daten dd { margin: 0; }
@media (max-width: 34rem) { .daten { grid-template-columns: 1fr; } .daten dd { margin-bottom: .5rem; } }

.galerie { display: grid; gap: .6rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 46rem) { .galerie { grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); } }
.galerie a { display: block; border: 3px solid transparent; border-radius: .4rem; overflow: hidden; background: #f0dca8; }
.galerie a:hover { border-color: var(--akzent); }
.galerie img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.foto-folgt { padding: 1rem; background: #f0dca8; border-radius: .5rem; font-weight: 700; }
.beitragsbild { margin: 0 0 1rem; max-width: 24rem; }
.beitragsbild img { border-radius: .5rem; width: 100%; }

/* Sozialprojekt, Spenden */
.spendenbox { background: #fff0c8; border: 3px solid var(--akzent); border-radius: .6rem; padding: 1rem 1.2rem; margin: 1rem 0; max-width: 42rem; }
.iban { font-size: 1.1rem; }
.iban span { font-weight: 700; user-select: all; white-space: nowrap; }
.geschichte p { max-width: 42rem; }
.mitgliedsarten .preis { font-weight: 700; font-size: 1.1rem; margin: 0; }
.punkte { padding-left: 1.3rem; }
.punkte li { margin-bottom: .6rem; }
.kontakt .gross { font-size: 1.4rem; font-weight: 700; overflow-wrap: anywhere; }
@media (max-width: 34rem) { .kontakt .gross { font-size: 1.15rem; } }
.fb-box .fb-platz { margin-top: 1rem; max-width: 500px; }
.fb-box iframe { border: 0; width: 100%; max-width: 500px; height: 700px; }

/* Formular */
.formular { max-width: 42rem; }
.formular fieldset { border: 0; margin: 0 0 1rem; padding: 0; }
.formular legend { font-weight: 700; margin-bottom: .4rem; padding: 0; }
.formular label { display: block; font-weight: 700; margin-bottom: .3rem; }
.formular .frei { font-weight: 400; }
.formular input[type="text"], .formular input[type="email"], .formular input[type="tel"], .formular textarea {
  width: 100%; min-height: 3rem; padding: .6rem .8rem; font: inherit; color: var(--text);
  background: #fff; border: 2px solid #7d6c5a; border-radius: .4rem;
}
.formular .wahl {
  display: flex; align-items: flex-start; gap: .8rem; padding: .9rem 1rem; margin-bottom: .6rem;
  border: 2px solid var(--rand); border-radius: .5rem; font-weight: 400; background: var(--hell); cursor: pointer;
}
.formular .wahl input { width: 1.6rem; height: 1.6rem; flex: none; margin: .15rem 0 0; accent-color: var(--braun); }
.formular .wahl:has(input:checked) { border-color: var(--braun); background: #f8e8c4; }
.nur-roboter { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Bildansicht (Lightbox) */
dialog.lb { position: fixed; inset: 0; width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(20, 15, 10, .96); color: #fff; }
dialog.lb[open] { display: flex; flex-direction: column; }
dialog.lb::backdrop { background: #000; }
.lb-bild { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: .5rem; }
.lb-bild img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lb-zahl { text-align: center; margin: .2rem 0; font-size: .9rem; }
.lb-knoepfe { display: flex; gap: .5rem; padding: .5rem; }
.lb-knoepfe button { flex: 1; min-height: 3.2rem; font: inherit; font-weight: 700; color: #fff; background: var(--braun); border: 2px solid #fff; border-radius: .5rem; cursor: pointer; }
.lb-knoepfe button[data-a="zu"] { background: #fff; color: var(--text); }

/* Zier-Logo (helles Holz) auf "Über uns" */
.deko { float: right; width: 16rem; margin: 0 0 1rem 1.5rem; }
.deko img { width: 100%; height: auto; }
@media (max-width: 34rem) { .deko { float: none; width: 13rem; margin: 0 auto 1rem; } }

/* Fuß */
.fuss { background: var(--braun-dunkel); color: #fff; padding: 1.5rem 0; font-size: .9rem; }
.fuss a { color: #fff; }
.fuss p { margin-bottom: .5rem; }

@media print {
  .menue, .fuss, .knopf, .sprung { display: none; }
  body { background: #fff; font-size: 12pt; }
}

/* Bautagebuch */
.weg-fertig figure,.weg figure{margin:0}
.weg-fertig img,.weg img{width:100%;height:auto;max-width:640px;display:block;border-radius:6px}
.weg{list-style:none;padding:0;margin:0;counter-reset:schritt}
.weg li{counter-increment:schritt;margin:0 0 2rem}
.weg figcaption,.weg-fertig figcaption{font-size:1.05rem;margin-top:.5rem;max-width:640px}
.weg figcaption::before{content:"Schritt " counter(schritt) ": ";font-weight:700}

.galerie .bt{display:block;font-size:1rem;margin-top:.35rem;line-height:1.3}

.nina-foto { float: right; width: 11rem; margin: 0 0 1rem 1.5rem; }
.nina-foto img { width: 100%; height: auto; border-radius: .5rem; }
.sozial-hero { margin: 0 0 1.5rem; max-width: 44rem; }
.sozial-hero img { width: 100%; height: auto; border-radius: .5rem; }
@media (max-width: 34rem) { .nina-foto { float: none; width: 10rem; margin: 0 auto 1rem; } }

.pixel-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: var(--weiss); color: #2b1d12; border-top: 4px solid var(--braun, #7a4a28); padding: 1rem; box-shadow: 0 -4px 16px rgba(0,0,0,.25); }
.pixel-banner p { margin: 0 0 .6rem; max-width: 60rem; }

/* Sozialprojekt hervorheben */
.streifen { display: block; background: #2b1d12; color: #fff; text-align: center; padding: .6rem 1rem; text-decoration: none; font-size: .95rem; line-height: 1.35; }
.streifen, .streifen:hover { color: #fff; }
.streifen:hover { background: #4a3322; }
.streifen span { text-decoration: underline; white-space: nowrap; }
.menue a.menue-spezial { background: #b5541c; border-color: #b5541c; }
.menue a.menue-spezial[aria-current] { background: #2b1d12; border-color: #2b1d12; }
.sozial-feld { display: grid; gap: 1rem; background: var(--weiss); border: 3px solid var(--akzent); border-radius: .7rem; overflow: hidden; margin: 0 0 2rem; }
.sozial-bild img { width: 100%; height: 100%; max-height: 22rem; object-fit: cover; display: block; }
.sozial-text { padding: 0 1.2rem 1.2rem; }
.sozial-text h2 { margin-top: .2rem; }
.kicker { margin: 0; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #8a5200; font-size: .85rem; }
@media (min-width: 46rem) { .sozial-feld { grid-template-columns: 2fr 3fr; align-items: center; } .sozial-text { padding: 1.2rem 1.5rem 1.2rem 0; } }

.pixel-banner { font-size: .85rem; line-height: 1.35; padding: .7rem 1rem; }
.pixel-banner .knopf { padding: .5rem 1rem; font-size: .95rem; min-height: 0; }
