/* ==============================
   Basis
============================== */
* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  background-color: #DB030E;
  color: #FFFFFF;
  font-family: Arial, sans-serif;
}

h1, h2, h3, h4, h5 { color: #FFFFFF; }
a { color: #FFFFFF; text-decoration: none; }

p { margin-bottom: 1rem; }

/* ==============================
   Überschriften (hierarchisch abgestuft)
============================== */
h1 {
  font-size: 2rem;         /* ca. 32 px */
  line-height: 1.2;
  margin: 0.5em 0;
  font-weight: bold;
}
h2 {
  font-size: 1.6rem;       /* ca. 26 px */
  line-height: 1.3;
  margin: 0.6em 0;
  font-weight: bold;
}
h3 {
  font-size: 1.3rem;       /* ca. 21 px */
  line-height: 1.4;
  margin: 0.7em 0;
  font-weight: bold;
}
h4 {
  font-size: 1.1rem;       /* ca. 18 px */
  line-height: 1.4;
  margin: 0.8em 0;
  font-weight: bold;
}
h5 {
  font-size: 1rem;         /* ca. 16 px */
  line-height: 1.5;
  margin: 0.8em 0;
  font-weight: bold;
}

/* ==============================
   Container
============================== */
.container {
  width: 1024px;
  margin: 0 auto;
  padding-bottom: 80px; /* Platz für fixen Footer */
}
.zentriert {
  text-align: center;
  width: 1024px;
  margin: 0 auto;
}

/* ==============================
   Header & Navigation
============================== */
header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 20px 0;
}
.logo {
  width: 400px;
  height: 82px;
}
nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}
nav a {
  color: #FFFFFF;
  font-weight: bold;
}

/* ==============================
   Slider (optional)
============================== */
.slider {
  width: 900px;
  height: 450px;
  margin: 40px auto;
  overflow: hidden;
  border-radius: 30px;
  position: relative;
}
.slides { display: none; width: 100%; height: 100%; }
.slides img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 30px;
}
.fade { animation-name: fade; animation-duration: 1s; }
@keyframes fade { from { opacity: .4; } to { opacity: 1; } }

/* ==============================
   Footer
============================== */
footer {
  position: fixed;
  bottom: 0;
  width: 100%;
  background-color: #DB030E;
  color: white;
  text-align: center;
  padding: 10px 0;
  z-index: 1;
}
.footer-line {
  width: 1024px;
  margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,0.6);
}
.footer-content {
  width: 1024px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 5px;
  font-size: 14px;
}
.footer-links {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 5px;
  font-size: 15px;
}
.footer-links a {
  color: white;
  text-decoration: none;
  font-size: 15px;
}

/* ==============================
   Bildreihe (5× 200x200, 6px Abstand)
============================== */
.image-row {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;               /* <<< gewünschter Abstand */
  margin-bottom: 20px;
}
.image-row img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.image-row img:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* ==============================
   Showcase (für andere Seiten)
