/**
 * Auberge Rouge – portiert vom Original-D7-Theme.
 * Weiße Schrift auf fixiertem Teller-Hintergrund, Roboto / Roboto Condensed.
 * Layout-Gerüst (das früher Omega lieferte) hier selbst definiert.
 */

/* ---------- Grundlagen ---------- */
html { height: 100%; }
* { box-sizing: border-box; }

body {
  background-image: url("../images/teller.jpg");
  background-size: auto 100%;
  background-repeat: repeat-x;
  background-attachment: fixed;
  background-position: center;
  background-color: #111;
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
  font-size: 20px;
  line-height: 1.5;
  color: #fff;
  margin: 0;
  min-height: 100%;
}

img { max-width: 100%; height: auto; }
a { color: #fff; text-decoration: none; }
a:hover, a:focus { font-style: italic; }

h1, h2 { font-family: 'Roboto Condensed', sans-serif; font-weight: 300; line-height: 1.15; }
h3, h4 { font-family: 'Roboto', sans-serif; font-weight: 400; }
h1 { font-size: 2.3rem; margin: 0 0 0.6em; }
h2 { font-size: 1.7rem; margin: 1.6em 0 0.5em; }

/* ---------- Layout-Gerüst ---------- */
.l-constrained { max-width: 1060px; margin: 0 auto; padding: 0 20px; }

.l-header { padding: 10px 0; }
.l-header .l-constrained::after { content: ""; display: table; clear: both; }

header .l-branding { float: left; width: 400px; max-width: 70%; margin: 15px 0 0; }
header .l-branding img { display: block; }
header .l-region--navigation { float: right; margin: 1.6em 0 0; font-weight: 500; }

.l-main { padding-top: 10px; padding-bottom: 40px; }
.l-main::after { content: ""; display: table; clear: both; }

.l-content { float: left; width: 64%; }
.l-region--sidebar-second { float: right; width: 32%; }
.l-page:not(.has-sidebar-second) .l-content { float: none; width: 100%; }

.l-content, .l-region--sidebar-second .block { margin-bottom: 20px; }

/* ---------- Navigation (horizontal, weiß) ---------- */
.l-region--navigation ul.menu {
  list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap;
}
.l-region--navigation ul.menu li { margin: 0; }
.l-region--navigation ul.menu a {
  display: block;
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
  font-size: 22px;
  color: #fff;
  padding: 15px;
  text-align: center;
  border-top: 2px solid transparent;
}
.l-region--navigation ul.menu a:hover,
.l-region--navigation ul.menu a:focus,
.l-region--navigation ul.menu a.is-active {
  border-top-color: #fff;
  font-style: normal;
}

/* ---------- Sidebar ---------- */
/* Sidebar-Blöcke rendern als <div id="block-…"> OHNE .block-Klasse und in einem Wrapper → per ID (beliebige Tiefe) ansprechen */
.l-region--sidebar-second [id^="block-auberge-rouge-sb"] { margin: 0 0 52px; }
.l-region--sidebar-second [id^="block-auberge-rouge-sb"]:last-child { margin-bottom: 0; }
.l-region--sidebar-second h2 { font-size: 1.7rem; margin-top: 0; }
.l-region--sidebar-second img { display: block; margin-bottom: 10px; }
/* Textlinks einheitlich unterstrichen (Inhalt + Sidebar); Menüs/Buttons nicht. */
.l-region--sidebar-second a,
.l-content a:not(.button):not(.webform-button--submit) { text-decoration: underline; }

/* ---------- Content / Node ---------- */
.l-content { padding: 0 10px; }
.block-page-title-block h1 { padding-bottom: 0.3em; }
.field--label-hidden .field__label, .field__label { display: none; }

/* Intro-Absatz */
.lead { font-size: 1.3rem; font-weight: 300; }

/* ---------- Speisekarte ---------- */
.menu-list { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.menu-list li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1.2rem;
  padding: 0.5rem 0; border-bottom: 1px dotted rgba(255,255,255,0.35); line-height: 1.4;
}
.menu-list .dish { font-family: 'Roboto Condensed', sans-serif; font-weight: 400; }
.menu-list .price { font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* Allgemeine Listen (Öffnungszeiten etc.) */
.text-content ul:not(.menu-list) { padding-left: 1.1rem; }

/* ---------- Buttons (Reservieren) ---------- */
.button, .button--primary, a.button {
  display: inline-block;
  background: #fff; color: #b00; border: none; border-radius: 4px;
  padding: 10px 20px; font-weight: 700; font-style: normal;
}
.button:hover { background: #ddd; font-style: normal; }

/* ---------- Footer ---------- */
.l-footer-wrapper { padding: 20px 0 40px; }
.l-region--footer ul.menu { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0; }
.l-region--footer a { color: #fff; }
.facebook a {
  display: inline-flex; align-items: center;
  background: url(../images/facebook.png) left center no-repeat;
  background-size: 30px 30px;
  padding: 0 0 0 40px; min-height: 30px; font-size: 20px;
}

/* ---------- Responsiv ---------- */
@media (max-width: 800px) {
  .l-content, .l-region--sidebar-second { float: none; width: 100%; }
  .l-region--sidebar-second .block { margin: 20px 0; }
  header .l-branding { float: none; width: 100%; max-width: 320px; margin: 0 auto 10px; }
  header .l-region--navigation { float: none; margin: 0; }
  .l-region--navigation ul.menu { justify-content: center; }
  .l-region--navigation ul.menu a { padding: 10px; font-size: 18px; }
}

/* Scharfer Schatten ohne Blur: etwas Tiefe/Trennung, ohne das Weiß zu „verfärben". */
.l-main, .l-header, .l-footer-wrapper { text-shadow: 0 1px 0 rgba(0,0,0,0.6); }

/* ---------- Lightbox (selbst gehostet, keine externen Aufrufe) ---------- */
.gal-item { cursor: zoom-in; }
.ar-lb { position: fixed; inset: 0; z-index: 1000; display: none; align-items: center; justify-content: center; background: rgba(0,0,0,0.92); }
.ar-lb.is-open { display: flex; }
.ar-lb__fig { margin: 0; max-width: 92vw; max-height: 92vh; display: flex; flex-direction: column; align-items: center; }
.ar-lb__img { max-width: 92vw; max-height: 82vh; object-fit: contain; box-shadow: 0 6px 40px rgba(0,0,0,0.6); background: #111; }
.ar-lb__cap { color: #fff; font-family: 'Roboto', sans-serif; font-size: 16px; margin-top: 12px; text-shadow: none; }
.ar-lb__close, .ar-lb__prev, .ar-lb__next { position: absolute; background: none; border: 0; color: #fff; cursor: pointer; line-height: 1; padding: 12px; font-family: 'Roboto', sans-serif; }
.ar-lb__close { top: 8px; right: 16px; font-size: 44px; }
.ar-lb__prev, .ar-lb__next { top: 50%; transform: translateY(-50%); font-size: 46px; }
.ar-lb__prev { left: 8px; } .ar-lb__next { right: 8px; }
.ar-lb__close:hover, .ar-lb__prev:hover, .ar-lb__next:hover { color: #ff8db0; font-style: normal; }
@media (max-width: 800px) { .ar-lb__prev, .ar-lb__next { font-size: 34px; padding: 8px; } .ar-lb__close { font-size: 38px; } }

/* ---------- Galerie ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; margin: 1.2rem 0; }
.gal-item { display: block; aspect-ratio: 1 / 1; overflow: hidden; border: 2px solid rgba(255,255,255,0.5); }
.gal-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s ease; }
.gal-item:hover img { transform: scale(1.06); }

/* ---------- Korrektur: Navigation wie Original (horizontal, zentriert) ---------- */
header .l-branding { float: none; width: auto; max-width: 440px; margin: 10px 0 4px; }
header .l-region--navigation { float: none; width: 100%; margin: 18px 0 10px; }
.l-region--navigation nav > ul,
.l-region--navigation ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0 2px;
}
.l-region--navigation li { margin: 0; }
.l-region--navigation nav a,
.l-region--navigation ul a {
  display: block; color: #fff; font-size: 1.7rem; font-weight: 400;
  padding: 5px 9px 11px; text-align: center; text-decoration: none;
  white-space: nowrap;
  border-top: 2px solid transparent;
}
.l-region--navigation a:hover,
.l-region--navigation a:focus { background: rgba(255,255,255,0.15); font-style: normal; }
.l-region--navigation a.is-active { border-top-color: #fff; font-style: normal; }
@media (max-width: 800px) { .l-region--navigation nav a, .l-region--navigation ul a { font-size: 18px; padding: 4px 10px 8px; } }

/* ---------- Footer-Reihe wie Original ---------- */
.l-region--footer .footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 24px; }
.l-region--footer .footer-row > a, .l-region--footer .footer-row > span { color: #fff; }
/* Footer-Links: gleiche Hover-Markierung + aktiver Balken wie Menü (ohne runde Ecken) */
.l-region--footer a { padding: 6px 10px; border-top: 2px solid transparent; }
.l-region--footer .facebook a { padding-left: 42px; }
.l-region--footer a:hover, .l-region--footer a:focus { background-color: rgba(255,255,255,0.15); font-style: normal; }
.l-region--footer a.is-active { border-top-color: #fff; font-style: normal; }

/* ---------- Statusmeldung / Reservierungs-Bestätigung: prominent, helle Fläche wie aktives Menü ---------- */
/* Ohne base theme rendert Core die Meldungen OHNE .messages-Klassen:
   <div data-drupal-messages><div role="contentinfo" aria-label="...">…</div></div>
   Darum die echte Markup-Struktur ansprechen -> deckt Status, Warnung UND Fehler ab. */
[data-drupal-messages] > div,
.messages,
.messages--status,
.messages--error,
.messages--warning,
.webform-confirmation__message {
  background: rgba(255,255,255,0.15) !important;
  border: 1px solid rgba(255,255,255,0.5) !important;
  color: #fff !important;
  padding: 1.1rem 1.35rem !important;
  margin: 0 0 1.6rem !important;
  font-size: 1.3rem;
  line-height: 1.45;
  background-image: none !important;
  box-shadow: none !important;
}
[data-drupal-messages] > div *,
.messages *,
.webform-confirmation__message * { color: #fff; }
[data-drupal-messages] > div a,
.messages a,
.webform-confirmation__message a { color: #fff; text-decoration: underline; }

/* ---------- Lokale Aufgaben als Reiter (Tabs) statt Punkteliste (Login, Webform etc.) ---------- */
/* Der Tabs-Block rendert ein <ul> OHNE .tabs-Klasse -> per Block-ID ansprechen. */
nav.tabs { margin: 0 0 1.4rem; }
#block-auberge-rouge-tasks ul,
ul.tabs {
  list-style: none;
  margin: 0 0 1.3rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  border-bottom: 2px solid rgba(255,255,255,0.45);
}
#block-auberge-rouge-tasks li,
ul.tabs > li { margin: 0; padding: 0; list-style: none; }
#block-auberge-rouge-tasks li::before,
ul.tabs > li::before { content: none; }
#block-auberge-rouge-tasks a,
ul.tabs a {
  display: block;
  padding: 8px 16px;
  color: #fff;
  text-decoration: none;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.30);
  border-bottom: none;
}
#block-auberge-rouge-tasks a:hover,
#block-auberge-rouge-tasks a:focus,
ul.tabs a:hover,
ul.tabs a:focus { background: rgba(255,255,255,0.20); font-style: normal; }
#block-auberge-rouge-tasks a.is-active,
#block-auberge-rouge-tasks li.is-active > a,
ul.tabs a.is-active,
ul.tabs li.is-active > a {
  background: rgba(255,255,255,0.28);
  font-weight: 700;
}
#block-auberge-rouge-tasks h2 { margin: 0; }

/* ---------- Admin-Kontextlinks: Bearbeiten-Button (Stift) bleibt, aber das
   Untermenü ("Configure block") NICHT dauerhaft zeigen – nur nach Klick – und
   ohne Schatten. (Nur für eingeloggte Admins sichtbar; Besucher sehen nichts.) */
.contextual .contextual-links { box-shadow: none !important; }
.contextual, .contextual * { text-shadow: none !important; }
.contextual:not(.open) .contextual-links { display: none !important; }

/* ---------- Kein Schatten auf Buttons ---------- */
.button, button,
input[type="submit"], input[type="button"], input[type="reset"],
.form-submit, .webform-button--submit {
  box-shadow: none !important;
}

/* ---------- Mobile: sicherer Seitenabstand ---------- */
@media (max-width: 800px) {
  .l-constrained { padding-left: 16px; padding-right: 16px; }
  .l-content { padding-left: 0; padding-right: 0; }
  .l-region--sidebar-second .block { margin-left: 0; margin-right: 0; }
  .menu-list li { gap: 0.6rem; }
}
html, body { overflow-x: hidden; }

/* ---------- Lagekarte wie Original (Cover-Box statt <img>) ---------- */
.map-box {
  width: 100%; height: 500px; margin: 0 0 6px;
  background-size: cover; background-position: center; background-repeat: no-repeat;
}
.map-route { text-align: center; margin: 0 0 1.2rem; }
.map-route a { text-decoration: underline; }
@media (max-width: 800px) { .map-box { height: 320px; } }

/* ---------- Sidebar: Öffnungszeiten/Adresse wie Original ---------- */
.l-region--sidebar-second p { margin: 0 0 0.7em; }
.l-region--sidebar-second sup { font-size: 0.62em; }
.sb-xmas-title { margin-top: 2.2em !important; line-height: 1.1; }
.sb-xmas-title .big { font-family: 'Roboto Condensed', sans-serif; font-weight: 300; font-size: 1.6rem; }
.sb-xmas-title .small { font-size: 0.9rem; }

/* ---------- Eingebetteter PDF.js-Viewer (selbst gehostet) ---------- */
.pdf-embed { margin: 1rem 0 0.5rem; }
iframe.pdf { width: 100%; height: 80vh; min-height: 480px; border: 0; background: #fff; display: block; }
.pdf-download { margin: 0 0 1.6rem; }
@media (max-width: 800px) { iframe.pdf { height: 70vh; min-height: 340px; } }

/* ---------- Formularfelder nie breiter als der Inhaltsbereich ---------- */
.l-content input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]),
.l-content select,
.l-content textarea { width: 100%; max-width: 100%; box-sizing: border-box; font-size: 1.1rem; }
/* "Anzahl Personen" so schmal wie das Datum-Feld (= eine Spalte der Datum/Uhrzeit-Flexbox) */
@media (min-width: 500px) {
  .webform-submission-form .form-item-personen { max-width: calc(50% - 9px); }
}

/* Reservierung: Datum + Uhrzeit in einer Zeile, Label jeweils darüber */
.webform-flexbox { display: flex; flex-wrap: wrap; gap: 0 18px; }
.webform-flexbox > .webform-flex { flex: 1 1 190px; min-width: 0; margin: 0; }

/* Gleiche vertikale Abstände zwischen allen Formularzeilen */
.webform-submission-form .js-form-item,
.webform-submission-form .form-wrapper,
.webform-submission-form .form-actions { margin-top: 0; margin-bottom: 1.25em; }
.webform-submission-form .webform-flexbox .js-form-item,
.webform-submission-form .webform-flex,
.webform-submission-form .webform-flex--container { margin: 0; }
.webform-submission-form .webform-flexbox { margin: 0 0 1.25em; }

/* flatpickr-Kalender: lesbar (eigenes Overlay außerhalb .l-main) + rote Akzente */
.flatpickr-calendar { color: #333; text-shadow: none; }
.flatpickr-day.selected, .flatpickr-day.selected:hover,
.flatpickr-day.startRange, .flatpickr-day.endRange { background: #c20000; border-color: #c20000; }
.flatpickr-day.today { border-color: #c20000; }
.flatpickr-day.today:hover { background: #c20000; border-color: #c20000; color: #fff; }

/* ---------- Eingeklapptes Menü (Burger) für kleine Displays, wie Original ---------- */
.ar-burger { display: none; }
@media (max-width: 800px) {
  .l-header .l-constrained { position: relative; }
  header .l-branding { float: none; width: auto; max-width: 62%; margin: 0 0 10px; }
  .ar-burger {
    display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
    position: absolute; top: 12px; right: 10px;
    width: 52px; height: 52px; padding: 0;
    background: #fff; border: 0; border-radius: 50%; cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25); z-index: 5;
  }
  .ar-burger span { display: block; width: 26px; height: 3px; background: #c20000; border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }
  .ar-burger.is-active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .ar-burger.is-active span:nth-child(2) { opacity: 0; }
  .ar-burger.is-active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  header .l-region--navigation { margin: 0; }
  .l-region--navigation nav > ul,
  .l-region--navigation ul { display: none; }
  .l-region--navigation.is-open nav > ul,
  .l-region--navigation.is-open ul {
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    padding: 6px 0 14px;
  }
  .l-region--navigation.is-open a {
    display: block; text-align: center; font-size: 22px; padding: 13px 10px;
    border-top: 1px solid rgba(255,255,255,0.22); white-space: normal;
  }
  .l-region--navigation.is-open a:hover,
  .l-region--navigation.is-open a:focus,
  .l-region--navigation.is-open a.is-active { background: rgba(255,255,255,0.15); font-style: normal; }
}
