/* =========================================================
   Männerzeit – Design System
   Mobile-first. Warme, naturnahe Farbwelt passend zu Holz,
   Feuer und Landschaft der Fotomotive.
   ========================================================= */

:root {
  /* Sand/Beige & Creme – helle Grundflächen */
  --color-bg: #f2e8d7;
  --color-bg-cream: #faf5ea;
  --color-bg-alt: #ebdec3;
  --color-surface: #fffdf9;

  --color-text: #221d18;
  --color-text-muted: #6d6153;

  /* Tiefes Waldgrün */
  --color-primary: #2f4a34;
  --color-primary-dark: #1f3226;
  --color-primary-light: #5c7057;

  /* Terrakotta / gebranntes Orange – sparsamer Akzent */
  --color-accent: #c1582e;
  --color-accent-dark: #9c451f;

  /* Zusätzliche Palette laut Designvorlage */
  --color-wood: #5b3c27;
  --color-moss: #74804f;
  --color-anthracite: #181613;

  --color-on-dark: #f2e8d7;
  --color-on-dark-muted: #c9bfa9;

  --color-border: #ddcba3;
  --color-overlay: rgba(14, 12, 9, 0.6);

  --font-heading: 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, 'URW Palladio L', serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --container-width: 1140px;
  --radius: 6px;
  --radius-organic: 63% 37% 54% 46% / 51% 46% 54% 49%;
  --shadow: 0 10px 30px rgba(20, 17, 12, 0.18);
  --transition: 0.2s ease;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--color-primary-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { padding: 0; margin: 0; list-style: none; }
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-primary-dark);
  line-height: 1.25;
  margin: 0 0 0.6em;
  font-weight: 600;
}
h1 { font-size: 2rem; letter-spacing: -0.01em; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
::selection { background: var(--color-accent); color: #fff; }
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.9rem 1.7rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), background var(--transition), color var(--transition), border-color var(--transition);
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary {
  background: var(--color-accent);
  color: #fff;
}
.btn-primary:hover { background: var(--color-accent-dark); }
.btn-outline {
  background: transparent;
  border-color: currentColor;
  color: inherit;
}
.btn-outline:hover { background: rgba(255,255,255,0.15); }
.btn-secondary {
  background: var(--color-primary);
  color: #fff;
}
.btn-secondary:hover { background: var(--color-primary-dark); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 246, 239, 0.96);
  backdrop-filter: saturate(150%) blur(6px);
  border-bottom: 1px solid var(--color-border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.logo {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.logo:hover { text-decoration: none; opacity: 0.85; }
.logo .logo-mark {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }

.main-nav {
  position: fixed;
  inset: 68px 0 0 0;
  background: var(--color-bg);
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition);
  overflow-y: auto;
}
.main-nav.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.main-nav ul {
  display: flex;
  flex-direction: column;
  padding: 1rem 1.25rem 2rem;
}
.main-nav a {
  display: block;
  padding: 1rem 0.25rem;
  font-size: 1.15rem;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
}
.main-nav a[aria-current="page"] { color: var(--color-accent-dark); font-weight: 700; }

body.nav-open { overflow: hidden; }

@media (min-width: 800px) {
  .nav-toggle { display: none; }
  .main-nav {
    position: static;
    inset: auto;
    background: transparent;
    transform: none;
    opacity: 1;
    pointer-events: auto;
    overflow: visible;
  }
  .main-nav ul {
    flex-direction: row;
    padding: 0;
    gap: 0.5rem;
  }
  .main-nav a {
    border-bottom: none;
    padding: 0.5rem 0.9rem;
    font-size: 1rem;
    border-radius: 999px;
    transition: background var(--transition), color var(--transition);
  }
  .main-nav a:hover { background: var(--color-bg-alt); text-decoration: none; }
  .main-nav a[aria-current="page"] { background: var(--color-primary); color: #fff; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 52vh;
  display: flex;
  align-items: flex-end;
  color: #fff;
  background-size: cover;
  background-position: center;
}
@media (min-width: 640px) {
  .hero { min-height: 78vh; }
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14,12,9,0.08) 0%, rgba(14,12,9,0.72) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  padding: 2.5rem 0 3rem;
}
.hero h1 {
  color: #fff;
  font-size: 2.3rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.4em;
  text-shadow: 0 2px 14px rgba(0,0,0,0.4);
}
.hero .tagline {
  font-size: 1.05rem;
  max-width: 40em;
  margin-bottom: 1.5em;
  color: #f2ede2;
}
.hero .hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.page-hero {
  padding: 2.75rem 0 2rem;
  background: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border);
}
.page-hero h1 { margin-bottom: 0.3em; }
.page-hero .lead { color: var(--color-text-muted); max-width: 60ch; font-size: 1.05rem; margin: 0; }

@media (min-width: 800px) {
  .hero h1 { font-size: 3.4rem; }
  .hero .tagline { font-size: 1.2rem; }
  .page-hero { padding: 4rem 0 3rem; }
}

/* ---------- Sections ---------- */
section { padding: 3rem 0; }
.section-alt { background: var(--color-bg-alt); }
.section-intro { max-width: 68ch; }
.section-header { margin-bottom: 2rem; }
.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-accent-dark);
  margin-bottom: 0.6em;
}

