/* ===== Sterzhäuser Sternchen — Webseite ===== */

:root {
  --color-bg: #FFFDF7;
  --color-bg-alt: #FFF5D6;
  --color-primary: #F5C842;
  --color-primary-dark: #E8B730;
  --color-secondary: #D4736A;

  --color-text: #3D2B1F;
  --color-text-light: #6B5344;
  --color-white: #ffffff;
  --color-border: #F0E0C8;
  --shadow-soft: 0 2px 12px rgba(61, 43, 31, 0.08);
  --shadow-card: 0 4px 20px rgba(61, 43, 31, 0.10);
  --radius: 12px;
  --max-width: 960px;
  --nav-height: 56px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: "Nunito", "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  font-size: 16px;
}

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

h1, h2, h3, h4 {
  line-height: 1.3;
}

a {
  color: var(--color-secondary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

/* ===== Header ===== */

.site-header {
  background: var(--color-white);
  text-align: center;
  padding: 32px 20px 16px;
}

.header-logo {
  width: 160px;
  margin: 0 auto 12px;
}

.header-title {
  font-size: 2rem;
  color: var(--color-text);
  font-weight: 800;
  margin-bottom: 4px;
}

.header-subtitle {
  font-size: 1.1rem;
  color: var(--color-text-light);
  font-weight: 400;
}

/* ===== Navigation ===== */

.site-nav {
  background: var(--color-white);
  border-bottom: 2px solid var(--color-bg-alt);
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  box-shadow: var(--shadow-soft);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--color-text);
}

.nav-toggle svg {
  width: 28px;
  height: 28px;
}

.nav-brand {
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-text);
  display: none;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.nav-logo {
  width: 32px;
  height: auto;
  opacity: 0;
  transition: opacity 0.3s;
}

.nav-brand-text {
  opacity: 0;
  transition: opacity 0.3s;
}

.site-nav.scrolled .nav-logo,
.site-nav.scrolled .nav-brand-text {
  opacity: 1;
}

.nav-links {
  display: flex;
  gap: 4px;
  list-style: none;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
}

.nav-links a {
  color: var(--color-text);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a:focus {
  background: var(--color-bg-alt);
  color: var(--color-primary-dark);
  text-decoration: none;
}

.nav-links a.active {
  background: var(--color-bg-alt);
  color: var(--color-secondary);
}

/* Mobile nav */
@media (max-width: 700px) {
  .nav-toggle {
    display: block;
  }

  .nav-brand {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--color-white);
    flex-direction: column;
    padding: 12px 20px;
    box-shadow: var(--shadow-card);
    border-bottom: 2px solid var(--color-bg-alt);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 12px 16px;
    font-size: 1rem;
  }
}

/* ===== Hero Section ===== */

.hero {
  position: relative;
  background: linear-gradient(rgba(61, 43, 31, 0.35), rgba(61, 43, 31, 0.5)),
              url('04_default.jpeg') center/cover no-repeat;
  color: var(--color-white);
  padding: 80px 20px;
  text-align: center;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-content {
  max-width: 640px;
}

.hero h2 {
  font-size: 2rem;
  margin-bottom: 16px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.hero p {
  font-size: 1.15rem;
  margin-bottom: 12px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
  line-height: 1.8;
}

.hero-facts {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 28px;
}

.hero-fact {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius);
  padding: 14px 20px;
  font-weight: 700;
  font-size: 0.95rem;
}

.hero-fact span {
  display: block;
  font-size: 0.8rem;
  font-weight: 400;
  opacity: 0.9;
}

/* ===== Section Common ===== */

.section {
  padding: 60px 20px;
}

.section--alt {
  background: var(--color-bg-alt);
}

.section-title {
  font-size: 1.75rem;
  text-align: center;
  margin-bottom: 32px;
  color: var(--color-text);
  position: relative;
}

.section-title--sub {
  margin-top: 48px;
  font-size: 1.35rem;
}

.section-intro {
  text-align: center;
  color: var(--color-text-light);
  margin-bottom: 24px;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--color-primary);
  margin: 12px auto 0;
  border-radius: 2px;
}

/* ===== Über mich ===== */

.about-content {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

.about-photo {
  width: 200px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  flex-shrink: 0;
  object-fit: cover;
}

.about-text {
  font-size: 1.05rem;
  color: var(--color-text-light);
}

.about-text p {
  margin-bottom: 16px;
}

@media (max-width: 600px) {
  .about-content {
    flex-direction: column;
    align-items: center;
  }

  .about-photo {
    width: 180px;
  }
}

/* ===== Konzept Cards ===== */

.konzept-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 600px) {
  .konzept-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.konzept-card {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-soft);
  border-left: 4px solid var(--color-primary);
  transition: box-shadow 0.2s;
}

.konzept-card:hover {
  box-shadow: var(--shadow-card);
}

.konzept-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
  color: var(--color-text);
}

