/* ============================================================
   joh·ki — Ev.-luth. Johannes-Kindertagesstätte Neustadt a. Rbge.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@500;600;700;800&family=Mulish:ital,wght@0,400;0,500;0,600;0,700;0,800;1,500&family=Caveat:wght@600;700&display=swap');

:root {
  /* --- Brand colors (from the joh·ki logo + the actual building) --- */
  --blue: #185ea6;
  --blue-deep: #0e3f73;
  --blue-pale: #e9f1fa;
  --green: #96be10;
  --green-deep: #6d8b0c;
  --green-pale: #f1f7dd;
  --yellow: #f5b400;
  --yellow-deep: #c98f00;
  --coral: #e8613f;

  --cream: #fbf8f1;
  --cream-2: #f4efe1;
  --white: #ffffff;
  --ink: #1c2b3a;
  --ink-soft: #4d5f70;
  --ink-faint: #7c8a99;

  --radius-lg: 32px;
  --radius-md: 20px;
  --radius-sm: 12px;

  --shadow-soft: 0 14px 34px rgba(14, 38, 64, 0.10);
  --shadow-card: 0 6px 18px rgba(14, 38, 64, 0.09);
  --shadow-tight: 0 2px 8px rgba(14, 38, 64, 0.10);

  --font-display: "Baloo 2", ui-rounded, "Segoe UI", sans-serif;
  --font-body: "Mulish", "Segoe UI", sans-serif;
  --font-note: "Caveat", cursive;

  --container: 1180px;
}

/* ---------------------------- Reset ---------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
html { max-width: 100%; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; line-height: 1.12; color: var(--blue-deep); overflow-wrap: break-word; hyphens: auto; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
@media (max-width: 400px) { .container { padding: 0 16px; } }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--blue); color: #fff; padding: 12px 20px; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
  border-radius: 4px;
}

/* eyebrow label */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-deep);
}
.eyebrow::before {
  content: "";
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green);
  flex: none;
}

.section { padding: 96px 0; }
@media (max-width: 720px) { .section { padding: 64px 0; } }

.section-head {
  max-width: 640px;
  margin-bottom: 48px;
}
.section-head h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  margin-top: 10px;
}
.section-head p { color: var(--ink-soft); font-size: 1.08rem; margin-top: 14px; }

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.98rem;
  border: 2px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color .18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--yellow); color: var(--blue-deep); box-shadow: var(--shadow-card); }
.btn-primary:hover { box-shadow: var(--shadow-soft); background: #ffbf1f; }
.btn-outline { background: transparent; border-color: rgba(255,255,255,0.55); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,0.14); }
.btn-outline-dark { background: transparent; border-color: var(--blue); color: var(--blue); }
.btn-outline-dark:hover { background: var(--blue-pale); }
.btn-block { width: 100%; justify-content: center; }

/* ============================== HEADER ============================== */
.site-header {
  position: sticky; top: 0; z-index: 500;
  background: rgba(251, 248, 241, 0.97);
  border-bottom: 1px solid rgba(14, 63, 115, 0.08);
  transition: box-shadow .25s ease;
}
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(14,38,64,0.09); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
}
.brand { display: flex; align-items: center; gap: 10px; flex: none; min-width: 0; }
.brand img { height: 42px; width: auto; max-width: none; object-fit: contain; flex: none; }
.brand-text { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: var(--blue-deep); line-height: 1.15; }
.brand-text small { display: block; font-family: var(--font-body); font-weight: 600; font-size: 0.62rem; letter-spacing: 0.05em; color: var(--ink-faint); text-transform: uppercase; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--ink-soft);
  position: relative;
  padding: 6px 0;
}
.nav-links a:hover, .nav-links a.is-current { color: var(--blue); }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--green); transform: scaleX(0); transform-origin: left; transition: transform .2s ease;
}
.nav-links a:hover::after, .nav-links a.is-current::after { transform: scaleX(1); }

.nav-cta { display: flex; align-items: center; gap: 14px; flex: none; }
.nav-phone {
  display: flex; align-items: center; gap: 8px;
  font-weight: 800; color: var(--blue-deep); font-size: 0.95rem;
}
.nav-phone svg { flex: none; }

.nav-toggle {
  display: none;
  background: none; border: none; padding: 8px;
  flex-direction: column; gap: 5px;
}
.nav-toggle span { width: 24px; height: 3px; background: var(--blue-deep); border-radius: 3px; }

