@font-face {
  font-family: "Caveat";
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url("../assets/fonts/caveat-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Caveat";
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url("../assets/fonts/caveat-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../assets/fonts/nunito-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../assets/fonts/nunito-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --yellow: #f5b301;
  --yellow-deep: #b37f00;
  --yellow-soft: #fff3c9;
  --cream: #fffaf0;
  --black: #191919;
  --grey: #5a5a5a;
  --white: #ffffff;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(25, 25, 25, 0.12);
  --font-hand: "Caveat", "Segoe Script", cursive;
  --font-body: "Nunito", "Segoe UI", sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--black);
  background: var(--cream);
  line-height: 1.6;
}

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

.container {
  width: min(1120px, 92%);
  margin-inline: auto;
}

h1, h2, h3 {
  font-family: var(--font-hand);
  line-height: 1.1;
}

h2 {
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  margin-bottom: 0.5rem;
}

h3 {
  font-size: 2rem;
}

.section {
  padding: 80px 0;
}

.section-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 52px;
}

.section-head p {
  color: var(--grey);
  font-size: 1.1rem;
}

.section-pattern {
  background-color: var(--yellow-soft);
  border-top: 3px solid var(--black);
  border-bottom: 3px solid var(--black);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 800;
  font-family: var(--font-body);
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
  background: var(--yellow);
  color: var(--black);
  border: 3px solid var(--black);
  box-shadow: 0 6px 0 var(--black);
}

.btn-primary:hover {
  box-shadow: 0 9px 0 var(--black);
}

.btn-ghost {
  background: var(--white);
  color: var(--black);
  border: 3px solid var(--black);
}

.btn-ghost:hover {
  box-shadow: 0 6px 0 var(--black);
}

.btn-small {
  padding: 9px 18px;
  font-size: 0.95rem;
  box-shadow: none;
}

/* Skip-Link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--black);
  color: var(--cream);
  padding: 10px 18px;
  border-radius: 0 0 12px 0;
  z-index: 100;
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  left: 0;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--cream);
  border-bottom: 3px solid var(--black);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--black);
}

.brand-img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 3px solid var(--black);
  background: var(--white);
  object-fit: cover;
}

.brand-name {
  font-family: var(--font-hand);
  font-size: 2rem;
  font-weight: 700;
}

.nav-links {
  display: flex;
  gap: 6px;
  list-style: none;
  align-items: center;
}

.nav-links a {
  display: block;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 700;
  color: var(--black);
  text-decoration: none;
  transition: background 0.2s ease;
}

.nav-links a:hover {
  background: var(--yellow-soft);
}

.nav-links a.active {
  background: var(--yellow);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 26px;
  height: 4px;
  border-radius: 2px;
  background: var(--black);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* Hero (Home) */
.hero {
  position: relative;
  color: var(--black);
  padding: 110px 0 120px;
  background-image: url("../assets/hero-rapsfeld.jpg");
  background-size: cover;
  background-position: center;
  border-bottom: 3px solid var(--black);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 250, 240, 0.94), rgba(255, 250, 240, 0.64) 50%, rgba(255, 250, 240, 0.88));
}

.hero > * {
  position: relative;
}

.hero h1 {
  font-size: clamp(4rem, 9vw, 6.8rem);
  margin-bottom: 12px;
  color: var(--black);
  text-shadow: 0 2px 18px rgba(255, 250, 240, 0.95);
}

.eyebrow {
  display: inline-block;
  background: var(--black);
  color: var(--yellow);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
  padding: 8px 16px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.lead {
  font-size: 1.2rem;
  color: var(--black);
  max-width: 52ch;
  margin-bottom: 30px;
  text-shadow: 0 1px 12px rgba(255, 250, 240, 0.95);
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Page-Hero (Unterseiten) */
.page-hero {
  position: relative;
  color: var(--cream);
  padding: 70px 0 78px;
  background-size: cover;
  background-position: center;
  border-bottom: 3px solid var(--black);
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(25, 25, 25, 0.55), rgba(25, 25, 25, 0.45));
}

.page-hero > * {
  position: relative;
}

.page-hero h1 {
  font-size: clamp(3rem, 6vw, 4.6rem);
  color: var(--white);
  margin-bottom: 8px;
}

.page-hero p {
  color: var(--cream);
  max-width: 62ch;
  font-size: 1.1rem;
}

.page-hero--honigstand { background-image: url("../assets/marktstand-bienen-oase.jpg"); }
.page-hero--wir { background-image: url("../assets/bienenstand-herbst.jpg"); }
.page-hero--anfahrt { background-image: url("../assets/schloss-hundisburg.jpg"); }
.page-hero--gaestebuch { background-image: url("../assets/bienen-klee.jpg"); }

/* Fakten-Leiste */
.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
}

