/* =========================
   Grundlayout
========================= */

body {
  background: #f4ecd8;
  color: #111;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-y: auto;
}

/* =========================
   Kopfbereich / Menü
========================= */

.container-header {
  background: #ead9b4;
  border-bottom: 1px solid #4a3422;
}

.navbar-brand,
.brand-logo,
.site-description {
  display: none;
}

.container-nav {
  background: #ead9b4;
}

.mod-menu {
  gap: 1.4rem;
}

.mod-menu a {
  color: #ffffff;
  font-weight: bold;
  text-decoration: none;
}

.mod-menu a:hover {
  color: #4a3422;
}
.mod-menu {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

/* =========================
   Headerbild
========================= */

/* Headerbild */
.container-banner {
  background: #f4ecd8;
  padding: 0;
  text-align: center;
  width: 100%;
}

.container-banner .container,
.container-banner .container-fluid {
  max-width: none;
  width: 100%;
  padding-left: 0;
  padding-right: 0;
}

.container-banner img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  display: block;
}

/* =========================
   Seitenraster
========================= */

.site-grid {
  max-width: 1300px;
  margin: 0 auto;
  padding: 1.5rem 1rem;
  gap: 1.2rem;
  align-items: start;
}

/* =========================
   Hauptinhalt
========================= */

main {
  background: #f7eedb;
  padding: 1.2rem;
  border-radius: 8px;
}

h1,
h2,
h3 {
  font-family: Georgia, "Times New Roman", serif;
  color: #4a3422;
  line-height: 1.15;
}

h1 {
  font-size: 2.2rem;
}

/* =========================
   Breadcrumb
========================= */

.breadcrumb {
  background: #efe4ca;
  padding: 0.7rem 1rem;
  border-radius: 4px;
}

/* =========================
   Sidebar rechts
========================= */

.sidebar-right .card,
.sidebar-right .moduletable {
  background: #ffffff;
  border: 1px solid #d2bd91;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  margin-bottom: 20px;
}

.sidebar-right .card-header {
  background: #ead9b4;
}

.sidebar-right h3 {
  font-size: 1.45rem;
}

/* Linke Sidebar ausblenden, falls leer */
.sidebar-left {
  display: none;
}

/* =========================
   Button
========================= */

.btn-primary,
.button,
button {
  background: #12346b;
  border: none;
  color: #fff;
  padding: 10px 18px;
  font-weight: bold;
  border-radius: 6px;
  text-decoration: none;
  display: inline-block;
  margin: 10px 0;
}

.btn-primary:hover,
.button:hover,
button:hover {
  background: #0d2752;
  color: #fff;
}
.btn-primary {
  background: #1e3a6d;
  border-radius: 8px;
  padding: 12px 20px;
}

/* =========================
   Startseiten-Boxen
========================= */

.start-boxen {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 30px;
}

.start-boxen .card {
  min-width: 0;
  background: #f4ecd8;
  border: 1px solid #d2bd91;
  border-radius: 10px;
  padding: 1.4rem;
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
  transition: transform .2s ease;
}

.start-boxen .card:hover {
  transform: translateY(-3px);
}

.start-boxen .card h3 {
  margin-top: 0;
  font-size: 1.25rem;
  line-height: 1.15;
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
}

/* =========================
   FOOTER
========================= */

.container-footer {
  background: #6e6450 !important;
  color: #fff !important;
  padding: 40px 0 !important;
  margin-top: 40px !important;
  width: 100% !important;
}

.container-footer .grid-child {
  max-width: 100% !important;
  width: 100% !important;
  margin: 0 auto !important;
  padding: 0 !important;
}

.footer-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr 1fr !important;
  max-width: 1000px !important;
  margin: 0 auto !important;
  padding: 0 20px !important;
  text-align: center !important;
  align-items: center !important;
  gap: 40px !important;
}

.footer-left,
.footer-center,
.footer-right {
  text-align: center !important;
}

