/* ==========================================================================
   Sternenkinder Pforzheim — style.css
   Warm Memorial Palette:
     Deep Mocha Brown:  #4d2d1f
     Dark Brown:        #3b2217
     Warm Gold:         #d4a017
     Gold Light / Tint: #faecd3 / #fcf6eb
     Soft Sky Blue:     #6aaecb
     Cream / Ivory:     #fbf7f0 / #f6efe6
     Off-White:         #fdfaf6
   Fonts: PT Sans (body) · Poppins (headings) · Great Vibes (quotes)
   ========================================================================== */

:root {
  --brown: #4d2d1f;
  --brown-dark: #3b2217;
  --brown-light: #6a4431;
  --gold: #d4a017;
  --gold-dark: #b8860b;
  --gold-light: #faecd3;
  --gold-tint: #fcf6eb;
  --lightblue: #6aaecb;
  --lightblue-dark: #0671a5;
  --cream: #fbf7f0;
  --cream-soft: #f6efe6;
  --offwhite: #fdfaf6;
  --text: #2c2521;
  --header-h: 80px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

html, body {
  overflow-x: hidden;
}

body {
  font-family: 'PT Sans', sans-serif;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text);
  background: var(--gold-tint);
  background-image:
    radial-gradient(ellipse 60% 45% at 15% 20%, rgba(212, 160, 23, 0.08) 0%, rgba(0, 0, 0, 0) 70%),
    radial-gradient(ellipse 50% 40% at 85% 85%, rgba(77, 45, 31, 0.07) 0%, rgba(0, 0, 0, 0) 70%);
  background-repeat: no-repeat;
  background-attachment: fixed;
}

h1, h2, h3, h4 {
  font-family: 'Poppins', sans-serif;
  color: var(--brown);
  line-height: 1.35;
  margin-bottom: 1rem;
}

h2 { font-size: 2.1rem; font-weight: 600; letter-spacing: -0.01em; }
h3 { font-size: 1.35rem; font-weight: 600; margin-top: 1.5rem; color: var(--brown-dark); }

p { margin-bottom: 1rem; }
a { color: var(--brown); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--gold-dark); }
img { max-width: 100%; height: auto; display: block; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 1.25rem; }

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

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(253, 250, 246, 0.98);
  box-shadow: 0 2px 14px rgba(77, 45, 31, 0.12);
  height: var(--header-h);
  border-bottom: 2px solid var(--gold);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.logo img {
  height: 58px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
}

.main-nav ul {
  display: flex;
  gap: 0.35rem;
  list-style: none;
}

.main-nav a {
  display: block;
  padding: 0.5rem 0.9rem;
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  white-space: nowrap;
  color: var(--brown);
  border-radius: 6px;
  transition: color .2s, background .2s;
}

.main-nav a:hover, .main-nav a.active {
  color: #fff;
  background: var(--brown);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  width: 26px; height: 3px;
  background: var(--brown);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ==========================================================================
   Hero slider & Overlay
   ========================================================================== */

.hero {
  position: relative;
  height: min(85vh, 720px);
  margin-top: var(--header-h);
  overflow: hidden;
  background: var(--brown-dark);
}

.hero-slider, .hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}

.hero-slide:nth-child(2) {
  background-position: center 65%;
}

.hero-slide:nth-child(3) {
  background-position: center 60%;
}

.hero-slide.active { opacity: 1; }

.hero-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(59, 34, 23, 0.72), rgba(0, 0, 0, 0.2) 60%);
}

.hero-overlay {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 4;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.hero-caption {
  position: relative;
  padding: 2.5rem 1.5rem 4.5rem;
  text-align: center;
  max-width: 900px;
}

.hero-caption h1 {
  color: #ffffff;
  font-size: clamp(2.1rem, 5.2vw, 3.5rem);
  font-weight: 600;
  text-shadow: 0 3px 20px rgba(0, 0, 0, 0.65);
  margin-bottom: 0.3rem;
}

.hero-sub {
  color: #ffffff;
  margin-top: 0.4rem;
  font-size: clamp(1.1rem, 2.3vw, 1.45rem);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.6);
  font-weight: 400;
}

.hero-dots {
  position: absolute;
  bottom: 1.4rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.7rem;
  z-index: 5;
}

.hero-dots button {
  width: 13px; height: 13px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background .2s, border-color .2s;
}

