/* =============================================
   Gehrlein's Alte Mühle – 1:1 Nachbau
   Farben: #959c71 (olive) | #a7764b (braun) | #fff7b2 (gelb)
   Font: PT Serif
   ============================================= */

@import url('https://fonts.googleapis.com/css?family=PT+Serif');

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { overflow-y: scroll; }

body {
  font-family: 'PT Serif', serif;
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  background: #fff;
}

a { color: #959c71; text-decoration: none; }
a:hover { color: #a7764b; text-decoration: underline; }

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

h1, h2, h3, h4, h5, h6 { color: #959c71; }

h1 { font-size: 24px; padding: 20px 20px; }
h2, h3 { font-size: 20px; padding: 10px 0; }

ul { list-style: inside; }

/* Bootstrap-like helpers */
.container-fluid { padding: 0 15px; }
.row { display: flex; flex-wrap: wrap; margin: 0 -15px; }
.col-lg-2 { flex: 0 0 16.666%; max-width: 16.666%; padding: 0 15px; }
.col-lg-4 { flex: 0 0 33.333%; max-width: 33.333%; padding: 0 15px; }
.col-lg-6 { flex: 0 0 50%; max-width: 50%; padding: 0 15px; }
.col-lg-8 { flex: 0 0 66.666%; max-width: 66.666%; padding: 0 15px; }
.col-lg-10 { flex: 0 0 83.333%; max-width: 83.333%; padding: 0 15px; }
.col-lg-12 { flex: 0 0 100%; max-width: 100%; padding: 0 15px; }
.col-sm-4 { flex: 0 0 33.333%; max-width: 33.333%; padding: 0 15px; }
.col-sm-6 { flex: 0 0 50%; max-width: 50%; padding: 0 15px; }
.col-sm-8 { flex: 0 0 66.666%; max-width: 66.666%; padding: 0 15px; }
/* Layout-Spalten für Contentbereich */
.col-spacer { flex: 0 0 16.666%; max-width: 16.666%; }
.col-center  { flex: 0 0 66.666%; max-width: 66.666%; }
.img-responsive { max-width: 100%; height: auto; display: block; }

/* ========================
   HEADER
   ======================== */
#header {
  background-image: url("../images/AlteMuehle/DK-23.jpg");
  background-repeat: repeat;
  background-size: contain;
  margin: 0 -15px;
  height: auto;
  padding-bottom: 20px;
}

#logo { justify-content: center; padding-top: 0; }

.logo {
  margin-top: 50px;
  margin-left: auto;
  margin-right: auto;
  display: block;
  height: auto;
  border: 1px solid white;
  padding: 50px 100px;
  width: 45%;
  text-align: center;
  background-color: rgba(255, 255, 255, 0.8);
}
.logo img { max-width: 100%; height: auto; }

/* ========================
   NAVIGATION
   ======================== */
#navigation {
  background-color: #959c71;
  color: white;
  height: auto;
  margin: 0 -15px;
  text-align: center;
}
#navigation .row { justify-content: center; margin: 0; }

.nav-inner {
  display: flex;
  justify-content: center;
  align-items: stretch;
  flex-wrap: nowrap;          /* eine Zeile erzwingen */
  padding: 0;
  list-style: none;
  margin: 0;
  width: 100%;
}

.nav-inner li { display: flex; }

.nav-inner li a {
  display: flex;
  align-items: center;
  padding: 20px 20px;
  color: #fff;
  text-decoration: none;
  font-family: 'PT Serif', serif;
  font-size: 1.3rem;
  white-space: nowrap;
  transition: background 0.2s;
  line-height: 1.2;
}
.nav-inner li a:hover,
.nav-inner li.active a {
  background-color: #fff;
  color: #959c71;
  text-decoration: none;
}

/* Mobile toggle */
.nav-mobile-toggle {
  display: none;
  font-size: 33px;
  text-align: right;
  padding: 10px 15px;
  color: white;
  cursor: pointer;
  user-select: none;
  justify-content: flex-end;
}

/* ========================
   SLIDER (200px horizontal strip)
   ======================== */
#slider {
  height: 200px;
  margin: 0 -15px;
  z-index: 1;
  border-top: 30px solid white;
  border-bottom: 30px solid white;
  overflow: hidden;
  position: relative;
}

