/* ===== Base ===== */

@charset "iso-8859-1";

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font: 14px/1.6 Verdana, Arial, sans-serif;
  color: #222;
  background: #d0d0d0;
}

a { color: #1c4851; text-decoration: none; }
a:hover { opacity: .9; }

.page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px;
}

/* ===== Header ===== */
.site-header {
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 12px 26px rgba(0,0,0,.10);
  margin-bottom: 16px;
}

/* Mehr Abstand zwischen Header/Banner und Inhalt */
.site-header {
  margin-bottom: 24px;
}


.header-link { display: block; color: inherit; }

.brand {
  padding: 14px 16px 10px;
  background: #ffffff;
}

.brand-title {
  display: inline-block;
  font-weight: 800;
  letter-spacing: .04em;
  font-size: 18px;
}

/* Banner: Datei hier ablegen -> images/header.jpg */
.banner {
  height: 200px;
  background: url("../images/header.jpg") no-repeat center center;
  background-size: cover;
}

/* ===== Layout (kein Float!) ===== */
.layout {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

/* ===== Sidebar ===== */
.sidebar {
  width: 320px;
  background: #f7f7f7;
  border-radius: 18px;
  padding: 14px;
  box-shadow: 0 12px 26px rgba(0,0,0,.10);
}

.sidebar-title {
  margin: 8px 0 10px;
  font-size: 16px;
}

.sidebar-list {
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}

.sidebar-list li { margin: 7px 0; }
.sidebar-list a { font-weight: 600; }

.sidebar-tags {
  margin: 0;
  padding: 0;
  list-style: none;
}
.sidebar-tags li {
  display: inline-block;
  margin: 6px 6px 0 0;
  padding: 6px 10px;
  border-radius: 999px;
  background: #eef3f1;
  border: 1px solid #dbe7e3;
  font-size: 12px;
}

/* ===== Content ===== */
.content {
  flex: 1;
  min-width: 0;
}

.product { display: grid; gap: 14px; }

/* Cards */
.card {
  background: #fff;
  border-radius: 18px;
  border: 1px solid #e7e7e7;
  box-shadow: 0 12px 26px rgba(0,0,0,.10);
  padding: 16px;
}

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: center;
}

.hero h1 {
  margin: 0 0 8px;
  font-size: 30px;
  line-height: 1.15;
}