.hero-dots button.active {
  background: var(--gold);
  border-color: var(--gold);
  transform: scale(1.15);
}

/* Page hero (subpages) */
.page-hero {
  margin-top: var(--header-h);
  height: 340px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  position: relative;
  background-color: var(--brown-dark);
}

.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(59, 34, 23, 0.75), rgba(0,0,0,0.15) 60%);
}

.page-hero-caption {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.2rem 1.25rem;
  width: 100%;
}

.page-hero-caption h1 {
  color: #fff;
  font-size: clamp(1.6rem, 3.8vw, 2.4rem);
  text-shadow: 0 2px 16px rgba(0,0,0,0.65);
  margin: 0;
}

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

.breadcrumb {
  max-width: 1100px;
  margin: calc(var(--header-h) + 1rem) auto 0;
  padding: 0 1.25rem;
  font-size: 0.88rem;
}

.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0;
  margin: 0;
}

.breadcrumb li + li::before {
  content: "›";
  margin-right: 0.4rem;
  opacity: 0.6;
  color: var(--brown);
}

.breadcrumb a {
  color: var(--brown);
  opacity: 0.8;
}

.breadcrumb a:hover {
  color: var(--gold-dark);
  opacity: 1;
}

.breadcrumb span[aria-current="page"] {
  color: var(--text);
  font-weight: 600;
}

/* ==========================================================================
   Sections & Warm Transitions
   ========================================================================== */

.section {
  padding: 5rem 0;
  background: var(--offwhite);
  border-bottom: 1px solid rgba(212, 160, 23, 0.18);
  position: relative;
}

.section-cream {
  background: var(--cream);
}

.section-alt {
  background: var(--cream-soft);
}

.section-quote {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(2.1rem, 4.2vw, 3rem);
  color: var(--gold-dark);
  text-align: center;
  margin-bottom: 0.4rem;
  letter-spacing: 0.02em;
}

.section h2 {
  text-align: center;
  margin-bottom: 2rem;
}

.section h2::after {
  content: '';
  display: block;
  width: 80px; height: 3px;
  background: var(--gold);
  margin: 0.9rem auto 0;
  border-radius: 2px;
}

.section-text {
  max-width: 850px;
  margin: 0 auto 2.5rem;
  font-size: 1.08rem;
}

.list-intro {
  font-weight: 700;
  color: var(--brown-dark);
  margin-top: 2.5rem;
  font-size: 1.1rem;
}

/* Gold-star bullet list */
.star-list {
  list-style: none;
  margin: 1.2rem 0 2rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
}

.star-list.two-col {
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 900px) {
  .star-list.two-col {
    grid-template-columns: 1fr;
  }
}

.star-list li {
  position: relative;
  padding: 14px 20px 14px 3rem;
  background: #ffffff;
  border-radius: 8px;
  border-left: 3px solid var(--gold);
  box-shadow: 0 2px 10px rgba(77, 45, 31, 0.06);
  transition: transform 0.15s, background 0.15s, box-shadow 0.15s;
  display: block;
  margin-bottom: 0;
}

.star-list li:hover {
  background: var(--gold-tint);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(77, 45, 31, 0.12);
}

.star-list li::before {
  content: '★';
  position: absolute;
  left: 1.15rem; top: 0.85rem;
  color: var(--gold-dark);
  font-size: 1.2rem;
}

.star-list li p {
  margin: 0;
}

.star-list li p {
  margin: 0;
}

.star-list.two-col {
  columns: 2;
  column-gap: 2rem;
}

@media (max-width: 900px) {
  .star-list.two-col { columns: 1; }
}

/* Media rows */
.media-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 2.5rem;
  align-items: center;
  margin: 3rem 0;
}

.media-row-center {
  display: flex;
  justify-content: center;
}

.media-row-center .media-item {
  max-width: 850px;
  width: 100%;
}

.media-item img {
  border-radius: 10px;
  box-shadow: 0 8px 30px rgba(77, 45, 31, 0.14);
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

.media-item picture {
  display: block;
  width: 100%;
}

/* Certificate Card Showcase */
.cert-card {
  background: #ffffff;
  border: 1px solid rgba(212, 160, 23, 0.35);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 8px 28px rgba(77, 45, 31, 0.1);
  text-align: center;
}

.cert-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gold-tint);
  border: 1px solid var(--gold);
  color: var(--brown-dark);
  font-family: 'Poppins', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.cert-card p {
  font-weight: 600;
  color: var(--brown);
  margin-bottom: 14px;
  font-size: 0.98rem;
}

