/* Landgasthof Langfeldsmühle – Theme */
:root {
  --lm-bg: #faf6ee;
  --lm-surface: #ffffff;
  --lm-ink: #2b2620;
  --lm-muted: #6b6257;
  --lm-green: #2f4a3a;
  --lm-green-dark: #22362a;
  --lm-wood: #6b4a2f;
  --lm-copper: #b5652b;
  --lm-line: #e6dccb;
  --lm-radius: 10px;
  --lm-max: 1040px;
  --lm-serif: Georgia, "Times New Roman", serif;
  --lm-sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

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

body {
  margin: 0;
  background: var(--lm-bg);
  color: var(--lm-ink);
  font-family: var(--lm-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
}

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

a { color: var(--lm-copper); text-underline-offset: 2px; }
a:hover, a:focus { color: var(--lm-wood); }

h1, h2, h3, h4 {
  font-family: var(--lm-serif);
  color: var(--lm-green);
  line-height: 1.25;
  font-weight: 700;
  margin: 0 0 .6em;
}
h1 { font-size: clamp(2rem, 4.5vw, 2.9rem); }
h2 { font-size: clamp(1.5rem, 3vw, 1.9rem); margin-top: 1.2em; }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }

.invisible {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0);
}

/* ---------- Header ---------- */
#header {
  background: var(--lm-green);
  color: #fff;
  border-bottom: 4px solid var(--lm-copper);
}
#header .inside {
  max-width: var(--lm-max);
  margin: 0 auto;
  padding: 18px 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
}
.lm-brand a {
  display: block;
  color: #fff;
  text-decoration: none;
}
.lm-brand__name {
  display: block;
  font-family: var(--lm-serif);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: .01em;
}
.lm-brand__tagline {
  display: block;
  font-size: .85rem;
  opacity: .85;
  letter-spacing: .08em;
  text-transform: uppercase;
}

#header .mod_navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
#header .mod_navigation a,
#header .mod_navigation strong {
  display: block;
  padding: 8px 14px;
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: .98rem;
}
#header .mod_navigation a:hover,
#header .mod_navigation a:focus { background: rgba(255,255,255,.14); color: #fff; }
#header .mod_navigation strong.active,
#header .mod_navigation a.trail { background: var(--lm-copper); }

/* ---------- Main ---------- */
#container {
  max-width: var(--lm-max);
  margin: 0 auto;
  padding: 40px 16px 56px;
}
.mod_article { margin-bottom: 2rem; }

/* Hero (Startseite) */
.hero {
  background: linear-gradient(135deg, var(--lm-green) 0%, var(--lm-green-dark) 60%, var(--lm-wood) 100%);
  color: #fff;
  border-radius: var(--lm-radius);
  padding: clamp(28px, 6vw, 64px);
  margin-bottom: 2rem;
}
.hero h1 { color: #fff; }
.hero p { font-size: 1.15rem; max-width: 46em; }
.hero a {
  display: inline-block;
  margin-top: .4em;
  padding: 10px 22px;
  border-radius: 999px;
  background: var(--lm-copper);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}
.hero a:hover, .hero a:focus { background: #9a5423; color: #fff; }

/* Hinweis-Box */
.notice {
  background: #fff4e3;
  border-left: 5px solid var(--lm-copper);
  border-radius: var(--lm-radius);
  padding: 18px 22px;
  margin-bottom: 2rem;
}
.notice h2, .notice h3 { margin-top: 0; color: var(--lm-wood); }
.notice p:last-child { margin-bottom: 0; }

/* Karten-Raster */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 2rem;
}
.cards > * ,
.card {
  background: var(--lm-surface);
  border: 1px solid var(--lm-line);
  border-radius: var(--lm-radius);
  padding: 22px;
}
.cards h2, .cards h3 { margin-top: 0; font-size: 1.25rem; }
.cards p:last-child { margin-bottom: 0; }

/* Speise- und Getränkekarte */
.menu {
  background: var(--lm-surface);
  border: 1px solid var(--lm-line);
  border-radius: var(--lm-radius);
  padding: 22px 26px;
  margin-bottom: 1.5rem;
}
.menu h2 {
  margin-top: 0;
  padding-bottom: .4em;
  border-bottom: 2px solid var(--lm-line);
}
.menu p { margin-bottom: .9em; }
.menu strong { color: var(--lm-green-dark); }

/* Bilder */
figure { margin: 0; }
.banner, .photo { margin-bottom: 2rem; }
.banner figure {
  overflow: hidden;
  border-radius: var(--lm-radius);
  box-shadow: 0 6px 24px rgba(34, 54, 42, .18);
}
.banner img {
  display: block;
  width: 100%;
}
.photo figure {
  border-radius: var(--lm-radius);
  overflow: hidden;
  background: var(--lm-surface);
  border: 1px solid var(--lm-line);
}
.photo img { display: block; width: 100%; }
figcaption {
  padding: 10px 14px;
  font-size: .85rem;
  color: var(--lm-muted);
}

/* Tabellen */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
}
th, td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--lm-line);
  text-align: left;
  vertical-align: top;
}
td:last-child, th:last-child { text-align: right; white-space: nowrap; }