@media (max-width: 1180px) {
  .nav-links { position: fixed; inset: 72px 0 0 0; background: var(--cream); flex-direction: column; justify-content: flex-start; padding: 36px 24px; gap: 8px; opacity: 0; visibility: hidden; transition: opacity .22s ease, visibility 0s linear .22s; overflow-y: auto; }
  .nav-links.is-open { opacity: 1; visibility: visible; transition: opacity .22s ease, visibility 0s linear 0s; }
  .nav-links li { width: 100%; border-bottom: 1px solid rgba(14,63,115,0.08); }
  .nav-links a { display: block; padding: 16px 4px; font-size: 1.1rem; }
  .nav-phone span { display: none; }
  .nav-toggle { display: flex; }
}

@media (max-width: 400px) {
  .brand-text small { display: none; }
  .nav { gap: 10px; }
  .nav-cta { gap: 8px; }
  .btn { white-space: normal; text-align: center; }
}

/* ============================== HERO ============================== */
.hero {
  position: relative;
  overflow: hidden;
  padding: 56px 0 0;
  background:
    radial-gradient(1100px 480px at 82% -10%, var(--green-pale) 0%, transparent 60%),
    var(--cream);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.85fr);
  gap: 56px;
  align-items: center;
}
.hero-copy h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  margin-top: 16px;
  color: var(--blue-deep);
}
.hero-copy h1 em {
  font-style: normal;
  color: var(--green-deep);
  position: relative;
  white-space: nowrap;
}
.hero-copy p.lede {
  font-size: 1.18rem;
  color: var(--ink-soft);
  margin-top: 20px;
  max-width: 46ch;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

.hero-stats {
  display: flex;
  gap: 28px;
  margin-top: 44px;
  flex-wrap: wrap;
}
.hero-stat strong {
  display: block; font-family: var(--font-display); font-size: 1.9rem; color: var(--blue);
}
.hero-stat span { font-size: 0.86rem; color: var(--ink-faint); font-weight: 700; }

/* the "door" video frame — signature element */
.hero-visual { position: relative; display: flex; flex-direction: column; align-items: center; }
.visual-frame { position: relative; display: inline-block; }
.door-frame {
  position: relative;
  width: min(340px, 82vw);
  aspect-ratio: 3 / 4.35;
  border-radius: 170px 170px 26px 26px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 10px solid var(--white);
  outline: 3px solid var(--yellow);
  outline-offset: -3px;
}
.door-frame video, .door-frame img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 20%;
}
.door-frame::after {
  content: "";
  position: absolute; inset: 0;
  box-shadow: inset 0 -60px 60px -50px rgba(14,38,64,0.35);
  pointer-events: none;
}
.welcome-badge {
  position: absolute;
  top: 22px; left: -14px;
  background: var(--yellow);
  color: var(--blue-deep);
  font-family: var(--font-note);
  font-weight: 700;
  font-size: 1.5rem;
  padding: 6px 18px 8px;
  border-radius: 8px;
  transform: rotate(-8deg);
  box-shadow: var(--shadow-tight);
  z-index: 2;
  white-space: nowrap;
}

/* rainbow doormat accent — nod to the real entrance rug */
.doormat { margin-top: -18px; width: min(230px, 60vw); }

.hero-fish {
  position: absolute;
  opacity: 0.10;
  width: 480px;
  right: -90px;
  bottom: -110px;
  pointer-events: none;
}

@media (max-width: 940px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-visual { order: -1; margin-bottom: 8px; }
  .hero-copy { text-align: left; }
  .hero-stats { justify-content: flex-start; }
}

/* ============================== ABOUT ============================== */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}
.about-copy p { font-size: 1.08rem; color: var(--ink-soft); }
.fact-list { margin-top: 28px; display: grid; gap: 16px; }
.fact-item {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--white); border-radius: var(--radius-sm);
  padding: 16px 18px; box-shadow: var(--shadow-tight);
}
.fact-item .ico { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--blue-pale); color: var(--blue); }
.fact-item > div { min-width: 0; }
.fact-item strong { display: block; color: var(--blue-deep); font-family: var(--font-display); font-size: 1.05rem; }
.fact-item span { color: var(--ink-soft); font-size: 0.94rem; overflow-wrap: break-word; }

