/* ============================================
   Moorhouse by Sandra – Web Fonts (lokal, DSGVO-konform)
   ============================================ */
@font-face { font-family:'Dosis'; font-style:normal; font-weight:300; font-display:swap; src:url(../files/fonts/dosis-v19-latin-300.woff2) format('woff2'); }
@font-face { font-family:'Dosis'; font-style:normal; font-weight:400; font-display:swap; src:url(../files/fonts/dosis-v19-latin-regular.woff2) format('woff2'); }
@font-face { font-family:'Dosis'; font-style:normal; font-weight:600; font-display:swap; src:url(../files/fonts/dosis-v19-latin-600.woff2) format('woff2'); }
@font-face { font-family:'Dosis'; font-style:normal; font-weight:700; font-display:swap; src:url(../files/fonts/dosis-v19-latin-700.woff2) format('woff2'); }
@font-face { font-family:'Amatic SC'; font-style:normal; font-weight:400; font-display:swap; src:url(../files/fonts/amatic-sc-v15-latin-regular.woff2) format('woff2'); }
@font-face { font-family:'Amatic SC'; font-style:normal; font-weight:700; font-display:swap; src:url(../files/fonts/amatic-sc-v15-latin-700.woff2) format('woff2'); }
@font-face { font-family:'Sacramento'; font-style:normal; font-weight:400; font-display:swap; src:url(../files/fonts/sacramento-v8-latin-regular.woff2) format('woff2'); }

/* ============================================
   Design Tokens
   Dezente, warme Farbwelt: Creme, Salbei-/Waldgrün, Holzbraun.
   Kein Blau/Cyan. Boxen eckig, Buttons dezent rund, Icons/Badges rund.
   ============================================ */
:root {
  --bg:          #F7F1E4;
  --bg-elevated: #ffffff;
  --bg-deep:     #3F4E37;

  --green:       #5B6E4F;
  --green-dark:  #3F4E37;
  --brown:       #7A5B41;
  --brown-dark:  #5A4028;

  --cream:       #EFE4CC;
  --sage:        #DCE3CD;
  --sage-deep:   #C3CDAE;
  --tan:         #CBAE84;
  --white:       #ffffff;

  --ink:         #3E3226;
  --ink-soft:    #6E5F4E;
  --border:      #E3D6B8;

  --font-script:  "Sacramento", cursive;
  --font-display: "Amatic SC", Arial, sans-serif;
  --font-body:    "Dosis", Verdana, Arial, sans-serif;

  --radius: 0;
  --radius-pill: 999px;
  --maxw: 1200px;
}

/* ============================================
   Reset & Base
   ============================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust:100%; text-size-adjust:100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration:0.001ms !important; animation-iteration-count:1 !important; transition-duration:0.001ms !important; }
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 18px;
  color: var(--ink-soft);
  background: var(--bg);
  line-height: 1.55;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
}
h1,h2 { font-family:var(--font-display); font-weight:700; line-height:1.06; letter-spacing:0.02em; margin:0 0 0.35em; color:var(--green); }
h3,h4,h5 { font-family:var(--font-script); font-weight:400; line-height:1.15; margin:0 0 0.4em; color:var(--green); }
h1 { font-size:clamp(2.6rem,5vw,3.6rem); }
h2 { font-size:clamp(2rem,3.6vw,2.5rem); }
h3 { font-size:clamp(1.8rem,3vw,2.5rem); }
p { margin:0 0 1em; color:var(--ink-soft); }
a { color:var(--green); text-decoration:none; transition:color 0.2s ease; }
a:hover { color:var(--brown); }
img { max-width:100%; display:block; }
ul { list-style:none; margin:0; padding:0; }
button { font-family:inherit; }

.wrap { max-width:var(--maxw); width:100%; margin:0 auto; padding:0 32px; box-sizing:border-box; }

.skip-link { position:absolute; left:-999px; top:0; background:var(--green); color:var(--white); padding:10px 16px; z-index:200; }
.skip-link:focus { left:0; top:0; }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--brown);
  outline-offset: 3px;
}

.script { font-family:var(--font-script); font-weight:400; color:var(--green); }

/* ============================================
   Eyebrow
   ============================================ */
.eyebrow {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 0.7em;
}
.eyebrow--center { justify-content: center; }
.eyebrow__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  display: inline-block;
  flex-shrink: 0;
}

