/* =========================================================
   Imkerverein Dammbach – Stylesheet
   Farbwelt „Honig & Wald“ · keine externen Schriften (DSGVO)
   ========================================================= */

:root {
  --honey: #E8A317;
  --honey-light: #FCEFC7;
  --amber: #8A5A0B;          /* Links, ausreichend Kontrast auf Creme */
  --amber-hover: #B7791F;
  --forest: #2F4A3A;
  --forest-dark: #223629;
  --text: #2B2620;
  --muted: #6B6255;
  --bg: #FBF7EE;
  --card: #FFFFFF;
  --line: #E9E1CF;

  --radius: 14px;
  --shadow: 0 1px 2px rgba(43, 38, 32, .06), 0 6px 20px rgba(43, 38, 32, .07);
  --container: 1100px;
  --gutter: 16px;

  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, serif;

  /* Wabenmuster als Inline-SVG */
  --honeycomb: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='96' viewBox='0 0 56 96'%3E%3Cpath d='M28 0L56 16V48L28 64L0 48V16ZM28 64V96' fill='none' stroke='%23E8A317' stroke-opacity='.25' stroke-width='1.5' stroke-linejoin='round'/%3E%3C/svg%3E");
}

@media (min-width: 768px) {
  :root { --gutter: 24px; }
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1.0625rem;      /* 17px */
  line-height: 1.65;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

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

a { color: var(--amber); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--amber-hover); }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--honey);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--forest-dark);
  line-height: 1.2;
  margin: 1.6em 0 .5em;
  font-weight: 700;
}
h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-top: 0; }
h2 { font-size: clamp(1.4rem, 3vw, 1.8rem); }
h3 { font-size: 1.2rem; }
p, ul, ol, table { margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--forest); color: #fff; padding: .6em 1em; z-index: 100;
}
.skip-link:focus { left: var(--gutter); top: .5rem; color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(1.2) blur(6px);
  border-bottom: 3px solid var(--honey);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 72px;
}
.brand img { height: 48px; width: auto; }
@media (min-width: 768px) { .brand img { height: 60px; } }

.nav-toggle { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.nav-toggle-label {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 10px; cursor: pointer; border-radius: 8px;
}
.nav-toggle-label span {
  display: block; height: 2px; background: var(--forest); border-radius: 2px;
  transition: transform .2s, opacity .2s;
}
.nav-toggle:focus-visible + .nav-toggle-label { outline: 3px solid var(--honey); }
.nav-toggle:checked + .nav-toggle-label span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle:checked + .nav-toggle-label span:nth-child(2) { opacity: 0; }
.nav-toggle:checked + .nav-toggle-label span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.main-nav ul { list-style: none; margin: 0; padding: 0; }
.main-nav a {
  display: block; text-decoration: none; color: var(--forest-dark);
  font-weight: 600; padding: .6rem .8rem; border-radius: 8px; white-space: nowrap;
}
.main-nav a:hover { background: var(--honey-light); color: var(--forest-dark); }
.main-nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--honey); border-radius: 0; }

@media (max-width: 999px) {
  .main-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-bottom: 3px solid var(--honey);
    box-shadow: var(--shadow);
    display: none;
  }
  .nav-toggle:checked ~ .main-nav { display: block; }
  .main-nav ul { padding: .5rem var(--gutter) 1rem; }
  .main-nav a { padding: .8rem .5rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .main-nav a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--honey); padding-left: 1rem; }
}
@media (min-width: 1000px) {
  .nav-toggle-label { display: none; }
  .main-nav ul { display: flex; gap: .25rem; }
}

/* ---------- Hauptbereich ---------- */
main { flex: 1; padding: 0 0 3.5rem; }
main.home { padding-top: 0; }

.page-head { padding-top: 2.5rem; padding-bottom: 1.5rem; }
.page-head .eyebrow, .eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--amber); margin-bottom: .4rem;
}
.lead { font-size: 1.15rem; color: var(--muted); max-width: 62ch; }

.prose { max-width: 70ch; }
.prose h2:first-child { margin-top: 0; }

