* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: rgb(126, 152, 112);
  background-attachment: fixed;
  min-height: 100vh;
  font-family: Verdana, Arial, sans-serif;
  overflow-x: hidden;
}

 
:root {
  
  --grid-color: rgb(122, 152, 107);
  --glass-border: rgba(255,255,255,0.28);
  --titlebox-border: rgb(81, 108, 67);
  --titlebox-bg: rgb(106, 137, 91); 
  --text-main: rgba(255, 255, 255, 0.92);
  --banner-h: clamp(107.77px, 10.563vw, 199.53px);
  --nav-h-desktop: clamp(23.85px, 1.99vw, 43.73px);
}

/* =========================
   HEADER
========================= */

#header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: transparent;
  z-index: 1000;
  padding-bottom: 8px;
}

/* Banner nur auf Mobile/Tablet verstecken */
.banner-wrapper {
  display: none;
}

/* =========================
   SR-ONLY (visuell versteckt, für Screenreader sichtbar)
========================= */
 
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


/* =========================
   BURGER MENU
========================= */

#menu-toggle {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  margin: 0;
  padding: 0;
  pointer-events: none;
}

.burger {
  display: none;
  padding: 0 16px;
  cursor: pointer;
  background: #026202;
  color: #000000;
  text-align: center;
  user-select: none;
  border: 2px solid #000;
}

/* =========================
   NAV (Mobile default — versteckt)
========================= */

#nav {
  display: none;
}

/* =========================
   PAGE WRAPPER
========================= */

#page {
  width: 100%;
  max-width: 2190px;
  margin: 5px auto 0 auto;
  background: none;
  padding-top: 44px;
}

/* =========================
   GRID — Desktop 4 Spalten (1200–2189px)
========================= */

#grid {
  display: grid;
  
  padding-right: clamp(29px, 2.42vw, 53px);
  padding-bottom: clamp(29px, 2.42vw, 53px);
  padding-left: clamp(29px, 2.42vw, 53px);
  overflow: visible;
  background: rgb(106, 137, 91);   
}

#grid img {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  height: auto;
  border: 2px solid #000;
  width: 100%;
}

/* =========================
   IMPRESSUM-INHALT (Text ohne Bild, aus Detailseite übernommen)
========================= */

.impressum-wrap {
  grid-column: 1 / -1;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding-top: 4px;
}

.impressum-wrap a {
  color: inherit;
  text-decoration: underline;
}

.page-title {
  width: 100%;
  margin: 0 0 14px 0;
  color: var(--text-main);
  font-weight: 700;
  text-align: left;
  font-size: clamp(18px, 5vw, 24px);
  line-height: 1.3;
}

.det-label {
  width: 100%;
  margin: 0;
  margin-top: 14px;
  
  font-size: inherit;
  color: var(--text-main);
  font-weight: 700;
  font-size: clamp(15.95px, 1.34vw, 29.59px);
  
}

.det-text {
  width: 100%;
  margin: 0;
  margin-top: 1px;
  color: var(--text-main);
  line-height: 1.5;
  font-size: clamp(13.63px, 1.14vw, 25.30px);
  margin-top: 7px;
  margin-bottom: 8px;
}

.det-h2,
.det-h3 {
  width: 100%;
  margin: 0;
  margin-top: 14px;   /* <-- X: gleicher Wert wie .det-label */
  margin-bottom: 1px; /* <-- Y: gleicher Wert wie margin-top auf .det-text */
  font-size: inherit;
  color: var(--text-main);
  font-weight: 700;
  line-height: inherit;
  text-align: left; 
  font-size: clamp(15.95px, 1.34vw, 29.59px);
} 



/* =========================
   ARTIKEL-ÜBERSICHTSSEITE
========================= */

.uebersicht-wrap {
  grid-column: 1 / -1;
  width: 100%;
  max-width: 2070px;
  margin: 0 auto;
  padding-top: 4px;
}

/* Kategorie-Block */

.artikel-kategorie {
  width: 100%;
  margin-top: 14px;
}

.artikel-kategorie:first-of-type {
  margin-top: 8px;
}

/* Kategorie-Überschrift: bewusst volle Bildschirmbreite,
   unabhängig von der max-width des umgebenden Wrappers
   (Full-Bleed-Trick). body hat bereits overflow-x:hidden,
   dadurch kein horizontaler Scrollbalken. */
.kategorie-title {
  position: relative;
  left: 50%;
  width: 100vw;
  margin-left: -50vw;
  margin-right: -50vw;
  margin-top: 0;
  margin-bottom: 7px;
  padding: 8px 16px;
  box-sizing: border-box;
  background: rgb(83, 104, 73);
  border: none;  
  color: var(--text-main);
  font-weight: 700;
  text-align: center;
  font-size: clamp(17px, 2.1vw, 27px);
}