.cert-card img {
  border-radius: 8px;
  max-width: 100%;
  box-shadow: none;
}

/* Vehicle Slider */
.vehicle-slider-wrap {
  position: relative;
  margin-top: 1.5rem;
}

.vehicle-slider {
  position: relative;
  height: 360px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(77, 45, 31, 0.18);
  border: 1px solid rgba(212, 160, 23, 0.35);
  background: #111;
}

.vehicle-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vehicle-slide.active {
  opacity: 1;
}

.vehicle-slide picture {
  width: 100%;
  height: 100%;
  display: block;
}

.vehicle-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  box-shadow: none;
}

.vehicle-caption {
  position: absolute;
  bottom: 0;
  left: 0; right: 0;
  background: linear-gradient(to top, rgba(59, 34, 23, 0.88), rgba(0,0,0,0) 100%);
  color: #ffffff;
  padding: 26px 16px 12px;
  font-size: 0.92rem;
  font-weight: 500;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
  text-align: center;
  pointer-events: none;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(253, 250, 246, 0.9);
  border: 1px solid var(--gold);
  color: var(--brown);
  font-size: 1.6rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  transition: background 0.2s, color 0.2s;
}

.slider-btn:hover {
  background: var(--gold);
  color: #fff;
}

.slider-btn.prev { left: 12px; }
.slider-btn.next { right: 12px; }

.vehicle-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
}

.vehicle-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1.5px solid var(--brown);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, border-color 0.2s;
}

.vehicle-dots button.active {
  background: var(--gold);
  border-color: var(--gold);
  transform: scale(1.15);
}

/* Buttons */
.btn {
  display: inline-block;
  background: var(--brown);
  color: #fff !important;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  padding: 0.85rem 2.2rem;
  border-radius: 8px;
  border: 0;
  cursor: pointer;
  font-size: 1rem;
  box-shadow: 0 4px 14px rgba(77, 45, 31, 0.2);
  transition: background .2s, transform .15s, box-shadow .15s;
}

.btn:hover {
  background: var(--gold-dark);
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(212, 160, 23, 0.35);
}

.cta-line { text-align: center; margin-top: 2.5rem; }

/* ==========================================================================
   FAQ Section
   ========================================================================== */

.faq-list {
  max-width: 850px;
  margin: 2rem auto 0;
}

.faq-item {
  background: #ffffff;
  border-radius: 10px;
  margin-bottom: 1rem;
  box-shadow: 0 2px 14px rgba(77, 45, 31, 0.06);
  border: 1px solid rgba(212, 160, 23, 0.25);
  overflow: hidden;
  transition: border-color .2s;
}

.faq-item[open] {
  border-color: var(--gold);
}

.faq-item summary {
  padding: 1.15rem 1.5rem;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  color: var(--brown);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--gold-dark);
  line-height: 1;
}

.faq-item[open] summary::after {
  content: '−';
}

.faq-answer {
  padding: 0 1.5rem 1.3rem;
  color: var(--text);
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   Forms
   ========================================================================== */

.contact-intro {
  text-align: center;
  max-width: 850px;
  margin: 0 auto 1.5rem;
  width: 100%;
}

.contact-form {
  max-width: 640px;
  margin: 2rem auto;
  background: #ffffff;
  padding: 2.2rem;
  border-radius: 12px;
  border: 1px solid rgba(212, 160, 23, 0.25);
  box-shadow: 0 8px 32px rgba(77, 45, 31, 0.10);
}

.form-row { margin-bottom: 1.2rem; }

.form-row label {
  display: block;
  font-weight: 700;
  color: var(--brown);
  margin-bottom: 0.35rem;
}

.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="tel"],
.form-row textarea {
  width: 100%;
  padding: 0.75rem 0.95rem;
  border: 1px solid #d8d8d8;
  border-radius: 8px;
  font: inherit;
  background: var(--offwhite);
  transition: border-color .2s, box-shadow .2s;
}

.form-row input:focus, .form-row textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 160, 23, 0.25);
}