.lead { margin: 0 0 12px; color: #444; }
.muted { color: #666; font-size: 12px; margin-top: 10px; }

.hero-media {
  display: flex;
  
}

.hero-media img {
  width: 100%;
  max-width: 520px;   /* Bildgröße */
  height: auto;
  display: block;
  border-radius: 16px;
  border: 1px solid #f0f0f0;
}

/* Buttons */
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 10px 0 10px; }

.btn {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 800;
  border: 1px solid #dcdcdc;
  transition: transform .12s ease;
}

.btn:hover { transform: translateY(-1px); }

.primary {
  background: #5fa36a;
  border-color: #5fa36a;
  color: #fff;
}

.secondary {
  background: #fff;
  color: #222;
}

/* Badges */
.badges {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.badges li {
  font-size: 12px;
  padding: 6px 10px;
  background: #f4f7f5;
  border: 1px solid #e3eee6;
  border-radius: 999px;
}

/* Two-column grid */
.grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* Lists */
.list {
  margin: 0;
  padding-left: 18px;
}
.list li { margin: 6px 0; }

/* Specs */
.specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 14px;
}

.spec {
  background: #fafafa;
  border: 1px solid #efefef;
  border-radius: 14px;
  padding: 10px;
}

.k { display: block; font-size: 12px; color: #666; margin-bottom: 4px; }
.v { display: block; font-size: 13px; color: #111; }

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.grid2 .gallery{
  grid-template-columns: 1fr;  /* statt 3 Spalten */
}


.gallery img {
  width: 100%;
  border-radius: 16px;
  border: 1px solid #f0f0f0;
  box-shadow: 0 10px 16px rgba(0,0,0,.06);
}

/* FAQ */
details { border-top: 1px solid #eee; padding: 10px 0; }
details:first-of-type { border-top: none; }
summary { cursor: pointer; font-weight: 800; }

/* CTA */
.cta { margin-top: 12px; text-align: center; }

/* ===== Footer ===== */
.site-footer {
  margin-top: 16px;
  background: #fff;
  border-radius: 18px;
  border: 1px solid #e7e7e7;
  box-shadow: 0 12px 26px rgba(0,0,0,.10);
  padding: 14px 16px;
  text-align: center;
}

.footer-links a { font-weight: 700; }
.sep { margin: 0 8px; color: #888; }
.copyright { color: #666; }

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .layout { flex-direction: column; }
  .sidebar { width: auto; }
  .hero { grid-template-columns: 1fr; }
  .grid2 { grid-template-columns: 1fr; }
  .specs { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
}


/* FEINTUNING: header smaller + icons + hover (ASCII only) */

.brand { padding: 8px 12px 6px; }
.brand-title { font-size: 14px; letter-spacing: .03em; }

.banner {
  height: 130px;
  background-position: center;
  background-size: cover;
}



/* Sidebar icons (no unicode) */
.sidebar-list li { margin: 0; }

.sidebar-list a {
  display: block;
  padding: 8px 10px 8px 28px;
  border-radius: 10px;
  position: relative;
  font-weight: 700;
}

.sidebar-list a::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #5fa36a;
  box-shadow: 0 0 0 2px #e5efe9;
  opacity: .95;
}

.sidebar-list a:hover,
.sidebar-list a:focus {
  background: #eef3f1;
  outline: none;
  border: 1px solid #dbe7e3;
}

.sidebar-list a[aria-current="page"] {
  background: #e5efe9;
  border: 1px solid #cfe2d8;
}

.content a:hover,
.content a:focus {
  text-decoration: underline;
  outline: none;
}

.card a { font-weight: 700; }

/* Footer class fix */
.copyright { color: #666; }

/* =========================
   Sidebar Section Headings
   ========================= */

.sidebar h3 {
  margin: 16px 0 10px;
  padding: 8px 10px;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;

  background: linear-gradient(
    to right,
    #e6efe9,
    #f7f7f7
  );

  border-left: 4px solid #5fa36a;
  border-radius: 8px;
  color: #1c4851;
}

/* Nur Abstand zwischen Hero und erstem Entries-Block verkleinern */
.card.hero + .entries { margin-top: 12px; }


/* ===== Content Entries (alte entriestxt als Cards) ===== */

.entries {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}

.entries > li {
  background: #fff;
  border-radius: 18px;
  border: 1px solid #e7e7e7;
  box-shadow: 0 12px 26px rgba(0,0,0,.10);
  padding: 16px;
}

.entries h2 {
  margin: 0 0 10px;
}

.entries img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  border: 1px solid #f0f0f0;
  display: block;
  margin: 10px 0;
}


/* ===== Bilder kleiner + Text fließt daneben (Content Cards) ===== */

/* sorgt dafür, dass die Card den Float sauber "umfasst" */
.entries > li::after,
.entriestxt > li::after {
  content: "";
  display: block;
  clear: both;
}

/* Bild im Content: kleiner + links floaten */
.entries > li a > img,
.entries > li > img,
.entriestxt > li a > img,
.entriestxt > li > img {
  float: left;
  width: 220px;          /* Größe anpassen (z.B. 180 / 240) */
  max-width: 45%;
  height: auto;
  margin: 6px 14px 10px 0;  /* rechts Abstand für Text */
  border-radius: 14px;
  border: 1px solid #f0f0f0;
  display: block;
}

/* Auf kleinen Screens wieder untereinander */
@media (max-width: 700px) {
  .entries > li a > img,
  .entries > li > img,
  .entriestxt > li a > img,
  .entriestxt > li > img {
    float: none;
    width: 100%;
    max-width: 100%;
    margin: 10px 0;
  }
}

 
    .hero { margin-bottom: 16px; } /* Abstand zur nächsten Card */

    .entriestxt{
      list-style:none;
      padding:0;
      margin:0;
      display:grid;
      gap: 12px;
    }
    .entriestxt > li{
      background:#fff;
      border-radius:18px;
      border:1px solid #e7e7e7;
      box-shadow:0 12px 26px rgba(0,0,0,.10);
      padding:16px;
    }
    .entriestxt h1{ margin:0 0 6px; font-size:30px; line-height:1.15; }
    .entriestxt h2{ margin:0 0 10px; }
    .entriestxt img{
      width:100%;
      height:auto;
      border-radius:16px;
      border:1px solid #f0f0f0;
      display:block;
      margin:10px 0;
    }
    .entriestxt cite{
      display:block;
      margin-top:10px;
      font-size:12px;
      color:#666;
      font-style:normal;
    }
	
	  /* Hero-Text kompakt */
    .lead { margin: 0 0 6px; color:#444; }
    .hero-text p { margin: 8px 0 0; }

/* =========================
   Legacy-Listen als Cards
   ========================= */

.entries,
.entriesart,
.entriestxt {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px; /* Abstand zwischen den Cards */
}

.entries > li,
.entriesart > li,
.entriestxt > li {
  background: #fff;
  border-radius: 18px;
  border: 1px solid #e7e7e7;
  box-shadow: 0 12px 26px rgba(0,0,0,.10);
  padding: 16px;
}

/* Optional: Überschriften in Listen nicht "kleben" lassen */
.entries h2, .entriesart h2, .entriestxt h2 { margin-top: 0; }
.entries h1, .entriesart h1, .entriestxt h1 { margin-top: 0; }


/* ===============================
   Bild links – Text fließt rechts
   für entries / entriesart
   =============================== */

.entries img,
.entriesart img,
.entriestxt img {
  float: left;
  max-width: 220px;      /* Bildgröße */
  height: auto;
  margin: 0 16px 10px 0; /* Abstand zum Text */
  border-radius: 12px;
}

/* Sicherstellen, dass jede Card sauber abschließt */
.entries > li::after,
.entriesart > li::after,
.entriestxt > li::after {
  content: "";
  display: block;
  clear: both;
}
.hero-text h1 {
  white-space: nowrap;
  font-size: clamp(1.3rem, 2.2vw, 1.8rem);
  line-height: 1.25;
}

/* Fototasse: gleiche Struktur, aber Bildspalte größer */
.hero.hero--photo{
  grid-template-columns: 1fr 1fr;   /* vorher: 1.15fr .85fr */
}

/* sicherstellen, dass das Bild die Spalte voll nutzt */
.hero.hero--photo .hero-media img{
  width: 100%;
  height: auto;
  display: block;
}

/* NUR diese Card: Text soll um Bild fließen */
.card--wrap .gallery{
  display: block !important; /* Grid aus */
  margin: 0;
}

/* Bild links floaten */
.card--wrap .gallery img{
  float: left;
  width: 340px;        /* hier größer/kleiner machen */
  max-width: 45%;
  height: auto;
  margin: 6px 16px 10px 0;
  border-radius: 16px;
  border: 1px solid #f0f0f0;
  box-shadow: 0 10px 16px rgba(0,0,0,.06);
  display: block;
}

/* Card soll den Float korrekt umfassen */
.card--wrap::after{
  content:"";
  display:block;
  clear:both;
}

/* Mobil: wieder untereinander */
@media (max-width: 700px){
  .card--wrap .gallery img{
    float: none;
    width: 100%;
    max-width: 100%;
    margin: 10px 0;
  }
}

/* Bild über komplette Card-Breite */
.gallery--full {
  width: 100%;
  margin: 0;
}

.gallery--full img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px; /* optional – je nach Design */
}

/* Navigation direkt unter dem Bild */
.nav-links--below-image {
  margin-top: 16px;
  text-align: left;
  font-weight: 500;
}

/* ===== FIX: Fullwidth-Bild in card--wrap wirklich 100% ===== */
.card--wrap .gallery--full img{
  float: none !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  display: block;
}

/* Links wirklich unter das Bild zwingen */
.nav-links--below-image{
  clear: both;
  display: block;
}

  .card--fullwidth {
      width: 100%;
    }

    .card--fullwidth .gallery img {
      width: 100%;
      height: auto;
      display: block;
    }
	
	/* Fullwidth-Grafik innerhalb einer Card */
.card--fullwidth .gallery--full img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
}

/* FULLWIDTH: .gallery--full soll kein 3-Spalten-Grid sein */
.gallery--full {
  display: block !important;
}
.gallery--full a,
.gallery--full img {
  display: block;
  width: 100%;
}

.text-float-image {
  float: right;
  max-width: 320px;
  margin: 0 0 15px 20px;
  height: auto;
}

@media (max-width: 768px) {
  .text-float-image {
    float: none;
    display: block;
    margin: 0 auto 20px;
    max-width: 100%;
  }
}