/* Artikel-Grid */

.artikel-liste {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  width: 100%;
  padding: 0 4px;
}

/* Artikel-Karte: feste, einheitliche Höhe für alle Karten.
   Links Text (Titel + Anrisstext), rechts Vorschaubild — das Bild
   füllt seine Hälfte der Karte exakt aus (100% Höhe/Breite, object-fit: cover). */

.artikel-card {
  display: flex;
  align-items: center;
  background: rgb(92, 119, 78);
  border: none;
  text-decoration: none;
  color: var(--text-main);
  overflow: hidden;
  transition: background-color 0.2s ease;
}

.artikel-card:hover,
.artikel-card:focus-visible {
  background: rgb(82, 106, 70);
}

.artikel-text {
  flex: 1 1 auto;
  min-width: 0;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  overflow: hidden;
  overflow-wrap: normal;   
  word-break: normal;          
  hyphens: auto;               
  -webkit-hyphens: auto;     
}

.artikel-name {
  margin: 0;
  font-weight: 700;
  font-size: clamp(15px, 1.2vw, 20px);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.artikel-excerpt {
  margin: 0;
  font-weight: 400;
  font-size: clamp(13px, 1vw, 16px);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Bild-Feld: der Container nimmt weiterhin die volle Höhe/Breite seines
   Anteils ein. Das eigentliche <img> darin behält sein Seitenverhältnis bei
   (kein Strecken/Stauchen) und bekommt oben/unten/rechts 5% Abstand zum
   Rand des Bild-Felds; links liegt es bündig an (Übergang zum Textbereich). */

.artikel-bild-feld {
  flex: 0 0 auto;
  width: clamp(118px, 12vw, 126px);
  aspect-ratio: 140 / 95;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 15px;
  padding-left: 0;
}

#grid .artikel-card .artikel-bild {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
  border: 2px solid #000;
  margin: 0;
}

/* =========================
   RESPONSIVE < 1200px (Tablet)
========================= */

@media (max-width: 1199px) {

  #header {
    width: 100%;
  }

  .artikel-card:hover,
  .artikel-card:focus-visible {
    background: rgb(96, 124, 82);
  }
  
  #page {
    width: 100%;
    margin: 0;
    padding-top: 52px;
  }

   .page-title { 
    font-size: 22px;
    padding-top: 3px; 
    margin-top: 10px; 
    text-align: center;
    padding-bottom: 1px; 
 }
   
    #footer a:hover {
    background: none;
    color: #dfdfdf;
  }
 
  #grid {
    padding-top: 0;
    padding-right: 15px;
    padding-bottom: 15px;
    padding-left: 15px;
    }

  .impressum-wrap {
    max-width: 100%;
    padding: 0 4px;
  }

  .uebersicht-wrap {
    max-width: 100%;
    padding: 0 4px;
  }

  .kategorie-title {
    font-size: 19px;
    padding-left: 12px;
    padding-right: 12px;
    padding-top: 8px;
    padding-bottom: 10px;
  }

  .artikel-liste {
    width: 100vw;
    position: relative;
    left: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    padding: 0;
    gap: 4px;
  }

  .artikel-excerpt {
    font-size: 16px;
  }

  .artikel-text {
   padding: 6px 8px 6px 15px;    
  }

  
  .det-text {
    font-size: 16px;
  }

   .det-label,
   .det-h2,
  .det-h3 {
    font-size: 18px;
  }

 
   .det-gallery figcaption {
  margin-top: 1px;
  color: var(--text-main);
  font-size: 16px;
  line-height: 1.5;
  text-align: center;
}

  .burger {
    display: block;
    height: 52px;
    display: flex;
    color: rgba(255, 255, 255, 0.90);
    align-items: center;
    justify-content: center;
    font-size: 30px;
    background: rgb(62, 81, 54);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  }

  #nav a:hover {
    background: none !important;
  }


  #nav {
    display: none;
    flex-direction: column;
    background: rgb(126, 152, 112);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    position: relative;
    z-index: 999;
  }

  #nav a {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgb(126, 152, 112);
    color: #000000;
    font-size: 16px;
    border: none;
    border-bottom: 2px solid rgba(58, 79, 50, 0.8);
    max-width: 100%;
    text-decoration: none;
  }
   

  #nav a:first-child {
    border-top: none;
  }

  #nav a:last-child {
    border-bottom: 2px solid rgba(58, 79, 50, 0.8);
  }

 
  #menu-toggle:checked + .burger + #nav {
    display: flex;
  }
}