============================== */
.showcase {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 0;
  display: flex;
  flex-direction: column;
  gap: 48px;
}
.showcase .row {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: nowrap;
}
.showcase .row:nth-child(even) { flex-direction: row-reverse; }
.showcase .image, .showcase .text { flex: 1 1 0; min-width: 0; }
.showcase .image img {
  width: 100%; height: auto; display: block;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.showcase .image img:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 16px rgba(0,0,0,.3);
}
.showcase .text h2 { font-size: 1.5rem; margin: 0 0 10px; color: #FFFFFF; }
.showcase .text p { margin: 0; line-height: 1.6; color: #FFFFFF; }

/* ==============================
   Kontaktformular
============================== */
.kontaktformular {
  width: 1024px;
  margin: 3rem auto;
  padding: 2rem;
  background-color: #fdfdfd;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  color: #333;
}
.kontaktformular h2 {
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
  color: #333;
}
.kontaktformular form { display: flex; flex-direction: column; gap: 1rem; }
.kontaktformular label { font-weight: bold; color: #555; }
.kontaktformular input,
.kontaktformular textarea {
  padding: 0.75rem; font-size: 1rem;
  border: 1px solid #ccc; border-radius: 6px;
  transition: border-color 0.3s;
}
.kontaktformular input:focus,
.kontaktformular textarea:focus { border-color: #0077cc; outline: none; }
.kontaktformular button {
  padding: 0.75rem; background-color: #0077cc; color: white;
  border: none; border-radius: 6px; font-size: 1rem;
  cursor: pointer; transition: background-color 0.3s;
}
.kontaktformular button:hover { background-color: #005fa3; }

/* ==============================
   Bestellformular & Grid
============================== */
.bestellformular form label {
  display: block; font-weight: 600; margin-bottom: 0.3rem;
}
.bestellformular form input[type="text"],
.bestellformular form input[type="email"],
.bestellformular form select {
  width: 100%; padding: 0.5rem; font-size: 1rem;
  border: 1px solid #bbb; border-radius: 4px; box-sizing: border-box;
  margin-bottom: 1.5rem;
}
.form-grid { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.form-grid .form-row { flex: 1 1 100%; }
.form-row.full-width { flex-basis: 100%; }
.form-row.small-width { flex-basis: 120px; min-width: 120px; }
.form-row.medium-width { flex-basis: calc(50% - 1.5rem); min-width: 250px; }
.bestellformular form button[type="submit"] {
  background-color: #007bff; border: none; color: white;
  font-size: 1.1rem; padding: 0.7rem 1.5rem;
  border-radius: 5px; cursor: pointer; transition: background-color 0.3s ease;
}
.bestellformular form button[type="submit"]:hover { background-color: #0056b3; }

/* ==============================
   Media Queries
============================== */
@media (max-width: 1024px) {
  .container, .footer-line, .footer-content {
    width: 100%; padding: 0 10px;
  }
  .slider { width: 100%; height: auto; }
  .slider img { height: auto; }
  nav ul { flex-direction: column; align-items: flex-end; }
  header { flex-direction: column; align-items: flex-start; }
  .logo { max-width: 100%; height: auto; }
}
@media (max-width: 768px) {
  .showcase .row { flex-direction: column; text-align: center; }
}
@media (max-width: 600px) {
  .kontaktformular { margin: 1rem; padding: 1.5rem; width: auto; }
}
@media (min-width: 700px) {
  fieldset { margin-bottom: 2rem; }
  .bestellformular {
    display: flex; justify-content: center; margin: 2rem auto;
  }
  .bestellformular form { max-width: 800px; width: 100%; }
}  /* <<< diese Klammer hat in deiner Version gefehlt */

/* ==============================
   Lightbox – kein schwarzer Hintergrund
============================== */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  background: transparent;
}
.lightbox:target { display: flex; }
.lightbox img {
  width: 533px;
  height: 400px;
  object-fit: cover;
  border-radius: 12px;
  background: #111;
  padding: 6px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}
.lightbox .close { position: fixed; inset: 0; background: transparent; }
.lightbox::after {
  content: "×";
  position: fixed;
  top: 14px; right: 18px;
  width: 32px; height: 32px; line-height: 32px;
  text-align: center; border-radius: 50%;
  background: rgba(0,0,0,0.4); color: #fff; font-size: 20px;
  pointer-events: none;
}

/* --- Bild rechts neben dem Preistext --- */
.preise-bild {
  float: right;
  clear: right;                  /* sorgt für sauberes Stapeln rechts */
  width: 240px; height: 240px;
  object-fit: cover;
  margin: 3px 0 20px 20px;       /* top | right | bottom | left */
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
}
@media (max-width: 700px) {
  .preise-bild {
    float: none; clear: both; display: block;
    margin: 0 auto 20px;
  }
}