/* ---------- Footer ---------- */
#footer {
  background: var(--lm-green-dark);
  color: #e9e4da;
  font-size: .95rem;
}
#footer .inside {
  max-width: var(--lm-max);
  margin: 0 auto;
  padding: 40px 16px 24px;
}
#footer h2,
#footer h3 {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: .5em;
}
#footer a { color: #f0c79e; }
#footer a:hover, #footer a:focus { color: #fff; }
.lm-footer {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px 32px;
}
.lm-footer p { margin: 0 0 .6em; }
#footer .mod_customnav ul {
  list-style: none;
  margin: 28px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid rgba(255,255,255,.15);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  font-size: .9rem;
}
.lm-copyright {
  margin-top: 10px;
  font-size: .85rem;
  opacity: .7;
}

/* ---------- Burger-Menü ---------- */
.lm-brand { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.lm-burger {
  display: none;
  flex: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 2px solid rgba(255,255,255,.35);
  border-radius: 10px;
  background: transparent;
  color: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.lm-burger:hover, .lm-burger:focus-visible { background: rgba(255,255,255,.12); outline: none; border-color: #fff; }
.lm-burger__box { position: relative; display: block; width: 22px; height: 16px; }
.lm-burger__line {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .25s ease, opacity .2s ease, top .25s ease;
}
.lm-burger__line:nth-child(1) { top: 0; }
.lm-burger__line:nth-child(2) { top: 7px; }
.lm-burger__line:nth-child(3) { top: 14px; }
.nav-open .lm-burger__line:nth-child(1) { top: 7px; transform: rotate(45deg); }
.nav-open .lm-burger__line:nth-child(2) { opacity: 0; }
.nav-open .lm-burger__line:nth-child(3) { top: 7px; transform: rotate(-45deg); }

/* Ohne JavaScript bleibt die Navigation sichtbar; Button und Ausblenden nur mit .js */
@media (max-width: 860px) {
  #header .inside { display: block; }
  .js .lm-burger { display: inline-flex; }
  #header .mod_navigation {
    margin-top: 14px;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,.18);
  }
  .js #header .mod_navigation { display: none; }
  .js.nav-open #header .mod_navigation { display: block; animation: lm-nav-in .2s ease; }
  #header .mod_navigation ul { flex-direction: column; gap: 2px; }
  #header .mod_navigation a,
  #header .mod_navigation strong {
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 1.05rem;
  }
}
@keyframes lm-nav-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .lm-burger__line, .nav-open #header .mod_navigation { transition: none; animation: none; }
}

/* ---------- Mobil ---------- */
@media (max-width: 640px) {
  body { font-size: 1rem; }
  #header .inside { padding: 14px 16px; }
  .lm-brand__name { font-size: 1.35rem; }
  #container { padding: 24px 16px 40px; }
  .menu { padding: 18px 16px; }
}

