/* ============================================================
   Oberer Gasthof Brunn – Stylesheet 2026
   Farbwelt aus der Fassade: Bordeaux, Kalkweiß, Waldgrün
   ============================================================ */

:root {
  --bordeaux: #7a2a2a;
  --bordeaux-dark: #5c1f1f;
  --bordeaux-light: #9c4040;
  --gruen: #2f4a35;
  --gruen-light: #43644a;
  --gold: #c8912f;
  --creme: #faf5ec;
  --creme-dark: #f0e7d8;
  --papier: #fffdf8;
  --tinte: #2b2724;
  --tinte-soft: #5b524b;
  --linie: #e2d7c4;

  --serif: 'Georgia', 'Times New Roman', serif;
  --sans: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;

  --shadow-sm: 0 2px 8px rgba(43, 39, 36, 0.08);
  --shadow-md: 0 6px 24px rgba(43, 39, 36, 0.12);
  --shadow-lg: 0 14px 44px rgba(43, 39, 36, 0.18);

  --radius: 10px;
  --wrap: 1140px;
}

* { box-sizing: border-box; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--tinte);
  background: var(--creme);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--bordeaux); }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.wrap-narrow {
  width: 100%;
  max-width: 880px;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

/* ---------- Typografie ---------- */

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.2;
  color: var(--bordeaux-dark);
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.25rem); }
h3 { font-size: 1.25rem; color: var(--gruen); }

p { margin: 0 0 1.1em; }

.lead {
  font-size: 1.15rem;
  color: var(--tinte-soft);
}

.zierlinie {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  justify-content: center;
  margin: 0 0 2rem;
  color: var(--gold);
}
.zierlinie::before,
.zierlinie::after {
  content: "";
  height: 1px;
  background: linear-gradient(to right, transparent, var(--linie), transparent);
  flex: 1;
  max-width: 140px;
}
.zierlinie span { font-size: 1.1rem; letter-spacing: 0.2em; }

.zentriert { text-align: center; }

/* ---------- Topbar ---------- */

.topbar {
  background: var(--bordeaux-dark);
  color: #f3e6d8;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}
.topbar .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.75rem;
  justify-content: center;
  padding-block: 0.55rem;
}
.topbar a { color: #f8ecdd; text-decoration: none; font-weight: 600; }
.topbar a:hover { color: #fff; text-decoration: underline; }

/* ---------- Kopf & Navigation ---------- */

.kopf {
  background: var(--papier);
  border-bottom: 1px solid var(--linie);
}

.kopf-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.1rem;
}

.marke {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: inherit;
}
.marke img { width: 62px; height: auto; border-radius: 6px; }
.marke .kicker {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
}
.marke .name {
  display: block;
  font-family: var(--serif);
  font-size: clamp(1.25rem, 3.2vw, 1.75rem);
  font-weight: 700;
  color: var(--bordeaux-dark);
  line-height: 1.15;
}
.marke .sub {
  display: block;
  font-size: 0.82rem;
  color: var(--tinte-soft);
}

.nav {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}
.nav a {
  display: inline-block;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  color: var(--tinte);
  transition: background 0.18s, color 0.18s;
}
.nav a:hover { background: var(--creme-dark); color: var(--bordeaux-dark); }
.nav a.aktiv { background: var(--bordeaux); color: #fff; }

/* ---------- Hinweisbanner ---------- */

.banner {
  background: linear-gradient(135deg, var(--gruen) 0%, var(--gruen-light) 100%);
  color: #fdf8ef;
  text-align: center;
  padding: 0.85rem 1.25rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-bottom: 3px solid var(--gold);
}
.banner strong { color: #ffd98a; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: min(78vh, 660px);
  display: grid;
  place-items: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
  background: var(--bordeaux-dark);
}
.hero img.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(40,26,22,0.55) 0%, rgba(40,26,22,0.35) 45%, rgba(40,26,22,0.78) 100%);
}
.hero-inhalt {
  position: relative;
  z-index: 2;
  padding: 4rem 1.5rem;
  max-width: 780px;
}
.hero-inhalt .kicker {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #ffd98a;
  font-weight: 700;
  margin-bottom: 0.9rem;
}
.hero-inhalt h1 {
  color: #fff;
  text-shadow: 0 2px 18px rgba(0,0,0,0.45);
  margin-bottom: 0.5rem;
}
.hero-inhalt p {
  font-size: 1.2rem;
  color: #f4e9dc;
  text-shadow: 0 1px 10px rgba(0,0,0,0.4);
}