/* =========================
   MOBILE < 600px
========================= */

@media (max-width: 600px) {

  #header {
    width: 100%;
  }

  #page {
    margin: 0;
    padding-top: 48px;
    width: 100%;
  }

   .det-gallery {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .artikel-text {
    padding: 5px 8px 5px 15px;
    gap: 2px;
  }

  .artikel-name {
    font-size: 14px;
  }

  .artikel-excerpt {
    font-size: 16px;
    -webkit-line-clamp: 2;
  }

  .kategorie-title {
    font-size: 17px;
  }

  

 #footer a:hover {
    background: none;
    color: #dfdfdf;
  }
  
  #grid {
    grid-template-columns: repeat(2, 1fr);
    padding-top: 0;
    padding-right: 10px;
    padding-bottom: 15px;
    padding-left: 10px;
    
}  

  .burger {
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 29px;
    color: var(--text-main);
  }
 

  .det-text {
    font-size: 16px;
  }

   .det-label,
   .det-h2,
  .det-h3 {
    font-size: 18px;
  }

}

/* =========================
   DESKTOP ab 1200px
========================= */

@media (min-width: 1200px) {

   .banner-wrapper {
    display: block;
    position: relative;
    width: 100%;
    max-width: 2190px;
    margin: 0 auto;
  }

  .banner-wrapper img {
    width: 100%;
    height: var(--banner-h);
    object-fit: cover;
    object-position: center;
    display: block;
    border-top: 2px solid #000;
    border-left: 2px solid #000;
    border-right: 2px solid #000;
    border-bottom: none;
  }

   #grid {
   padding-top: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25),
              inset 0 -1px 0 rgba(255, 255, 255, 0.06);
  margin-top: -16px; 
  }

 
    .impressum-wrap {
    max-width: 1800px;
    padding-top: 6px;
  }

    .kategorie-title {
    font-size: clamp(17px, 1.5vw, 22px);
}

  .artikel-liste {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 0;
  }

   .artikel-excerpt {
    font-size: clamp(13.63px, 1.14vw, 25.30px);
  }

   #page {
     padding-top: calc(var(--banner-h) + var(--nav-h-desktop) + 2px);
     
  }

   #footer {
  width: 100%;
  max-width: 2190px;
  margin: 0 auto;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25),
              inset 0 -1px 0 rgba(255, 255, 255, 0.06);
}
    #footer a:hover {
  background: rgb(104, 128, 93); 
  }

  .page-title {
    display: none;
  }

  #header {
    padding-bottom: 0;
    padding-top: 0;
    }

  .page-title-text {
    display: none;
  }

 
  #nav {
  display: flex;
  justify-content: center;
  height: var(--nav-h-desktop);
  margin-bottom: 2px;
  background: rgb(58, 75, 50);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25),
  inset 0 -1px 0 rgba(255, 255, 255, 0.06);           
}

  #nav a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(12.82px, 1.08vw, 23.80px);
  color: var(--text-main);
  border-right: 2px solid rgb(81, 106, 70);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: background 0.2s, color 0.2s;
  padding-bottom: 0;
  
}

  .artikel-bild-feld {
  padding-right: 10px;
}
 
  #nav a:last-child {
    border-right: none;
  }

  #nav a:hover {
  background: rgb(104, 128, 93);
  color: #fff;
}
  .nav-inner {
  display: flex;
  width: 100%;
  max-width: none;
}
}
@media (min-width: 1200px) and (max-width: 2189px) {
  #grid {
   
    padding-left: 30px;
    padding-right: 30px;
    padding-bottom: 24px; 
  }

  
}

/* Grid — 8 Spalten ab 2190px Viewport */
@media (min-width: 2190px) {
  #grid {
    
     padding-left: 42px;
    padding-right: 42px;  
}

  .kategorie-title {
    position: static;
    left: auto;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  .impressum-wrap {
    max-width: 1900px;
  }

  .uebersicht-wrap {
    max-width: 2106px;
  }

  .det-label,
  .det-text,
  .det-h2,
  .det-h3 {
    font-size: clamp(18px, 1.2vw, 30px);
    line-height: 1.5;
  }
  
  

  #nav {
    max-width: 2190px;
    margin-left: auto;
    margin-right: auto;
  }

    #footer {
    width: 100%;
    max-width: 2190px;
    margin: 0 auto;
  }   

}

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

#footer {
  display: flex;
  height: clamp(30px, 2.5vw, 55px);
  background: rgb(58, 75, 50);
  font-size: clamp(15px, 1.25vw, 27px);
  
  }

#footer a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #dfdfdf;
}

#footer a:first-child {
  border-right: 2px solid var(--grid-color);
}



