/* -----------------------------------------------------------
   Farbpalette
----------------------------------------------------------- */
:root {
  --hw-green: #007100;
  --hw-red: #993300;
  --hw-yellow-light: #FFE282;
  --hw-yellow-dark: #FFD646;
  --hw-text-dark: #000000;
  --hw-white: #ffffff;
  --hw-accent: #febb30;
  --max-width: 1400px;
  --sidebar-width: 260px;
  --nav-width: 260px;
  --gap: 20px;
  --radius: 4px;
}

/* -----------------------------------------------------------
   Grundlayout
----------------------------------------------------------- */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: var(--hw-green);
  color: var(--hw-text-dark);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* -----------------------------------------------------------
   HEADER – komplett
----------------------------------------------------------- */
.site-header {
  min-height: 260px;
  background-image: url("../images/Hohlwegwirt_header.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-bottom: 4px solid var(--hw-accent);
  display: flex;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* Oberer Headerbereich: Flex für stabile Ausrichtung */
.site-header__top {
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
  padding: 20px;
  position: relative;

  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Titel mittig (Desktop) */
.site-header__titles {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
}

@media (min-width: 769px) {
  .site-header__titles {
    top: 25%;
  }
}

@media (max-width: 768px) {
  /* MOBILE: Titel wieder in normalen Layoutfluss */
  .site-header__titles {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    margin-top: 10px;
    text-align: center;
  }
}

.site-header__title {
  font-size: 52px;
  font-weight: 800;
  margin: 0;
  color: var(--hw-accent) !important;
  line-height: 1.1;
}

.site-header__subtitle {
  font-size: 20px;
  margin-top: 8px;
  color: var(--hw-accent);
  font-weight: bold;
}

/* Logo rechts (Desktop) */
.site-header__logo {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.site-header__logo img {
  height: 120px;
  display: block;
}

/* MOBILE FIX */
@media (max-width: 768px) {

  /* Logo wieder im normalen Layoutfluss */
  .site-header__logo {
    position: relative;
    right: auto;
    top: auto;
    transform: none;
    margin: 10px auto 0 auto;
  }

  .site-header__logo img {
    height: 80px; /* mobile Größe */
  }

  /* Header-Container auf Spaltenlayout */
  .site-header__top {
    flex-direction: column;
    align-items: center;
  }
}

/* Menü-Button */
#site-header__toggle {
  position: absolute;
  right: 20px;
  top: 20px;
  z-index: 1000;
}

/* -----------------------------------------------------------
   SIDEBAR – wichtig für Klickbarkeit des Menüs
----------------------------------------------------------- */
.sidebar-left {
  position: relative;
  z-index: 10;
}

/* -----------------------------------------------------------
   Dreispalten-Layout
----------------------------------------------------------- */
.site-main {
  max-width: var(--max-width);
  margin: 20px auto;
  display: grid;
  grid-template-columns: var(--nav-width) 1fr var(--sidebar-width);
  gap: var(--gap);
  align-items: start;
}

/* -----------------------------------------------------------
   Linke Sidebar
----------------------------------------------------------- */
.sidebar-left {
  background: var(--hw-yellow-light);
  padding: 20px;
  border-radius: var(--radius);
}

.sidebar-left nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-left nav > ul > li {
  margin-bottom: 10px;
}

.sidebar-left nav > ul > li > a {
  display: block;
  background: var(--hw-red);
  color: var(--hw-white);
  padding: 12px;
  border-radius: var(--radius);
  font-weight: bold;
  text-decoration: none;
  position: relative;
}

.sidebar-left nav > ul > li > a::after {
  content: "▸";
  position: absolute;
  right: 12px;
  top: 12px;
}

.sidebar-left nav li.open > a::after {
  content: "▾";
}

.sidebar-left nav ul ul {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s ease;
  padding-left: 10px;
}

.sidebar-left nav li.open > ul {
  max-height: 500px;
}

.sidebar-left nav ul ul li a {
  display: block;
  background: var(--hw-yellow-dark);
  color: var(--hw-text-dark);
  padding: 10px;
  border-radius: var(--radius);
  margin-bottom: 6px;
  text-decoration: none;
}

#nav-toggle {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--hw-red);
  color: var(--hw-white);
  border: none;
  padding: 10px 16px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  border-radius: var(--radius);
  z-index: 50;
}

/* -----------------------------------------------------------
   Bildergalerie – überall 2 Spalten
----------------------------------------------------------- */
.hw-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
  margin: 2rem 0;
}

.hw-gallery img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  object-position: center;
  border-radius: 4px;
  display: block;
}

/* verhindert, dass rm-image-caption das Grid zerstört */
.hw-gallery .rm-image-caption {
  display: none !important;
}

@media (max-width: 600px) {
  .hw-gallery {
    grid-template-columns: 1fr;
  }
}

/* -----------------------------------------------------------
   Hauptinhalt
----------------------------------------------------------- */
.main-content {
  background: var(--hw-yellow-light);
  padding: 20px;
  border-radius: var(--radius);
}

