/* KulturKinder – modernisiertes Design, mobile-first */

:root {
  --color-accent: #d8001e;
  --color-accent-dark: #a80017;
  --color-ink: #221f1f;
  --color-ink-soft: #514c4c;
  --color-bg: #fdfbfa;
  --color-surface: #ffffff;
  --color-border: #ece5e3;
  --color-success-bg: #eaf7ee;
  --color-success-border: #bfe6cb;
  --color-success-ink: #1e6b34;
  --radius: 0;
  --radius-sm: 0;
  --shadow: 0 4px 20px rgba(34, 31, 31, 0.06);
  --shadow-lift: 0 10px 30px rgba(34, 31, 31, 0.12);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --wrap: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--color-ink);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  line-height: 1.25;
  margin: 0 0 0.6em;
  font-weight: 700;
}
h1 { font-size: clamp(1.8rem, 1.4rem + 2vw, 2.6rem); }
h2 { font-size: clamp(1.4rem, 1.2rem + 1vw, 1.9rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
a { color: var(--color-accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-accent);
  color: #fff;
  padding: 10px 16px;
  z-index: 1000;
}
.skip-link:focus { left: 10px; top: 10px; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(253, 251, 250, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--color-border);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-ink);
  font-weight: 700;
  font-size: 1.15rem;
}
.brand:hover { text-decoration: none; }
.brand__logo {
  height: 38px;
  width: auto;
  display: block;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  margin: 0 8px;
  background: var(--color-ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.main-nav {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 70px;
  left: 0;
  right: 0;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}
.main-nav.is-open { max-height: 420px; }
.main-nav a {
  color: var(--color-ink);
  padding: 14px 20px;
  border-bottom: 1px solid var(--color-border);
  font-weight: 600;
}
.main-nav a:last-child { border-bottom: none; }
.main-nav a:hover, .main-nav a.is-active { color: var(--color-accent); text-decoration: none; }

@media (min-width: 880px) {
  .nav-toggle { display: none; }
  .main-nav {
    position: static;
    flex-direction: row;
    max-height: none;
    overflow: visible;
    background: none;
    border: none;
    box-shadow: none;
  }
  .main-nav a {
    border-bottom: none;
    padding: 8px 4px;
    margin-left: 28px;
    position: relative;
  }
  .main-nav a.is-active::after,
  .main-nav a:hover::after {
    content: "";
    position: absolute;
    left: 4px; right: 4px; bottom: -4px;
    height: 2px;
    background: var(--color-accent);
  }
}

/* Hero */
.hero {
  padding: 56px 0 40px;
}
.hero__grid {
  display: grid;
  gap: 32px;
}
@media (min-width: 880px) {
  .hero__grid { grid-template-columns: 1.6fr 1fr; align-items: start; }
}
.hero__image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.hero__title { margin-bottom: 0.3em; }
.hero__lead { color: var(--color-ink-soft); font-size: 1.05rem; }

.cards-2 {
  display: grid;
  gap: 20px;
  margin-top: 28px;
}
@media (min-width: 560px) {
  .cards-2 { grid-template-columns: 1fr 1fr; }
}

/* Cards */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card--link { display: block; color: var(--color-ink); }
.card--link:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
  text-decoration: none;
}
.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  background: color-mix(in srgb, var(--color-accent) 12%, white);
  color: var(--color-accent);
  margin-bottom: 14px;
  font-size: 1.3rem;
}

.panel {
  background: var(--color-surface);
  border: 1px solid var(--color-accent);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.panel h2 {
  color: var(--color-accent);
  font-size: 1.3rem;
}
.panel .richtext ul { padding-left: 1.1em; margin: 0 0 1em; }
.panel .richtext li { margin-bottom: 0.4em; }

/* Sections */
.section { padding: 48px 0; }
.section--alt { background: var(--color-surface); border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); }
.section__intro { max-width: 720px; margin-bottom: 32px; }
.section__intro p { color: var(--color-ink-soft); }

/* Accordion (Angebote) */
.offer {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  margin-bottom: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.offer summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 700;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.offer summary::-webkit-details-marker { display: none; }
.offer summary::after {
  content: "+";
  flex: none;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  transition: transform 0.2s ease;
}
.offer[open] summary::after { transform: rotate(45deg); }
.offer__body {
  padding: 0 22px 24px;
  display: grid;
  gap: 22px;
}
@media (min-width: 760px) {
  .offer__body { grid-template-columns: 2fr 1fr; }
}
.offer__text p:last-child { margin-bottom: 0; }
.offer__info {
  background: #faf6f5;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-top: 14px;
}
.offer__info ul { margin: 0; padding-left: 1.1em; }
.offer__info li { margin-bottom: 0.3em; }
.offer__info p { font-weight: 700; margin: 0.6em 0 0.3em; }
.offer__info p:first-child { margin-top: 0; }
.offer__side img {
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
}
.offer__hint {
  background: var(--color-success-bg);
  border: 1px solid var(--color-success-border);
  color: var(--color-success-ink);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.92rem;
  font-weight: 600;
}

/* Team */
.team-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}
@media (min-width: 620px) { .team-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .team-grid { grid-template-columns: 1fr 1fr 1fr; } }
.team-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.team-card img { aspect-ratio: 2 / 3; object-fit: cover; object-position: center top; }
.team-card__body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.team-card blockquote {
  margin: auto 0 0;
  padding-top: 12px;
  border-top: 1px dashed var(--color-border);
  font-style: italic;
  color: var(--color-ink-soft);
}

/* Gallery */
.gallery {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 640px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 980px) { .gallery { grid-template-columns: repeat(4, 1fr); } }
.gallery__item {
  display: block;
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  box-shadow: var(--shadow);
  background: var(--color-border);
}
.gallery__item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.25s ease;
}
.gallery__item:hover img { transform: scale(1.06); }

