/* =========================================================
   Mühlenreute — "Das Beverly Hills von Schlier"
   Design: Vintage-Reiseposter trifft Ortsschild.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,400..800&family=Work+Sans:wght@400;500;600&family=Kalam:wght@400;700&display=swap');

:root {
  --sky-light: #E7F1F7;
  --sky-deep: #BEDAEA;
  --meadow: #3F6B4C;
  --meadow-dark: #24402D;
  --gold: #E4A94A;
  --gold-deep: #C98A2B;
  --ink: #22312E;
  --paper: #FBF7EF;
  --berry: #A14B4B;
  --line: rgba(34, 49, 46, 0.14);

  --font-display: 'Bricolage Grotesque', sans-serif;
  --font-body: 'Work Sans', sans-serif;
  --font-hand: 'Kalam', cursive;

  --radius: 18px;
  --max-width: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--font-display); margin: 0; line-height: 1.05; }

a { color: inherit; }

img, svg { max-width: 100%; display: block; }

.wrap { max-width: var(--max-width); margin: 0 auto; padding: 0 28px; }

.eyebrow {
  font-family: var(--font-hand);
  font-size: 1.15rem;
  color: var(--meadow);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--gold-deep);
  display: inline-block;
}

/* ---------- Nav ---------- */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 247, 239, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand svg { width: 26px; height: 26px; }

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  font-weight: 500;
  font-size: 0.96rem;
  position: relative;
  padding-bottom: 4px;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--gold-deep);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav-links a:hover::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  transition: 0.25s ease;
}

/* ---------- Jubiläums-Banner ---------- */

.jubilee-banner {
  background: var(--gold);
  color: var(--meadow-dark);
  overflow: hidden;
}

.jubilee-banner .wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  padding: 12px 28px;
  font-size: 0.92rem;
  text-align: center;
}

.jubilee-banner .stat {
  font-family: var(--font-display);
  font-weight: 800;
}

.jubilee-banner .divider {
  opacity: 0.5;
  font-family: var(--font-hand);
}

.jubilee-banner .wink {
  font-family: var(--font-hand);
  font-size: 1.05rem;
}

.jubilee-banner .jubilee-logo {
  height: 26px;
  width: auto;
  border-radius: 4px;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .jubilee-banner .divider { display: none; }
  .jubilee-banner .wrap { flex-direction: column; gap: 4px; padding: 12px 20px; }
}





.hero {
  position: relative;
  background: linear-gradient(180deg, var(--sky-light) 0%, var(--sky-deep) 100%);
  overflow: hidden;
  padding: 72px 0 0;
}

.hero .wrap {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 32px;
  min-height: 480px;
}

.stamp {
  position: absolute;
  top: 28px;
  left: 28px;
  width: 118px;
  transform: rotate(-9deg);
  filter: drop-shadow(0 4px 10px rgba(34,49,46,0.18));
}

.hero-copy { padding-top: 40px; }

.hero-copy h1 {
  font-size: clamp(2.6rem, 5.6vw, 4.4rem);
  font-weight: 800;
  color: var(--meadow-dark);
  margin-top: 18px;
}

.hero-tagline {
  font-family: var(--font-hand);
  font-size: 1.6rem;
  color: var(--berry);
  margin: 10px 0 18px;
}

.hero-copy p.lead {
  max-width: 46ch;
  font-size: 1.08rem;
  color: var(--ink);
  opacity: 0.85;
}

.hero-ctas { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.96rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary { background: var(--meadow-dark); color: var(--paper); }
.btn-primary:hover { box-shadow: 0 8px 18px rgba(36,64,45,0.3); }

.btn-outline { background: transparent; border-color: var(--meadow-dark); color: var(--meadow-dark); }
.btn-outline:hover { background: var(--meadow-dark); color: var(--paper); }

.hero-illustration { width: 100%; }

.hills { display: block; }

/* ---------- Intro strip ---------- */

.intro-strip {
  padding: 56px 0;
  text-align: center;
}

.intro-strip p {
  max-width: 62ch;
  margin: 0 auto;
  font-size: 1.15rem;
  color: var(--meadow-dark);
}

/* ---------- Section shell ---------- */

.section { padding: 88px 0; }
.section-alt { background: var(--sky-light); }

.section-head { max-width: 60ch; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); color: var(--ink); }
.section-head p { margin-top: 12px; font-size: 1.05rem; opacity: 0.82; }

/* ---------- Geschichte ---------- */

.history-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}

.history-card.mystery {
  border-style: solid;
  background: rgba(228, 169, 74, 0.08);
}

.history-card {
  background: var(--paper);
  border: 1.5px dashed var(--gold-deep);
  border-radius: var(--radius);
  padding: 26px;
  position: relative;
}