/* Bilder im Textfluss */

/* Bild rechts */
.hw-image-right img {
  float: right;
  width: 260px;
  margin-left: 20px;
  margin-bottom: 10px;
  height: auto;
  display: block;
}

/* Bild zentriert */
.hw-image-center img {
  width: 100%;
  max-width: 700px;
  margin: 20px auto;
  display: block;
  border-radius: var(--radius);
}

/* Bild links */
.hw-image-left img {
  float: left;
  width: 260px;
  margin: 0 20px 10px 0;
  height: auto;
  display: block;
}

/* Bildtext unter Bild */
.rm-image-caption {
  font-size: 0.9rem;
  color: #555;
  margin: 0.3rem 0 1rem 0;
}

/* Absatzblocker */
.hw-clear {
  clear: both;
  margin-top: 2rem;
}

/* Bildunterschrift */
.hw-caption {
  font-size: 14px;
  margin-top: 8px;
  margin-bottom: 20px;
}

.hw-caption {
  text-align: center;
}

.hw-intro h2 {
  overflow: hidden;
}

.site-main h2 {
  color: var(--hw-red);
}

.main-content h2,
.main-content h3 {
  color: #3f6f3a;
}


 



/* -----------------------------------------------------------
   Zweispaltiger Inhalt
----------------------------------------------------------- */
.hw-two-columns {
  display: flex;
  flex-wrap: wrap;          /* Spalten dürfen umbrechen */
  gap: 2rem;
  align-items: flex-start;
  margin-bottom: 2rem;
}

.hw-column-left,
.hw-column-right {
  flex: 1 1 300px;          /* beide Spalten flexibel, Mindestbreite 300px */
}

/* Rechte Spalte: zentriert + sicherer Zeilenumbruch */
.hw-column-right {
  text-align: center;
  overflow-wrap: anywhere;  /* verhindert Überlaufen bei langen Telefonnummern/E-Mails */
}

/* Bildunterschriften */
.hw-image-caption {
  font-size: 0.8rem;
  margin-top: 0.5rem;
  color: #555;
}


/* -----------------------------------------------------------
   Orange Infobox
----------------------------------------------------------- */
.hw-info-box {
  width: 95%;
  max-width: 95%;
  margin: 1.2rem auto 0 auto;
  padding: 0.3rem 1rem;
  background-color: orange;
  text-align: center;
  box-sizing: border-box;
  border-radius: 4px;
  line-height: 1.3;
}

/* -----------------------------------------------------------
   Bildergalerien und Text zentriert (bei Presseseite usw.)
----------------------------------------------------------- */

.hw-center { text-align: center; }

/* Neue Gallery-Variante mit sichtbaren Bildtexten */
.hw-gallery-captioned {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    justify-content: center;
    margin: 25px 0;
}

.hw-gallery-captioned .hw-item {
    width: 200px;
    text-align: center;
}

.hw-gallery-captioned .hw-item img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border: none;
}

.hw-gallery-captioned .hw-caption {
    font-size: 0.85em;
    margin-top: 6px;
    line-height: 1.35em;
}


/* -----------------------------------------------------------
   Bild Biljana auf Seite Venezia
----------------------------------------------------------- */

.hw-img-right-half {
    float: right;
    width: 30%;
    max-width: 30%;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.hw-img-right-half img {
    width: 100%;
    height: auto;
    display: block;
}


/* -----------------------------------------------------------
   Aufbau Restaurant-Seite
----------------------------------------------------------- */
.hw-content-wrapper {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
}

.hw-content-left {
  flex: 2;
}

.hw-content-right {
  flex: 1;
  border: 2px solid #9F0000;
  padding: 1rem;
  border-radius: 6px;
}

.hw-image-full {
  width: 100%;
  height: auto;
  margin-bottom: 1.5rem;
}

.hw-image-small {
  width: 100%;
  height: auto;
  margin-top: 1.5rem;
}

.hw-box-title {
  text-align: center;
  background-color: #9F0000;
  color: #FFE282;
  padding: 0.3rem 0.6rem;
  font-weight: bold;
  margin-top: 1rem;
}

.hw-box-link {
  text-align: center;
  color: green;
  margin-bottom: 1rem;
}

.hw-links {
  text-align: center;
}

@media (max-width: 900px) {
  .hw-content-wrapper {
    flex-direction: column;
  }
}


/* -----------------------------------------------------------
   Kulinarikseite Headline über der zweispaltigen Tabelle sowie die Tabelle
----------------------------------------------------------- */


.hw-centered-line {
    width: 400px;              /* nicht volle Breite */
    height: 2px;               /* feiner Strich */
    background-color: #4f6b3a; /* dein Hohlwegwirt‑Grün */
    margin: 0 auto 2rem auto;  /* zentriert */
    border-radius: 2px;        /* leicht weiche Kanten */
}

.hw-event {
    padding: 0.5rem 0;          /* deutlich kompakter */
    border-bottom: 1px solid #ddd;
    margin-bottom: 0.6rem;      /* engerer Abstand zwischen den Events */
}

.hw-event h4 {
    margin: 0 0 0.3rem 0;       /* kleinerer Abstand zur Beschreibung */
    font-size: 1rem;          /* etwas kleiner als h2/h3, aber klar lesbar */
    color: #4f6b3a;             /* Hohlwegwirt-Grün */
    line-height: 1.25;
}

.hw-event p {
    margin: 0;
    font-size: 1rem;            /* minimal kleiner für kompakteres Gesamtbild */
    line-height: 1.4;
}

.hw-event a {
    color: #8b6b3f;
    text-decoration: none;
    font-weight: 600;
}

.hw-event a:hover {
    text-decoration: underline;
}


/* -----------------------------------------------------------
   Rechte Sidebar
----------------------------------------------------------- */
.right-sidebar {
  background: var(--hw-yellow-dark);
  padding: 20px;
  border-radius: var(--radius);
}

.sidebar-button {
  display: block;
  background: var(--hw-red);
  color: var(--hw-white);
  padding: 10px;
  margin-bottom: 10px;
  text-align: center;
  text-decoration: none;
  border-radius: var(--radius);
  font-weight: bold;
}

/* -----------------------------------------------------------
   Hinweisbox
----------------------------------------------------------- */
.hw-hinweis {
  max-width: 800px;
  margin: 20px auto;
  padding: 14px 20px;
  background-color: #c8a96a;
  border-radius: 4px;
  text-align: center;
  font-weight: bold;
  color: #8b3a47;
}

/* -----------------------------------------------------------
   Zurück zum Seitenanfang
----------------------------------------------------------- */
.hw-back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--hw-red);
  color: var(--hw-yellow-light);
  padding: 8px 14px;
  border-radius: 4px;
  font-size: 0.9rem;
  text-decoration: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 2000;
}