.slider-track-wrapper {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.slider-track {
  display: flex;
  height: 100%;
  animation: slideLeft 36s linear infinite;
  width: max-content;
}

.slider-track img {
  height: 100%;
  width: auto;
  display: block;
  flex-shrink: 0;
  margin-right: 0;
}

@keyframes slideLeft {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ========================
   CONTENT ROW (Holzstruktur)
   ======================== */
#contentrow {
  padding: 20px 0;
  background-image: url("../images/AlteMuehle/wood-21.jpg");
  background-repeat: repeat;
  background-size: contain;
  border-bottom: 30px solid white;
  margin: 0 -15px;
}

#hinweis {
  background-color: white;
  padding: 20px 35px;
  min-height: auto;
  margin: 0;
}
#hinweis h3 {
  font-size: 40px;
  font-weight: bolder;
  text-align: center;
  color: #959c71;
}
#hinweis h4 {
  font-size: 14pt;
  text-align: center;
  padding: 5px 0;
  color: #555;
  line-height: 1.6;
}
#hinweis h4 a { color: #959c71; font-weight: bold; }

#componentrow {
  background-color: white;
  padding: 28px 35px;
  min-height: auto;
  margin-top: 20px;
}

/* Content images */
#componentrow img {
  height: auto;
  max-width: 100%;
  padding: 4px;
  line-height: 1.42857143;
  background-color: white;
  border: 1px solid #959c71;
  border-radius: 4px;
  transition: all 0.2s ease-in-out;
  display: inline-block;
}

.page-header h2 {
  font-size: 1.35rem;
  color: #959c71;
  border-bottom: 2px solid #959c71;
  padding-bottom: 10px;
  margin-bottom: 20px;
}

#componentrow p {
  line-height: 1.75;
  margin-bottom: 0.75rem;
  color: #333;
}

/* Small content slider (col-lg-6) */
.content-slider-wrap {
  width: 100%;
  height: 280px;
  overflow: hidden;
  position: relative;
  border: 1px solid #959c71;
  border-radius: 4px;
}
.content-slider-track {
  display: flex;
  height: 100%;
  animation: slideLeft 20s linear infinite;
  width: max-content;
}
.content-slider-track img {
  height: 100%;
  width: auto;
  flex-shrink: 0;
}

/* ========================
   PARALLAX / MESSAGE
   ======================== */
#parallax02 {
  height: 350px;
  overflow: hidden;
  margin: 0 -15px;
  background: url("../images/slider/DK-12.jpg") center center no-repeat;
  background-size: 100% auto;
}

#message {
  background-image: url("../images/AlteMuehle/DK-23.jpg");
  background-repeat: repeat;
  background-size: contain;
  background-color: #959c71;
  color: white;
  margin: 0 -15px;
  margin-top: 30px;
  padding: 20px 15px;
}
#message .row { justify-content: center; }
#message a, #message p { color: white; }
#message h3 { color: white; font-size: 1.3rem; text-align: center; }

.message-box {
  background-color: rgba(149, 156, 113, 0.95);
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 2px;
  padding: 28px 35px;
}
.message-box-title {
  font-size: 1.4rem;
  font-weight: 600;
  text-align: center;
  color: white;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.35);
}
.message-box h3 {
  color: white !important;
  margin: 10px 0;
}

/* ========================
   BUTTONS
   ======================== */
.btn {
  background-color: #959c71;
  border-color: #959c71;
  color: white;
  border-radius: 0;
  padding: 6px 12px;
  display: inline-block;
  cursor: pointer;
  text-decoration: none;
}
.btn:hover {
  background-color: #a7764b;
  border-color: #a7764b;
  color: white;
  text-decoration: none;
}

/* ========================
   PARTNER PAGE
   ======================== */
