/* ==========================================================================
   Speisekarte Preise – Style (leicht, responsiv, helles Design)
   Kein Framework, kein jQuery, keine externen Fonts.
   ========================================================================== */

:root {
  --teal: #0f766e;
  --teal-dark: #115e59;
  --teal-soft: #ecfdf5;
  --amber: #b45309;
  --text: #1f2430;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 8px 24px rgba(15, 23, 42, .06);
  /* Lesemaß für Artikeltexte (ca. 80–85 Zeichen pro Zeile) */
  --measure: 720px;
  --sidebar: 300px;
  --post-gap: 2.6rem;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.25; font-family: var(--serif); color: #0b1220; }
h1 { font-size: clamp(1.7rem, 4.2vw, 2.5rem); }
h2 { font-size: clamp(1.35rem, 3vw, 1.75rem); margin-top: 2.2rem; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1rem; }
.muted { color: var(--muted); }
.small { font-size: .86rem; }
.center { text-align: center; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: -9999px; top: 0; background: var(--teal); color: #fff;
  padding: .6rem 1rem; z-index: 100;
}
.skip:focus { left: 0; }

.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 18px; }
.wrap.narrow { max-width: 800px; padding-top: 2rem; padding-bottom: 2.5rem; }

/* ------------------------------------------------ Header / Navigation */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 1rem; min-height: 66px; }
.brand { display: flex; align-items: center; gap: .6rem; font-weight: 700; color: #0b1220; }
.brand:hover { text-decoration: none; }
.brand-mark {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px;
  background: linear-gradient(135deg, var(--teal), #14b8a6); color: #fff; font-size: .95rem;
  letter-spacing: .5px;
}
.brand-text { font-family: var(--serif); font-size: 1.16rem; }
.brand-text em { font-style: normal; color: var(--teal); }

.main-nav { margin-left: auto; }
.main-nav ul { display: flex; flex-wrap: wrap; gap: .1rem; list-style: none; margin: 0; padding: 0; }
.main-nav a {
  display: block; padding: .45rem .6rem; border-radius: 8px; font-size: .93rem; color: #334155;
}
.main-nav a:hover, .main-nav a.active { background: var(--teal-soft); color: var(--teal-dark); text-decoration: none; }

.nav-toggle { display: none; }
.nav-burger { display: none; margin-left: auto; cursor: pointer; padding: .5rem; }
.nav-burger span {
  display: block; width: 22px; height: 2px; background: #334155; margin: 4px 0; border-radius: 2px;
}

/* ------------------------------------------------ Hero der Startseite */
.hero-band {
  background: linear-gradient(135deg, #0f766e 0%, #14b8a6 60%, #5eead4 100%);
  color: #fff; padding: 3rem 0 2.6rem; margin-bottom: 2rem;
}
.hero-band h1 { color: #fff; margin: 0 0 .6rem; }
.hero-band .lede { color: #ecfeff; max-width: 62ch; }
.search-teaser { display: flex; gap: .5rem; margin-top: 1.4rem; max-width: 520px; }
.search-teaser input {
  flex: 1; padding: .8rem .95rem; border: 0; border-radius: 10px; font-size: 1rem; font-family: inherit;
}
.search-teaser button {
  padding: .8rem 1.2rem; border: 0; border-radius: 10px; background: #0b1220; color: #fff;
  font-size: 1rem; font-family: inherit; cursor: pointer;
}
.search-teaser button:hover { background: #1f2430; }

/* ------------------------------------------------ Layout */
.layout-2col { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 2.2rem; padding-bottom: 3rem; }
.section-title { margin-top: 1.2rem; }

/* Artikelseite: eigener Container + begrenzte Zeilenlänge (--measure).
   Ohne diese Begrenzung lief der Text auf breiten Bildschirmen über die
   volle Viewport-Breite (90-180 Zeichen pro Zeile). */
.post {
  max-width: calc(var(--measure) + var(--sidebar) + var(--post-gap) + 36px);
  margin-inline: auto;
  padding-inline: 18px;
}
.post-header,
.breadcrumbs { max-width: var(--measure); }
.post-layout {
  display: grid;
  grid-template-columns: minmax(0, var(--measure)) minmax(240px, var(--sidebar));
  gap: var(--post-gap);
  padding-bottom: 3rem;
}

/* ------------------------------------------------ Karten */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.2rem; }
.card {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: #fff; box-shadow: var(--shadow); transition: transform .15s ease;
}
.card:hover { transform: translateY(-3px); }
.card-link { display: block; color: inherit; }
.card-link:hover { text-decoration: none; }
.card img { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; }
.card-body { padding: .9rem 1rem 1.1rem; }
.card h3 { margin: .2rem 0 .5rem; font-size: 1.06rem; }
.kicker {
  margin: 0; font-size: .74rem; text-transform: uppercase; letter-spacing: .08em;
  color: var(--teal); font-weight: 700;
}
.excerpt { margin: 0 0 .5rem; font-size: .92rem; color: #475569; }
.card .meta { margin: 0; font-size: .82rem; color: var(--muted); }

/* ------------------------------------------------ Artikel */
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; margin: 1.2rem 0 1rem; padding: 0; font-size: .86rem; color: var(--muted); }
.breadcrumbs li + li::before { content: "›"; margin-right: .4rem; color: #cbd5e1; }
.post-header h1 { margin: .3rem 0 .7rem; }
.lede { font-size: 1.09rem; color: #334155; }
.post-header .meta { font-size: .88rem; color: var(--muted); }
.hero { margin: 1.4rem 0 0; border-radius: var(--radius); }
.post-content > .intro { font-size: 1.05rem; }
.expect { background: var(--bg-soft); border-left: 3px solid var(--teal); padding: .9rem 1.1rem; border-radius: 0 10px 10px 0; }

.toc {
  border: 1px solid var(--line); border-radius: var(--radius); padding: .4rem 1.1rem .9rem;
  background: var(--bg-soft); margin: 1.6rem 0;
}
.toc summary { cursor: pointer; font-weight: 700; padding: .6rem 0; font-family: var(--serif); }
.toc ol { margin: 0; padding-left: 1.2rem; columns: 2; column-gap: 2rem; font-size: .93rem; }
.toc li { margin: .25rem 0; break-inside: avoid; }

/* ------------------------------------------------ Tabellen */
.table-wrap { overflow-x: auto; margin: 1rem 0 1.6rem; border: 1px solid var(--line); border-radius: var(--radius); }
.price-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.price-table caption {
  text-align: left; padding: .75rem 1rem; font-weight: 700; background: var(--teal-soft);
  color: var(--teal-dark); font-family: var(--serif);
}
.price-table th, .price-table td { padding: .58rem 1rem; border-top: 1px solid var(--line); text-align: left; }
.price-table thead th { background: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.price-table tbody tr:nth-child(even) { background: #fbfdfe; }
.price-table tbody th { font-weight: 500; }
.price-table .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; font-weight: 600; }
.price-table tbody tr:hover { background: var(--teal-soft); }

/* ------------------------------------------------ Kennzahlen */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: .9rem; margin: 1.2rem 0; }
.stat { border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1rem; background: var(--bg-soft); }
.stat-num { display: block; font-size: 1.4rem; font-weight: 700; color: var(--teal-dark); font-family: var(--serif); }
.stat-lbl { display: block; font-size: .8rem; color: var(--muted); }

/* ------------------------------------------------ FAQ */
.faq-item { border: 1px solid var(--line); border-radius: 10px; margin-bottom: .6rem; background: #fff; }
.faq-item summary { cursor: pointer; padding: .8rem 1rem; font-weight: 600; }
.faq-item[open] summary { color: var(--teal-dark); border-bottom: 1px solid var(--line); }
.faq-a { padding: .8rem 1rem 1rem; }

/* ------------------------------------------------ Related / Author */
.related-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.related-list a { display: flex; gap: .8rem; align-items: center; border: 1px solid var(--line); border-radius: 10px; padding: .6rem .8rem; color: inherit; }
.related-list a:hover { background: var(--bg-soft); text-decoration: none; }
.related-list img { width: 80px; height: 45px; border-radius: 6px; flex: 0 0 auto; }
.authorbox { margin-top: 2rem; border-top: 1px solid var(--line); padding-top: 1rem; font-size: .93rem; color: #475569; }

/* ------------------------------------------------ Sidebar */
.sidebar { display: grid; gap: 1.2rem; align-content: start; }
.box { border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; background: #fff; }
.box h3 { margin: 0 0 .7rem; font-size: 1.02rem; }
.box-cta { background: var(--teal-soft); border-color: #bbf7d0; }
.link-list { list-style: none; margin: 0; padding: 0; font-size: .93rem; }
.link-list li { padding: .32rem 0; border-bottom: 1px dashed var(--line); }
.link-list li:last-child { border-bottom: 0; }
.link-list .muted { font-size: .82rem; float: right; }
.btn {
  display: inline-block; margin-top: .4rem; padding: .6rem 1rem; border-radius: 10px;
  background: var(--teal); color: #fff; font-weight: 600; font-size: .93rem;
}
.btn:hover { background: var(--teal-dark); text-decoration: none; }

/* ------------------------------------------------ Anzeigenplatz */
.ad-slot { margin: 1.4rem 0 1.6rem; }
.ad-label { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.ad-box {
  display: grid; place-items: center; min-height: 110px; margin-top: .35rem; border: 1px dashed #cbd5e1;
  border-radius: 10px; background: repeating-linear-gradient(45deg, #f8fafc, #f8fafc 10px, #f1f5f9 10px, #f1f5f9 20px);
  color: var(--muted); font-size: .88rem; text-align: center; padding: 1rem;
}

/* ------------------------------------------------ Pagination */
.pagination { display: flex; flex-wrap: wrap; gap: .35rem; margin: 2rem 0 0; }
.page-link { padding: .45rem .8rem; border: 1px solid var(--line); border-radius: 8px; font-size: .9rem; color: #334155; }
.page-link:hover { background: var(--bg-soft); text-decoration: none; }
.page-link.active { background: var(--teal); border-color: var(--teal); color: #fff; }

/* ------------------------------------------------ Suche */
.search-results { list-style: none; margin: 1.2rem 0 0; padding: 0; display: grid; gap: .6rem; }
.search-results a { display: block; border: 1px solid var(--line); border-radius: 10px; padding: .75rem .9rem; color: inherit; }
.search-results a:hover { background: var(--bg-soft); text-decoration: none; }
.search-results .muted { display: block; font-size: .85rem; }

/* ------------------------------------------------ Formular */
.contact-form { display: grid; gap: .45rem; margin-top: 1.4rem; }
.contact-form label { font-size: .9rem; font-weight: 600; }
.contact-form input, .contact-form textarea {
  padding: .65rem .8rem; border: 1px solid var(--line); border-radius: 10px; font: inherit; background: #fff;
}
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--teal); border-color: var(--teal); }

/* ------------------------------------------------ Footer */
.site-footer { margin-top: 3rem; border-top: 1px solid var(--line); background: var(--bg-soft); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2rem; padding-top: 2.2rem; padding-bottom: 1.4rem; }
.footer-grid h3 { font-size: .95rem; margin: 0 0 .6rem; text-transform: uppercase; letter-spacing: .06em; color: #334155; }
.footer-list { list-style: none; margin: 0; padding: 0; font-size: .92rem; }
.footer-list li { padding: .2rem 0; }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 1rem; padding-bottom: 1.4rem; font-size: .84rem; color: var(--muted); }

/* ------------------------------------------------ Responsiv */
@media (max-width: 980px) {
  .layout-2col, .post-layout { grid-template-columns: 1fr; }
  .sidebar { order: 2; }
  /* Einspaltig: Text darf die volle Breite nutzen */
  .post-header, .breadcrumbs { max-width: none; }
}
@media (min-width: 981px) and (max-width: 1099px) {
  /* enger Zwischenbereich: Sidebar etwas schmaler, damit nichts überläuft.
     Volle Breite (720 + 300 + Abstand) braucht ~1098px Viewport. */
  .post-layout { grid-template-columns: minmax(0, var(--measure)) 240px; gap: 1.8rem; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav-burger { display: block; }
  .main-nav {
    position: absolute; left: 0; right: 0; top: 66px; background: #fff; border-bottom: 1px solid var(--line);
    display: none; padding: .5rem 1rem 1rem; max-height: 70vh; overflow-y: auto;
  }
  .nav-toggle:checked ~ .main-nav { display: block; }
  .main-nav ul { flex-direction: column; }
  .main-nav a { padding: .7rem .5rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .hero-band { padding: 2rem 0 1.8rem; }
  .search-teaser { flex-direction: column; }
  .toc ol { columns: 1; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.4rem; }
  .price-table th, .price-table td { padding: .5rem .7rem; font-size: .9rem; }
}
@media print {
  .site-header, .sidebar, .ad-slot, .site-footer, .pagination, .search-teaser { display: none; }
  body { font-size: 12pt; }
}