/* ============================================
   Buttons – dezent abgerundet
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 34px;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 6px;
  border: 1.5px solid transparent;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
  cursor: pointer;
}
.btn--primary { background:var(--green); color:var(--white); }
.btn--primary:hover { background:var(--brown-dark); transform:translateY(-2px); }
.btn--ghost { background:transparent; color:var(--green); border-color:var(--green); }
.btn--ghost:hover { background:var(--green); color:var(--white); }
.btn--ghost-light { background:rgba(255,255,255,0.18); color:var(--white); border-color:rgba(255,255,255,0.7); backdrop-filter:blur(2px); }
.btn--ghost-light:hover { background:var(--white); color:var(--green); }
.btn--small { padding:10px 22px; font-size:0.75rem; }

/* ============================================
   Header – Logo hängt kräftig über den Header hinaus,
   verkleinert sich beim Scrollen
   ============================================ */
body { padding-top: 108px; }

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  width: 100%;
  height: 108px;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  transition: height 0.4s ease-in-out, box-shadow 0.4s ease;
}
.site-header.is-scrolled { height: 78px; box-shadow: 0 6px 24px rgba(62,50,38,0.1); }
.site-header__inner {
  position: relative;
  height: 100%;
}
.brand { position: relative; }
.site-header .brand { height: 100%; }
.brand__logo-wrap {
  display: flex;
  align-items: center;
  background: var(--white);
  border-radius: 18px;
  padding: 8px;
  box-shadow: 0 10px 26px -8px rgba(62,50,38,0.35);
  transition: top 0.4s ease-in-out, padding 0.4s ease-in-out;
}
.site-header .brand__logo-wrap {
  position: absolute;
  left: 0;
  top: 14px;
  z-index: 2;
}
.brand__logo {
  height: 224px;
  width: auto;
  max-width: none;
  display: block;
  border-radius: 12px;
  transition: height 0.4s ease-in-out;
}
.site-header.is-scrolled .brand__logo-wrap { top: 10px; padding: 6px; }
.site-header.is-scrolled .brand__logo { height: 92px; }

.nav { position: absolute; top: auto; bottom: 16px; right: 190px; }
.nav ul { display:flex; gap:26px; }
.nav a { font-size:0.85rem; font-weight:600; letter-spacing:0.1em; text-transform:uppercase; color:var(--ink); position:relative; padding:4px 0; }
.nav a:hover { color:var(--green); }
.nav a.is-active { color:var(--green); }

.nav-cta { position:absolute; bottom:16px; right:0; }

.nav-toggle {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 50px; height: 50px;
  background: none; border: none; cursor: pointer;
}
.nav-toggle span { display:block; width:26px; height:3px; background:var(--green); transition:transform 0.2s ease,opacity 0.2s ease; }

/* ============================================
   Hero
   ============================================ */
.hero { position:relative; background:var(--bg); overflow:hidden; }
.hero__media { position:relative; height:82vh; height:82dvh; min-height:500px; max-height:780px; }
.hero__media img { width:100%; height:100%; object-fit:cover; object-position:center 28%; display:block; }
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(247,241,228,0.7) 0%, rgba(247,241,228,0.48) 32%, rgba(247,241,228,0.12) 58%, rgba(247,241,228,0.03) 100%);
  display: flex;
  align-items: center;
}
.hero__inner { max-width:600px; }
.hero__eyebrow { color:var(--ink-soft); }
.hero__eyebrow .eyebrow__dot { background:var(--green); }
.hero__headline { font-size:clamp(2.8rem,6vw,4.6rem); color:var(--green); margin-bottom:0.18em; }
.hero__sub { font-family:var(--font-script); font-size:clamp(1.5rem,2.6vw,2.1rem); color:var(--green); font-weight:400; margin-bottom:0.5em; max-width:48ch; }
.hero__actions { display:flex; gap:16px; flex-wrap:wrap; margin-top: 0.6em; }

/* ============================================
   Sections
   ============================================ */
.section { padding:96px 0; }
.section--alt { background:var(--cream); }
.section--sage { background:var(--sage); }
.section__title { font-size:clamp(2.2rem,4vw,3rem); max-width:24ch; }
.section__title--center { margin-left:auto; margin-right:auto; text-align:center; max-width:none; }
.section__lead { max-width:60ch; font-size:1.05rem; margin-bottom:2.2em; }
.section__lead--center { margin-left:auto; margin-right:auto; text-align:center; }
.section--sage .eyebrow, .section--sage p, .section--sage .gebiet-list span { color:var(--green-dark); }

