/* ----------- Color Theme: Ash & Pine + Maple separators ----------- */
:root {
  --bg:#F7F3EE; --fg:#212322; --muted:#5A615D;
  --primary:#2E604A; --primary-contrast:#FFFFFF;
  --accent:#6D4C41; --accent-2:#A6613A;
  --maple:#C8904A; /* Ahorn-Ton für Linien */
  --surface:#FFFFFF; --line:rgba(0,0,0,.08); --shadow:0 10px 30px rgba(0,0,0,.1);
}

*{ box-sizing:border-box; }
html,body{ height:100%; scroll-behavior:smooth; }
body{ margin:0; font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji", sans-serif; color:var(--fg); background:var(--bg); line-height:1.6; }
img{ max-width:100%; display:block; }
.nowrap{ white-space:nowrap; }
.wrap{ width:min(1160px, 92%); margin:0 auto; }
section{ padding: clamp(56px, 8vw, 84px) 0; }
.section-text{ color: var(--muted); }

.section-sep{ height:10px; background: linear-gradient(90deg, transparent, var(--maple), transparent); opacity:.25; }

.skip{ position:absolute; left:-999px; top:auto; width:1px; height:1px; overflow:hidden; }
.skip:focus{ left:16px; top:16px; width:auto; height:auto; background:#fff; padding:8px 10px; border-radius:8px; }

/* ----------- Header ----------- */
.header{ position:sticky; top:0; z-index:50; background: rgba(255,255,255,.85); border-bottom:1px solid var(--line); backdrop-filter: blur(8px); }
.header .wrap{ display:flex; align-items:center; gap:1rem; padding:.7rem 0; }
.brand{ display:flex; align-items:center; gap:.6rem; color:inherit; text-decoration:none; font-weight:800; }
.brand__name{ letter-spacing:.2px; }
.header__location{ margin-left:.2rem; font-size:.95rem; color: var(--muted); }
.nav{ display:flex; gap:.4rem; margin-left:auto; align-items:center; }
.nav__link{ padding:.5rem .9rem; text-decoration:none; color:inherit; border-radius:999px; }
.nav__link:hover{ background: rgba(0,0,0,.05); }
.nav__link.active{ color: var(--primary); background: rgba(46,96,74,.08); font-weight:800; }
.nav__tel{ text-decoration:none; font-weight:800; padding:.45rem .8rem; border-radius:999px; border:1px solid var(--primary); color: var(--primary); }
.burger{ display:none; width:42px; height:38px; background:none; border:0; cursor:pointer; margin-left:.5rem; }
.burger span{ display:block; height:2px; background: currentColor; margin:8px 0; transition: transform .3s, opacity .3s; }
.burger[aria-expanded="true"] span:nth-child(1){ transform: translateY(10px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2){ opacity:0; }
.burger[aria-expanded="true"] span:nth-child(3){ transform: translateY(-10px) rotate(-45deg); }

@media (max-width: 1000px){
  .header__location{ display:none; }
}
@media (max-width: 900px){
  .burger{ display:block; }
  .nav{ position: fixed; inset:64px 0 auto 0; background: rgba(255,255,255,.98); padding:1rem; flex-direction:column; transform: translateY(-120%); transition: transform .35s; }
  .nav.open{ transform: translateY(0); }
  .nav__tel{ width:100%; text-align:center; }
}

/* ----------- Parallax ----------- */
.parallax{ position:relative; isolation:isolate; }
.parallax::before{
  content:""; position:absolute; inset:0; z-index:-1;
  background: linear-gradient(0deg, rgba(0,0,0,.18), rgba(0,0,0,.18)), var(--parallax) center/cover no-repeat fixed;
}

/* ----------- Hero ----------- */
.hero{ min-height: clamp(62vh, 74vh, 88vh); display:grid; align-items:center; color:#fff; }
.hero__content{ padding:9vh 0; }
.hero h1{ font-size: clamp(2.2rem, 1.6rem + 3vw, 3.6rem); margin:0 0 .5rem; }
.lead{ font-size: clamp(1.05rem, 1rem + .5vw, 1.25rem); max-width: 68ch; }
.hero__cta{ margin-top: 1rem; display:flex; gap:.6rem; flex-wrap:wrap; }
.hero__badges{ list-style:none; display:flex; gap:.6rem; padding:0; margin:1rem 0 0; flex-wrap:wrap; }
.hero__badges li{ backdrop-filter: blur(6px); background: rgba(0,0,0,.35); color:#fff; border:1px solid rgba(255,255,255,.2); padding:.4rem .7rem; border-radius:999px; font-weight:600; font-size:.95rem; }

/* ----------- Buttons ----------- */
.btn{ background: var(--primary); color: var(--primary-contrast); padding:.65rem 1rem; border:0; border-radius:999px; text-decoration:none; box-shadow:var(--shadow); font-weight:800; cursor:pointer; }
.btn--ghost{ background: transparent; color: var(--primary); border:1px solid var(--primary); box-shadow: none; }
.link-strong{ font-weight:800; color: var(--fg); text-decoration:none; }

/* ----------- Teaser (parallax) ----------- */
.teaser .teaser__card{
  background: rgba(255,255,255,.9); backdrop-filter: blur(6px);
  border: 1px solid var(--line); border-radius: 16px; padding: 18px;
  box-shadow: var(--shadow);
}
.teaser__cols{ display:grid; grid-template-columns: repeat(2,1fr); gap:10px; margin: 10px 0 0; }
@media (max-width: 700px){ .teaser__cols{ grid-template-columns: 1fr; } }
.claims{ display:flex; flex-wrap:wrap; gap:.5rem; margin-top:12px; }
.chip{ border:1px solid var(--primary); color: var(--primary); background: rgba(46,96,74,.06); border-radius: 999px; padding:.35rem .7rem; font-weight:800; }

/* ----------- Tiles / Leistungen ----------- */
.tiles .section-text{ margin-top:.4rem; }
.tiles__grid{ margin-top: 24px; display:grid; grid-template-columns: repeat(3, 1fr); gap:16px; }
@media (max-width: 900px){ .tiles__grid{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px){ .tiles__grid{ grid-template-columns: 1fr; } }

.tile{ position:relative; overflow:hidden; border-radius: 16px; background: var(--surface); min-height: 240px; display:grid; }
.tile__bg{ position:absolute; inset:0; background: var(--img) center/cover no-repeat; filter: brightness(.9) saturate(1.05); transform: scale(1.06); transition: transform .6s ease; }
.tile::after{ content:""; position:absolute; inset:0; background: linear-gradient(to top, rgba(0,0,0,.55), rgba(0,0,0,.25) 40%, rgba(0,0,0,.1) 70%, rgba(0,0,0,0)); }
.tile:hover .tile__bg{ transform: scale(1.12); }
.tile__text{ position:relative; z-index:1; margin-top:auto; padding:16px; background: rgba(0,0,0,.28); color:#fff; backdrop-filter: blur(4px); border-top-left-radius: 12px; border-top-right-radius: 12px; text-shadow: 0 1px 2px rgba(0,0,0,.4); }
.tile__text h3{ margin:0 0 .25rem; }
.tile__text p{ margin:0; opacity:.95; }
.usp{ display:grid; grid-template-columns: repeat(3,1fr); gap:12px; margin-top:16px; }
@media (max-width: 800px){ .usp{ grid-template-columns:1fr; } }
.usp__item{ border:1px solid var(--line); background: var(--surface); border-radius:12px; padding:12px 14px; box-shadow: var(--shadow); display:grid; gap:2px; }
.usp__item strong{ color: var(--accent); }

/* ----------- Reel (horizontal gallery) ----------- */
.reel{ padding: 54px 0 26px; position: relative; }
.reel::before{ content:""; position:absolute; left:0; right:0; top:0; height:8px; background: linear-gradient(90deg, transparent, var(--maple), transparent); opacity:.25; }
.reel__viewport{ position:relative; overflow:hidden; }
.reel__track{ display:flex; gap:16px; padding: 10px 16px; }
.reel__item{ position:relative; flex:0 0 clamp(260px, 36vw, 420px); aspect-ratio: 4/3; border-radius:14px; overflow:hidden; transform: perspective(1000px) rotateY(0deg) scale(0.98); transition: transform .35s ease, box-shadow .35s ease; box-shadow: var(--shadow); border:1px solid var(--line); background: var(--surface); }
.reel__item img{ width:100%; height:100%; object-fit: cover; transition: transform .5s ease; }
.reel__item:hover img{ transform: scale(1.06); }
.reel__item.is-center{ transform: perspective(1000px) rotateY(0deg) scale(1.04); box-shadow: 0 20px 40px rgba(0,0,0,.18); }

/* ----------- About / Offer grid ----------- */
.two{ display:grid; grid-template-columns: 1.2fr .8fr; gap:24px; align-items:center; }
.two--swap{ grid-template-columns: .9fr 1.1fr; }
@media (max-width: 900px){ .two, .two--swap{ grid-template-columns:1fr; } }
.check{ list-style:none; padding:0; margin:12px 0 0; display:grid; gap:6px; color:var(--muted); }
.check li::before{ content:"✓ "; color: var(--accent); font-weight:700; }
.about__img img{ border-radius: 16px; border:1px solid var(--line); box-shadow: var(--shadow); }

.offer-grid{ display:grid; grid-template-columns: repeat(3,1fr); gap:12px; margin-top: 14px; }
@media (max-width: 900px){ .offer-grid{ grid-template-columns: 1fr; } }
.offer-grid > div{ background:#fff; border:1px solid var(--line); border-radius:12px; padding:12px 14px; box-shadow: var(--shadow); }
.offer-grid h3{ margin:0 0 4px; color: var(--primary); }
.note-line{ margin-top:12px; padding:10px 12px; border-left:4px solid var(--maple); background: rgba(200,144,74,.08); border-radius: 0 10px 10px 0; }

/* ----------- Why Miny ----------- */
.why__grid{ list-style:none; padding:0; margin:12px 0 0; display:grid; grid-template-columns: repeat(3,1fr); gap:10px; }
@media (max-width: 900px){ .why__grid{ grid-template-columns: 1fr; } }
.why__grid li{ background:#fff; border:1px solid var(--line); border-radius:12px; padding:10px 12px; box-shadow: var(--shadow); font-weight:700; }
.why__cta{ margin-top:12px; font-weight:700; color: var(--accent); }

/* ----------- Process ----------- */
.process{ background: var(--surface); border-block:1px solid var(--line); }
.steps{ list-style:none; margin:20px 0 0; padding:0; display:grid; gap:12px; }
.steps li{ display:grid; grid-template-columns: 44px 1fr; gap:12px; align-items:start; padding:14px; border:1px solid var(--line); border-radius:14px; box-shadow: var(--shadow); background:#fff; }
.step__num{ width:44px; height:44px; border-radius:12px; display:grid; place-items:center; background: var(--primary); color: var(--primary-contrast); font-weight:900; }
.step__txt strong{ color: var(--primary); display:block; margin-bottom: 2px; }
.step__txt p{ margin:0; color: var(--fg); }

/* ----------- FAQ ----------- */
.faq .faq__list{ margin-top:16px; display:grid; gap:8px; }
.faq details{ background: var(--surface); border:1px solid var(--line); border-radius:12px; padding: 10px 12px; box-shadow: var(--shadow); }
.faq summary{ cursor:pointer; font-weight:800; color: var(--primary); }
.faq p{ color: var(--fg); }

/* ----------- CTA ----------- */
.cta{ text-align:center; color:#fff; }
.cta .wrap{ padding: 48px 0; }
.cta h2{ margin:0 0 .25rem; }

/* ----------- Contact & Map (GDPR) ----------- */
.contact .contact__inner{ display:grid; place-items:center; text-align:center; }
.contact .contact__box{ background:#fff; border:1px solid var(--line); border-radius:16px; padding:16px 18px; box-shadow: var(--shadow); }
.contact .contact__mail{ margin: 10px 0 24px; }
.map{ width:100%; margin-top:16px; }
.map iframe{ width:100%; height: 60vh; min-height: 320px; border: 2px solid var(--maple); border-radius: 16px; box-shadow: var(--shadow); }
.map__placeholder{ width:100%; height:60vh; min-height: 320px; display:grid; place-content:center; gap:12px; text-align:center; background: #fff; border:2px dashed var(--maple); border-radius:16px; color: var(--muted); box-shadow: var(--shadow); padding: 12px; background-size: cover; background-position: center; }

/* ----------- Footer ----------- */
.footer{ border-top: 1px solid var(--line); }
.footer .wrap{ padding:16px 0; color: var(--muted); }
.footer .quote{ margin:0 0 8px; font-style: italic; color: var(--fg); }
.footer .addr{ margin:0 0 8px; }
.footer .legal a{ color: var(--accent-2); text-decoration:none; }
.footer .legal a:hover{ text-decoration: underline; }

/* ----------- Modal (Impressum/Datenschutz) ----------- */
.modal{ position: fixed; inset:0; display:none; align-items:center; justify-content:center; }
.modal[aria-hidden="false"]{ display:flex; }
.modal__backdrop{ position:absolute; inset:0; background: rgba(0,0,0,.5); animation: fade .25s; }
.modal__panel{ position:relative; z-index:1; background:#fff; border-radius: 14px; border:1px solid var(--line); padding: 16px 18px; width:min(720px, 92%); box-shadow: var(--shadow); animation: pop .25s; }
.modal__close{ position:absolute; top:8px; right:10px; background:transparent; border:0; font-size:22px; cursor:pointer; }
@keyframes fade{ from{ opacity:0 } to{ opacity:1 } }
@keyframes pop{ from{ transform: translateY(10px); opacity:0 } to{ transform:none; opacity:1 } }

/* ----------- ScrollSpy offset ----------- */
[data-spy-section]{ scroll-margin-top: 84px; }

/* --- Hero narrow panel for readability --- */
.hero__panel{
  max-width: 760px;
  background: rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.25);
  backdrop-filter: blur(6px);
  border-radius: 16px;
  padding: 14px 16px;
  box-shadow: var(--shadow);
}

/* --- Solid phone button for contrast on hero --- */
.btn--phone{ background: var(--accent-2); color:#fff; border:1px solid rgba(0,0,0,.08); }
.btn--phone:hover{ filter: brightness(.96); }

/* --- About panel to improve readability --- */
.about__panel{
  background: rgba(255,255,255,.92);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
  box-shadow: var(--shadow);
}
.note-line.strong{ background: rgba(200,144,74,.12); border-left-width:6px; }

/* --- Map placeholder: blurry background image --- */
.map__placeholder{ position:relative; overflow:hidden; }
.map__placeholder::before{
  content:""; position:absolute; inset:0; z-index:0;
  background-image: var(--ph-bg);
  background-size: cover; background-position: center;
  filter: blur(10px); transform: scale(1.08);
}
.map__placeholder > *{ position:relative; z-index:1; }


/* --- Nav buttons alignment (E‑Mail & Anrufen same height) --- */
.nav__link.btn, .nav__tel{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .55rem .95rem; /* unified */
  line-height: 1;
  border-radius: 999px;
  vertical-align: middle;
}


/* Parallax variant of process section */
.process.parallax{ background: transparent; border: 0; }

/* --- Sticky header robustness --- */
.header{ z-index: 9999; }

/* --- Process panel over parallax for visibility --- */
.process.parallax .wrap{}

/* --- Accessibility: focus-visible outlines --- */
:focus-visible{
  outline: 3px solid var(--accent-2);
  outline-offset: 2px;
}

/* --- Why more: hidden block --- */
.why__more[hidden]{ display:none; }
#why-toggle[aria-expanded="true"]::after{ content:""; }

/* --- Map compact mode --- */
.map.map--compact .map__placeholder{
  max-width: 860px;
  margin: 0 auto;
  background: rgba(255,255,255,.9);
  border-style: solid;
}
.map__btn{ display:inline-block; width:auto; }

/* --- Dark, elegant footer --- */
.footer{ background:#1F1A17; color:#EAE6E1; }
.footer .quote{ color:#F5F2EF; }
.footer .addr{ color:#D9CEC4; }
.footer .legal a{ color:#E0A673; }
.footer .wrap{ padding:22px 0; }

/* --- Reduced motion support --- */
@media (prefers-reduced-motion: reduce){
  .reel__item, .tile__bg{ transition: none !important; }
}
/* --- Process panel: centered readable card over parallax --- */
.process__panel{
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(4px);
  border:1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  box-shadow: var(--shadow);
  max-width: 1000px;
  margin: 0 auto;
}


/* --- Modal improvements --- */
.modal{ z-index: 100000; }
.modal__panel{ max-height: 80vh; overflow: auto; padding-bottom: 60px; }
.modal__footer{ position: sticky; bottom: 0; display: flex; justify-content: flex-end; gap:.5rem; padding:10px 0 0; background: linear-gradient(transparent, rgba(255,255,255,.95) 40%); margin-top: 10px; }

/* --- Map placeholder readability --- */
.map__content{
  width: min(720px, 92%);
  margin: 0 auto;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(6px);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  color: var(--fg);
  box-shadow: var(--shadow);
}
.map__btn{ display:inline-block; width:auto; margin-top:8px; }
.map.map--expanded{ z-index: 1; } /* ensures modal overlay is above */

/* --- CTA highlight --- */
.cta .wrap{
  background: rgba(46,96,74,.12);
  border: 1px solid rgba(46,96,74,.25);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

/* --- Back to top button --- */
.to-top{
  position: fixed; right: 16px; bottom: 16px; z-index: 99999;
  width: 42px; height: 42px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; box-shadow: var(--shadow); cursor: pointer; font-weight: 900;
  display:none;
}
.to-top.show{ display:block; }


/* --- CTA contrast boost --- */
.cta.parallax::before{
  background: linear-gradient(0deg, rgba(0,0,0,.45), rgba(0,0,0,.45)), var(--parallax) center/cover no-repeat fixed;
}
.cta .wrap{
  background: rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.cta h2{ text-shadow: 0 2px 8px rgba(0,0,0,.4); }
.cta p{ text-shadow: 0 1px 5px rgba(0,0,0,.35); }

/* --- Hero subline style --- */
.hero-sub{
  font-size: clamp(1.6rem, 1.1rem + 2.3vw, 2.3rem);
  font-weight: 900;
  margin: 0 0 .35rem;
}

/* --- Directions button under map --- */
.map__directions{ padding: 10px 0 20px; text-align: center; margin-top: 8px; }

/* --- Page fader for smooth reload --- */
.page-fader{
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 1000000;
  opacity: 1;
  pointer-events: none;
  transition: opacity .45s ease;
}
.page-fader.hide{ opacity: 0; }
