/* ===========================================================
   Nossa Buteia – Dorfladen Sur
   Sehr simple, statische Website
   =========================================================== */

/* ---------- Schriften (Practice-Familie) ---------- */
@font-face {
  font-family: "Practice Display";
  src: url("fonts/PracticeDisplay-Black.otf") format("opentype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Practice";
  src: url("fonts/Practice-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Practice";
  src: url("fonts/Practice-SemiBold.otf") format("opentype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Practice";
  src: url("fonts/Practice-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Farben & Tokens ---------- */
:root {
  --green-bright: #669e2f;   /* Markengrün (Logo/Header) */
  --green:        #4e7d1f;   /* Naturgrün für Flächen/Buttons mit weisser Schrift */
  --green-dark:   #365815;   /* tiefes Grün für dunkle Bereiche */
  --green-soft:   #e4edd7;   /* zarter Grünton */
  --cream:        #f7f3e9;   /* warmes Off-White */
  --cream-2:      #ece3d0;
  --terracotta:   #c76b4a;   /* warmer Akzent */
  --ink:          #2a2620;   /* Text */
  --ink-soft:     #5c564c;
  --white:        #fffdf8;

  --maxw: 1080px;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(42, 38, 32, 0.08);

  --font-display: "Practice Display", "Practice", Georgia, serif;
  --font-body: "Practice", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ---------- Reset / Basis ---------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

h1, h2, h3 { margin: 0 0 .5em; line-height: 1.1; }
p { margin: 0 0 1em; }
a { color: var(--green); }

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

/* ---------- Layout-Helfer ---------- */
.section { padding: clamp(3rem, 8vw, 6rem) 1.5rem; }
.section-inner { max-width: var(--maxw); margin: 0 auto; }

.section-label {
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .75rem;
  font-weight: 700;
  color: var(--terracotta);
  margin-bottom: .75rem;
}

.section h2 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.8rem, 4.5vw, 2.8rem);
  color: var(--green-dark);
}

.lead { font-size: 1.2rem; color: var(--ink-soft); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.35rem 1rem;
  background: var(--green-bright);   /* gleiche Farbe wie header.svg → randlos über die ganze Breite */
  box-shadow: 0 2px 12px rgba(42, 38, 32, .12);
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

/* Wortmarke: wächst mit der Breite, sitzt randlos im grünen Banner */
.brand-logo {
  height: clamp(52px, 8.5vw, 96px);
  width: auto;
  display: block;
}

/* Schriftzug-Fallback (Practice Display) – nur sichtbar, wenn kein Logo da ist */
.brand-text {
  display: none;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.5rem;
  color: var(--white);
  letter-spacing: .01em;
}
.brand--text .brand-text { display: inline; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(120% 100% at 80% 0%, var(--green-soft) 0%, transparent 55%),
    linear-gradient(180deg, var(--cream) 0%, var(--cream-2) 100%);
  padding: clamp(3.5rem, 10vw, 7rem) 1.5rem;
}
.hero-inner { max-width: var(--maxw); margin: 0 auto; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .2em;
  font-size: .8rem;
  font-weight: 700;
  color: var(--terracotta);
  margin-bottom: 1rem;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.6rem, 9vw, 5.5rem);
  color: var(--green-dark);
  line-height: 1.02;
  margin: 0 0 .35em;
}

.hero-lead {
  font-size: 1.2rem;
  color: var(--ink-soft);
  margin-bottom: 1.1rem;
}
.hero .btn { margin-top: 1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--green);
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  padding: .85rem 1.6rem;
  border-radius: 999px;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { background: var(--green-dark); transform: translateY(-2px); }

.btn-outline {
  background: transparent;
  color: var(--green-dark);
  border: 2px solid var(--green);
}
.btn-outline:hover { background: var(--green); color: var(--white); }

/* Outline-Buttons auf dunkelgrünem Grund (z. B. .besuch) lesbar machen */
.besuch .btn-outline {
  color: var(--white);
  border-color: var(--cream);
}
.besuch .btn-outline:hover {
  background: var(--white);
  color: var(--green-dark);
  border-color: var(--white);
}

/* Karten-Buttons nebeneinander, umbrechend */
.map-links {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

/* ---------- Bildergalerie ---------- */
.galerie { background: var(--white); }

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 1rem;
  margin-top: 2.5rem;
}
/* Klickbare Kachel (öffnet die Lightbox) */
.gallery-item {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--green-soft);   /* sanfte Fläche, falls ein Bild (noch) nicht lädt */
  box-shadow: var(--shadow);
  cursor: zoom-in;
  transition: transform .2s ease;
}
.gallery-item:hover { transform: translateY(-3px); }
.gallery-item:focus-visible {
  outline: 3px solid var(--terracotta);
  outline-offset: 3px;
}
.gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

/* ---------- Lightbox (reines CSS via :target) ---------- */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  padding: clamp(1rem, 4vw, 3rem);
  align-items: center;
  justify-content: center;
}
.lightbox:target { display: flex; }

/* Abgedunkelter Hintergrund – füllt den Screen und schliesst beim Klick */
.lightbox-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(42, 38, 32, .82);
  cursor: zoom-out;
}
@supports (backdrop-filter: blur(2px)) {
  .lightbox-backdrop { backdrop-filter: blur(3px); }
}

.lightbox-figure {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: min(1100px, 100%);
  max-height: 100%;
  text-align: center;
}
.lightbox-figure img {
  max-width: 100%;
  max-height: 82vh;
  width: auto;
  height: auto;
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .45);
  margin: 0 auto;
}
/* Schliessen-Kreuz oben rechts */
.lightbox-close {
  position: fixed;
  top: clamp(.75rem, 3vw, 1.5rem);
  right: clamp(.75rem, 3vw, 1.5rem);
  z-index: 2;
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font-size: 1.7rem;
  line-height: 1;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform .15s ease, background .15s ease, color .15s ease;
}
.lightbox-close:hover,
.lightbox-close:focus-visible {
  background: var(--terracotta);
  color: var(--white);
  transform: scale(1.05);
}