.fact {
  background: var(--white);
  border: 3px solid var(--black);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 20px;
  text-align: center;
}

.fact strong {
  display: block;
  font-family: var(--font-hand);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.fact span {
  color: var(--grey);
  font-weight: 700;
}

/* Info-Boxen */
.info-box {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: var(--yellow-soft);
  border: 3px solid var(--black);
  border-radius: var(--radius);
  padding: 22px 26px;
  margin: 26px 0;
  box-shadow: var(--shadow);
}

.info-icon {
  width: 54px;
  height: 54px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--yellow);
  border: 3px solid var(--black);
  display: grid;
  place-items: center;
}

.info-icon svg {
  width: 30px;
  height: 30px;
}

.info-box p {
  font-size: 1.05rem;
}

/* Zweispalter */
.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.split-text p {
  margin-bottom: 16px;
  font-size: 1.08rem;
}

.photo {
  border: 3px solid var(--black);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--white);
}

.photo img {
  width: 100%;
  object-fit: cover;
}

.photo figcaption {
  border-top: 3px solid var(--black);
  padding: 10px 18px;
  font-weight: 700;
  background: var(--white);
}

.photo iframe {
  width: 100%;
  height: 400px;
  border: none;
  display: block;
  background: var(--white);
}

.photo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 20px;
}

.photo-wide {
  max-width: 880px;
  margin: 0 auto 44px;
}

/* Preis-Banner */
.preis-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  background-color: var(--yellow-soft);
  border: 3px solid var(--black);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 34px;
  margin: 44px 0;
}

.preis-banner .preis {
  font-family: var(--font-hand);
  font-size: clamp(2.8rem, 5vw, 3.8rem);
  font-weight: 700;
  line-height: 1;
}

.preis-banner p {
  font-weight: 700;
  max-width: 34ch;
}

/* Karten (Honigsorten & Co.) */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 28px;
}

.card {
  background: var(--white);
  border: 3px solid var(--black);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-8px) rotate(-1deg);
  box-shadow: 0 18px 40px rgba(25, 25, 25, 0.18);
}

.card-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-bottom: 3px solid var(--black);
}

.card-img-fallback {
  display: grid;
  place-items: center;
  background-color: var(--yellow-soft);
  color: var(--black);
}

.card-img-fallback svg {
  width: 64px;
  height: 64px;
  opacity: 0.85;
}

.card-body {
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-body h3 {
  font-size: 1.9rem;
  margin-bottom: 6px;
}

.card-body > p {
  color: var(--grey);
  flex: 1;
}

.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
}

.glas {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--grey);
}

.preis {
  background: var(--yellow);
  border: 3px solid var(--black);
  border-radius: 999px;
  padding: 4px 16px;
  font-weight: 800;
  white-space: nowrap;
}

.grid-loading,
.grid-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--grey);
  font-weight: 700;
  padding: 40px 0;
}

.badge {
  display: inline-block;
  margin-top: 14px;
  padding: 4px 14px;
  border-radius: 999px;
  border: 2px solid var(--black);
  font-weight: 800;
  font-size: 0.85rem;
}

.badge-da {
  background: var(--yellow-soft);
}

.badge-aus {
  background: #f3d9d7;
  color: #8c1d16;
  border-color: #8c1d16;
}

.card-ausverkauft .card-img {
  filter: grayscale(0.7);
  opacity: 0.7;
}

.card-ausverkauft .preis {
  opacity: 0.55;
}

/* News */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

.news-item {
  background: var(--white);
  border: 3px solid var(--black);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px 26px 28px;
}

.news-item h3 {
  font-size: 1.9rem;
  margin-bottom: 8px;
}

.news-item p {
  color: var(--grey);
}

/* Wissen */
.wissen-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

.wissen-card {
  background: var(--white);
  border: 3px solid var(--black);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px 26px 28px;
}

.wissen-card h3 {
  font-size: 1.9rem;
  margin-bottom: 8px;
}

.wissen-card p {
  color: var(--grey);
}

/* Gästebuch */
.gb-form {
  max-width: 680px;
  margin: 0 auto;
  background: var(--white);
  border: 3px solid var(--black);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px 30px 28px;
}