.reveal.reveal-init { opacity:0; transform:translateY(18px); transition:opacity 0.9s ease,transform 0.9s ease; }
.reveal.is-visible { opacity:1; transform:translateY(0); }
@media (prefers-reduced-motion: reduce) { .reveal.reveal-init { opacity:1; transform:none; } }

/* ============================================
   Split (Über mich / Angebote) – Box eckig, Badge rund
   ============================================ */
.split { display:grid; grid-template-columns:0.85fr 1fr; gap:64px; align-items:center; }
.split--reverse { direction:rtl; }
.split--reverse > * { direction:ltr; }
.split__img { overflow:hidden; position:relative; }
.split__img img { width:100%; height:100%; object-fit:cover; display:block; min-height:420px; }
.split__badge {
  position:absolute; bottom:20px; right:-18px;
  background:var(--bg-elevated);
  border:2px solid var(--green);
  border-radius:50%;
  width:118px; height:118px;
  display:flex; align-items:center; justify-content:center;
  text-align:center;
  font-family:var(--font-script);
  color:var(--green);
  font-size:1.05rem;
  line-height:1.2;
  transform:rotate(-6deg);
  box-shadow:0 10px 24px -8px rgba(62,50,38,0.35);
}

/* ============================================
   Angebote – wiederholte Split-Reihen
   ============================================ */
.angebot + .angebot { margin-top:88px; }
.angebot .eyebrow__dot { background:var(--brown); }

/* Schlagwort-Tags – dezente Pillen (kleiner als Einsatzgebiet-Pillen) */
.tag-list { display:flex; flex-wrap:wrap; gap:8px 10px; margin-top:20px; }
.tag-list span {
  display:inline-flex;
  align-items:center;
  background:var(--bg-elevated);
  border:1px solid var(--border);
  border-radius:8px;
  padding:5px 14px;
  font-size:0.76rem;
  font-weight:600;
  letter-spacing:0.03em;
  color:var(--ink-soft);
}

/* ============================================
   Gallery – Bilder eckig
   ============================================ */
.gallery { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; margin-top:48px; }
.gallery--2 { grid-template-columns:repeat(2,1fr); max-width:820px; margin-left:auto; margin-right:auto; }
.gallery img { width:100%; height:280px; object-fit:cover; display:block; transition:transform 0.4s ease; }
.gallery__item { overflow:hidden; display:block; }
.gallery__item:hover img { transform:scale(1.04); }

/* ============================================
   Hinweis-Box (rechtlicher Hinweis, dezent)
   ============================================ */
.hinweis { padding:56px 0; background:var(--sage); }
.hinweis-box {
  display:flex;
  gap:20px;
  align-items:flex-start;
  max-width:760px;
  margin:0 auto;
}
.hinweis-box__icon {
  width:44px; height:44px; flex-shrink:0;
  border-radius:50%;
  background:var(--bg-elevated);
  display:flex; align-items:center; justify-content:center;
}
.hinweis-box__icon svg { width:22px; height:22px; stroke:var(--brown); stroke-width:2; fill:none; }
.hinweis-box__text { max-width:580px; }
.hinweis-box h2 { font-family:var(--font-body); font-weight:700; font-size:1rem; letter-spacing:0.04em; text-transform:uppercase; color:var(--brown-dark); margin:0 0 0.5em; }
.hinweis-box p { font-size:1rem; color:var(--ink); margin:0; line-height:1.6; }
.hinweis-box strong { color:var(--brown-dark); font-weight:700; }

/* ============================================
   Kontakt – Box eckig, Icon-Badges rund
   ============================================ */