.form-check label { font-weight: 400; color: var(--text); }
.form-check input { margin-right: 0.4rem; }

.hp-field {
  position: absolute !important;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
  pointer-events: none;
}

.char-count { float: right; font-weight: 400; font-size: 0.85rem; color: #888; }

.contact-alt { text-align: center; margin-top: 2rem; }

/* Flash messages */
.flash {
  margin-top: calc(var(--header-h) + 1rem);
  margin-bottom: -3rem;
  padding: 1rem 1.25rem;
  border-radius: 8px;
  position: relative;
  z-index: 50;
}

.flash-success { background: #e8f5e9; border: 1px solid #a5d6a7; color: #2e7d32; }
.flash-error   { background: #fdecea; border: 1px solid #f5c6c0; color: #c62828; }

/* ==========================================================================
   Guestbook (Sternenlicht)
   ========================================================================== */

.page-title { text-align: center; font-size: 2.3rem; margin-bottom: 1.5rem; }

.memorial-quote {
  max-width: 700px;
  margin: 0 auto 2.5rem;
  text-align: center;
  font-style: italic;
  color: var(--brown);
}

.memorial-quote cite { display: block; margin-top: 0.5rem; color: var(--gold-dark); font-style: normal; font-weight: 600; }

.guestbook-entries {
  max-width: 800px;
  margin: 0 auto 3rem;
  display: grid;
  gap: 1.5rem;
}

.guestbook-entry {
  background: #ffffff;
  border-radius: 12px;
  padding: 1.8rem 2rem;
  box-shadow: 0 4px 22px rgba(77, 45, 31, 0.08);
  border-left: 4px solid var(--gold);
  border-top: 1px solid rgba(212, 160, 23, 0.15);
}

.entry-star { color: var(--gold-dark); font-size: 1.2rem; }

.entry-subject {
  display: inline;
  font-size: 1.15rem;
  margin-left: 0.4rem;
}

.entry-meta {
  color: #8a8a8a;
  font-size: 0.9rem;
  margin: 0.4rem 0 0.8rem;
}

.entry-name { font-weight: 700; color: var(--brown); margin-right: 0.8rem; }

.entry-text p { margin-bottom: 0.6rem; }

.guestbook-form-wrap { max-width: 700px; margin: 0 auto; }
.guestbook-form-wrap h2 { text-align: center; }
.guestbook-form-wrap > p { text-align: center; }

.no-entries { text-align: center; color: #888; }

/* ==========================================================================
   Legal pages
   ========================================================================== */

.legal-page { max-width: 800px; }
.legal-page h1 { margin-bottom: 2rem; }
.legal-page h2 { text-align: left; margin-top: 2rem; font-size: 1.35rem; }
.legal-page h2::after { margin-left: 0; }
.legal-page h3 { margin-top: 1.8rem; }

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

.site-footer {
  background: var(--brown-dark);
  color: rgba(255, 255, 255, 0.88);
  padding: 4rem 0 1.8rem;
  margin-top: 2rem;
  border-top: 3px solid var(--gold);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr));
  gap: 2.5rem;
}

.footer-logo { margin-bottom: 1rem; }

.site-footer h3 {
  color: var(--gold-light);
  font-size: 1.15rem;
  margin-bottom: 1.1rem;
}

.footer-contact, .footer-links { list-style: none; }
.footer-contact li, .footer-links li { margin-bottom: 0.75rem; }

.site-footer a { color: rgba(255, 255, 255, 0.88); }
.site-footer a:hover { color: var(--gold-light); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin-top: 2.5rem;
  padding-top: 1.2rem;
  text-align: center;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

.legal-page, .footer-contact, .footer-links, .guestbook-entry, .section-text {
  overflow-wrap: break-word;
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: #ffffff;
    box-shadow: 0 12px 24px rgba(77, 45, 31, 0.18);
    transform: translateY(-130%);
    transition: transform .3s ease;
    z-index: 99;
  }

  .main-nav.open { transform: translateY(0); }

  .main-nav ul { flex-direction: column; padding: 1rem; gap: 0.2rem; }
  .main-nav a { padding: 0.8rem 1rem; }

  .hero { height: 60vh; }
  .section { padding: 3.5rem 0; }
  .contact-form { padding: 1.5rem; }
  .vehicle-slider { height: 280px; }
}
