/* Förderverein der Kita Manga-Bell-Straße – Stylesheet
   Keine externen Fonts (DSGVO): System-Schriften mit runden Varianten, wo verfügbar. */

:root {
  /* Farben angelehnt an das Kita-Gebäude: Terrakotta-Putz, Lärchenholz, Rasen */
  --bg: #faf6f1;
  --surface: #ffffff;
  --tint: #f3ebe2;
  --ink: #2b211d;
  --ink-soft: #645650;
  --line: #e8ddd2;
  --brick: #a8402a;
  --brick-600: #8a3220;
  --brick-100: #f7e3dc;
  --leaf: #4d7a2f;
  --leaf-600: #3c6124;
  --leaf-100: #e4eed8;
  --wood: #b8873f;
  --wood-100: #f4e8d3;
  --sand: #e9d3a6;
  --danger: #b3261e;
  --radius: 22px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(43,33,29,.06), 0 12px 32px -12px rgba(43,33,29,.2);
  --font: "Nunito", ui-rounded, "SF Pro Rounded", "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --font-display: ui-rounded, "SF Pro Rounded", "Nunito", "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.65 var(--font); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--brick); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.3rem, 5.6vw, 4.2rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 800; }
p { margin: 0 0 1em; }
.muted { color: var(--ink-soft); }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--wood); outline-offset: 2px; border-radius: 6px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; font: inherit; font-weight: 800; text-decoration: none; border: 2px solid transparent; border-radius: 999px; padding: .8em 1.4em; cursor: pointer; transition: transform .15s ease, background .15s ease, box-shadow .15s ease; line-height: 1.2; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--brick); color: #fff; box-shadow: 0 8px 20px -8px rgba(168,64,42,.6); }
.btn-primary:hover { background: var(--brick-600); }
.btn-ghost { background: transparent; color: var(--brick); border-color: currentColor; }
.btn-ghost:hover { background: var(--brick-100); }
.btn-danger { background: #fff; color: var(--danger); border-color: #f0c9c3; }
.btn-danger:hover { background: #fdecea; }
.btn-sm { padding: .5em 1em; font-size: .92rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .6; cursor: progress; transform: none; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(250,246,241,.86); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.is-scrolled { border-color: var(--line); }
.nav { width: min(1160px, 100% - 32px); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: .65em; color: var(--ink); text-decoration: none; font-size: .98rem; line-height: 1.2; }
.brand strong { display: block; font-weight: 800; }
.brand-mark { width: 38px; height: 38px; flex: none; border-radius: 12px; background: var(--brick); position: relative; overflow: hidden; }
.brand-mark::before { content: ""; position: absolute; inset: 9px; background: var(--sand); clip-path: path("M10 18.5S2 13.4 2 7.9A4.4 4.4 0 0 1 10 5.3a4.4 4.4 0 0 1 8 2.6c0 5.5-8 10.6-8 10.6Z"); }
.nav-links { list-style: none; display: flex; align-items: center; gap: 1.6rem; margin: 0; padding: 0; }
.nav-links a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 700; }
.nav-links a:not(.btn):hover { color: var(--brick); }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; position: relative; }
.nav-toggle span { position: absolute; left: 11px; right: 11px; height: 2.5px; background: var(--ink); border-radius: 2px; transition: transform .2s; }
.nav-toggle span:first-child { top: 17px; } .nav-toggle span:last-child { top: 25px; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(48px, 9vw, 120px) 0 clamp(56px, 8vw, 110px); }
.hero-inner { width: min(1160px, 100% - 32px); margin-inline: auto; position: relative; z-index: 2; }
.hero h1 { max-width: 15ch; }
.hero h1 em { font-style: normal; color: var(--brick); background: linear-gradient(transparent 62%, rgba(233,211,166,.9) 62%); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--ink-soft); max-width: 60ch; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 800; color: var(--leaf); margin-bottom: 1em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin: 2rem 0 2.6rem; }
.hero-facts { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 1rem; }
.hero-facts li { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: .8rem 1.2rem; display: flex; flex-direction: column; min-width: 150px; }
.hero-facts strong { font: 800 1.35rem/1.2 var(--font-display); color: var(--brick); }
.hero-facts span { font-size: .9rem; color: var(--ink-soft); }
.hero-art { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(2px); opacity: .9; }
.b1 { width: 440px; height: 440px; right: -120px; top: -80px; background: radial-gradient(circle at 30% 30%, #d0674c, var(--brick)); border-radius: 58% 42% 55% 45% / 50% 60% 40% 50%; animation: float 14s ease-in-out infinite; }
.b2 { width: 260px; height: 260px; right: 220px; bottom: -90px; background: var(--leaf-100); border-radius: 45% 55% 40% 60% / 55% 45% 55% 45%; animation: float 18s ease-in-out infinite reverse; }
.b3 { width: 120px; height: 120px; right: 80px; bottom: 70px; background: var(--leaf); opacity: .85; animation: float 11s ease-in-out infinite; }
.sun { position: absolute; width: 92px; right: 18%; top: 22%; color: #fff; opacity: .9; animation: spin 40s linear infinite; }
@keyframes float { 50% { transform: translate(-14px, 18px) rotate(6deg); } }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-tint { background: var(--tint); }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; transition: transform .2s, box-shadow .2s; }
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.feature p { color: var(--ink-soft); margin: 0; }
.feature-icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; margin-bottom: 18px; }
.feature-icon svg { width: 28px; height: 28px; fill: currentColor; }
.i-1 { background: var(--leaf-100); color: var(--leaf-600); } .i-2 { background: var(--leaf-100); color: var(--leaf-600); }
.i-3 { background: var(--brick-100); color: var(--brick); } .i-4 { background: var(--wood-100); color: #8a6224; }

/* ---------- Projekte ---------- */
.projects { display: grid; gap: 28px; }
.project { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.project:nth-child(even) { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
.project:nth-child(even) .project-media { order: 2; }
.project-media { position: relative; background: var(--brick-100); min-height: 280px; cursor: zoom-in; border: 0; padding: 0; }
.project-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.project:hover .project-media img { transform: scale(1.03); }
.project-media.is-empty { cursor: default; background: radial-gradient(circle at 30% 35%, var(--brick) 0 46px, transparent 47px), radial-gradient(circle at 68% 62%, var(--leaf) 0 30px, transparent 31px), radial-gradient(circle at 55% 30%, #fff 0 12px, transparent 13px), var(--brick-100); }
.project-body { padding: clamp(24px, 4vw, 44px); display: flex; flex-direction: column; justify-content: center; }
.project-date { display: inline-block; align-self: flex-start; font-size: .82rem; font-weight: 800; color: var(--leaf-600); background: var(--leaf-100); padding: .25em .8em; border-radius: 999px; margin-bottom: 14px; }
.project-body h3 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); }
.project-text { color: var(--ink-soft); white-space: pre-line; }
.project-text.is-clamped { display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.project-more { align-self: flex-start; background: none; border: 0; padding: 0; font: inherit; font-weight: 800; color: var(--brick); cursor: pointer; margin-top: .4em; text-decoration: underline; text-underline-offset: 3px; }
.skeleton { min-height: 280px; background: linear-gradient(100deg, #fff 30%, #f6f1e8 50%, #fff 70%) 0 0 / 300% 100%; animation: shimmer 1.4s infinite; box-shadow: none; }
@keyframes shimmer { to { background-position: -150% 0; } }
.projects-empty { text-align: center; padding: 48px; background: var(--surface); border-radius: var(--radius); color: var(--ink-soft); }
.projects-foot { margin: 28px 0 0; text-align: center; font-size: .9rem; }
.link-subtle { color: var(--ink-soft); }

/* ---------- Mitglied ---------- */
.split { display: grid; grid-template-columns: 1.2fr .9fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.callout { margin-top: 1.6rem; background: var(--leaf-100); border-left: 5px solid var(--leaf); border-radius: var(--radius-sm); padding: 1.1rem 1.3rem; }
.join-card { background: var(--brick); color: #fff; border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); box-shadow: 0 30px 60px -30px rgba(168,64,42,.7); position: sticky; top: 100px; }
.join-card a:not(.btn) { color: #fff; }
.join-card .btn-primary { background: var(--sand); color: var(--ink); box-shadow: none; margin-top: 8px; }
.join-card .btn-primary:hover { background: #f2e0bb; }
.join-card .btn-ghost { color: #fff; margin-top: 10px; }
.join-card .btn-ghost:hover { background: rgba(255,255,255,.1); }
.steps { list-style: none; padding: 0; margin: 1.2rem 0 1.4rem; display: grid; gap: 16px; }
.steps li { display: flex; gap: 14px; }
.steps li > span { flex: none; width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.15); display: grid; place-items: center; font-weight: 800; }
.steps p { margin: 0; opacity: .85; font-size: .95rem; overflow-wrap: anywhere; }

/* ---------- Vorstand ---------- */
.board { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 20px; }
.board li { background: var(--surface); border-radius: var(--radius); padding: 28px 22px; text-align: center; display: flex; flex-direction: column; align-items: center; border: 1px solid var(--line); }
.board strong { font-size: 1.1rem; }
.board li > span:last-child { color: var(--ink-soft); font-size: .92rem; }
.avatar { width: 84px; height: 84px; border-radius: 30px; display: grid; place-items: center; font: 800 1.5rem var(--font-display); color: #fff; margin-bottom: 16px; transform: rotate(-4deg); }
.a1 { background: var(--brick); } .a2 { background: var(--leaf); } .a3 { background: var(--wood); } .a4 { background: #6b4a3a; }
.board-contact { text-align: center; margin-top: 32px; color: var(--ink-soft); }

/* ---------- Footer ---------- */
.site-footer { background: #3a2a23; color: #f1e8e1; padding: 44px 0; }
.site-footer .muted { color: #bba89c; margin: .2em 0 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.site-footer ul { list-style: none; display: flex; gap: 1.4rem; padding: 0; margin: 0; flex-wrap: wrap; }
.site-footer a { color: #f1e8e1; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

/* ---------- Lightbox ---------- */
.lightbox { border: 0; padding: 0; border-radius: var(--radius); max-width: min(980px, 94vw); max-height: 92vh; overflow: auto; box-shadow: 0 30px 80px rgba(0,0,0,.4); }
.lightbox::backdrop { background: rgba(35,25,20,.75); backdrop-filter: blur(4px); }
.lightbox img { width: 100%; max-height: 64vh; object-fit: contain; background: #111; }
.lightbox-body { padding: 24px 28px 28px; }
.lightbox-body time { display: block; color: var(--ink-soft); font-size: .9rem; margin: -.3em 0 .8em; }
.lightbox-text { white-space: pre-line; color: var(--ink-soft); }
.lightbox-close { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); font-size: 26px; line-height: 1; cursor: pointer; }

/* ---------- Rechtliches (Impressum / Datenschutz) ---------- */
.legal { padding: 56px 0 96px; }
.legal .wrap { max-width: 780px; }
.legal h2 { font-size: 1.3rem; margin-top: 2em; }

/* ---------- Verwaltung ---------- */
.admin { background: var(--tint); }
.admin-bar { display: flex; justify-content: space-between; align-items: center; padding: 14px max(16px, calc((100% - 960px) / 2)); background: var(--surface); border-bottom: 1px solid var(--line); }
.admin-main { width: min(960px, 100% - 32px); margin: 32px auto 80px; display: grid; gap: 24px; }
.card { background: var(--surface); border-radius: var(--radius); padding: clamp(22px, 4vw, 36px); box-shadow: var(--shadow); }
.card h1 { font-size: 1.8rem; }
.card h2 { font-size: 1.35rem; margin: 0; }
.card-narrow { max-width: 460px; margin: 6vh auto 0; width: 100%; }
.card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.pill { background: var(--brick-100); color: var(--brick); font-weight: 800; font-size: .85rem; padding: .1em .7em; border-radius: 999px; }
.form { display: grid; gap: 16px; }
.form label { display: grid; gap: 6px; font-weight: 700; font-size: .95rem; }
.form input[type=text], .form input[type=password], .form input[type=date], .form textarea { font: inherit; font-weight: 400; padding: .75em .9em; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: #fffdf9; color: var(--ink); width: 100%; }
.form textarea { resize: vertical; min-height: 150px; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--brick); box-shadow: 0 0 0 4px var(--brick-100); }
.form-grid { grid-template-columns: 1fr 1.25fr; align-items: stretch; gap: 24px; }
.form-fields { display: grid; gap: 16px; align-content: start; }
.drop { position: relative; border: 2px dashed #d6c4b2; border-radius: var(--radius); background: #fffaf6; min-height: 300px; display: grid !important; place-items: center; cursor: pointer; overflow: hidden; transition: border-color .15s, background .15s; text-align: center; }
.drop:hover, .drop.is-over { border-color: var(--brick); background: var(--brick-100); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.drop.has-img { border-style: solid; border-color: var(--brick); }
.drop-hint { display: grid; gap: 4px; justify-items: center; color: var(--brick); padding: 20px; font-weight: 400; }
.drop-hint .muted { font-size: .85rem; }
.hint { font-size: .85rem; color: var(--ink-soft); margin: 0; font-weight: 400; }
.notice { padding: 14px 18px; border-radius: var(--radius-sm); font-weight: 700; }
.notice-ok { background: var(--leaf-100); color: var(--leaf-600); }
.notice-err { background: #fdecea; color: #8e2a1f; }
.admin-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.admin-list li { display: grid; grid-template-columns: 72px 1fr auto; gap: 16px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 16px; }
.admin-list img { width: 72px; height: 56px; object-fit: cover; border-radius: 10px; background: var(--brick-100); }
.thumb-empty { width: 72px; height: 56px; border-radius: 10px; background: var(--brick-100); }
.avatar.has-photo { padding: 0; overflow: hidden; transform: rotate(-4deg); }
.avatar.has-photo img { width: 100%; height: 100%; object-fit: cover; transform: rotate(4deg) scale(1.12); }
.tabs { display: flex; gap: 6px; background: var(--surface); padding: 6px; border-radius: 999px; box-shadow: var(--shadow); justify-self: start; }
.tabs a { padding: .5em 1.2em; border-radius: 999px; text-decoration: none; font-weight: 800; color: var(--ink-soft); }
.tabs a[aria-current] { background: var(--brick); color: #fff; }
.board-admin { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.board-admin > li { border: 1px solid var(--line); border-radius: 18px; padding: 14px; }
.board-form { display: grid; grid-template-columns: 88px 1fr auto; gap: 18px; align-items: center; }
.board-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.board-fields label { display: grid; gap: 4px; font-weight: 700; font-size: .88rem; }
.board-fields input[type=text] { font: inherit; font-weight: 400; padding: .6em .8em; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: #fffdfb; width: 100%; }
.board-fields input[type=text]:focus { outline: none; border-color: var(--brick); box-shadow: 0 0 0 4px var(--brick-100); }
.board-fields .check { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; font-weight: 400; }
.board-actions { display: flex; flex-direction: column; gap: 6px; }
.avatar-upload { position: relative; width: 88px; height: 88px; border-radius: 28px; background: var(--brick-100); color: var(--brick); display: grid; place-items: center; font: 800 1.5rem var(--font-display); overflow: hidden; cursor: pointer; }
.avatar-upload img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.avatar-upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.avatar-upload em { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(43,33,29,.6); color: #fff; font: 700 .7rem var(--font); font-style: normal; text-align: center; padding: 3px 0; opacity: 0; transition: opacity .15s; }
.avatar-upload:hover em, .avatar-upload.is-new em { opacity: 1; }
.avatar-upload.is-new { outline: 3px solid var(--leaf); }
.admin-list div { display: grid; min-width: 0; }
.admin-list strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-list .muted { font-size: .88rem; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .join-card { position: static; }
  .project, .project:nth-child(even) { grid-template-columns: 1fr; }
  .project:nth-child(even) .project-media { order: 0; }
  .project-media { min-height: 0; aspect-ratio: 4 / 3; }
  .form-grid { grid-template-columns: 1fr; }
  .drop { min-height: 220px; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav-toggle { display: block; }
  .nav-links { position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 16px 18px; display: none; }
  .nav-links.is-open { display: flex; }
  .nav-links li a:not(.btn) { display: block; padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .nav-links .btn { margin-top: 14px; width: 100%; }
  .b1 { width: 260px; height: 260px; right: -110px; top: -60px; opacity: .55; }
  .b2, .sun { display: none; }
  .b3 { width: 70px; height: 70px; right: 16px; bottom: 30px; opacity: .5; }
  .hero-facts li { min-width: 0; flex: 1 1 140px; }
  .hero-cta .btn { width: 100%; }
  .brand { font-size: .9rem; }
  .admin-list li { grid-template-columns: 56px 1fr; }
  .admin-list img { width: 56px; height: 48px; }
  .admin-list form { grid-column: 1 / -1; }
  .admin-list form .btn { width: 100%; }
  .board-form { grid-template-columns: 72px 1fr; }
  .avatar-upload { width: 72px; height: 72px; border-radius: 22px; }
  .board-fields { grid-template-columns: 1fr; }
  .board-actions { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; }
  .board-actions .btn { flex: 1; }
}

.card > h2 + .board-form { margin-top: 18px; }