.history-card .tag {
  position: absolute;
  top: -13px;
  right: 18px;
  background: var(--gold);
  color: var(--meadow-dark);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}

.history-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
  color: var(--meadow-dark);
}

.history-card p { font-size: 0.95rem; opacity: 0.8; margin: 0; }

.source-note {
  margin-top: 30px;
  font-size: 0.92rem;
  padding: 16px 20px;
  background: rgba(228, 169, 74, 0.15);
  border-left: 3px solid var(--gold-deep);
  border-radius: 0 10px 10px 0;
}

.map-feature {
  margin-top: 30px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  grid-template-columns: 340px 1fr;
  overflow: hidden;
}

.map-feature-img {
  background: #EFEAE0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1.5px dashed var(--meadow);
  padding: 10px;
}

.map-feature-img img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(34,49,46,0.12);
}

.map-caption {
  font-family: var(--font-hand);
  font-size: 0.85rem;
  color: var(--meadow-dark);
}

.map-feature-text {
  padding: 26px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.map-feature-text h3 {
  font-size: 1.1rem;
  color: var(--meadow-dark);
  margin-bottom: 8px;
}

.map-feature-text p {
  font-size: 0.92rem;
  opacity: 0.82;
  margin: 0 0 8px;
}

.map-feature-text p.src {
  font-size: 0.76rem;
  opacity: 0.55;
  margin: 0;
}

@media (max-width: 640px) {
  .map-feature { grid-template-columns: 1fr; }
  .map-feature-img { border-right: none; border-bottom: 1.5px dashed var(--meadow); padding: 16px; }
}





.persons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}

.person-card {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 28px 24px;
  border: 1px solid var(--line);
  position: relative;
}

.person-card .ribbon {
  font-size: 1.6rem;
  margin-bottom: 10px;
  display: block;
}

.person-card h3 {
  font-size: 1.15rem;
  color: var(--meadow-dark);
  margin-bottom: 2px;
}

.person-card .role {
  font-family: var(--font-hand);
  color: var(--berry);
  font-size: 1.05rem;
  margin-bottom: 10px;
  display: block;
}

.person-card p.bio {
  font-size: 0.92rem;
  opacity: 0.82;
  margin: 0 0 10px;
}

.person-card .src {
  font-size: 0.76rem;
  opacity: 0.55;
  margin: 0;
}

.person-card.placeholder {
  border: 1.5px dashed var(--gold-deep);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--meadow-dark);
}



.residents-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 20px;
}

.resident-card {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 22px 18px;
  text-align: center;
  border: 1px solid var(--line);
}

.avatar-placeholder {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--sky-deep);
  color: var(--meadow-dark);
  font-family: var(--font-display);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  font-size: 1.1rem;
  border: 2px dashed var(--meadow);
}

.resident-card h3 { font-size: 1rem; margin-bottom: 4px; }
.resident-card p { font-size: 0.85rem; opacity: 0.65; margin: 0; }

.residents-cta {
  margin-top: 34px;
  text-align: center;
}

/* ---------- Fun Facts ---------- */

.facts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 22px;
}

.fact-stamp {
  background: var(--paper);
  border: 2px dashed var(--meadow);
  border-radius: 50% / 18%;
  padding: 30px 16px;
  text-align: center;
}

.fact-stamp .icon { font-size: 1.8rem; margin-bottom: 8px; }
.fact-stamp .value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--meadow-dark);
}
.fact-stamp .label {
  font-size: 0.85rem;
  opacity: 0.75;
  margin-top: 4px;
}

/* ---------- Kontakt ---------- */

.contact-section {
  background: var(--meadow-dark);
  color: var(--paper);
  border-radius: 28px;
  margin: 0 28px;
  padding: 64px 40px;
  text-align: center;
}

.contact-section h2 { font-size: clamp(1.9rem, 3.4vw, 2.5rem); }
.contact-section p {
  max-width: 56ch;
  margin: 16px auto 28px;
  opacity: 0.9;
}

.contact-section .btn-primary { background: var(--gold); color: var(--meadow-dark); }
.contact-section .btn-primary:hover { box-shadow: 0 8px 18px rgba(0,0,0,0.25); }

/* ---------- Footer ---------- */

footer {
  padding: 36px 0;
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.6;
}

/* ---------- Scroll reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; min-height: auto; }
  .hero-illustration { order: -1; padding-top: 60px; }
  .history-grid { grid-template-columns: 1fr; }
  .facts-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-links {
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: var(--paper);
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid var(--line);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .nav-links.open { max-height: 300px; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 16px 28px; }
  .nav-toggle { display: block; }
  .contact-section { margin: 0 16px; padding: 48px 24px; }
}

@media (max-width: 520px) {
  .facts-grid { grid-template-columns: 1fr; }
  .stamp { width: 90px; top: 16px; left: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
