/* style.css */

/* -----------------------------------------------------------
   1. VARIABLEN (Hier Farben & Schriften zentral steuern)
----------------------------------------------------------- */
:root {
  /* Farben */
  --col-primary:      #8b7355;      /* Hauptfarbe (Mittelbraun) */
  --col-primary-dark: #6d5a43;      /* Dunkles Braun (Text, Hover) */
  --col-secondary:    #c4b49c;      /* Helles Braun (Akzente, Linien) */
  
  --col-bg-body:      #faf8f5;      /* Hintergrund der Seite */
  --col-bg-card:      #fffdf9;      /* Hintergrund der Karten */
  --col-bg-alt:       #f5f0ea;      /* Hintergrund alternativer Sektionen */
  
  --col-text-main:    #3d3d3d;      /* Haupttext */
  --col-text-light:   #fff;         /* Text auf dunklem Grund */
  
  --col-border:       #e0d6c7;      /* Rahmenfarbe */
  
  /* Layout & Typo */
  --font-main:        "Segoe UI", Tahoma, Verdana, sans-serif;
  --max-width:        1200px;
  --header-height:    120px;        /* Platzhalter für Fixed Header */
}

/* -----------------------------------------------------------
   2. BASIS & RESET
----------------------------------------------------------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { overflow-x: hidden; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-main);
  line-height: 1.6;
  color: var(--col-text-main);
  background: var(--col-bg-body);
}

a { color: inherit; }

/* -----------------------------------------------------------
   3. HEADER & NAVIGATION
----------------------------------------------------------- */
header {
  background: linear-gradient(135deg, var(--col-primary) 0%, var(--col-primary-dark) 100%);
  color: var(--col-text-light);
  position: fixed;
  top: 0; left: 0; right: 0;
  padding: .8rem 0 1rem;
  z-index: 1000;
  box-shadow: 0 2px 15px rgba(0,0,0,.15);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: .5rem;
}

.brand-text { line-height: 1.05; padding-inline: .5rem; }
.brand-line1, .brand-line2 { white-space: nowrap; }

.brand-line1 {
  /* Wir senken die Mindestgröße von 1.7rem auf 1.15rem */
  font-size: clamp(1.15rem, 6vw, 3.4rem); 
  font-weight: 700;
  letter-spacing: -0.5px; /* Leichtes Zusammenrücken hilft zusätzlich */
}
.brand-line2 {
  font-size: clamp(.95rem, 3.1vw, 1.6rem);
  opacity: .95;
}

@media (max-width: 400px) {
  /* Schrift kleiner machen */
  .brand-line1 { font-size: 1.2rem; }
  .brand-line2 { font-size: 0.85rem; }
  
  /* Den seitlichen Abstand des Headers verringern, damit mehr Platz für Text ist */
  .nav-inner { padding: 0 0.5rem; } 
}
.menu-toggle {
  background: none;
  border: 1px solid rgba(255,255,255,.4);
  border-radius: 6px;
  color: var(--col-text-light);
  font-size: 1rem;
  cursor: pointer;
  padding: .4rem .6rem;
  position: relative;
  z-index: 1101;
}

nav { position: relative; width: 100%; }

nav ul {
  list-style: none;
  display: none;
  position: absolute;
  top: 100%; left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  background: var(--col-primary);
  flex-direction: column;
  padding: 0;
  box-shadow: 0 10px 20px rgba(0,0,0,.3);
  z-index: 1100;
}
nav ul.active { display: flex; }

nav ul li {
  border-top: 1px solid rgba(255,255,255,.2);
  padding: .8rem 1.5rem;
}
nav ul li:first-child { border-top: none; }

nav a {
  color: var(--col-text-light);
  text-decoration: none;
  font-size: .95rem;
  font-weight: 500;
  display: block;
}
nav a:hover { opacity: .85; }
nav ul li:hover { background: rgba(0,0,0,.12); }

/* -----------------------------------------------------------
   4. HERO SECTION
----------------------------------------------------------- */
.hero {
  /* HIER genau auf die Endung .jpeg achten: */
  background: linear-gradient(rgba(232,221,209,.9), rgba(232,221,209,.9)),
              url('./images/hero-bg.jpeg') center/cover;
              
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #5a4833;
  padding: 2rem 1rem;
  margin-top: var(--header-height);
}

.hero-inner { max-width: 700px; width: 100%; padding: 0 12px; }

.logo-hero {
  display: block;
  margin: 0 auto 2rem;
  width: min(88vw, 420px);
  height: auto;
  background-color: rgba(255,255,255,.6);
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: 0 8px 25px rgba(0,0,0,.15);
}

.hero-content h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  margin-bottom: 1rem;
  color: #5a4833;
}
.hero-content p {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  margin-bottom: 2rem;
  color: var(--col-primary-dark);
}