.kontakt-section { background:var(--green); color:var(--white); padding:96px 0; position:relative; overflow:hidden; }
.kontakt-inner { position:relative; z-index:1; display:grid; grid-template-columns:1fr 1fr; gap:64px; align-items:start; }
.kontakt-section .eyebrow { color: var(--tan); }
.kontakt-section .eyebrow__dot { background: var(--tan); }
.kontakt-title { color:var(--white); }
.kontakt-title .script { color:var(--cream); }
.kontakt-lead { color:var(--cream); font-family:var(--font-script); font-size:1.5rem; max-width:44ch; }
.kontakt-rows { display:flex; flex-direction:column; gap:18px; margin-top:32px; }
.kontakt-row { display:flex; align-items:center; gap:18px; }
.kontakt-row__icon { width:42px; height:42px; border-radius:50%; background:rgba(255,255,255,0.14); display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.kontakt-row__icon svg { width:20px; height:20px; stroke:var(--white); stroke-width:2; fill:none; }
.kontakt-row a, .kontakt-row span { font-size:1.02rem; color:rgba(255,255,255,0.92); font-weight:600; }
.kontakt-row a:hover { color:var(--cream); }
.kontakt-social { display:flex; gap:14px; margin-top:32px; }
.kontakt-social a { width:44px; height:44px; border-radius:50%; background:rgba(255,255,255,0.14); display:flex; align-items:center; justify-content:center; transition:background 0.2s; }
.kontakt-social a:hover { background:var(--white); }
.kontakt-social img { width:18px; height:18px; }

.kontakt-card { background:var(--cream); padding:44px; color:var(--ink-soft); }
.kontakt-card h3 { color:var(--green); }
.kontakt-card p { color:var(--ink-soft); font-size:0.98rem; }
.kontakt-card .btn { margin-top:12px; }
.kontakt-card p a { color: var(--green); text-decoration:underline; }
.kontakt-card .btn--primary { color: var(--white); }

/* ============================================
   Prose (Impressum / Datenschutz)
   ============================================ */
.page-hero { background:var(--green); padding:150px 0 56px; margin-top:0; }
.page-hero__inner { max-width:680px; }
.page-hero__title { font-size:clamp(2.6rem,5vw,3.6rem); color:var(--white); margin-bottom:0.15em; }
.page-hero__lead { font-size:1.05rem; color:var(--cream); margin:0; }

.prose { max-width:72ch; }
.prose h2 { font-size:1.6rem; margin:1.5em 0 0.5em; color:var(--green); font-family:var(--font-script); font-weight:400; }
.prose h3 { font-size:1.4rem; margin:1.3em 0 0.4em; color:var(--green); font-family:var(--font-script); font-weight:400; }
.prose p, .prose li { font-size:0.98rem; color:var(--ink-soft); line-height:1.75; }
.prose ul { list-style:disc; padding-left:1.4em; margin-bottom:1em; }
.prose a { color:var(--green); text-decoration:underline; }
.prose strong { color:var(--green); font-weight:600; }
.prose code { background:var(--cream); padding:2px 6px; font-size:0.85em; color:var(--ink); border-radius:4px; }

/* ============================================
   Footer – Grün als Bookend
   ============================================ */
.site-footer { background:var(--green); padding:48px 0 0; }
.site-footer__inner { display:flex; align-items:center; justify-content:space-between; gap:24px; flex-wrap:wrap; padding-bottom:32px; }
.brand--footer { display:flex; align-items:center; margin-right:0; }
.brand--footer .brand__logo { height:60px; }
.brand--footer .brand__logo-wrap { box-shadow:0 4px 14px -4px rgba(0,0,0,0.35); }
.footer-nav { display:flex; gap:24px; flex-wrap:wrap; }
.footer-nav a { font-size:0.8rem; font-weight:600; letter-spacing:0.1em; text-transform:uppercase; color:var(--cream); }
.footer-nav a:hover { color:var(--white); }
.footer-legal { display:flex; gap:20px; }
.footer-legal a { font-size:0.8rem; font-weight:600; letter-spacing:0.1em; text-transform:uppercase; color:var(--cream); }
.footer-legal a:hover { color:var(--white); }
.site-footer__copy { text-align:center; font-size:0.8rem; color:rgba(255,255,255,0.7); padding:18px 0 22px; border-top:1px solid rgba(255,255,255,0.18); margin-top:8px; }

.back-to-top {
  position:fixed; right:24px; bottom:24px;
  width:50px; height:50px;
  border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  background:var(--green);
  opacity:0; pointer-events:none;
  transition:opacity 0.2s ease, background 0.2s ease, transform 0.2s ease;
  z-index:90;
  box-shadow:0 10px 24px -8px rgba(62,50,38,0.5);
}
.back-to-top svg { width:24px; height:24px; stroke:var(--white); stroke-width:2; fill:none; }
.back-to-top.is-visible { opacity:1; pointer-events:auto; }
.back-to-top:hover { background:var(--brown-dark); transform:translateY(-3px); }

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 980px) {
  body { padding-top: 64px; }
  .site-header { height:64px; }
  .site-header.is-scrolled { height:50px; }
  .brand__logo-wrap { top:8px; left:16px; padding:6px; border-radius:14px; }
  .brand__logo { height:90px; border-radius:9px; }
  .site-header.is-scrolled .brand__logo-wrap { top:6px; padding:4px; }
  .site-header.is-scrolled .brand__logo { height:50px; }
  .nav-toggle { right:16px; }
  .btn { padding:12px 24px; font-size:0.78rem; }

  body.nav-open::after {
    content:''; position:fixed; top:0; left:0; right:0; bottom:0;
    background:rgba(62,50,38,0.5); z-index:98; cursor:pointer;
  }
  .nav {
    position:fixed; top:0; left:0; bottom:0; right:auto;
    width:78vw; max-width:400px;
    background:var(--bg-elevated);
    padding:30px 30px 48px;
    transform:translateX(-100%);
    transition:transform 0.32s cubic-bezier(0.4,0,0.2,1);
    overflow-y:auto; overscroll-behavior:contain;
    -webkit-overflow-scrolling:touch;
    z-index:101;
    box-shadow: 24px 0 64px rgba(62,50,38,0.2);
  }
  .nav.is-open { transform:translateX(0); }
  .nav ul { flex-direction:column; gap:6px; margin-top:20px; }
  .nav li { border-bottom:1px solid var(--border); }
  .nav a { display:block; font-size:1.1rem; padding:14px 0; }
  .nav-toggle { display:flex; }
  .nav-cta { display:none; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform:translateY(9px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity:0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform:translateY(-9px) rotate(-45deg); }

  .section { padding:72px 0; }
  .hero__media { height:66vh; height:66dvh; min-height:440px; }
  .hero__overlay { background:linear-gradient(180deg, rgba(247,241,228,0.25) 0%, rgba(247,241,228,0.72) 62%, rgba(247,241,228,0.85) 100%); align-items:flex-end; padding-bottom:32px; }
  .split, .split--reverse { grid-template-columns:1fr; gap:56px; direction:ltr; }
  .split__img img { min-height:320px; }
  .split__badge { right:12px; }
  .gallery { grid-template-columns:repeat(2,1fr); }
  .kontakt-inner { grid-template-columns:1fr; gap:40px; }
}

@media (max-width: 760px) {
  .wrap { padding:0 18px; }
  body { padding-top: 52px; }
  .site-header { height:52px; }
  .site-header.is-scrolled { height:44px; }
  .brand__logo-wrap { top:6px; left:12px; padding:5px; border-radius:12px; }
  .brand__logo { height:76px; border-radius:8px; }
  .site-header.is-scrolled .brand__logo-wrap { top:5px; padding:3px; }
  .site-header.is-scrolled .brand__logo { height:42px; }
  .nav-toggle { right:12px; }
  .section { padding:56px 0; }
  h1 { font-size:2.2rem; }
  h2 { font-size:1.8rem; }
  .hero__media { height:74vh; height:74dvh; min-height:456px; }
  .gallery { grid-template-columns:1fr; }
  .gallery--2 { grid-template-columns:1fr; }
  .gallery img { height:220px; }
  .kontakt-section { padding:56px 0; }
  .site-footer { padding-top:36px; }
  .site-footer__inner { flex-direction:column; align-items:center; text-align:center; padding-bottom:24px; }
  .footer-nav { justify-content:center; }
  .footer-legal { justify-content:center; }
  .site-footer__copy { margin-top:20px; padding:28px 0 84px; }
  .kontakt-card { padding:28px 24px; }
  .page-hero { padding:66px 0 40px; }
  .btn { padding:8px 16px; font-size:0.64rem; letter-spacing:0.05em; }
  .hero__actions { flex-direction:column; align-items:flex-start; gap:8px; }
  .hero__actions .btn { width:auto; }
  .back-to-top { width:44px; height:44px; right:16px; bottom:16px; }
  .hinweis { padding:40px 0; }
  .hinweis-box { flex-direction:column; gap:14px; }
}