.pinboard-photo {
  position: relative;
  background: var(--white);
  padding: 12px 12px 46px;
  border-radius: 10px;
  box-shadow: var(--shadow-soft);
  transform: rotate(-3deg);
  max-width: 380px;
  margin: 0 auto;
}
.pinboard-photo img { border-radius: 4px; aspect-ratio: 3/4; object-fit: cover; }
.pinboard-photo figcaption {
  font-family: var(--font-note);
  font-size: 1.3rem;
  color: var(--blue-deep);
  text-align: center;
  margin-top: 10px;
}
.pin-dot {
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 3px 6px rgba(0,0,0,0.25);
}

@media (max-width: 860px) {
  .about-grid { grid-template-columns: minmax(0, 1fr); }
  .pinboard-photo { order: -1; margin-bottom: 12px; transform: rotate(-2deg); }
}

/* ============================== GRUPPEN ============================== */
.gruppen-section { background: var(--blue-deep); color: #fff; position: relative; overflow: hidden; }
.gruppen-section .section-head h2 { color: #fff; }
.gruppen-section .section-head p { color: rgba(255,255,255,0.75); }
.gruppen-section .eyebrow { color: var(--yellow); }
.gruppen-section .eyebrow::before { background: var(--yellow); }

.gruppen-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}
.gruppe-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-md);
  padding: 26px 22px;
  position: relative;
  overflow: hidden;
}
.gruppe-card .bar { position: absolute; top: 0; left: 0; right: 0; height: 6px; }
.gruppe-card h3 { color: #fff; font-size: 1.2rem; margin-top: 10px; }
.gruppe-card p { color: rgba(255,255,255,0.72); font-size: 0.94rem; margin-top: 8px; }
.gruppe-card .age { display: inline-block; margin-top: 14px; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.05em; background: rgba(255,255,255,0.12); padding: 5px 12px; border-radius: 999px; }

@media (max-width: 940px) { .gruppen-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
@media (max-width: 560px) { .gruppen-grid { grid-template-columns: minmax(0, 1fr); } }

/* ============================== GALLERY ============================== */
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 36px; }
.filter-btn {
  background: var(--white); border: 2px solid var(--cream-2); color: var(--ink-soft);
  padding: 10px 20px; border-radius: 999px; font-weight: 800; font-size: 0.9rem;
  transition: all .18s ease; flex: none;
}
.filter-btn:hover { border-color: var(--green); color: var(--blue-deep); }
.filter-btn.is-active { background: var(--blue); border-color: var(--blue); color: #fff; }

@media (max-width: 700px) {
  .filter-bar {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 10px;
    margin-bottom: 24px;
    margin-left: -16px; margin-right: -16px; padding-left: 16px; padding-right: 16px;
    scrollbar-width: none;
  }
  .filter-bar::-webkit-scrollbar { display: none; }
  .filter-btn { white-space: nowrap; }
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.gallery-item {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background: var(--white);
  padding: 8px 8px 0;
  box-shadow: var(--shadow-card);
  cursor: pointer;
  border: none;
  transform: rotate(var(--tilt, 0deg));
  transition: transform .22s ease, box-shadow .22s ease;
  display: block;
  width: 100%;
  text-align: left;
}
.gallery-item:nth-child(4n+1) { --tilt: -2deg; }
.gallery-item:nth-child(4n+2) { --tilt: 1.4deg; }
.gallery-item:nth-child(4n+3) { --tilt: -1deg; }
.gallery-item:nth-child(4n+4) { --tilt: 2deg; }
.gallery-item:hover { transform: rotate(0deg) translateY(-4px); box-shadow: var(--shadow-soft); }
.gallery-item img { aspect-ratio: 3/4; object-fit: cover; border-radius: 4px; width: 100%; }
.gallery-item .cap {
  font-family: var(--font-note);
  font-size: 1.15rem;
  color: var(--blue-deep);
  padding: 8px 4px 12px;
  text-align: center;
}
.gallery-item[hidden] { display: none; }

@media (max-width: 940px) { .gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 620px) { .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } }

.gallery-note {
  margin-top: 30px;
  font-size: 0.92rem;
  color: var(--ink-faint);
  text-align: center;
}

/* floating large preview shown on hover (desktop/mouse only) */
.gallery-hover-preview {
  position: fixed;
  top: 0; left: 0;
  z-index: 900;
  width: 340px;
  aspect-ratio: 3/4;
  border-radius: 14px;
  overflow: hidden;
  background: var(--white);
  border: 5px solid var(--white);
  box-shadow: 0 24px 60px rgba(14,38,64,0.35);
  pointer-events: none;
  opacity: 0;
  transform: scale(0.96);
  transition: opacity .15s ease, transform .15s ease;
}
.gallery-hover-preview.is-visible { opacity: 1; transform: scale(1); }
.gallery-hover-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(14, 20, 28, 0.92);
  display: none;
  align-items: center; justify-content: center;
  padding: 40px 20px;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: min(560px, 90vw); max-height: 82vh; border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
.lightbox-cap { color: #fff; font-family: var(--font-note); font-size: 1.4rem; text-align: center; margin-top: 16px; }
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute; background: rgba(255,255,255,0.12); border: none; color: #fff;
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  transition: background .18s ease;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,0.24); }
.lightbox-close { top: 22px; right: 22px; }
.lightbox-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 18px; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) { .lightbox-prev, .lightbox-next { width: 40px; height: 40px; } }

