* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: linear-gradient(
  to top,
  rgb(115, 154, 95) 0%,    /* Oben: jetzt dunkler */
  rgb(95, 121, 82) 50%,    /* Mitte: jetzt dunkler */
  rgb(72, 97, 60) 100%     /* Unten: jetzt dunkler */
);
  background-attachment: fixed;
  min-height: 100vh;
  font-family: Verdana, Arial, sans-serif;
  overflow-x: hidden;
}

 
:root {
  
  --grid-color: rgb(113, 141, 100);
  --glass-border: rgba(255,255,255,0.28);
  --titlebox-border: rgb(81, 108, 67);
  --titlebox-bg: rgb(101, 130, 86); 
}

/* =========================
   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;
  grid-template-columns: repeat(4, 1fr);
  row-gap: clamp(16.44px, 1.57vw, 43.34px);
  padding-top: clamp(10px, 0.83vw, 18px);
  padding-right: clamp(29px, 2.42vw, 53px);
  padding-bottom: clamp(29px, 2.42vw, 53px);
  padding-left: clamp(29px, 2.42vw, 53px);
  overflow: visible;
  background: var(--grid-color);
  
}


/* =========================
   TITLEBOX (alle Breakpoints, oben im Grid)
========================= */

.titleBox {
  display: flex;
  align-items: center;
  grid-column: 1 / -1;
  margin: -33px clamp(-53px, -2.42vw, -29px) -14px clamp(-53px, -2.42vw, -29px);
  background: rgb(108, 132, 95);   
  position: relative;
  z-index: 1;
}

.titleBox h1 {
  margin: 0;
  width: 100%;
  height: clamp(36px, 3vw, 60px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(14px, 1.2vw, 26px);
  color: #000;
  text-align: center;
}

  .titleBox::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 100vw;
  height: 100%;
  background: var(--titlebox-bg);
  border-bottom: 1px solid var(--titlebox-border);
  transform: translateX(-50%);
  z-index: -1;
  pointer-events: none;
}


/* =========================
   CARD + LABEL
========================= */

.card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: inherit;
  scroll-margin-top: 167px;
  overflow: hidden; 
  background: rgb(68, 84, 61);
  border-radius: 10px;
  padding: 0 4% 7px 4%;
  border-top: none;  /* label bildet den oberen Abschluss */  
  transition: background 0.2s;
}

.card:focus {
  outline: 2px solid transparent;
  outline-offset: 0;
}


:target {
  outline: none;
}


.label {
  width: 100%;
  background: transparent;
  color: #dfdfdf;
  text-align: center;
  box-shadow: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 3px 6px 0 6px;
 
  border-bottom: none;  /* nahtloser Übergang zur card */
  transition: background 0.2s;
  /* Glasglanz oben */
  box-shadow: none;
  
}

.card img {
  width: 100%;
  height: auto;
  border-radius: 6px;  
  display: block;
  margin-top: 4px;
  border: 2px solid rgb(106, 137, 91);
  
}

@supports (container-type: inline-size) {
  .card {
    container-type: inline-size;
  }

  .label {
    font-size: clamp(10.117px, 6.434cqi, 23.881px);
    line-height: clamp(10.3px, 6.0cqi, 22.8px);
  }

 }


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

