/* Milchzauber – Template Styles */

:root{
  --brand:#f2b8a2;         /* pastelliges Aprikot */
  --bar:#FAF2DB;          /* Logo-Hintergrund (Creme) */
  --barText:#5B6B4D;      /* Logo-Grün */
  --brandOverlay:0.45;     /* Hero-Overlay */
  --text:#222;
  --muted:#666;
  --bg:#fff;
  --shadow:0 10px 30px rgba(0,0,0,.12);
}

*{box-sizing:border-box;}
html,body{height:100%;}
body{
  margin:0;
  font-family:Arial,sans-serif;
  color:var(--text);
  background:var(--bg);
  min-height:100vh;
  display:flex;
  flex-direction:column;
}
main{flex:1 0 auto;}

/* Header */
.topbar{background:var(--bar);}
.topbar nav{
  max-width:1100px;
  margin:0 auto;
  /* Balken-Höhe bleibt gleich, Logo wird darin groß (ohne Balken zu vergrößern) */
  height:120px;
  padding:0 20px;
  display:flex;
  align-items:center;
  gap:18px;
  flex-wrap:wrap;
}
.topbar a{color:var(--barText);text-decoration:none;font-weight:600;font-size:14px;opacity:.95;}
.topbar a:hover{opacity:1;text-decoration:underline;}

/* Hero */
.hero{
  min-height:90vh;
  /* Hero-Farblook wie auf den Unterseiten */
  background:
    linear-gradient(rgba(0,0,0,.28), rgba(0,0,0,.28)),
    url('hero.png');
  background-size:cover;
  background-position:center;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  color:#fff;
  position:relative;
}
.hero-content{max-width:760px;padding:40px 22px;}
.hero-content h1{font-size:56px;line-height:1;margin:0 0 10px;letter-spacing:.5px;}
.hero-content .subtitle{font-size:16px;margin:0 0 18px;opacity:.95;}
.hero-content .hero-text{font-size:13px;line-height:1.6;opacity:.92;margin:0 auto 22px;max-width:640px;}

.btn{
  display:inline-block;
  background:#fff;
  color:#333;
  padding:12px 26px;
  border-radius:999px;
  text-decoration:none;
  font-weight:600;
  font-size:13px;
}
.btn:hover{transform:translateY(-1px);}

.scroll-down{
  position:absolute;
  bottom:18px;
  left:50%;
  transform:translateX(-50%);
  color:#fff;
  text-decoration:none;
  font-size:18px;
  opacity:.9;
}
.scroll-down:hover{opacity:1;}


/* Sub-Hero für Unterseiten */
.hero.subhero{
  min-height:55vh;
}
.hero.subhero .hero-content h1{font-size:44px;}
@media (max-width: 900px){
  .hero.subhero{min-height:50vh;}
  .hero.subhero .hero-content h1{font-size:36px;}
}