.hw-back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}

.hw-back-to-top:hover {
  background: #7d2600;
}

/* -----------------------------------------------------------
   Mobile Navigation
----------------------------------------------------------- */
#nav-toggle {
  display: none;
}

@media (max-width: 900px) {
  #nav-toggle {
    display: block;
    background: var(--hw-red);
    color: var(--hw-white);
    border: none;
    padding: 12px 18px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: var(--radius);
    cursor: pointer;
    position: fixed;
    top: 14px;
    left: 14px;
    z-index: 3000;
  }

  .site-main {
    grid-template-columns: 1fr;
  }

  .sidebar-left {
    display: none;
  }

  .sidebar-left.open {
    display: block;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--hw-yellow-light);
    padding: 20px;
    z-index: 2500;
  }
}

/* -----------------------------------------------------------
   FOOTER
----------------------------------------------------------- */
.site-footer {
  background: var(--hw-yellow-dark);
  padding: 20px 15px;
  text-align: center;
  font-size: 0.95rem;
  color: var(--hw-black);
}

.site-footer address {
  font-style: normal;
  line-height: 1.5;
}

.site-footer .footer-phone {
  color: var(--hw-red);
  font-weight: bold;
  text-decoration: none;
}

.site-footer .footer-phone:hover {
  text-decoration: underline;
}

/* -----------------------------------------------------------
   SERVICE-NAVIGATION
----------------------------------------------------------- */
.service-nav {
  background: var(--hw-yellow-dark);
  padding: 6px 15px;
  font-size: 0.9rem;
}

.service-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

.service-nav a {
  color: var(--hw-red);
  font-weight: bold;
  position: relative;
  text-decoration: none;
}

.service-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0%;
  height: 2px;
  background: var(--hw-red);
  transition: width 0.25s ease;
}

.service-nav a:hover::after {
  width: 100%;
}

.service-nav .flags {
  margin-left: auto;
  display: flex;
  gap: 10px;
}

.service-nav .flags img {
  height: 20px !important;
  width: auto !important;
  display: inline-block;
}

.service-nav .flags img:hover {
  opacity: 0.8;
  transform: scale(1.05);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* -----------------------------------------------------------
   MOBILE: Burger-Button nur mobil anzeigen
----------------------------------------------------------- */
@media (max-width: 900px) {
  #nav-toggle {
    display: block;
  }
}

@media (min-width: 901px) {
  #nav-toggle {
    display: none;
  }
}

/* -----------------------------------------------------------
   MOBILE: Dreispalten-Layout auf einspaltig umstellen
----------------------------------------------------------- */
@media (max-width: 900px) {
  .site-main {
    display: block;
    margin: 10px;
  }

  .sidebar-left {
    margin-bottom: 20px;
  }

  .right-sidebar {
    margin-top: 20px;
  }
}

/* -----------------------------------------------------------
   MOBILE: Sidebar ein-/ausklappbar
----------------------------------------------------------- */
@media (max-width: 900px) {
  .sidebar-left {
    display: none;
  }

  .sidebar-left.open {
    display: block;
  }
}

/* -----------------------------------------------------------
  Zentrieren von Text unter glide-Bildern in Galerien
----------------------------------------------------------- */

.hw-image-center + * {
  text-align: center !important;
}

