/* ==========================================================================
   Kochtopf Lichtenfels – Stylesheet
   DSGVO-konform: ausschließlich lokale Ressourcen, keine externen Fonts/CDNs.
   ========================================================================== */

/* --------- Schriftarten (lokal, DSGVO-konform) --------- */
@font-face {
  font-family: "Bree Serif";
  src: url("../fonts/breeserif-regular-webfont.woff2") format("woff2"),
       url("../fonts/breeserif-regular-webfont.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Niramit";
  src: url("../fonts/niramit-regular-webfont.woff2") format("woff2"),
       url("../fonts/niramit-regular-webfont.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Niramit";
  src: url("../fonts/niramit-bold-webfont.woff2") format("woff2"),
       url("../fonts/niramit-bold-webfont.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* --------- Farb- und Layoutvariablen --------- */
:root {
  --rot: #7b0c22;
  --gruen: #aece5f;
  --gruen-hell: #c8d9a3;
  --gruen-dunkel: #8fb03e;
  --text: #4a4a4a;
  --text-hell: #6f6f6f;
  --weiss: #ffffff;
  --box-rosa: #f6ecee;
  --box-gruen: #f2f6ea;
  --max: 1140px;
  --radius: 6px;
  --font-head: "Bree Serif", Georgia, serif;
  --font-body: "Niramit", "Segoe UI", Tahoma, sans-serif;
}

/* --------- Basis --------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  line-height: 1.65;
  font-size: 17px;
  background: var(--weiss);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--rot); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 400; line-height: 1.2; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.text-center { text-align: center; }

/* --------- Buttons --------- */
.btn {
  display: inline-block;
  background: var(--gruen);
  color: var(--weiss);
  font-family: var(--font-head);
  padding: 12px 26px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  font-size: 1rem;
  transition: background .2s ease;
}
.btn:hover { background: var(--gruen-dunkel); text-decoration: none; color: var(--weiss); }
.btn--rot { background: var(--rot); }
.btn--rot:hover { background: #5f0919; }
.btn--gross { padding: 16px 34px; font-size: 1.1rem; }

/* ==========================================================================
   Kopfbereich / Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--weiss);
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  max-width: var(--max);
  margin: 0 auto;
}
.nav-logo img { height: 74px; width: auto; }
.nav-menu { display: flex; align-items: center; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav-menu a {
  position: relative;
  font-family: var(--font-head);
  color: var(--text);
  font-size: 1.05rem;
  padding: 22px 0 4px;
}
/* Rollover-Icon (Topf mit Herz) über dem Menüpunkt */
.nav-menu a::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 18px;
  background: url("../../bilder/hover-menue-icon.png") no-repeat center / contain;
  opacity: 0;
  transition: opacity .2s ease;
  pointer-events: none;
}
.nav-menu a:hover::before,
.nav-menu a.active::before { opacity: 1; }
.nav-menu a:hover { color: var(--gruen-dunkel); text-decoration: none; }
.nav-menu a.active { color: var(--gruen-dunkel); }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--rot);
  margin: 5px 0;
  border-radius: 2px;
  transition: .3s;
}

/* ==========================================================================
   Hero / Header-Bild
   ========================================================================== */
.hero {
  position: relative;
  width: 100%;
  height: 420px;
  overflow: hidden;
  background: var(--gruen-hell);
}
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Slider (Startseite / allgemein) */
.slider { position: relative; width: 100%; height: 100%; }
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .8s ease;
  pointer-events: none;
}
.slide.is-active { opacity: 1; pointer-events: auto; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide-caption {
  position: absolute;
  left: 6%;
  bottom: 22%;
  color: var(--weiss);
  max-width: 80%;
}
.slide-caption h2 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  margin: 0 0 18px;
  text-shadow: 0 2px 12px rgba(0,0,0,.45);
}
/* Slider-Steuerung – dezent, transparent */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,.22);
  color: rgba(255,255,255,.85);
  border: none;
  width: 30px;
  height: 44px;
  font-size: 1.1rem;
  cursor: pointer;
  z-index: 5;
  border-radius: var(--radius);
  transition: background .2s ease;
}
.slider-btn:hover { background: rgba(123,12,34,.6); color: #fff; }
.slider-prev { left: 12px; }
.slider-next { right: 12px; }
.slider-dots {
  position: absolute;
  bottom: 14px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 5;
}
.slider-dots button {
  width: 9px; height: 9px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.8);
  background: rgba(255,255,255,.25);
  cursor: pointer;
  padding: 0;
  transition: background .2s ease;
}
.slider-dots button.is-active { background: #fff; }

/* ==========================================================================
   Inhaltsbereiche
   ========================================================================== */
section { padding: 46px 0; }
/* Ankerziele: Offset unter dem fixierten Header */
.anchor-target { scroll-margin-top: 100px; }
.section-icon { display: block; margin: 0 auto 10px; height: 46px; width: auto; }
.section-title { text-align: center; color: var(--gruen-dunkel); font-size: 1.9rem; margin: 0 0 6px; overflow-wrap: break-word; word-break: break-word; hyphens: auto; }
.section-title--rot { color: var(--rot); }
.section-sub { text-align: center; color: var(--text-hell); margin: 0 auto 30px; max-width: 760px; font-size: 1.2rem; }

.lead { font-size: 1.05rem; }
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.two-col img { border-radius: var(--radius); }

h3.block-title { color: var(--text); font-size: 1.5rem; margin: 0 0 14px; }
h4.sub-red { color: var(--text); margin: 0 0 6px; }

/* Info-/Grundsatz-Boxen */
.info-box { padding: 26px 30px; border-radius: var(--radius); }
.info-box--gruen { background: var(--box-gruen); }
.info-box--rosa { background: var(--box-rosa); }
.info-box ul { padding-left: 20px; margin: 10px 0 0; }
.info-box li { margin-bottom: 6px; }

/* Speiseplan-Aufruf (Überschrift + Hinweis + Button) */
.plan-cta {
  background: var(--box-gruen);
  border-radius: var(--radius);
  padding: 30px;
  text-align: center;
}
.plan-cta h3 { color: var(--rot); margin: 0 0 8px; font-size: 1.4rem; }
.plan-cta p { margin: 0 0 20px; color: var(--text-hell); }
.plan-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

/* Karten (Speiseangebot) */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.card {
  background: #fafafa;
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 6px rgba(0,0,0,.05);
}
.card img { height: 180px; object-fit: cover; width: 100%; }
.card-body { padding: 18px 20px 24px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { color: var(--rot); margin: 0 0 8px; font-size: 1.3rem; }
.card-body p { margin: 0 0 18px; color: var(--text-hell); flex: 1; }

/* Farbige Aufruf-Bänder */
.band {
  background: var(--rot);
  color: var(--weiss);
  border-radius: var(--radius);
  padding: 34px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.band > div { flex: 1 1 300px; }
.band > .btn { flex: 0 0 auto; }
.band h2 { color: var(--weiss); margin: 0 0 6px; }
.band p { margin: 0; opacity: .95; }

/* Content-Slider (Sonntagsküche / Über uns) */
.content-slider {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
}
.content-slider .slide { position: absolute; inset: 0; }
/* Seitenverhältnis der Originalbilder (720×480 = 3:2) – alle Slides identisch groß */
.content-slider .cs-viewport { position: relative; aspect-ratio: 3 / 2; }
.content-slider .slide img { width: 100%; height: 100%; object-fit: cover; }
.cs-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: rgba(123,12,34,.82);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 400;
  padding: 12px 18px;
  font-size: 1rem;
  text-align: center;
}
/* Punkte-Navi über der Caption anordnen (keine Überlagerung) */
.content-slider .slider-dots { bottom: 56px; }

/* Rechtstext / lange Prosa (Datenschutz etc.) */
.legal { max-width: 820px; margin: 0 auto; }
.legal h1 { color: var(--gruen-dunkel); font-size: 1.9rem; margin: 0 0 20px; }
.legal h2 { color: var(--rot); font-size: 1.5rem; margin: 36px 0 10px; }
.legal h3 { color: var(--text); font-size: 1.2rem; margin: 26px 0 6px; }
.legal h4 { color: var(--text); font-family: var(--font-body); font-weight: 700; font-size: 1.02rem; margin: 16px 0 4px; }
.legal p { margin: 0 0 12px; }
.legal ul { margin: 0 0 12px; padding-left: 22px; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--rot); word-break: break-word; }

/* Telefon-Links: sehen aus wie normaler Text (Farbe geerbt, keine Unterstreichung) */
a.tel-link { color: inherit; text-decoration: none; white-space: nowrap; }
a.tel-link:hover { text-decoration: none; color: inherit; }

/* Icons (schlichte Inline-SVGs) */
.ico { width: 18px; height: 18px; vertical-align: -3px; margin-right: 8px; flex: 0 0 auto; }
.ci  { width: 20px; height: 20px; flex: 0 0 auto; color: var(--rot); }

/* Adress-/Kontaktliste */
.contact-list p { margin: 0 0 4px; }
.contact-row { display: flex; align-items: flex-start; gap: 12px; margin: 0 0 12px; }
.contact-row .ci { margin-top: 3px; }
.contact-row .tel { color: var(--rot); font-family: var(--font-head); font-size: 1.15rem; margin: 0; }
.contact-row .oeff { margin: 0; }
.contact-row .oeff strong { color: var(--rot); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--gruen); color: var(--weiss); padding: 48px 0 0; }
.site-footer a { color: var(--weiss); }
.site-footer a:hover { color: var(--rot); text-decoration: none; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}
.footer-logo img { height: 82px; margin-bottom: 12px; }
.footer-col h4 {
  color: var(--weiss);
  font-size: 1.2rem;
  margin: 0 0 14px;
  border-bottom: 1px solid rgba(255,255,255,.4);
  padding-bottom: 8px;
  display: flex;
  align-items: flex-end;
  gap: 10px;
}
.footer-col h4::before {
  content: "";
  flex: 0 0 auto;
  width: 44px;
  height: 36px;
  background: url("../../bilder/titel-icon.png") no-repeat center / contain;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-col li::before { content: "\2665\00a0"; color: var(--rot); }
.footer-meta { font-size: .95rem; margin-top: 14px; }
.footer-contact { display: flex; align-items: center; gap: 8px; }
.footer-contact svg { width: 18px; height: 18px; flex: 0 0 auto; }
.footer-divider { border-top: 1px solid rgba(255,255,255,.4); padding-top: 14px; }
.footer-bottom {
  background: var(--rot);
  color: rgba(255,255,255,.85);
  text-align: left;
  padding: 12px 0;
  margin-top: 40px;
  font-size: .85rem;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--weiss);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 0;
    box-shadow: 0 8px 12px rgba(0,0,0,.1);
    display: none;
  }
  .nav-menu.is-open { display: flex; }
  .nav-menu li { border-bottom: 1px solid #eee; }
  .nav-menu a { display: block; padding: 12px 22px; }
  .nav-menu a::before { display: none; }
  .hero { height: 300px; }
  .two-col { grid-template-columns: 1fr; gap: 26px; }
  .card-grid { grid-template-columns: 1fr; }
  .plan-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .slide-caption { bottom: 16%; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .hero { height: 230px; }
  .band { padding: 26px 22px; }
}