/* Button Global */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  background: var(--col-primary);
  color: var(--col-text-light);
  text-decoration: none;
  border-radius: 50px;
  transition: all .3s;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(0,0,0,.2);
  cursor: pointer;
  border: none; /* Reset für <button> */
}
.btn:hover {
  background: var(--col-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,.3);
}
.btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(0,0,0,.25);
}

/* -----------------------------------------------------------
   5. SECTIONS ALLGEMEIN
----------------------------------------------------------- */
section {
  padding: 4rem 1.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
  scroll-margin-top: var(--header-height);
}
section.alt {
  background: var(--col-bg-alt);
  max-width: 100%;
}

h2 {
  font-size: clamp(2rem, 4vw, 2.5rem);
  margin-bottom: 2.5rem;
  color: var(--col-primary-dark);
  text-align: center;
  position: relative;
}
h2::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -1rem;
  width: 80px;
  height: 3px;
  border-radius: 999px;
  background: var(--col-secondary);
}

/* Links allgemein */
.contact-item a, .footer-links a {
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.contact-item a:hover, .footer-links a:hover {
  border-bottom-color: rgba(0,0,0,.3);
}

/* -----------------------------------------------------------
   6. KONZEPT & ÜBER UNS
----------------------------------------------------------- */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}
.about-text h3 {
  color: var(--col-primary);
  margin-bottom: 1rem;
  font-size: clamp(1.3rem, 3vw, 1.8rem);
}
.about-text p {
  margin-bottom: 1rem;
  font-size: clamp(1rem, 2vw, 1.1rem);
  line-height: 1.7;
}
.about-image {
  display: block;
  width: 100%;
  height: 350px;
  /* ACHTUNG: Pfad prüfen */
  background: url('./images/betreuungskonzept.jpg') center/cover no-repeat;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0,0,0,.15);
}

.highlight-box {
  background: #e8ddd1;
  padding: 1.5rem;
  border-left: 5px solid var(--col-primary);
  margin: 2rem 0;
  border-radius: 5px;
}
.highlight-box strong { color: var(--col-primary-dark); font-size: 1.1rem; }
.highlight-box ul { margin-top: 1rem; padding-left: 1.5rem; }
.highlight-box li { margin-bottom: .5rem; }

/* Profile Cards */
.two-col-text {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
}
.profile-card {
  background: var(--col-bg-card);
  border-radius: 16px;
  padding: 1.75rem 1.5rem;
  box-shadow: 0 6px 18px rgba(0,0,0,.12);
  border: 1px solid var(--col-border);
  position: relative;
  overflow: hidden;
}
.profile-card::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at top left, rgba(139,115,85,.12), transparent 55%);
  pointer-events: none;
}
.profile-card h3 {
  color: var(--col-primary);
  margin-bottom: .8rem;
  position: relative;
  z-index: 1;
  font-size: clamp(1.35rem, 2.6vw, 1.7rem);
}
.profile-card p {
  position: relative;
  z-index: 1;
  font-size: clamp(1rem, 2vw, 1.05rem);
  line-height: 1.7;
  color: #40362b;
}

/* -----------------------------------------------------------
   7. SERVICES
----------------------------------------------------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}
.service-card {
  background: var(--col-bg-card);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 6px 18px rgba(0,0,0,.12);
  transition: all .3s;
  border-top: 4px solid var(--col-primary);
  border: 1px solid var(--col-border);
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0,0,0,.15);
}
.service-icon { font-size: 3rem; margin-bottom: 1rem; }
.service-card h3 {
  color: var(--col-primary);
  margin-bottom: 1rem;
  font-size: 1.3rem;
}
.service-card p { color: var(--col-text-main); line-height: 1.6; }

/* -----------------------------------------------------------
   8. PREISE & TAGESABLAUF
----------------------------------------------------------- */
.price-intro {
  max-width: 760px;
  margin: 0 auto 1.5rem;
  text-align: center;
  color: #665c4b;
}
.abo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  max-width: 1100px;
  margin: 0 auto;
}
.abo-card {
  position: relative;
  background: var(--col-bg-card);
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0,0,0,.12);
  padding: 1.4rem 1.2rem;
  text-align: center;
  border: 1px solid var(--col-border);
}
.abo-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--col-primary);
  border-radius: 14px 14px 0 0;
}
.abo-card h3 {
  font-size: 1.05rem;
  color: var(--col-primary);
  margin-bottom: .35rem;
}
.price {
  font-size: 1.9rem;
  color: var(--col-primary-dark);
  font-weight: 800;
  margin: .25rem 0 .75rem;
}
.price small {
  font-size: .85rem;
  color: #8b8b8b;
  font-weight: 500;
}
.price-notes {
  max-width: 900px;
  margin: 1.75rem auto 0;
  color: var(--col-text-muted);
  font-size: .98rem;
}
.price-notes li { margin: .35rem 0; }