.footer-left a {
  display: block !important;
  color: #fff !important;
  text-decoration: none !important;
  margin-bottom: 8px !important;
}

.footer-center img {
  display: block !important;
  max-width: 150px !important;
  margin: 10px auto 0 auto !important;
}

@media (max-width: 800px) {
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 25px !important;
  }
}
/* FINAL FIX Footer zentrieren */
.container-footer .grid-child,
.container-footer .container,
.container-footer .container-fluid {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 auto !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  align-items: center;
  gap: 20px;
}

/* links */
.footer-left a {
  display: block;
  margin-bottom: 10px;
}

/* mitte */
.footer-center {
  text-align: center;
}

/* rechts */
.footer-right {
  text-align: right;
}
.container-footer {
  padding: 25px 0 !important;
}
/* =========================
   MOBILE OPTIMIERUNG
========================= */

@media (max-width: 900px) {

  /* Layout untereinander */
  .site-grid {
    display: block;
    padding: 10px;
  }

  main,
  .sidebar-right {
    width: 100%;
    margin-bottom: 20px;
  }

  /* Boxen untereinander */
  .start-boxen {
    grid-template-columns: 1fr;
  }

  /* Headerbild kleiner */
  .container-banner img {
    height: auto;
	object-fit: contain;
  }

  /* Menü schöner */
  .mod-menu {
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
  }

  .mod-menu a {
    font-size: 14px;
  }

  /* Footer untereinander */
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 20px;
  }

  .footer-left,
  .footer-right {
    text-align: center;
  }
}
/* =========================
   HAMBURGER / MOBILE MENÜ
========================= */

@media (max-width: 768px) {

  .container-nav {
    justify-content: flex-start;
    padding: 8px 15px;
  }

  .mod-menu {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }

  .mod-menu li {
    width: 100%;
  }

  .mod-menu a {
    display: block;
    width: 100%;
    padding: 10px 0;
    font-size: 16px;
  }
}
.galerie-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin: 20px 0 35px 0;
}

.galerie-grid img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #d2bd91;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
  transition: transform .2s ease;
}

.galerie-grid img:hover {
  transform: scale(1.03);
}

@media (max-width: 800px) {
  .galerie-grid {
    grid-template-columns: 1fr;
  }

  .galerie-grid img {
    height: auto;
  }
}
/* Headerbild wieder full width und bündig oben */
.container-banner {
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  padding: 0 !important;
  margin-top: 0 !important;
  background: #ead9b4 !important;
}

