/* Gasthaus „Zur Linde“ – statischer Nachbau des WordPress-Themes „adocom-pages“.
   Alle Farben, Schriften und Abstände zentral als Variablen. */

@font-face {
  font-family: "Lobster Two";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/lobster-two-v18-latin-regular.woff2") format("woff2");
}

:root {
  --green-dark: #1c4b43;   /* Überschriften, Footer (leicht abgedunkelt: ≥ 4.5:1 zu --olive-light in beide Richtungen) */
  --olive: #838e32;        /* Akzent, Linien – nicht für Text (nur 3.6:1 auf Weiß) */
  --olive-light: #abb966;  /* Menüleiste, Footer-Überschriften */
  --link: #66701f;         /* abgedunkeltes Oliv für Text, Links und Buttons (5.4:1 zu Weiß) */
  --text: #333;
  --white: #fff;
  --content-bg: rgba(255, 255, 255, 0.8);

  --font-display: "Lobster Two", cursive;
  /* Original nennt Ubuntu, lädt die Schrift aber nicht – daher wie dort mit Systemschrift als Rückfall */
  --font-body: "Ubuntu", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 980px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 48px;
  --radius: 4px;
  --t-fast: 200ms;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
}

img { max-width: 100%; height: auto; vertical-align: middle; }

a { color: var(--link); text-underline-offset: 2px; }
a:hover { color: var(--green-dark); }
:focus-visible { outline: 3px solid var(--green-dark); outline-offset: 2px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--space-3); }

.skip {
  position: absolute; left: var(--space-2); top: -60px;
  background: var(--green-dark); color: var(--white);
  padding: var(--space-2) var(--space-3); z-index: 10;
}
.skip:focus { top: var(--space-2); }
.skip:hover { color: var(--white); } /* a:hover ist spezifischer und würde Grün auf Grün setzen */

/* ---------- Kopfbereich ---------- */
.masthead {
  background-image: url("../theme/bgl.jpg"), url("../theme/bgr.jpg");
  background-position: left top, right 460px;
  background-repeat: no-repeat;
}

.topbar { padding-top: var(--space-3); }
.contact-mini {
  display: flex; flex-wrap: wrap; justify-content: flex-end;
  gap: var(--space-2) var(--space-4);
  margin-bottom: var(--space-2);
}
.contact-mini a {
  display: inline-flex; align-items: center; gap: var(--space-2);
  color: var(--green-dark); text-decoration: none;
}
.contact-mini a:hover { text-decoration: underline; }