.gb-form input[type="text"],
.gb-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 3px solid var(--black);
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--cream);
  margin-bottom: 16px;
}

.gb-form input[type="text"]:focus,
.gb-form textarea:focus {
  outline: 3px solid var(--yellow);
}

.gb-form label,
.label-as-label {
  display: block;
  font-weight: 800;
  margin-bottom: 6px;
}

.stars {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 4px;
  margin-bottom: 18px;
}

.stars input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.stars label {
  font-size: 2rem;
  line-height: 1;
  color: #cfcfcf;
  cursor: pointer;
  transition: color 0.15s ease, transform 0.15s ease;
}

.stars label:hover {
  transform: scale(1.15);
}

.stars input:checked ~ label {
  color: var(--yellow-deep);
}

.stars input:focus-visible + label {
  outline: 3px solid var(--yellow);
  outline-offset: 2px;
}

.gb-counter {
  color: var(--grey);
  font-size: 0.9rem;
  font-weight: 700;
  margin: -10px 0 14px;
}

.gb-consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 16px;
  font-size: 0.95rem;
}

.gb-consent input {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  margin-top: 3px;
  accent-color: var(--yellow-deep);
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.gb-hinweis {
  max-width: 680px;
  margin: 18px auto 0;
  color: var(--grey);
  font-size: 0.95rem;
  font-weight: 700;
  text-align: center;
}

.gb-list-head {
  text-align: center;
  margin-top: 64px;
}

.gb-list {
  display: grid;
  gap: 20px;
  max-width: 760px;
  margin: 26px auto 0;
}

.gb-entry {
  background: var(--white);
  border: 3px solid var(--black);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 24px;
}

.gb-entry-head {
  font-size: 1.05rem;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.gb-stars {
  color: var(--yellow-deep);
  font-size: 1.1rem;
  letter-spacing: 2px;
}

.gb-entry p {
  color: var(--grey);
}

/* Termine */
.termin-list {
  display: grid;
  gap: 24px;
  max-width: 760px;
  margin-inline: auto;
}

.termin-card {
  display: flex;
  gap: 22px;
  align-items: center;
  background: var(--white);
  border: 3px solid var(--black);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 26px;
}

.termin-date {
  flex-shrink: 0;
  text-align: center;
  background: var(--yellow);
  border: 3px solid var(--black);
  border-radius: 14px;
  padding: 10px 16px;
  font-family: var(--font-hand);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.15;
}

.termin-card h3 {
  font-size: 1.8rem;
  margin-bottom: 4px;
}

.termin-card p {
  color: var(--grey);
}

/* Sehenswürdigkeiten */
.sights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

.sight-card {
  background: var(--white);
  border: 3px solid var(--black);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.sight-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-bottom: 3px solid var(--black);
}

.sight-card .card-body > p {
  color: var(--black);
}

/* CTA-Stripe */
.cta-stripe {
  background: var(--black);
  color: var(--cream);
  border-top: 3px solid var(--black);
  padding: 56px 0;
  text-align: center;
}

.cta-stripe h2 {
  color: var(--yellow);
}

.cta-stripe p {
  margin-bottom: 24px;
  opacity: 0.9;
}

/* Footer */
.site-footer {
  background: var(--black);
  color: var(--cream);
  padding: 34px 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.footer-brand {
  font-family: var(--font-hand);
  font-size: 1.7rem;
  color: var(--yellow);
}

.footer-inner a {
  color: var(--yellow);
  text-decoration: none;
}

.footer-inner a:hover {
  text-decoration: underline;
}

.footer-inner p {
  font-size: 0.92rem;
  opacity: 0.92;
}

/* Reveal Animation */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

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

/* Responsive */
@media (max-width: 900px) {
  .split {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .split .photo {
    order: -1;
    max-width: 560px;
  }

  .photo-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 60px 0;
  }

  .hero {
    padding: 84px 0 92px;
  }
}

@media (max-width: 820px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--cream);
    border-bottom: 3px solid var(--black);
    padding: 16px;
    display: none;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 14px 18px;
  }

  .facts {
    grid-template-columns: 1fr;
    max-width: 460px;
    margin-inline: auto;
  }

  .hero-actions .btn {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 560px) {
  .brand-name {
    font-size: 1.6rem;
  }

  .brand-img {
    width: 44px;
    height: 44px;
  }

  .termin-card {
    flex-direction: column;
    text-align: center;
  }

  .preis-banner {
    justify-content: center;
    text-align: center;
  }
}