/* Form */
.form-wrap{max-width:760px;margin:28px auto 0;text-align:left;background:#fff;border:1px solid #eee;border-radius:14px;padding:18px 18px 10px;box-shadow:0 6px 20px rgba(0,0,0,.08);}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;}
.form-field{display:flex;flex-direction:column;gap:6px;margin:0 0 14px;}
.form-field label{font-size:12px;color:#333;font-weight:700;}
.form-field input,.form-field textarea{
  font:inherit;
  padding:12px 12px;
  border-radius:10px;
  border:1px solid #ddd;
  outline:none;
}
.form-field textarea{min-height:140px;resize:vertical;}
.form-field input:focus,.form-field textarea:focus{border-color:#bbb;}
.form-actions{display:flex;justify-content:center;padding:6px 0 16px;}
.form-note{font-size:11px;color:var(--muted);text-align:center;margin:12px auto 0;max-width:760px;line-height:1.6;}
.checkline{display:flex;gap:10px;align-items:flex-start;font-size:11px;color:var(--muted);line-height:1.5;margin:0 0 14px;}
.checkline input{margin-top:2px;}
@media (max-width: 900px){
  .form-grid{grid-template-columns:1fr;}
}
/* Middle section (Kacheln) */
.section{padding:72px 20px;}
.container{max-width:1100px;margin:0 auto;}
.center{text-align:center;}
.section h2{font-size:34px;margin:0 0 26px;}

.cards{display:grid;grid-template-columns:repeat(4,1fr);gap:26px;align-items:start;}

@media (max-width: 1100px){
  .cards{grid-template-columns:repeat(2,1fr);}
}
@media (max-width: 600px){
  .cards{grid-template-columns:1fr;}
}
.card{display:flex;flex-direction:column;gap:12px;}
.card img{width:100%;height:260px;object-fit:cover;border-radius:2px;box-shadow:0 3px 10px rgba(0,0,0,.12);}
.card h3{margin:6px 0 0;font-size:16px;letter-spacing:.2px;}
.card p{margin:0;color:var(--muted);font-size:12px;line-height:1.6;}
.card .btn-dark{margin-top:12px;align-self:center;background:#111;color:#fff;padding:10px 22px;border-radius:999px;text-decoration:none;font-size:12px;}
.card .btn-dark:hover{transform:translateY(-1px);}

/* Footer */
footer{background:var(--bar);margin-top:auto;}
footer .footer-inner{max-width:1100px;margin:0 auto;padding:34px 20px;text-align:center;}
footer a{color:var(--barText);text-decoration:none;font-size:12px;margin:0 10px;opacity:.95;}
footer a:hover{opacity:1;text-decoration:underline;}

/* Simple page layout */
.page{padding:64px 20px;}
.page h1{margin:0 0 10px;}
.page p{margin:0 auto;max-width:760px;line-height:1.7;color:var(--muted);}

@media (max-width: 900px){
  .hero-content h1{font-size:44px;}
  .card img{height:240px;}
  .topbar nav{height:auto;padding:12px 16px;}
}


/* Logo in Navigation */
.brand{
  display:flex;
  align-items:center;
  gap:12px;
  margin-right:10px;
  height:100%;
  text-decoration:none;
  color:var(--barText);
  font-weight:700;
  letter-spacing:.5px;
}
.brand img{
  /* Logo füllt den Balken von oben bis unten */
  height:100%;
  width:auto;
  display:block;
}

/* Unterseiten: Hintergrund durchgehend Hero-Bild */
body.subpage{
  position:relative;
  background:url('hero.png') center/cover no-repeat fixed;
}
body.subpage::before{
  content:"";
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.28);
  pointer-events:none;
  z-index:0;
}
body.subpage main.page{
  background:transparent;
}
body.subpage .container{
  background:rgba(255,255,255,.86);
  border-radius:18px;
  padding:26px 22px;
  box-shadow:var(--shadow);
}

/* Kontaktseite: Formular/Content als Panel direkt auf dem Hero-Bild */
body.kontakt .container{
  background:transparent;
  box-shadow:none;
  padding:0;
}
body.kontakt .contact-panel{
  max-width:760px;
  margin:0 auto;
  background:rgba(255,255,255,.86);
  border-radius:18px;
  padding:26px 22px;
  box-shadow:var(--shadow);
  text-align:left;
}
body.kontakt .form-wrap{
  background:transparent;
  border:none;
  box-shadow:none;
  padding:0;
}
body.kontakt .form-note{margin-top:14px;}

body.subpage > *{position:relative;z-index:1;}

/* Termine: Kalender-Platzhalter */
.calendar-box{
  max-width:820px;
  margin:24px auto 0;
  padding:18px;
  border-radius:14px;
  background: rgba(255,255,255,.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 10px 30px rgba(0,0,0,.12);
}
.calendar-head{display:flex;gap:10px;align-items:baseline;margin-bottom:12px;}
.calendar-grid{
  display:grid;
  grid-template-columns: repeat(7, 1fr);
  gap:8px;
  font-size:14px;
}
.calendar-grid > div{
  padding:10px 0;
  text-align:center;
  border-radius:10px;
  background: rgba(255,255,255,.65);
}
.calendar-grid > div.muted{opacity:.35;}
.calendar-note{margin-top:12px;font-size:14px;opacity:.85;}