.lightbox {
  position: fixed; inset: 0;
  background: rgba(20, 16, 16, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 1000;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-height: 88vh; }
.lightbox__close {
  position: absolute;
  top: 20px; right: 20px;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: none;
  background: #fff;
  font-size: 1.3rem;
  cursor: pointer;
  z-index: 1;
}
.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px; height: 48px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  color: var(--color-ink);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox__nav:hover { background: #fff; }
.lightbox__prev { left: 12px; }
.lightbox__next { right: 12px; }
@media (min-width: 640px) {
  .lightbox__prev { left: 24px; }
  .lightbox__next { right: 24px; }
}

/* Forms */
.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-weight: 600; margin-bottom: 6px; }
.form-field input,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font: inherit;
  background: var(--color-surface);
}
.form-field input:focus,
.form-field textarea:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 1px;
}
.hp-field { position: absolute; left: -9999px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-accent);
  color: #fff;
  border: none;
  padding: 13px 26px;
  font-weight: 700;
  cursor: pointer;
  font-size: 1rem;
}
.btn:hover { background: var(--color-accent-dark); text-decoration: none; }
.btn--ghost {
  background: none;
  color: var(--color-ink);
  border: 1px solid var(--color-border);
}
.btn--ghost:hover { border-color: var(--color-accent); color: var(--color-accent); }

.alert {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  font-weight: 600;
}
.alert--success { background: var(--color-success-bg); border: 1px solid var(--color-success-border); color: var(--color-success-ink); }
.alert--error { background: #fdeceb; border: 1px solid #f3b7b1; color: #9a1c14; }

.contact-side {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}
.contact-side img { border-radius: var(--radius-sm); margin-bottom: 16px; }
.contact-grid {
  display: grid;
  gap: 28px;
}
@media (min-width: 860px) { .contact-grid { grid-template-columns: 2fr 1fr; align-items: start; } }

/* AGB */
.prose h3 { margin-top: 1.6em; color: var(--color-accent); }
.prose { max-width: 780px; }

/* Footer */
.site-footer {
  background: var(--color-ink);
  color: #eee6e6;
  margin-top: 60px;
}
.site-footer a { color: #f3d9dc; }
.site-footer__inner {
  display: grid;
  gap: 32px;
  padding: 48px 0 30px;
  grid-template-columns: 1fr;
}
@media (min-width: 560px) { .site-footer__inner { grid-template-columns: 1fr 1fr; } }
@media (min-width: 920px) { .site-footer__inner { grid-template-columns: repeat(4, 1fr); } }
.site-footer h3 { color: #fff; font-size: 1rem; text-transform: uppercase; letter-spacing: 0.06em; }
.footer-partner-logo { width: 140px; margin-top: 16px; }
.site-footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 16px 0;
  font-size: 0.85rem;
  color: #b8adad;
}

/* Admin */
.admin-body { background: #f3f1f0; }
.admin-shell { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 220px;
  background: var(--color-ink);
  color: #fff;
  flex: none;
  padding: 24px 0;
}
.admin-sidebar a {
  display: block;
  color: #eee;
  padding: 12px 22px;
}
.admin-sidebar a.is-active, .admin-sidebar a:hover { background: var(--color-accent); color: #fff; text-decoration: none; }
.admin-main { flex: 1; padding: 32px; max-width: 900px; }
.admin-login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.admin-login .card { width: 100%; max-width: 380px; }
.offer-admin-item {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 14px;
}
.offer-admin-item__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.inline-actions { display: flex; gap: 8px; }
.inline-actions form { margin: 0; }
.btn-sm {
  font-size: 0.82rem;
  padding: 7px 14px;
  border: 1px solid var(--color-border);
  background: #fff;
  cursor: pointer;
}
.btn-sm--danger { color: #9a1c14; border-color: #f3b7b1; }