.container-banner .container,
.container-banner .container-fluid,
.container-banner .moduletable,
.container-banner .mod-custom,
.container-banner p {
  width: 100% !important;
  max-width: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.header-full {
  width: 100vw !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 0 !important;
}

.header-full img,
.container-banner img {
  width: 100vw !important;
  max-width: none !important;
  height: 350px !important;
  object-fit: cover !important;
  object-position: center center !important;
  display: block !important;
  margin: 0 !important;
}
/* Oberen Rand komplett entfernen */
body {
  margin: 0 !important;
  padding: 0 !important;
}

/* Header bündig oben */
.container-header {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* Menü auch ohne Abstand */
.container-nav {
  margin-top: 0 !important;
  padding-top: 0 !important;
}
/* Alles im Header oben ohne Abstand */
.container-header,
.container-header > *,
.container-header .grid-child,
.container-header .container,
.container-header .container-fluid,
.container-header .navbar,
.container-header .moduletable,
.container-header .mod-custom,
.container-header p {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* Falls das Bild selbst unten/oben Inline-Abstand hat */
.header-full,
.header-full img {
  margin-top: 0 !important;
  padding-top: 0 !important;
  display: block !important;
}
/* Leere Topbar entfernen */
.container-topbar,
.container-topbar .grid-child,
.topbar {
  display: none !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}
.container-header .container-topbar {
  display: none !important;
}
.header-full img,
.container-banner img {
  height: 330px !important;
  object-fit: cover !important;
  object-position: center 45% !important;
}
/* Abstand zwischen Menü und Header entfernen */
.site-grid {
  margin-top: 0 !important;
  padding-top: 0 !important;
}
/* Fallback: direkt das Menü zentrieren */
.mod-menu {
  width: 100%;
  display: flex !important;
  justify-content: center !important;
}
/* Menü wirklich mittig */
.container-nav,
.container-nav .grid-child,
.container-nav nav,
.container-nav .navbar,
.container-nav .navbar-collapse {
  width: 100% !important;
  display: flex !important;
  justify-content: center !important;
}

ul.mod-menu {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  width: auto !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 0 !important;
  gap: 30px !important;
}
/* Menü Links */
ul.mod-menu li a {
  position: relative;
  color: #ffffff;
  text-decoration: none;
  font-weight: bold;
  padding: 6px 0;
  transition: all 0.3s ease;
}

/* Hover Farbe */
ul.mod-menu li a:hover {
  color: #4a3422;
}

/* Unterstrich Animation */
ul.mod-menu li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0%;
  height: 2px;
  background: #4a3422;
  transition: width 0.3s ease;
}

ul.mod-menu li a:hover::after {
  width: 100%;
}
/* Aktiver Menüpunkt */
ul.mod-menu .current a {
  color: #4a3422;
}

ul.mod-menu .current a::after {
  width: 100%;
}
ul.mod-menu li a {
  letter-spacing: 0.5px;
}
/* Formular insgesamt */
.contact-form,
form {
  background: #f7eedb;
  padding: 20px;
  border-radius: 10px;
  border: 1px solid #d2bd91;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* Tabellen-Layout entschärfen */
form table {
  width: 100%;
  border-collapse: collapse;
}

form td {
  padding: 8px;
  vertical-align: top;
}

/* Labels */
form label {
  font-weight: bold;
  color: #4a3422;
}

/* Eingabefelder */
form input[type="text"],
form input[type="email"],
form textarea,
form select {
  width: 100%;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #d2bd91;
  background: #fff;
  font-size: 14px;
}

/* Fokus (wenn man klickt) */
form input:focus,
form textarea:focus {
  outline: none;
  border-color: #4a3422;
  box-shadow: 0 0 5px rgba(74,52,34,0.3);
}

/* Checkbox & Radio etwas Abstand */
form input[type="checkbox"],
form input[type="radio"] {
  margin-right: 6px;
}

/* Textarea größer */
form textarea {
  min-height: 140px;
}

/* Button */
form button,
form input[type="submit"] {
  background: #1e3a6d;
  color: #fff;
  border: none;
  padding: 12px 20px;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  margin-top: 10px;
}

form button:hover,
form input[type="submit"]:hover {
  background: #152b52;
}
.produkt-intro {
  text-align: center;
  max-width: 650px;
  margin: 30px auto;
  background: #f7eedb;
  border: 1px solid #d2bd91;
  border-radius: 10px;
  padding: 30px;
}

.produkt-logo {
  max-width: 260px;
  height: auto;
  margin: 20px auto;
  display: block;
}
.start-boxen .card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.start-boxen .card p {
  flex-grow: 1;
}
.produkt-detail {
  max-width: 700px;
  margin: 20px auto;
  background: #f7eedb;
  padding: 25px;
  border-radius: 10px;
  border: 1px solid #d2bd91;
}

.produkt-detail img {
  display: block;
  margin: 0 auto 20px auto;
  max-width: 300px;
}

.produkt-detail h2 {
  margin-top: 20px;
}

.produkt-detail ul {
  padding-left: 20px;
}

.produkt-detail li {
  margin-bottom: 6px;
}

.preis {
  font-size: 20px;
  font-weight: bold;
  color: #4a3422;
  margin-top: 20px;
}