/* Einfache Icons aus CSS-Masken – eine Familie, gleiche Strichstärke */
.ico {
  display: inline-block; width: 28px; height: 28px; border-radius: 50%;
  background: var(--olive-light); position: relative; flex: none;
}
.ico::after {
  content: ""; position: absolute; inset: 7px; background: var(--white);
  -webkit-mask: var(--icon) center / contain no-repeat;
          mask: var(--icon) center / contain no-repeat;
}
.ico-phone { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2c.3-.3.7-.4 1-.2 1.1.4 2.3.6 3.6.6.6 0 1 .4 1 1V20c0 .6-.4 1-1 1A17 17 0 0 1 3 4c0-.6.4-1 1-1h3.5c.6 0 1 .4 1 1 0 1.3.2 2.5.6 3.6.1.3 0 .7-.2 1z'/%3E%3C/svg%3E"); }
.ico-mail { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M2 5h20v14H2zm2 2v.5l8 5 8-5V7zm16 2.9-8 5-8-5V17h16z'/%3E%3C/svg%3E"); }

.logo { display: block; }
.logo img { display: block; width: 100%; max-width: 977px; }

.slider { position: relative; padding-top: 26px; padding-bottom: 40px; }
.slides { list-style: none; margin: 0; padding: 0; position: relative; aspect-ratio: 980 / 393; overflow: hidden; }
.slide {
  position: absolute; inset: 0; opacity: 0; visibility: hidden;
  transition: opacity 400ms ease-out, visibility 0s linear 400ms;
}
.slide.is-active { opacity: 1; visibility: visible; transition: opacity 400ms ease-out; }
.slide img { width: 100%; height: 100%; object-fit: cover; }

.arrow {
  position: absolute; top: calc(26px + (100% - 66px) / 2); transform: translateY(-50%);
  width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: rgba(0, 0, 0, 0.45); color: var(--white);
  font-size: 28px; line-height: 1; cursor: pointer;
  transition: background var(--t-fast) ease-out;
}
.arrow:hover { background: rgba(0, 0, 0, 0.7); }
.arrow.prev { left: calc(var(--space-3) + var(--space-2)); }
.arrow.next { right: calc(var(--space-3) + var(--space-2)); }

.dots { display: flex; justify-content: center; gap: var(--space-2); margin-top: var(--space-2); }
.dot {
  width: 12px; height: 12px; padding: 0; border-radius: 50%;
  border: 2px solid var(--green-dark); background: transparent; cursor: pointer;
}
.dot[aria-current="true"] { background: var(--green-dark); }

/* Hauptmenü */
.mainmenu { background: var(--olive-light); }
.mainmenu .nav {
  list-style: none; margin: 0; padding: 0;
  display: flex; justify-content: space-between;
}
.mainmenu .nav a {
  display: block; padding: 15px 13px;
  font-family: var(--font-display); font-size: 18px;
  color: var(--green-dark); text-decoration: none;
}
.mainmenu .nav li:first-child a { padding-left: 0; }
.mainmenu .nav li:last-child a { padding-right: 0; }
.mainmenu .nav a:hover,
.mainmenu .nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.menu-toggle { display: none; }

/* ---------- Inhalt ---------- */
.content-holder {
  background: url("../theme/bg_c.jpg") center top / cover no-repeat fixed;
}
.entry {
  background: var(--content-bg);
  padding: 4% 4% var(--space-5);
  overflow-wrap: break-word;
}
/* Im Original ausgeblendet – für Screenreader erhalten */
.entry-title {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.entry h2, .entry h3, .entry h4 { font-family: var(--font-display); font-weight: 400; line-height: 1.25; }
.entry h2 { font-size: 31px; color: var(--green-dark); margin: var(--space-4) 0 var(--space-3); }
.entry h3 { font-size: 24px; color: var(--green-dark); margin: 0 0 var(--space-2); }
.entry h4 { font-size: 20px; color: var(--link); margin: var(--space-3) 0 var(--space-2); }
.entry p { margin: 0 0 var(--space-3); }
.entry hr { border: 0; border-top: 1px solid var(--olive-light); margin: var(--space-4) 0; }
.entry ul { padding-left: var(--space-4); }

.ta-center { text-align: center; }
.ta-right { text-align: right; }

.row { display: flex; gap: var(--space-5); margin-bottom: var(--space-4); }
.col { flex: 1 1 0; min-width: 0; }
.spb > .row > .col:first-child, .spb .col:first-child { border-right: 1px solid var(--olive); padding-right: var(--space-4); }

.box2-green { border: 4px solid var(--olive); margin: 2%; padding: 4%; }
.double-border { border-style: double; margin-top: 40px; padding: var(--space-3); }
.double-border p { text-align: center; }

/* Galerien: Vorschaubilder in Reihe, Klick öffnet großes Bild */
.entry figure { display: inline-block; margin: 0 7px 15px; vertical-align: top; }
.entry figure img { width: 165px; height: auto; }
.entry figcaption { font-size: 14px; max-width: 165px; }

.btn {
  display: inline-block; padding: 12px var(--space-4);
  background: var(--link); color: var(--white); text-decoration: none;
  border: 2px solid var(--link); border-radius: var(--radius);
  font-size: 16px; font-family: inherit; cursor: pointer;
  transition: background var(--t-fast) ease-out, color var(--t-fast) ease-out;
}
.btn:hover { background: var(--green-dark); border-color: var(--green-dark); color: var(--white); }
.entry a.btn { color: var(--white); }

/* Tabellen (Impressum u. a.) */
.entry table { border-collapse: collapse; width: 100%; }
.entry td, .entry th { text-align: left; padding: var(--space-1) var(--space-2) var(--space-1) 0; vertical-align: top; }

/* Tabs (Termine) */
.tabs { display: flex; gap: var(--space-4); }
.tabs-nav { display: flex; flex-direction: column; flex: 0 0 15%; min-width: 120px; }
.tab-btn {
  background: rgba(255, 255, 255, 0.6); border: 0; border-left: 3px solid transparent;
  padding: var(--space-2) var(--space-3); text-align: left; cursor: pointer;
  font-family: var(--font-display); font-size: 24px; color: var(--green-dark);
}
.tab-btn[aria-selected="true"] { background: var(--white); border-left-color: var(--olive); }
.tabs-panes { flex: 1; min-width: 0; background: var(--white); padding: var(--space-3); }

/* Terminliste (Startseite + Termine-Seite) */
.ev-list { list-style: none; margin: 0 0 var(--space-3); padding: 0; }
.ev {
  display: grid; grid-template-columns: 7.5em 1fr auto; gap: var(--space-1) var(--space-3);
  align-items: baseline; padding: var(--space-2) 0; border-bottom: 1px solid var(--olive-light);
}
.ev[hidden] { display: none; }
.ev-date { font-weight: 700; color: var(--green-dark); white-space: nowrap; }
.ev-main { display: flex; flex-direction: column; min-width: 0; }
.ev-kind { font-size: 14px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--link); }
.ev-title { font-family: var(--font-display); font-size: 20px; color: var(--green-dark); }
.ev-note { font-size: 14px; }
.ev-meta { white-space: nowrap; text-align: right; }
.ev-hint { text-align: center; }
.tabs-panes h3 { margin-bottom: var(--space-2); }

/* Lightbox-Buttons und Dialoge */
.lb-open {
  background: none; border: 0; padding: 0; cursor: pointer;
  font: inherit; color: var(--link); text-decoration: underline;
}
.lb-dialog {
  border: 0; padding: 40px; max-width: min(600px, 92vw);
  box-shadow: 0 0 15px #333; text-align: center;
}
.lb-dialog::backdrop { background: rgba(0, 0, 0, 0.7); }
.img-dialog { max-width: 92vw; padding: var(--space-5) var(--space-3) var(--space-3); }
.img-dialog img { max-height: 82vh; width: auto; }
.lb-close {
  position: absolute; top: var(--space-1); right: var(--space-2);
  width: 36px; height: 36px; border: 0; background: none;
  font-size: 28px; line-height: 1; cursor: pointer; color: var(--text);
}

/* Kontaktformular */
.contact-form input:not([type="checkbox"]):not([type="submit"]),
.contact-form textarea {
  width: 100%; padding: var(--space-2); font: inherit;
  border: 1px solid #8c8c8c; border-radius: var(--radius); background: var(--white);
}
.contact-form .half { display: inline-block; width: calc(50% - var(--space-2)); vertical-align: top; }
.contact-form .half + .half { margin-left: var(--space-3); }
.contact-form input[type="submit"] {
  background: var(--link); color: var(--white); border: 0; border-radius: var(--radius);
  padding: 12px var(--space-4); font: inherit; cursor: pointer;
}
.contact-form input[type="submit"]:hover { background: var(--green-dark); }
.form-status:not(:empty) { border: 2px solid var(--olive); padding: var(--space-3); margin-top: var(--space-3); }

.map-box {
  position: relative; min-height: 560px; border: 1px solid #dbdbdb;
  background: #f5f5f5 url("../img/hankensbuettel-vorschau.svg") 55% 41% / cover no-repeat;
}
.map-consent {
  position: absolute; left: var(--space-3); bottom: var(--space-5); max-width: 300px;
  background: rgba(255,255,255,.95); border: 1px solid #dbdbdb; padding: var(--space-3);
  text-align: left; font-size: 14px;
}
.map-consent p { margin: 0 0 var(--space-2); }
.map-consent .map-ext { margin: var(--space-2) 0 0; }
.map-attr { position: absolute; right: 0; bottom: 0; margin: 0; padding: 2px 6px; font-size: 12px; background: rgba(255,255,255,.85); }
.map-box.is-loaded { background: none; min-height: 0; border: 0; }
.map-box.is-loaded .map-attr { display: none; }
.map-frame { display: block; width: 100%; height: 560px; border: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-dark); color: var(--white); padding: var(--space-5) 0; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
.site-footer h3 { font-family: var(--font-display); font-weight: 400; font-size: 20px; color: var(--olive-light); margin: 0 0 var(--space-2); }
.site-footer p { margin: 0; line-height: 1.7; }
.site-footer a, .site-footer a:hover { color: var(--white); } /* explizit, sonst hängt es an der Reihenfolge zu a:hover */
.footer-menu { list-style: none; margin: 0; padding: 0; line-height: 1.7; }
.footer-menu a { text-decoration: none; }
.footer-menu a:hover, .footer-menu a[aria-current="page"] { text-decoration: underline; }

/* ---------- Mobil ---------- */
@media (max-width: 767px) {
  .masthead { background-image: none; }
  .contact-mini { justify-content: center; }
  .slider { padding-top: var(--space-3); padding-bottom: var(--space-4); }
  .arrow { width: 36px; height: 36px; font-size: 22px; }

  .menu-toggle {
    display: block; width: 100%; padding: var(--space-3) 0; border: 0; background: none;
    font-family: var(--font-display); font-size: 20px; color: var(--green-dark);
    text-align: left; cursor: pointer;
  }
  #nav { display: none; }
  #nav.is-open { display: block; }
  .mainmenu .nav { flex-direction: column; padding-bottom: var(--space-3); }
  .mainmenu .nav a, .mainmenu .nav li:first-child a { padding: var(--space-2) 0; }

  .row { flex-direction: column; gap: var(--space-3); }
  .spb .col:first-child { border-right: 0; padding-right: 0; }
  .tabs { flex-direction: column; }
  .tabs-nav { flex-direction: row; flex-wrap: wrap; }
  .tab-btn { font-size: 18px; }
  .ev { grid-template-columns: 1fr auto; }
  .ev-main { grid-column: 1 / -1; grid-row: 2; }
  .contact-form .half { display: block; width: 100%; }
  .contact-form .half + .half { margin-left: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-4); }
  .content-holder { background-attachment: scroll; }
}

@media (prefers-reduced-motion: reduce) {
  .slide, .slide.is-active { transition: none; }
}

/* Termine ohne festes Datum (Enten-/Gänseessen u. a.) */
.ev-extras { margin: 0 0 var(--space-3); padding-left: var(--space-4); }
.ev-extras li { margin-bottom: var(--space-1); }

/* Speisekarte (Startseite) */
.menu-meta { margin-bottom: var(--space-4); }
.menu-cols { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); }
.menu-section { margin-bottom: var(--space-4); }
.menu-section h3 {
  border-bottom: 2px solid var(--olive-light);
  padding-bottom: var(--space-1); margin-bottom: var(--space-2);
}
.dish-list { list-style: none; margin: 0; padding: 0; }
.dish {
  display: flex; align-items: baseline; gap: var(--space-3);
  padding: var(--space-2) 0; border-bottom: 1px dotted var(--olive-light);
}
.dish-name { flex: 1; min-width: 0; }
.dish-code { font-size: 14px; color: var(--link); white-space: nowrap; }
.dish-price { white-space: nowrap; font-weight: 700; color: var(--green-dark); }
.menu-notes { border-top: 2px solid var(--olive-light); padding-top: var(--space-3); }
.menu-regional { font-style: italic; }
@media (max-width: 767px) {
  .menu-cols { grid-template-columns: 1fr; gap: 0; }
}

/* Legende der Speisekarte */
.menu-legend { margin-top: var(--space-4); font-size: 14px; }
.legend-cols { display: grid; grid-template-columns: 1fr 2fr; gap: var(--space-4); }
.menu-legend h4 { margin: 0 0 var(--space-1); font-size: 16px; color: var(--green-dark); }
.legend-list { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: var(--space-4); }
.legend-cols > div:first-child .legend-list { columns: 1; }
.legend-code { display: inline-block; min-width: 2em; font-weight: 700; color: var(--green-dark); }
@media (max-width: 767px) {
  .legend-cols { grid-template-columns: 1fr; }
  .legend-list { columns: 1; }
}