/* ---------- Card grids ---------- */
.grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 800px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.card-dark { background: transparent; border-color: rgba(242,232,215,0.25); }
.card-dark h3 { color: var(--color-on-dark); }
.card-dark p { color: var(--color-on-dark-muted); }
.card img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.season-card img { width: 172px; height: 172px; display: block; margin: 1.75rem auto 0; }
.season-card .card-body { text-align: center; }
.season-card .season-date { font-family: var(--font-heading); font-size: 1.15rem; font-weight: 700; color: var(--color-accent-dark); margin-bottom: 0.3em; }
.season-card .season-tagline { font-weight: 700; color: var(--color-text); margin-bottom: 0.5em; }
.card-body { padding: 1.25rem 1.35rem 1.5rem; flex: 1; display: flex; flex-direction: column; }
.card h3 { margin-bottom: 0.4em; }
.card p { color: var(--color-text-muted); flex: 1; }
.card-link { margin-top: 0.75rem; font-weight: 700; color: var(--color-accent-dark); }

/* ---------- Season cards (Angebot) ---------- */
.season-icon { width: 38px; height: 38px; color: var(--color-accent); margin-bottom: 0.85rem; }
.season-question { font-style: italic; margin: 0.6rem 0 0; }

/* ---------- Bullet list (Angebot cards, price includes) ---------- */
.bullet-list { margin: 0.9rem 0 0; padding-left: 1.1em; color: var(--color-text-muted); font-size: 0.92rem; line-height: 1.6; }
.bullet-list li { margin-bottom: 0.35em; }
.bullet-list li:last-child { margin-bottom: 0; }
.card-dark .bullet-list, .card-dark .season-question { color: var(--color-on-dark-muted); }

/* ---------- Price highlight (Angebot) ---------- */
.price-highlight { display: flex; align-items: baseline; gap: 0.65rem; flex-wrap: wrap; margin: 1.25rem 0 1.5rem; }
.price-amount { font-family: var(--font-heading); font-size: 2.4rem; font-weight: 700; color: var(--color-accent-dark); line-height: 1; }
.price-detail { color: var(--color-text-muted); }

/* ---------- Gallery (Das Haus) ---------- */
.gallery {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 640px) {
  .gallery { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1000px) {
  .gallery { grid-template-columns: repeat(4, 1fr); }
}
.gallery figure {
  margin: 0;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-bg-alt);
}
.gallery img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  width: 100%;
  transition: transform 0.35s ease;
}
.gallery a { display: block; }
.gallery a:hover img { transform: scale(1.06); }
.gallery figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 0.5rem 0.65rem;
  font-size: 0.8rem;
  color: #fff;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.65) 100%);
}

/* ---------- Quote / Philosophy ---------- */
.quote-block {
  position: relative;
  padding: 3.5rem 0;
  background: var(--color-primary-dark);
  color: #f2ede2;
  background-size: cover;
  background-position: center;
}
.quote-block .overlay {
  position: absolute; inset: 0;
  background: var(--color-overlay);
}
.quote-block blockquote {
  position: relative;
  z-index: 1;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  max-width: 42ch;
  margin: 0 auto;
  text-align: center;
  font-style: italic;
}

/* ---------- Dark/light rhythm sections ---------- */
.section-dark {
  background: var(--color-anthracite);
  color: var(--color-on-dark);
}
.section-forest {
  background: var(--color-primary-dark);
  color: var(--color-on-dark);
}
.section-cream { background: var(--color-bg-cream); }
.section-dark h1, .section-dark h2, .section-dark h3,
.section-forest h1, .section-forest h2, .section-forest h3 {
  color: var(--color-on-dark);
}
.section-dark p, .section-forest p { color: var(--color-on-dark-muted); }
.section-dark .eyebrow, .section-forest .eyebrow { color: var(--color-accent); }
.section-dark a:not(.btn), .section-forest a:not(.btn) { color: var(--color-on-dark); }

/* ---------- Statement lines (dark "Warum" section) ---------- */
.statement-lines {
  max-width: 42ch;
  margin: 0 auto;
  text-align: center;
}
.statement-lines p {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  line-height: 1.5;
  color: var(--color-on-dark);
  margin-bottom: 0.9em;
}
.statement-lines p:last-child { color: var(--color-on-dark-muted); font-family: var(--font-body); font-size: 1rem; }