/* ============================== ZEITEN ============================== */
.zeiten-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
}
.zeiten-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-card);
}
.zeiten-card h3 { font-size: 1.3rem; display: flex; align-items: center; gap: 10px; }
.zeiten-card h3 svg { color: var(--green); }
.zeiten-rows { margin-top: 20px; display: grid; gap: 12px; }
.zeiten-row { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 12px; border-bottom: 1px dashed var(--cream-2); font-size: 0.98rem; }
.zeiten-row span:first-child { color: var(--ink-soft); }
.zeiten-row span:last-child { font-weight: 800; color: var(--blue-deep); }
.zeiten-card ul.plain { margin-top: 18px; display: grid; gap: 10px; }
.zeiten-card ul.plain li { display: flex; gap: 10px; font-size: 0.96rem; color: var(--ink-soft); }
.zeiten-card ul.plain li::before { content: "●"; color: var(--yellow); font-size: 0.6rem; margin-top: 7px; }

.konzept-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 940px) { .konzept-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
@media (max-width: 640px) { .konzept-grid { grid-template-columns: minmax(0, 1fr); } }

@media (max-width: 780px) { .zeiten-grid { grid-template-columns: minmax(0, 1fr); } }

/* ============================== ANMELDUNG ============================== */
.anmeldung-section {
  background: linear-gradient(160deg, var(--green) 0%, var(--green-deep) 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 64px 48px;
  position: relative;
  overflow: hidden;
}
@media (max-width: 640px) { .anmeldung-section { padding: 44px 24px; } }
@media (max-width: 400px) { .anmeldung-section { padding: 36px 18px; } }
.anmeldung-section h2 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.3rem); }
.anmeldung-section .eyebrow { color: rgba(255,255,255,0.85); }
.anmeldung-section .eyebrow::before { background: #fff; }
.anmeldung-inner { max-width: 640px; position: relative; z-index: 1; }
.anmeldung-inner p { color: rgba(255,255,255,0.92); font-size: 1.08rem; }
.anmeldung-steps { display: grid; gap: 14px; margin: 28px 0 32px; }
.anmeldung-steps li { display: flex; gap: 14px; align-items: flex-start; font-size: 0.98rem; }
.anmeldung-steps li > span:not(.num) { min-width: 0; overflow-wrap: break-word; }
.anmeldung-steps .num {
  flex: none; width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,0.2);
  display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 0.9rem;
}
.anmeldung-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ============================== FÖRDERVEREIN ============================== */
.fv-band {
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap; justify-content: space-between;
  background: var(--white); border-radius: var(--radius-md); padding: 30px 34px; box-shadow: var(--shadow-card);
}
.fv-band .txt { max-width: 560px; }
.fv-band h3 { font-size: 1.25rem; }
.fv-band p { margin: 8px 0 0; color: var(--ink-soft); }

/* ============================== KONTAKT ============================== */
.kontakt-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 44px; align-items: stretch; }
.kontakt-card { background: var(--white); border-radius: var(--radius-md); padding: 34px; box-shadow: var(--shadow-card); min-width: 0; }
.kontakt-list { margin-top: 22px; display: grid; gap: 18px; }
.kontakt-list a, .kontakt-list .row { display: flex; gap: 14px; align-items: flex-start; font-size: 1rem; min-width: 0; }
.kontakt-list .ico { flex: none; width: 38px; height: 38px; border-radius: 10px; background: var(--blue-pale); color: var(--blue); display: grid; place-items: center; }
.kontakt-list strong { display: block; color: var(--blue-deep); }
.kontakt-list span { overflow-wrap: break-word; word-break: break-word; min-width: 0; }
.kontakt-list a:hover strong { color: var(--green-deep); }
.map-wrap { border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-card); min-height: 320px; min-width: 0; position: relative; }
.map-wrap iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; }