/* ---------- Hero ---------- */
.hero {
  background: var(--honeycomb), linear-gradient(135deg, #FFF8E6 0%, var(--bg) 70%);
  background-size: 56px 96px, auto;
  border-bottom: 1px solid var(--line);
  padding: 3rem 0;
  margin-bottom: 3rem;
}
.hero .container {
  display: grid; gap: 2rem; align-items: center;
}
@media (min-width: 900px) {
  .hero { padding: 4.5rem 0; }
  .hero .container { grid-template-columns: 1.3fr 1fr; }
}
.hero h1 { font-size: clamp(2.2rem, 5.5vw, 3.4rem); margin-bottom: .3em; }
.hero h1 .accent { color: var(--amber-hover); }
.hero p { font-size: 1.15rem; color: var(--muted); max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }

.hero-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem;
}
.stat {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 1.1rem .75rem; text-align: center; border-top: 4px solid var(--honey);
}
.stat strong {
  display: block; font-family: var(--font-serif); font-size: clamp(1.5rem, 4vw, 2.1rem);
  color: var(--forest-dark); line-height: 1.1;
}
.stat span { font-size: .85rem; color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .8rem 1.4rem; border-radius: 999px; font-weight: 700;
  text-decoration: none; border: 2px solid transparent;
  transition: background .15s, color .15s, transform .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--honey); color: var(--forest-dark); }
.btn-primary:hover { background: #F2B53A; color: var(--forest-dark); }
.btn-outline { border-color: var(--forest); color: var(--forest); }
.btn-outline:hover { background: var(--forest); color: #fff; }
.btn svg { width: 1.2em; height: 1.2em; flex: none; }

/* ---------- Sektionen & Karten ---------- */
.section { margin: 0 0 3.5rem; }
.section-title { margin-top: 0; }

.cards { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .cards-3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 1.6rem 1.5rem; border: 1px solid var(--line);
}
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }

.hex-icon {
  width: 52px; height: 58px; margin-bottom: 1rem;
  display: grid; place-items: center;
  background: var(--honey);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  color: var(--forest-dark);
}
.hex-icon svg { width: 26px; height: 26px; }

/* Zwei-Spalten-Bereich (Kontakt) */
.split { display: grid; gap: 1.5rem; align-items: start; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } }

.contact-card { display: flex; gap: 1.25rem; align-items: flex-start; }
.contact-card .crest { width: 88px; flex: none; }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { padding: .45rem 0; border-bottom: 1px dashed var(--line); }
.contact-list li:last-child { border-bottom: 0; }
.contact-list .role { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }

figure { margin: 0; }
.photo { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; border: 1px solid var(--line); }
.photo img { width: 100%; }
.photo figcaption { padding: .75rem 1rem; font-size: .9rem; color: var(--muted); }
.photo-small { max-width: 440px; width: 100%; justify-self: center; }
/* Zwei Bilder nebeneinander, gleiche Höhe, ohne Beschnitt */
.photo-row { display: flex; gap: 4px; background: var(--card); }
.photo-row img { flex: var(--ar) 1 0; min-width: 0; width: 0; height: auto; }