/* ---------- Tag cloud ("Was dich erwartet") ---------- */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
}
.tag-cloud span {
  border: 1px solid rgba(242, 232, 215, 0.3);
  padding: 0.6rem 1.35rem;
  border-radius: var(--radius);
  font-family: var(--font-heading);
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}
.tag-cloud span.tag-accent {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

/* ---------- Organic image accent ---------- */
.img-organic {
  border-radius: var(--radius-organic);
  overflow: hidden;
}

/* ---------- Asymmetric split layout ---------- */
.split {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 800px) {
  .split { grid-template-columns: 1fr 1fr; gap: 3rem; }
  .split.split-reverse .split-media { order: 2; }
  .split.split-reverse .split-text { order: 1; }
}

/* ---------- Full-bleed banner ---------- */
.full-banner {
  position: relative;
  min-height: 55vh;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  color: #fff;
}
.full-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(14,12,9,0.75) 0%, rgba(14,12,9,0.1) 55%);
}
.full-banner .container { position: relative; z-index: 1; padding-bottom: 2.5rem; }
.full-banner p {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: #fff;
  margin: 0;
  text-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

/* ---------- Scroll reveal ---------- */
.reveal { transition: opacity 0.7s ease, transform 0.7s ease; }
html.reveal-armed .reveal { opacity: 0; transform: translateY(24px); }
html.reveal-armed .reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  html.reveal-armed .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Team photo ---------- */
.team-card { text-align: center; }
.team-photo {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  overflow: hidden;
  margin: 1.75rem auto 0;
  background: var(--color-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--color-surface);
  box-shadow: var(--shadow);
}
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-photo svg { width: 46%; height: 46%; color: var(--color-text-muted); }

/* ---------- Value / feature list ---------- */
.value-icon {
  width: 44px; height: 44px;
  color: var(--color-accent-dark);
  margin-bottom: 0.75rem;
}

/* ---------- CTA banner ---------- */
.cta-banner {
  background: var(--color-primary);
  color: #fff;
  text-align: center;
  padding: 3rem 0;
}
.cta-banner h2 { color: #fff; }
.cta-banner p { color: #e7ecdf; max-width: 50ch; margin: 0 auto 1.5em; }

/* ---------- Notice box (legal placeholders) ---------- */
.notice-box {
  background: #fdf1de;
  border: 1px solid #e8c586;
  color: #6b4c1a;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  margin-bottom: 2rem;
  font-size: 0.95rem;
}
.notice-box strong { display: block; margin-bottom: 0.25em; }
.ph { background: #fdf1de; padding: 0.05em 0.4em; border-radius: 4px; }

/* ---------- Legal / prose pages ---------- */
.prose h2 { margin-top: 1.8em; }
.prose h2:first-child { margin-top: 0; }
.prose ul { list-style: disc; padding-left: 1.4em; margin-bottom: 1em; }
.prose li { margin-bottom: 0.4em; }

/* ---------- Contact page ---------- */
.contact-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 800px) {
  .contact-grid { grid-template-columns: 1.1fr 0.9fr; align-items: start; }
}
.contact-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.75rem;
}
.contact-item { display: flex; gap: 0.85rem; margin-bottom: 1.25rem; align-items: flex-start; }
.contact-item svg { width: 22px; height: 22px; flex-shrink: 0; color: var(--color-accent-dark); margin-top: 0.15em; }
.contact-item .label { font-weight: 700; display: block; margin-bottom: 0.15em; }
.mail-link { font-size: 1.05rem; font-weight: 600; word-break: break-word; }

/* ---------- 404 ---------- */
.error-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  text-align: center;
  padding: 4rem 0;
}
.error-page .code {
  font-family: var(--font-heading);
  font-size: 5rem;
  color: var(--color-accent);
  margin: 0;
  line-height: 1;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-primary-dark);
  color: #d9dfd2;
  padding: 3rem 0 1.5rem;
  margin-top: 3rem;
}
.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
  margin-bottom: 2rem;
}
@media (min-width: 640px) {
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
}
.footer-logo { width: 72px; height: 72px; border-radius: 50%; display: block; margin-bottom: 1rem; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 0.9em; }
.site-footer a { color: #d9dfd2; }
.site-footer a:hover { color: #fff; }
.site-footer ul li { margin-bottom: 0.5em; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 1.25rem;
  font-size: 0.85rem;
  color: #b7bfae;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
}
.footer-bottom ul { display: flex; gap: 1.25rem; flex-wrap: wrap; }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed;
  left: 0.75rem; right: 0.75rem; bottom: 0.75rem;
  z-index: 200;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  max-width: 560px;
  margin: 0 auto;
  transform: translateY(120%);
  transition: transform 0.35s ease;
}
.cookie-banner.is-visible { transform: translateY(0); }
.cookie-banner p { margin: 0 0 0.85em; font-size: 0.9rem; color: var(--color-text-muted); }
.cookie-banner .cookie-actions { display: flex; justify-content: flex-end; }
.cookie-banner[hidden] { display: none; }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-primary);
  color: #fff;
  padding: 0.75rem 1.25rem;
  z-index: 300;
  border-radius: 0 0 8px 0;
}
.skip-link:focus {
  left: 0;
}