@media (max-width: 1199px) {

  #header {
    width: 100%;
  }

  .titleBox {
    margin: -2px 0 -6px 0;
    
    }

  .titleBox h1 {
    font-size: 15px;
    color: #000;
  }

  #page {
    width: 100%;
    margin: 0;
    padding-top: 52px;
  }
 
  #grid {
    grid-template-columns: repeat(3, 1fr);
    column-gap: 13px;
    row-gap: 16px;
    padding-top: 0;
    padding-right: 12px;
    padding-bottom: 15px;
    padding-left: 12px;
    }

  .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;
  }

  .card {
    scroll-margin-top: 60px;
    padding: 0 7px 7px 7px; 
  }

    .label {
    font-size: 16px;    
    padding-bottom: 2px;
    line-height: 13px;   
    padding-top: 4px;
}

  #nav {
    display: none;
    flex-direction: column;
    background: #677f5b;
    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: #677f5b;
    color: rgba(255, 255, 255, 0.92);
    font-size: 16px;
    border: none;
    border-bottom: 2px solid rgba(58, 79, 50, 0.8);
    max-width: 100%;
    text-decoration: none;
  }

    #footer a:hover {
    background: none;
    color: #dfdfdf;
  }

  #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: 58px;
    width: 100%;
  }

  .card {
    scroll-margin-top: 56px;
    padding: 0 10px 10px 10px;  
  }

  #grid {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 15px;
    row-gap: 16px;
    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: rgba(255, 255, 255, 0.90);
  }

   .card img {
   margin-top: 0;
  }

  .titleBox {
    margin: -15px 0 -8px 0;
    padding-top: 6px;  
    
}

  .titleBox h1 {
    font-size: 15px;
  }
  
   #footer a:hover {
    background: none;
    color: #dfdfdf;
  }
  
     .label {
    font-size: 16px;    
    position: relative;
    padding-bottom: 5px;
    line-height: 13px;   
}
}

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

@media (min-width: 1200px) {

   .titleBox {
    margin: -20px clamp(-25px, -1.5vw, -15px) -13px clamp(-25px, -1.5vw, -15px);   
    padding-top: 0px;    
    border-bottom: 1px solid rgb(69, 91, 57);
  }
    
   .titleBox::before {
    display: none;
  }

   .label {
    padding-top: 3px;
    padding-bottom: 1px;
  }

  
   #grid {
  column-gap: clamp(48px, 4.2vw, 87px); 
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25),
              inset 0 -1px 0 rgba(255, 255, 255, 0.06);
  margin-top: -11px; 
  }
  
   #page {
     padding-top: clamp(128.75px, 12.5vw, 232.14px);
     
  }

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

  .banner-wrapper img {
    width: 100%;
    height: clamp(97.97px, 9.603vw, 181.39px);
    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;
  }

  #header {
    padding-bottom: 0;
    
    }

  .card {
     padding: 0 4% 10px 4%; 
  }

  .card:hover {
    background: rgb(44, 50, 42);
  }

  .card:hover img {
    border-color: rgb(139, 163, 128);
  }
 
  #nav {
  display: flex;
  justify-content: center;
  height: clamp(23.85px, 1.99vw, 43.73px);
  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.77px, 1.068vw, 23.71px);
  color: #dfdfdf;
  border-right: 1px solid #7c996e;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: background 0.2s, color 0.2s;
  padding-bottom: 0;
  
}
  #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: #394D30; 
  }


  #nav a:last-child {
    border-right: none;
  }

  #nav a:hover {
  background: rgb(101, 124, 90);
  color: #fff;
}
  .nav-inner {
  display: flex;
  width: 100%;
  max-width: none;
}
}
@media (min-width: 1200px) and (max-width: 2189px) {
  #grid {
    column-gap: clamp(63.888px, 5.5902vw, 115.797px);
    padding-left: clamp(33.6px, 3.36vw, 67.2px);
    padding-right: clamp(33.6px, 3.36vw, 67.2px);
    padding-bottom: 24px; 
  }

  .titleBox {
    margin-left: clamp(-67.2px, -3.36vw, -33.6px);
    margin-right: clamp(-67.2px, -3.36vw, -33.6px);
  }

}

/* Grid — 8 Spalten ab 2190px Viewport */
@media (min-width: 2190px) {
  #grid {
    grid-template-columns: repeat(8, 1fr);
     padding-left: 28px;
    padding-right: 28px;  
}
   
 
  .titleBox {
    grid-column: 1 / -1;
    overflow: hidden;
    max-width: 2190px;
    margin-left: -28px;
    margin-right: -28px;
    width: auto;
    max-width: none;
  }

   .label {
     font-size: clamp(10.03px, 0.84vw, 18.61px);
    line-height: 1.5;
 }



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

   #footer {
    width: 92%;
    max-width: 2190px;
    left: auto;
    transform: none;
    margin: 0 auto;
  }
}


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

#footer {
  display: flex;
  height: clamp(30px, 2.5vw, 55px);
  background: rgb(78, 97, 71);
  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);
}