/* Hintergrund-Scroll sperren, solange eine Lightbox offen ist */
body:has(.lightbox:target) { overflow: hidden; }

/* ---------- Besuch / Kontakt ---------- */
.besuch { background: var(--green); color: var(--cream); }
.besuch .section-label { color: #e9b8a4; }
.besuch h2 { color: var(--white); }
.besuch .lead { color: var(--green-soft); }

/* Infoblock: Öffnungszeiten / Zutritt & Bezahlung / Kontakt */
.info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin: 2.5rem 0;
}
/* Ab Tablet: ruhiges 2×2-Raster statt vier enger Spalten */
@media (min-width: 720px) {
  .info-grid { grid-template-columns: repeat(2, 1fr); }
}
.info-card {
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}
.info-card h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--green-dark);
  margin-bottom: .9rem;
}
.info-card p { margin: 0 0 .8rem; color: var(--ink-soft); }
.info-card p:last-child { margin-bottom: 0; }
.info-card strong { color: var(--ink); font-weight: 700; }

.contact { font-style: normal; }
.contact-name { font-weight: 700; color: var(--green-dark); margin-bottom: .6rem; }
.contact a { color: var(--green); font-weight: 600; }
.muted { color: var(--ink-soft); font-size: .88em; white-space: nowrap; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--green-dark);
  color: var(--green-soft);
  text-align: center;
  padding: 2.5rem 1.5rem;
  font-size: .95rem;
}
.footer-brand {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.2rem;
  color: var(--white);
  margin-bottom: .3rem;
}
.site-footer a { color: var(--white); }
.footer-note {
  margin-top: 1rem;
  font-style: italic;
  color: #e9b8a4;
}