#partner h2 {
  font-size: 30px;
  background-color: #959c71;
  color: white;
  padding: 10px 30px;
}
#partner h3 {
  font-size: 18px;
  background-color: #959c71;
  color: white;
  padding: 10px 30px;
}
#partner h4 { padding-left: 35px; }
#partner p  { padding-left: 35px; }
#partner .logomuenzberg { margin-top: 20px; }
.fa { font-family: 'Font Awesome 5 Free', sans-serif; }
.fa-phone::before { content: "☎ "; }
.fa-fax::before { content: "📠 "; }

/* ========================
   BLOCKQUOTE
   ======================== */
blockquote {
  border-left: 5px solid #959c71;
  font-size: 20px;
  padding: 10px 10px;
  background-color: #fff7b2;
  text-indent: 23px;
}

h2.contentheading { color: #a7764b; }

/* ========================
   FOOTER
   ======================== */
#footer {
  padding: 20px 20px;
  color: white;
  background-color: #fff7b2;
  font-size: 25px;
  text-align: center;
  background-image: url("../images/AlteMuehle/wood-21.jpg");
  background-repeat: repeat;
  background-size: contain;
  border-top: solid 30px white;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: flex-start;
  gap: 30px;
  margin: 0 -15px;
}
#footer a { color: white; }

#adresse {
  width: 30%;
  padding: 20px 30px;
  height: auto;
  background-color: #a7764b;
  border: 1px solid white;
  font-size: 1rem;
  line-height: 1.7;
  text-align: left;
}
.footerlogo {
  height: 100px;
  width: auto;
  margin-left: auto;
  margin-right: auto;
  background-color: #959c71;
  padding: 10px 20px;
  display: block;
  margin-bottom: 12px;
}

#times {
  width: 30%;
  height: auto;
  background-color: #a7764b;
  border: 1px solid white;
  padding: 10px 30px;
  text-align: left;
  font-size: 1rem;
  line-height: 1.7;
}
/* Original: .times h3 hat olive Hintergrund */
.times h3 {
  color: white;
  font-size: 30px;
  background-color: #959c71;
  padding: 5px 10px;
  margin: -10px -30px 10px;
}
#times p {
  color: white;
  font-size: 0.9rem;
  margin: 4px 0;
}
#times h4 {
  color: white;
  font-size: 0.82rem;
  margin-top: 10px;
  line-height: 1.6;
}

/* ========================
   IMPRESSUM ROW
   ======================== */
#impressumrow {
  background-color: white;
  padding: 10px 0;
  margin: 0 -15px;
}
#impressum {
  float: right;
  padding: 0 15px;
}
#impressum .nav {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  padding: 0;
  justify-content: flex-end;
}
#impressum .nav li a {
  display: block;
  padding: 6px 16px;
  color: #959c71;
  background-color: transparent;
  float: right;
  text-decoration: none;
  font-size: 0.9rem;
  transition: background 0.2s, color 0.2s;
}
#impressum .nav li a:hover {
  background-color: #959c71;
  color: white;
  text-decoration: none;
}

/* ========================
   BILDERGALERIE
   ======================== */
.os-gallery-tabs-main-1 .img-block {
  display: inline-block;
  margin: 2.5px;
  vertical-align: top;
  overflow: hidden;
  border: 1px solid #959c71;
  border-radius: 4px;
}
.os-gallery-tabs-main-1 .img-block img {
  display: block;
  width: 200px;
  height: 150px;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.os-gallery-tabs-main-1 .img-block:hover img { transform: scale(1.05); }
.os-gallery-tabs-main-1 .img-block a {
  display: block;
  position: relative;
}

.gallery-grid-real {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.gallery-grid-real a {
  display: block;
  overflow: hidden;
  border: 1px solid #959c71;
  border-radius: 4px;
}
.gallery-grid-real img {
  width: 200px;
  height: 150px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}
.gallery-grid-real a:hover img { transform: scale(1.05); }

/* Lightbox */
.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.88);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}
.lightbox-overlay.open { display: flex; }
.lightbox-overlay img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  border: none;
  border-radius: 0;
  background: none;
  padding: 0;
}
.lb-close {
  position: absolute;
  top: 1rem; right: 1.5rem;
  color: white;
  font-size: 2.5rem;
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
}
.lb-prev, .lb-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.15);
  color: white;
  font-size: 2rem;
  border: none;
  cursor: pointer;
  padding: 0.5rem 1rem;
}
.lb-prev { left: 1rem; }
.lb-next { right: 1rem; }