/* Timeline */
.timeline { max-width: 900px; margin: 0 auto; }
.step {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.25rem;
}
.step .dot {
  width: 60px; height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--col-primary);
  color: #fff;
  font-size: 1.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
}
.step h4 { margin: .1rem 0 .35rem; color: var(--col-primary-dark); }
.step p { margin: 0; color: #4a4a4a; }
.rule {
  height: 18px;
  border-left: 3px solid #cbbba0;
  margin: 0 0 1.25rem 29px;
}

/* -----------------------------------------------------------
   9. AUFNAHME & DETAILS
----------------------------------------------------------- */
.admit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}
.admit-card {
  position: relative;
  background: var(--col-bg-card);
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0,0,0,.12);
  padding: 1.25rem;
  border-top: 4px solid var(--col-primary);
  display: flex;
  flex-direction: column;
  min-height: 440px;
  border: 1px solid var(--col-border);
}
.admit-head {
  display: flex;
  align-items: center;
  gap: .9rem;
  margin-bottom: .6rem;
  min-height: 3.2rem;
}
.admit-icon {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--col-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  box-shadow: 0 3px 10px rgba(0,0,0,.12);
  flex: 0 0 42px;
}
.admit-title { display: flex; flex-direction: column; }
.admit-title h3 {
  color: var(--col-primary);
  line-height: 1.25;
  font-size: 1.1rem;
}
.admit-title small { color: #8b8b8b; }
.admit-title .br { display: block; }
.admit-list {
  list-style: none;
  margin: .4rem 0 0;
  padding: 0;
}
.admit-list li {
  position: relative;
  padding-left: 1.6rem;
  margin: .5rem 0;
}
.admit-list li::before {
  content: "✔";
  position: absolute;
  left: 0; top: 0;
  color: var(--col-primary-dark);
  font-weight: 800;
}
.note {
  background: var(--col-bg-alt);
  border-left: 4px solid var(--col-primary);
  padding: .9rem;
  border-radius: 6px;
  margin-top: auto;
  color: #584f42;
}

/* FAQ */
details {
  background: var(--col-bg-card);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  box-shadow: 0 6px 18px rgba(0,0,0,.12);
  margin-bottom: 1rem;
  border-left: 4px solid var(--col-primary);
  border: 1px solid var(--col-border);
}
details[open] { background: #fffaf2; }
summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--col-primary-dark);
  list-style: none;
}
summary::-webkit-details-marker { display: none; }
.faq { max-width: 900px; margin: 0 auto; }

/* -----------------------------------------------------------
   10. KONTAKT & FOOTER
----------------------------------------------------------- */
.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 2rem;
}
.contact-info h3, .contact-form h3 {
  color: var(--col-primary);
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
}
.contact-item { margin-bottom: 1.25rem; }
.contact-item strong {
  color: var(--col-primary-dark);
  display: block;
  margin-bottom: .4rem;
}
.contact-item span, .contact-item a {
  color: var(--col-text-muted);
  line-height: 1.6;
}

.contact-form form { display: flex; flex-direction: column; gap: 1rem; }
.contact-form label {
  font-size: .9rem;
  color: var(--col-primary-dark);
  font-weight: 500;
}
.contact-form input, .contact-form textarea {
  padding: .8rem;
  border: 2px solid var(--col-secondary);
  border-radius: 10px;
  background: #fff;
  font-family: inherit;
  font-size: 1rem;
  width: 100%;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: none;
  border-color: var(--col-primary);
  box-shadow: 0 0 0 2px rgba(139,115,85,.2);
}
.contact-form textarea { resize: vertical; min-height: 150px; }
.form-note {
  font-size: .9rem;
  color: #666;
  margin-top: -.2rem;
  margin-bottom: .5rem;
}

/* WhatsApp */
.contact-actions {
  margin-top: .45rem;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.btn-whatsapp {
  display: inline-block;
  padding: .45rem .9rem;
  border-radius: 999px;
  border: 1px solid #25d366;
  background: #25d366;
  color: #fff;
  font-size: .85rem;
  font-weight: 600;
  text-decoration: none;
  line-height: 1;
  cursor: pointer;
}
.btn-whatsapp:hover {
  background: #1ea653;
  border-color: #1ea653;
}

footer {
  background: var(--col-primary);
  color: #fff;
  text-align: center;
  padding: 2rem 1.5rem;
  margin-top: 2rem;
}
footer .footer-links { margin-top: 1rem; font-size: .9rem; }
footer .footer-links a { color: #fff; margin: 0 .5rem; opacity: .9; }
footer .footer-links a:hover { opacity: 1; text-decoration: underline; }

/* -----------------------------------------------------------
   11. MEDIA QUERIES & HELPER
----------------------------------------------------------- */
@media (max-width: 900px) {
  .hero { margin-top: var(--header-height); }
}
@media (max-width: 980px) {
  .about-content, .admit-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .two-col-text, .contact-content { grid-template-columns: 1fr; }
}

/* Galerie Hover */
.gallery-grid > div {
  transition: transform .25s ease, box-shadow .25s ease;
}
.gallery-grid > div:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 10px 25px rgba(0,0,0,.18);
}