@media (max-width: 860px) { .kontakt-grid { grid-template-columns: minmax(0, 1fr); } }

/* ============================== FOOTER ============================== */
.site-footer { background: var(--blue-deep); color: rgba(255,255,255,0.78); padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr); gap: 40px; }
.footer-col { min-width: 0; }
.footer-col a { overflow-wrap: break-word; word-break: break-word; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer-brand img { height: 40px; }
.footer-brand span { font-family: var(--font-display); color: #fff; font-weight: 700; font-size: 1.1rem; }
.site-footer p { font-size: 0.92rem; max-width: 34ch; }
.footer-col h4 { color: #fff; font-family: var(--font-body); font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 14px; }
.footer-col ul { display: grid; gap: 10px; }
.footer-col a { font-size: 0.92rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  margin-top: 44px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.14);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 0.82rem;
}
.footer-credit { text-align: center; margin-top: 16px; font-size: 0.78rem; color: rgba(255,255,255,0.5); }
.footer-credit span { color: #ee2a7b; }
.footer-credit a { color: rgba(255,255,255,0.72); font-weight: 700; text-decoration: underline; }
.footer-credit a:hover { color: #fff; }

@media (max-width: 780px) { .footer-grid { grid-template-columns: minmax(0, 1fr); } }

/* ============================== scroll reveal ============================== */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ============================== simple legal pages ============================== */
.legal-page { padding-top: 64px; padding-bottom: 100px; }
.legal-page h1 { font-size: clamp(1.8rem, 3vw, 2.4rem); overflow-wrap: break-word; hyphens: auto; }
.legal-page h2 { font-size: 1.25rem; margin-top: 40px; color: var(--blue-deep); overflow-wrap: break-word; hyphens: auto; }
.legal-page p, .legal-page li { color: var(--ink-soft); font-size: 0.98rem; overflow-wrap: break-word; }
.legal-page ul { list-style: disc; padding-left: 22px; display: block; margin-top: 10px; }
.legal-page li { margin-bottom: 6px; }
.legal-page a.inline { color: var(--blue); text-decoration: underline; overflow-wrap: break-word; word-break: break-word; }
.notice-box {
  background: var(--yellow); color: var(--blue-deep); border-radius: var(--radius-sm);
  padding: 18px 22px; font-size: 0.92rem; font-weight: 700; margin: 24px 0 12px;
}

/* ============================== page hero (Team / Termine / Info) ============================== */
.page-hero { padding: 64px 0 20px; background: radial-gradient(900px 400px at 85% -10%, var(--green-pale) 0%, transparent 60%), var(--cream); }
.page-hero h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-top: 12px; }
.page-hero p.lede { color: var(--ink-soft); font-size: 1.08rem; margin-top: 16px; max-width: 60ch; }

/* ============================== empty state ============================== */
.empty-state {
  text-align: center; padding: 64px 24px; background: var(--white); border-radius: var(--radius-md);
  box-shadow: var(--shadow-tight); color: var(--ink-faint);
}
.empty-state .emoji { font-size: 2.4rem; margin-bottom: 12px; display: block; }
.empty-state strong { display: block; color: var(--blue-deep); font-family: var(--font-display); font-size: 1.2rem; margin-bottom: 6px; }

/* ============================== TEAM ============================== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 26px;
}
.team-card { text-align: center; }
.team-photo {
  aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: var(--blue-pale);
  box-shadow: var(--shadow-card); margin: 0 auto 16px; border: 4px solid var(--white); outline: 3px solid var(--cream-2);
  display: flex; align-items: center; justify-content: center;
}
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-photo .placeholder { color: var(--blue); opacity: 0.4; }
.team-card h3 { font-size: 1.05rem; }
.team-card .role { color: var(--green-deep); font-weight: 700; font-size: 0.85rem; margin-top: 4px; }
.team-card .bio { color: var(--ink-soft); font-size: 0.88rem; margin-top: 8px; }
.team-stats { display: flex; gap: 28px; flex-wrap: wrap; margin: 8px 0 40px; }

@media (max-width: 940px) { .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .team-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; } }

/* ============================== TERMINE ============================== */
.termine-list { display: grid; gap: 16px; max-width: 760px; }
.termine-item {
  display: flex; gap: 20px; align-items: flex-start;
  background: var(--white); border-radius: var(--radius-sm); padding: 20px 22px; box-shadow: var(--shadow-tight);
}
.termine-date {
  flex: none; width: 68px; text-align: center; background: var(--blue-pale); border-radius: 12px; padding: 10px 4px;
}
.termine-date .day { display: block; font-family: var(--font-display); font-size: 1.5rem; color: var(--blue-deep); line-height: 1; }
.termine-date .month { display: block; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--blue); margin-top: 2px; }
.termine-content { min-width: 0; }
.termine-content h3 { font-size: 1.08rem; overflow-wrap: break-word; }
.termine-content .meta { font-size: 0.85rem; color: var(--ink-faint); font-weight: 700; margin-top: 2px; }
.termine-content p { margin-top: 8px; color: var(--ink-soft); font-size: 0.95rem; }
.termine-item.is-past { opacity: 0.55; }

/* ============================== INFORMATIONEN ============================== */
.info-grid { display: grid; gap: 20px; max-width: 820px; }
.info-card { background: var(--white); border-radius: var(--radius-sm); padding: 26px 28px; box-shadow: var(--shadow-tight); border-left: 5px solid var(--yellow); }
.info-card h3 { font-size: 1.15rem; }
.info-card .meta { font-size: 0.82rem; color: var(--ink-faint); font-weight: 700; margin-top: 4px; text-transform: uppercase; letter-spacing: 0.04em; }
.info-card .content { margin-top: 12px; color: var(--ink-soft); font-size: 0.98rem; white-space: pre-line; }

/* ============================== INSTAGRAM ============================== */
.insta-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.insta-tile { position: relative; display: block; border-radius: 14px; overflow: hidden; aspect-ratio: 1; box-shadow: var(--shadow-tight); }
.insta-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.insta-tile:hover img { transform: scale(1.06); }
.insta-tile-ico {
  position: absolute; top: 10px; right: 10px; width: 28px; height: 28px; border-radius: 50%;
  background: rgba(28,43,58,0.45); display: flex; align-items: center; justify-content: center; backdrop-filter: blur(2px);
}
@media (max-width: 860px) { .insta-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.insta-follow-card {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  background: linear-gradient(135deg, #f9ce34 0%, #ee2a7b 55%, #6228d7 100%);
  color: #fff; border-radius: var(--radius-md); padding: 26px 30px;
}
.insta-follow-card svg { flex: none; }
.insta-follow-card div { flex: 1; min-width: 0; }
.insta-follow-card strong { display: block; font-family: var(--font-display); font-size: 1.15rem; overflow-wrap: break-word; }
.insta-follow-card span { font-size: 0.92rem; opacity: 0.95; }
.insta-follow-card .btn-primary { background: #fff; color: #6228d7; flex: none; }
.insta-follow-card .btn-primary:hover { background: #fff; opacity: 0.9; }
@media (max-width: 600px) {
  .insta-follow-card { flex-direction: column; align-items: flex-start; text-align: left; }
  .insta-follow-card div { flex: none; width: 100%; }
  .insta-follow-card .btn-primary { width: 100%; justify-content: center; }
}

/* ============================== ADMIN PANEL ============================== */
.admin-body { background: var(--cream-2); min-height: 100vh; }
.admin-topbar {
  background: var(--blue-deep); color: #fff; padding: 16px 0;
}
.admin-topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.admin-brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; }
.admin-brand img { height: 30px; }
.admin-topbar nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.admin-topbar nav a {
  color: rgba(255,255,255,0.78); font-weight: 700; font-size: 0.88rem; padding: 8px 14px; border-radius: 999px; transition: background .15s ease, color .15s ease;
}
.admin-topbar nav a:hover, .admin-topbar nav a.is-active { background: rgba(255,255,255,0.14); color: #fff; }
.admin-topbar .logout { color: rgba(255,255,255,0.6); font-size: 0.85rem; }
.admin-topbar .logout:hover { color: #fff; }

.admin-main { padding: 40px 0 80px; }
.admin-head { margin-bottom: 28px; }
.admin-head h1 { font-size: 1.7rem; }
.admin-head p { color: var(--ink-soft); margin-top: 6px; }

.admin-card { background: var(--white); border-radius: var(--radius-md); padding: 28px 30px; box-shadow: var(--shadow-tight); margin-bottom: 26px; }
.admin-card h2 { font-size: 1.15rem; margin-bottom: 20px; }

.admin-dashboard-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 1000px) { .admin-dashboard-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .admin-dashboard-grid { grid-template-columns: minmax(0, 1fr); } }
.admin-dash-card {
  background: var(--white); border-radius: var(--radius-md); padding: 30px; box-shadow: var(--shadow-tight);
  display: block; transition: transform .15s ease, box-shadow .15s ease;
}
.admin-dash-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); }
.admin-dash-card .ico { width: 46px; height: 46px; border-radius: 12px; background: var(--blue-pale); color: var(--blue); display: grid; place-items: center; margin-bottom: 16px; }
.admin-dash-card h3 { font-size: 1.15rem; color: var(--blue-deep); }
.admin-dash-card p { color: var(--ink-soft); font-size: 0.9rem; margin-top: 8px; }
.admin-dash-card .count { display: inline-block; margin-top: 12px; font-size: 0.78rem; font-weight: 800; background: var(--green-pale); color: var(--green-deep); padding: 4px 12px; border-radius: 999px; }

.form-row { display: grid; gap: 6px; margin-bottom: 18px; }
.form-row.cols-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
.form-row.cols-3 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
.form-row label { font-weight: 800; font-size: 0.85rem; color: var(--blue-deep); }
.form-row input[type=text], .form-row input[type=date], .form-row input[type=time], .form-row input[type=password], .form-row textarea, .form-row select {
  font: inherit; font-size: 0.96rem; padding: 11px 14px; border: 2px solid var(--cream-2); border-radius: 10px; background: var(--cream); color: var(--ink); width: 100%;
}
.form-row input:focus, .form-row textarea:focus, .form-row select:focus { outline: none; border-color: var(--blue); background: #fff; }
.form-row textarea { resize: vertical; min-height: 90px; font-family: var(--font-body); }
.form-row input[type=file] { font-size: 0.9rem; }
.form-hint { font-size: 0.82rem; color: var(--ink-faint); font-weight: 500; }

@media (max-width: 640px) { .form-row.cols-2, .form-row.cols-3 { grid-template-columns: minmax(0, 1fr); } }

.admin-table { width: 100%; border-collapse: collapse; margin-top: 4px; }
.admin-table th { text-align: left; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-faint); padding: 10px 12px; border-bottom: 2px solid var(--cream-2); }
.admin-table td { padding: 12px; border-bottom: 1px solid var(--cream-2); font-size: 0.93rem; vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table .thumb { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; background: var(--blue-pale); }
.admin-table .thumb-hoverable { cursor: zoom-in; transition: transform .15s ease; }
.admin-table .thumb-hoverable:hover { transform: scale(1.08); }
.admin-table .actions { display: flex; gap: 8px; justify-content: flex-end; white-space: nowrap; }

.btn-small { padding: 8px 16px; font-size: 0.85rem; border-radius: 999px; font-weight: 800; display: inline-flex; align-items: center; gap: 6px; border: 2px solid transparent; }
.btn-edit { background: var(--blue-pale); color: var(--blue-deep); }
.btn-edit:hover { background: var(--blue); color: #fff; }
.btn-delete { background: #fdeceb; color: #b3402c; }
.btn-delete:hover { background: var(--coral); color: #fff; }
.btn-cancel { background: var(--cream-2); color: var(--ink-soft); }
.btn-cancel:hover { background: var(--cream); }

.alert { padding: 14px 20px; border-radius: 12px; font-weight: 700; font-size: 0.92rem; margin-bottom: 20px; }
.alert-success { background: var(--green-pale); color: var(--green-deep); }
.alert-error { background: #fdeceb; color: #b3402c; }

.login-shell { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--cream); padding: 24px; }
.login-card { background: #fff; border-radius: var(--radius-lg); padding: 44px 40px; box-shadow: var(--shadow-soft); max-width: 380px; width: 100%; text-align: center; }
.login-card img { height: 50px; margin: 0 auto 18px; }
.login-card h1 { font-size: 1.4rem; }
.login-card p { color: var(--ink-soft); font-size: 0.9rem; margin-top: 8px; }
.login-card form { margin-top: 24px; text-align: left; }