/* ========================
   KONTAKT PAGE
   ======================== */
.kontakt-box {
  background-color: #959c71;
  border: 1px solid white;
  border-radius: 2px;
  padding: 20px 30px;
  color: white;
}
.kontakt-box h3 {
  color: white;
  text-align: center;
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}
.kontakt-box h3 a { color: white; }
.kontakt-box p {
  text-align: center;
  color: white;
  font-size: 0.95rem;
  margin: 0.3rem 0;
}

/* ========================
   LEGAL PAGES
   ======================== */
.legal-text h2 {
  font-size: 20px;
  color: #959c71;
  margin-top: 1.5rem;
  padding: 5px 0;
  border-bottom: 1px solid #ddd;
}
.legal-text h3 { font-size: 16px; color: #959c71; margin-top: 1rem; }
.legal-text p { font-size: 0.95rem; margin: 0.5rem 0; }
.legal-text ul { list-style: disc; padding-left: 2rem; margin: 0.5rem 0; }

/* ========================
   SWEEP HOVER ANIMATION
   ======================== */
.hvr-sweep-to-bottom {
  display: inline-block;
  vertical-align: middle;
  position: relative;
  transition-property: color;
  transition-duration: 0.3s;
}
.hvr-sweep-to-bottom::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: #a7764b;
  transform: scaleY(0);
  transform-origin: 50% 0;
  transition: transform 0.3s ease-out;
}
.hvr-sweep-to-bottom:hover::before { transform: scaleY(1); }

/* ========================
   RESPONSIVE
   ======================== */
@media screen and (max-width: 900px) {
  .logo {
    padding: 30px 20px !important;
    width: 85% !important;
  }
  .nav-mobile-toggle { display: flex; }
  .nav-inner {
    display: none;
    flex-direction: column;
    width: 100%;
    flex-wrap: wrap;
  }
  .nav-inner.open { display: flex; }
  .nav-inner li { width: 100%; }
  .nav-inner li a {
    text-align: left;
    padding: 12px 20px;
    font-size: 1rem;
    white-space: normal;
    border-bottom: 1px solid rgba(255,255,255,0.15);
  }

  #slider { height: 120px; border-top: 10px solid #fff; border-bottom: 10px solid #fff; }
  #contentrow { border-bottom: 10px solid #fff; }
  #parallax02 { height: 100px; }
  #message { margin-top: 10px; }

  #footer {
    border-top: solid 10px #fff;
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
  #adresse { width: 90%; }
  #times { width: 90%; }

  #impressum .nav { flex-wrap: wrap; justify-content: center; }

  .col-lg-2, .col-lg-4, .col-lg-6, .col-lg-8, .col-lg-10,
  .col-sm-4, .col-sm-6, .col-sm-8 {
    flex: 0 0 100%; max-width: 100%;
  }
  .col-spacer { flex: 0 0 0; max-width: 0; padding: 0; overflow: hidden; }
  .col-center  { flex: 0 0 100%; max-width: 100%; }
  #componentrow { padding: 20px 15px; }
  #hinweis { padding: 15px; }
  .content-slider-wrap { margin: 15px auto 0; }
}

@media screen and (min-width: 901px) and (max-width: 1200px) {
  .logo { padding: 30px 20px !important; width: 70% !important; }
  #slider { height: 148px; border-top: 10px solid #fff; border-bottom: 10px solid #fff; }
  .nav-inner li a { padding: 20px 10px; font-size: 1rem; }
  #adresse { width: 34%; }
  #times { width: 40%; }
}

@media screen and (min-width: 1201px) and (max-width: 1400px) {
  .logo { width: 65% !important; }
  .nav-inner li a { padding: 20px 15px; font-size: 1.2rem; }
}