/* ---------- Buttons ---------- */

.btn-reihe {
  display: flex;
  gap: 0.8rem;
  justify-content: center;
  flex-wrap: wrap;
}
.btn {
  display: inline-block;
  padding: 0.85rem 1.75rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
  box-shadow: var(--shadow-sm);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-primaer { background: var(--gold); color: #3a2a09; }
.btn-primaer:hover { background: #d9a343; }
.btn-hell {
  background: rgba(255,255,255,0.14);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.65);
  backdrop-filter: blur(3px);
}
.btn-hell:hover { background: rgba(255,255,255,0.24); }
.btn-dunkel { background: var(--bordeaux); color: #fff; }
.btn-dunkel:hover { background: var(--bordeaux-light); }

/* ---------- Sektionen ---------- */

section { padding-block: clamp(3rem, 7vw, 5rem); }
.sek-hell { background: var(--papier); }
.sek-creme { background: var(--creme); }
.sek-dunkel { background: var(--gruen); color: #f2e9dc; }
.sek-dunkel h2, .sek-dunkel h3 { color: #ffd98a; }
.sek-dunkel a { color: #ffd98a; }

/* ---------- Karten ---------- */

.karten {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.karte {
  background: var(--papier);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s, box-shadow 0.18s;
}
.karte:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.karte .icon { font-size: 1.9rem; margin-bottom: 0.6rem; display: block; }
.karte p:last-child { margin-bottom: 0; }

/* ---------- Öffnungszeiten ---------- */

.zeiten {
  background: var(--papier);
  border-radius: var(--radius);
  border: 1px solid var(--linie);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.zeiten table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.05rem;
}
.zeiten th {
  background: var(--bordeaux-dark);
  color: #f7ece0;
  text-align: left;
  padding: 0.9rem 1.4rem;
  font-family: var(--serif);
  font-size: 1.15rem;
  letter-spacing: 0.03em;
}
.zeiten td {
  padding: 0.85rem 1.4rem;
  border-top: 1px solid var(--linie);
  vertical-align: top;
}
.zeiten td:first-child { font-weight: 700; width: 42%; }
.zeiten tr.ruhetag td { color: var(--tinte-soft); background: #f7f1e6; }
.zeiten tr.ruhetag td:last-child { font-style: italic; }
.zeiten .zusatz {
  display: block;
  font-size: 0.92rem;
  color: var(--bordeaux);
  font-weight: 600;
}
.zeiten-schliesstage {
  padding: 0.9rem 1.4rem;
  background: #f7f1e6;
  font-size: 0.97rem;
  color: var(--bordeaux);
  border-top: 1px solid var(--linie);
}
.zeiten-hinweis {
  padding: 0.9rem 1.4rem;
  background: var(--creme-dark);
  font-size: 0.95rem;
  color: var(--tinte-soft);
  border-top: 1px solid var(--linie);
}

/* ---------- Galerie ---------- */

.galerie {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.galerie figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: #fff;
}
.galerie img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.galerie figure:hover img { transform: scale(1.05); }
.galerie figcaption {
  padding: 0.7rem 1rem;
  font-size: 0.9rem;
  color: var(--tinte-soft);
}
.galerie .hoch img { height: 360px; }

/* ---------- Kontakt ---------- */

.kontakt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}
.kontakt-block p { margin-bottom: 0.4rem; }
.tel-gross {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 3.5vw, 1.9rem);
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
  margin-block: 0.3rem 0.8rem;
}

/* ---------- Fußzeile ---------- */

.fuss {
  background: var(--bordeaux-dark);
  color: #e7d6c4;
  padding-block: 2.5rem 1.75rem;
  font-size: 0.95rem;
}
.fuss-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-bottom: 1.75rem;
}
.fuss h3 {
  color: #ffd98a;
  font-size: 1.05rem;
  margin-bottom: 0.7rem;
}
.fuss a { color: #f3e2cf; text-decoration: none; }
.fuss a:hover { text-decoration: underline; color: #fff; }
.fuss ul { list-style: none; padding: 0; margin: 0; }
.fuss li { margin-bottom: 0.35rem; }
.fuss-unten {
  border-top: 1px solid rgba(255,255,255,0.16);
  padding-top: 1.25rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: #cdb7a1;
}

/* ---------- Chronik / Über uns ---------- */

.chronik p {
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
}
.chronik h2 { margin-top: 2.75rem; }
.chronik figure { margin: 0; }
.chronik figcaption {
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--tinte-soft);
  text-align: center;
  margin-top: 0.7rem;
}
.chronik img {
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}

/* Text-Bild-Block: feste Spalten statt Float – gleichmäßiger Abstand */
.medien {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem 3rem;
  align-items: start;
  margin: 2.5rem 0;
}
.medien.bild-links { grid-template-columns: auto minmax(0, 1fr); }
.medien > figure {
  max-width: 320px;
  margin: 0;
  padding-top: 0.35rem; /* richtet Bildkante an der ersten Textzeile aus */
}
.medien > figure img { width: 100%; height: auto; }
.medien .text > *:first-child { margin-top: 0; }
.medien .text > *:last-child { margin-bottom: 0; }
.medien .text h2 { margin-top: 0; }

/* Breites Einzelbild */
.chronik .breit {
  max-width: 420px;
  margin: 2.75rem auto;
}
.chronik .breit img { width: 100%; }

/* Historische Bildergalerie */
.hist-galerie {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1.25rem;
  max-width: 620px;
  margin: 2.75rem auto 1rem;
}
.hist-galerie img { width: 100%; height: auto; }
.galerie-text {
  text-align: center;
  font-size: 0.9rem;
  color: var(--tinte-soft);
  margin-bottom: 2.5rem;
}
.clear { clear: both; }

.zitat {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--bordeaux);
  text-align: center;
  border-left: none;
  margin: 2rem auto;
  max-width: 600px;
}

.quellen {
  font-size: 0.88rem;
  color: var(--tinte-soft);
  border-top: 1px solid var(--linie);
  padding-top: 1rem;
  margin-top: 2.5rem;
}

/* ---------- Impressum ---------- */

.impressum-block {
  background: var(--papier);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  padding: 1.8rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.impressum-block h2 { margin-top: 0; font-size: 1.25rem; color: var(--gruen); }
.impressum-block h3 { margin-top: 0; }
.impressum-block p:last-child { margin-bottom: 0; }
.impressum-block ul { margin: 0 0 1.1em; padding-left: 1.4rem; }
.impressum-block li { margin-bottom: 0.4rem; }
.impressum-block li:last-child { margin-bottom: 0; }

/* Datumszeile am Fuss der Datenschutzerklaerung */
.stand {
  margin-top: 2rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--tinte-soft);
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .kopf-inner { flex-direction: column; text-align: center; }
  .marke { flex-direction: column; gap: 0.5rem; }
  .nav { justify-content: center; }
}

@media (max-width: 720px) {
  .medien,
  .medien.bild-links {
    grid-template-columns: 1fr;
    gap: 1.6rem;
    margin: 2.25rem 0;
  }
  .medien > figure {
    max-width: 340px;
    margin-inline: auto;
    padding-top: 0;
    order: 2; /* Bild immer unter den zugehörigen Text */
  }
  .medien .text { order: 1; }
}

@media (max-width: 620px) {
  .chronik p { text-align: left; }
  .galerie img { height: 220px; }
  .galerie .hoch img { height: 280px; }
  .zeiten td:first-child { width: 46%; }
  .zeiten table { font-size: 0.98rem; }
  .zeiten th, .zeiten td { padding-inline: 1rem; }
}

/* ---------- Speisekarte ---------- */

.menu-kategorie { margin-bottom: 2.75rem; }
.menu-kategorie h2 {
  text-align: center;
  margin-bottom: 0.35rem;
}
.menu-liste {
  background: var(--papier);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 0.5rem 1.6rem;
}
.menu-gericht {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.35rem 1.5rem;
  align-items: baseline;
  padding: 1rem 0;
  border-top: 1px solid var(--linie);
}
.menu-gericht:first-child { border-top: none; }
.menu-gericht h3 { margin: 0; font-size: 1.12rem; }
.menu-gericht .preis {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.12rem;
  color: var(--bordeaux-dark);
  white-space: nowrap;
}
.menu-gericht .beschreibung {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--tinte-soft);
  font-size: 0.97rem;
}
.menu-gericht .allergene {
  grid-column: 1 / -1;
  font-size: 0.8rem;
  color: var(--gold);
  letter-spacing: 0.06em;
}
.menu-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gruen);
  border: 1px solid var(--gruen-light);
  border-radius: 999px;
  padding: 0.05rem 0.55rem;
  margin-left: 0.5rem;
  vertical-align: middle;
}
.menu-stand {
  text-align: center;
  font-size: 0.9rem;
  color: var(--tinte-soft);
  margin-top: 2rem;
}
.menu-legende {
  font-size: 0.88rem;
  color: var(--tinte-soft);
  border-top: 1px solid var(--linie);
  padding-top: 1rem;
  margin-top: 2.5rem;
}
.menu-fehler {
  background: var(--papier);
  border: 1px solid var(--linie);
  border-left: 5px solid var(--gold);
  border-radius: var(--radius);
  padding: 1.5rem 1.8rem;
  box-shadow: var(--shadow-sm);
}

/* ---------- Formulare (Reservierung) ---------- */

.formular {
  background: var(--papier);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 2rem 1.8rem;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem 1.5rem;
}
.form-feld { display: flex; flex-direction: column; gap: 0.3rem; }
.form-feld.breit { grid-column: 1 / -1; }
.form-feld label {
  font-weight: 600;
  font-size: 0.95rem;
}
.form-feld label .pflicht { color: var(--bordeaux); }
.form-feld input,
.form-feld select,
.form-feld textarea {
  font: inherit;
  color: var(--tinte);
  background: #fff;
  border: 1px solid var(--linie);
  border-radius: 8px;
  padding: 0.65rem 0.85rem;
}
.form-feld input:focus,
.form-feld select:focus,
.form-feld textarea:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
  border-color: var(--gold);
}
.form-feld .feld-hinweis {
  font-size: 0.83rem;
  color: var(--tinte-soft);
}
.form-hinweis {
  font-size: 0.88rem;
  color: var(--tinte-soft);
  margin-top: 1.1rem;
}
.form-aktion { margin-top: 1.4rem; text-align: center; }
.form-aktion button {
  font: inherit;
  cursor: pointer;
  border: none;
}
.form-aktion button[disabled] { opacity: 0.6; cursor: wait; transform: none; }
.honigtopf {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}
.form-status {
  border-radius: var(--radius);
  padding: 1.3rem 1.6rem;
  margin-top: 1.4rem;
  box-shadow: var(--shadow-sm);
}
.form-status.ok {
  background: #eef5ef;
  border: 1px solid var(--gruen-light);
  color: var(--gruen);
}
.form-status.fehler {
  background: #faf0ec;
  border: 1px solid var(--bordeaux-light);
  color: var(--bordeaux-dark);
}
.form-status a { font-weight: 700; }
.form-status .tel-gross { margin-bottom: 0; }

/* ---------- Zwei-Klick-Karte (Datenschutz) ---------- */

.karte-consent {
  position: relative;
  background: var(--creme-dark);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 340px;
  display: grid;
  place-items: center;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.karte-consent .consent-inhalt {
  padding: 2.5rem 1.5rem;
  max-width: 460px;
}
.karte-consent .consent-inhalt p {
  font-size: 0.92rem;
  color: var(--tinte-soft);
}
.karte-consent iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 620px) {
  .form-grid { grid-template-columns: 1fr; }
  .menu-gericht { grid-template-columns: 1fr; }
  .menu-gericht .preis { justify-self: start; }
}

@media print {
  .banner, .nav, .hero, .btn-reihe, .topbar { display: none; }
  body { background: #fff; }
}