/* Call-to-Action */
.cta {
  background: var(--honeycomb), var(--honey);
  background-size: 56px 96px, auto;
  border-radius: calc(var(--radius) + 4px);
  padding: 2rem 1.5rem; color: var(--forest-dark);
}
@media (min-width: 768px) { .cta { padding: 2.5rem 3rem; } }
.cta h2 { margin-top: 0; }
.cta p { max-width: 65ch; }
.cta .btn-primary { background: var(--forest); color: #fff; }
.cta .btn-primary:hover { background: var(--forest-dark); color: #fff; }
.cta a:not(.btn) { color: var(--forest-dark); font-weight: 700; }

/* Zitat */
.quote {
  margin: 0; padding: 2.5rem 1.5rem; text-align: center;
  font-family: var(--font-serif); font-style: italic;
  font-size: clamp(1.2rem, 2.6vw, 1.6rem); line-height: 1.5; color: var(--forest-dark);
  position: relative;
}
.quote::before {
  content: "\201E"; display: block; font-size: 4.5rem; line-height: 1;
  margin: -.5em 0 .6rem; color: var(--honey); font-style: normal;
}
.quote p { max-width: 50ch; margin: 0 auto .75rem; }
.quote footer { font-family: var(--font-sans); font-style: normal; font-size: .95rem; color: var(--muted); }

/* Link-Karten */
.link-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .75rem; }
@media (min-width: 640px) { .link-list { grid-template-columns: repeat(2, 1fr); } }
.link-list a, .link-list .link-item {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  padding: 1rem 1.2rem; text-decoration: none; color: var(--forest-dark); font-weight: 600;
  height: 100%;
}
.link-list a::after {
  content: "\2192"; color: var(--honey); font-size: 1.3rem; transition: transform .15s;
}
.link-list a:hover { border-color: var(--honey); background: #FFFCF3; }
.link-list a:hover::after { transform: translateX(4px); }

/* ---------- Galerie ---------- */
.gallery {
  list-style: none; padding: 0; margin: 2rem 0 0;
  display: grid; gap: .75rem;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
}
.gallery li {
  border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); background: var(--card);
  aspect-ratio: 1;
}
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gallery a { display: block; width: 100%; height: 100%; cursor: zoom-in; }
.gallery li:hover img, .gallery a:focus-visible img { transform: scale(1.06); }
.hint { margin-top: 1rem; font-size: .9rem; color: var(--muted); }

/* Bildansicht (Lightbox) */
.lightbox {
  border: 0; padding: 0; margin: auto; background: transparent;
  max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh;
  overflow: hidden;
}
.lightbox::backdrop { background: rgba(20, 24, 21, .92); }
.lightbox figure {
  width: 100%; height: 100%; display: flex; flex-direction: column;
  align-items: center; justify-content: center; padding: 3.5rem 1rem 1rem;
}
.lightbox img {
  max-width: 100%; max-height: calc(100vh - 7rem); width: auto; height: auto;
  object-fit: contain; border-radius: 6px; box-shadow: 0 10px 40px rgba(0, 0, 0, .5);
}
.lightbox figcaption { color: #E4EBE6; font-size: .9rem; margin-top: .75rem; }
.lb-btn {
  position: absolute; border: 0; cursor: pointer; color: #fff;
  background: rgba(255, 255, 255, .12); width: 48px; height: 48px; border-radius: 50%;
  font-size: 2rem; line-height: 1; display: grid; place-items: center;
  transition: background .15s;
}
.lb-btn:hover { background: var(--honey); color: var(--forest-dark); }
.lb-close { top: .75rem; right: .75rem; }
.lb-prev { left: .75rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: .75rem; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) {
  .lb-prev, .lb-next { top: auto; bottom: .75rem; transform: none; }
}

.meta-row { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; color: var(--muted); font-size: .95rem; }
.meta-row svg { width: 1em; height: 1em; vertical-align: -.12em; margin-right: .35em; color: var(--amber-hover); }

/* ---------- Artikel (Historie) ---------- */
.article-layout { display: grid; gap: 2.5rem; }
@media (min-width: 960px) { .article-layout { grid-template-columns: minmax(0, 1fr) 260px; } }

.article .byline { color: var(--muted); font-style: italic; margin-top: -.25rem; }
.article .byline + p::first-letter {
  float: left; font-family: var(--font-serif); font-size: 3.6em; line-height: .85;
  padding: .08em .1em 0 0; color: var(--amber-hover); font-weight: 700;
}

.timeline {
  position: relative; list-style: none; margin: 0; padding: 1.5rem 1.25rem;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  align-self: start;
}
@media (min-width: 960px) { .timeline { position: sticky; top: 100px; } }
.timeline h2 { font-size: 1.1rem; margin: 0 0 1rem; }
.timeline ol { list-style: none; margin: 0; padding: 0 0 0 1.25rem; border-left: 2px solid var(--honey); }
.timeline li { position: relative; padding: 0 0 1rem .5rem; font-size: .92rem; line-height: 1.45; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: calc(-1.25rem - 7px); top: .3em;
  width: 12px; height: 12px; background: var(--honey); border: 2px solid #fff;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.timeline strong { display: block; color: var(--forest-dark); font-family: var(--font-serif); font-size: 1.05rem; }

/* ---------- Rechtstexte ---------- */
.legal h2 { font-size: 1.35rem; padding-top: .5rem; border-top: 1px solid var(--line); }
.legal h2:first-child { border-top: 0; padding-top: 0; }
.legal h3 { font-size: 1.08rem; font-family: var(--font-sans); }
.legal a { word-break: break-word; }
.legal table td { padding: .2rem 1.5rem .2rem 0; vertical-align: top; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--forest); color: #E4EBE6; padding: 2.5rem 0 1.5rem; font-size: .95rem;
  border-top: 4px solid var(--honey);
}
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--honey); }
.footer-grid { display: grid; gap: 1.5rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer h2 {
  font-family: var(--font-sans); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--honey); margin: 0 0 .6rem;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { padding: .15rem 0; }
.footer-bottom {
  margin-top: 2rem; padding-top: 1rem; border-top: 1px solid rgba(255, 255, 255, .15);
  font-size: .85rem; color: #B9C7BE;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

@media print {
  .site-header, .site-footer, .hero-actions { display: none; }
  body { background: #fff; }
}

/* ---------- Seite Asiatische Hornisse ---------- */
.cta-warn {
  background: var(--forest); color: #E4EBE6;
  border-left: 8px solid var(--honey);
}
.cta-warn h2 { color: #fff; }
.cta.cta-warn a:not(.btn) { color: var(--honey); }

.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow); }
.compare { width: 100%; border-collapse: collapse; margin: 0; font-size: .97rem; min-width: 560px; }
.compare th, .compare td { text-align: left; padding: .8rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { background: var(--honey-light); color: var(--forest-dark); font-weight: 700; }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.compare tbody th { color: var(--forest-dark); white-space: nowrap; }

.gallery-2 { margin-top: 0; grid-template-columns: repeat(2, 1fr); }
.photo-small a { display: block; cursor: zoom-in; }

/* ---------- Dorfkerb: großes Bild mit eingeklebtem Zweitbild ---------- */
.photo-feature { position: relative; margin: 0; padding-bottom: 1.5rem; }
.photo-feature a { display: block; cursor: zoom-in; }
.pf-main img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 12%;
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.pf-inset {
  position: absolute; left: -.75rem; bottom: 3.25rem; width: 46%;
  background: #fff; padding: 6px; border-radius: 6px;
  box-shadow: 0 8px 24px rgba(43, 38, 32, .25);
  transform: rotate(-4deg); transition: transform .2s;
}
.pf-inset:hover { transform: rotate(-1deg) scale(1.03); }
.pf-inset img { border-radius: 3px; }
.photo-feature figcaption {
  margin-top: .75rem; font-size: .9rem; color: var(--muted); text-align: right;
}
@media (max-width: 640px) {
  .pf-inset { left: .5rem; width: 52%; }
}

/* ---------- CTA + Hornissen-Teaser nebeneinander ---------- */
.cta-row { display: grid; gap: 1.25rem; }
@media (min-width: 900px) { .cta-row { grid-template-columns: 1.6fr 1fr; } }
.teaser {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--forest); color: #E4EBE6;
  border-radius: calc(var(--radius) + 4px); box-shadow: var(--shadow);
}
.teaser-img img {
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: 50% 45%;
  transition: transform .3s;
}
.teaser-img { overflow: hidden; }
.teaser:hover .teaser-img img { transform: scale(1.04); }
.teaser-body { padding: 1.5rem; display: flex; flex-direction: column; align-items: flex-start; flex: 1; }
.teaser-body .eyebrow { color: var(--honey); }
.teaser-body h2 { color: #fff; margin: 0 0 .5rem; }
.teaser-body p { flex: 1; }

a[href^="tel:"] { white-space: nowrap; }
a[href^="mailto:"] { white-space: nowrap; }
}

.compare-figure { margin-bottom: 1.25rem; }
.compare-figure .pf-link { display: block; cursor: zoom-in; }

.pf-inset { bottom: 1.5rem; }
.pf-year {
  display: block; text-align: center; font-size: .78rem; font-weight: 700;
  letter-spacing: .08em; color: var(--muted); padding-top: 4px;
}

/* Warnzeichen im Hornissen-Teaser */
.teaser { position: relative; }
.warn-badge {
  position: absolute; top: .75rem; left: .75rem; z-index: 2;
  width: 64px; height: 64px;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .35));
  animation: warn-pulse 2.4s ease-in-out infinite;
}
@keyframes warn-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
.teaser-body .eyebrow.warn { color: #FF6B5E; }
@media (prefers-reduced-motion: reduce) { .warn-badge { animation: none; } }
.pf-inset { text-decoration: none; }