.konzept-card p,
.konzept-card ul {
  font-size: 0.95rem;
  color: var(--color-text-light);
}

/* ===== Tagesablauf ===== */

.tagesablauf {
  max-width: 600px;
  margin: 24px auto 0;
}

.tagesablauf-item {
  display: flex;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.95rem;
}

.tagesablauf-item:last-child {
  border-bottom: none;
}

.tagesablauf-zeit {
  font-weight: 700;
  white-space: nowrap;
  color: var(--color-secondary);
  min-width: 110px;
}

/* ===== Galerie / Slideshow ===== */

.gallery {
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.gallery-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-slide {
  min-width: 100%;
  position: relative;
}

.gallery-slide img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  text-align: center;
  padding: 12px 20px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--color-white);
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.gallery-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--color-text);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: background 0.2s, transform 0.2s;
  z-index: 10;
  opacity: 0.8;
}

.gallery:hover .gallery-btn {
  opacity: 1;
}

.gallery-btn:hover {
  background: var(--color-white);
  transform: translateY(-50%) scale(1.1);
}

.gallery-btn--prev {
  left: 16px;
}

.gallery-btn--next {
  right: 16px;
}

.gallery-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 16px 0 4px;
}

.gallery-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-border);
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.gallery-dot.active {
  background: var(--color-secondary);
  transform: scale(1.25);
}

.gallery-dot:hover:not(.active) {
  background: var(--color-primary-dark);
}

@media (max-width: 600px) {
  #raeumlichkeiten {
    padding-left: 0;
    padding-right: 0;
  }

  #raeumlichkeiten .container {
    padding: 0;
  }

  #raeumlichkeiten .section-title,
  #raeumlichkeiten .section-intro {
    padding: 0 16px;
  }

  .gallery {
    border-radius: 0;
  }

  .gallery-slide img {
    aspect-ratio: 3 / 4;
  }

  .gallery-btn {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  .gallery-btn--prev { left: 8px; }
  .gallery-btn--next { right: 8px; }
}

/* ===== Kontakt ===== */

.kontakt-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 700px) {
  .kontakt-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.kontakt-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.kontakt-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.kontakt-icon {
  width: 40px;
  height: 40px;
  background: var(--color-bg-alt);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
  color: var(--color-secondary);
}

.kontakt-item p {
  font-size: 1rem;
}

.kontakt-item strong {
  display: block;
  margin-bottom: 2px;
}

.kontakt-map {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  min-height: 300px;
}

.kontakt-map iframe {
  width: 100%;
  height: 100%;
  min-height: 300px;
  border: none;
}

/* ===== Footer ===== */

.site-footer {
  background: var(--color-text);
  color: rgba(255, 255, 255, 0.8);
  padding: 40px 20px;
  font-size: 0.9rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.impressum-link {
  color: rgba(255, 255, 255, 0.6);
  font-weight: 400;
  transition: color 0.2s;
  background: none;
  border: none;
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  padding: 0;
}

.impressum-link:hover {
  color: var(--color-white);
  text-decoration: underline;
}

.footer-impressum {
  text-align: center;
  margin-top: 8px;
}

/* ===== Impressum Modal ===== */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--color-white);
  border-radius: var(--radius);
  max-width: 680px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 36px 32px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  position: relative;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.3s ease;
}

.modal-overlay.open .modal {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: var(--color-text-light);
  line-height: 1;
  padding: 4px 8px;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}

.modal-close:hover {
  background: var(--color-bg-alt);
  color: var(--color-text);
}

.modal-title {
  font-size: 1.4rem;
  color: var(--color-text);
  margin-bottom: 24px;
  padding-right: 32px;
}

.modal-body {
  line-height: 1.8;
  color: var(--color-text-light);
  font-size: 0.95rem;
}

.modal-body p {
  margin-bottom: 10px;
}

.modal-body h3 {
  font-size: 1.05rem;
  color: var(--color-text);
  margin-top: 20px;
  margin-bottom: 8px;
}

.modal-body strong {
  color: var(--color-text);
}

.modal-section-title {
  margin-top: 32px;
  font-size: 1.25rem;
  color: var(--color-text);
}

.modal-body ul {
  padding-left: 20px;
  margin: 8px 0 12px;
}

.modal-body li {
  margin-bottom: 4px;
}

@media (max-width: 600px) {
  .modal {
    padding: 24px 20px;
    max-height: 90vh;
  }
}

.footer-copy {
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
}
