* {
  box-sizing: border-box;
}

:root {
  --content-width: 92%;
  --content-max: 2190px;
  --green-base: #658754;
  --green-dark: #4a6340;
  --green-darker: #3a4f32;
  --glass-border: rgba(255, 255, 255, 0.13);
  --glass-bg: rgba(101, 135, 84, 0.22);
  --card-bg: rgba(60, 85, 48, 0.38);
  --card-hover: rgba(60, 85, 48, 0.52);
  --text-main: rgba(255, 255, 255, 0.90);
  --text-muted: rgba(255, 255, 255, 0.55);
}

body {
  margin: 0;
  background: linear-gradient(to bottom, #8db57a 0%, #3a5232 80%);
  background-attachment: fixed;
  min-height: 100vh;
  font-family: Verdana, Arial, sans-serif;
}

/* =========================
   PAGE WRAPPER
========================= */
#page {
  width: 100%;
  margin: 0;
  padding: 0;
  padding-top: 0;
}

/* =========================
   HEADER (fixed)
========================= */
#header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(40, 58, 34, 0.79);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  z-index: 1000;
  display: flex;
  flex-direction: column;
}

/* =========================
   FOOTER
========================= */
#footer {
  width: 100%;
  background: rgba(91, 122, 76, 0.55);
  
}

/* Footer-Links */
.footer-links {
  display: flex;
  height: clamp(30px, 2.5vw, 55px);
  width: 100%;
  background: rgba(91, 122, 76, 0.55);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  align-items: stretch;
}

.footer-links a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: clamp(12px, 1.17vw, 24px);
  color: var(--text-main);
  letter-spacing: 0.02em;
  transition: background 0.2s, color 0.2s;
  max-width: 50%;
  margin: 0 auto;
  
  height: 100%;  
}
  
.footer-links a:first-child {
  border-left: none;
  border-right: 2px solid #3a4f32;
}

.footer-links a:last-child {
  border-right: none;
}

.footer-links a:hover {
  background: #4e6146;
  color: #fff;
}


/* =========================
   GRID-HEADER
========================= */
.grid-header {
  width: 100%;
  background: transparent;
}

.headline {
  display: flex;
  justify-content: center;
  background: #3a4f32;
  border-top: 1px solid var(--glass-border);
  align-items: center;
  padding-top: 6px;
  padding-bottom: 10px;
  }

.titleBox {
  display: flex;
  justify-content: center;
  background: rgba(86, 116, 72, 0.55);  
  align-items: center;
  padding-bottom: 1px;
}

.headline h1,
.titleBox p {
  margin: 0;
  width: var(--content-width);
  max-width: var(--content-max);
  color: var(--text-main);
}

.titleBox .det-nav {
  width: var(--content-width);
  max-width: var(--content-max);
  margin: 0;
}

/* Grundschrift für H1 (Fallback) */
.headline h1 {
  font-size: clamp(22.54px, 1.771vw, 38.64px);
  line-height: 1.2;
  text-align: center;
}

/* =========================
   GRID
========================= */
#grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  column-gap: clamp(22.95px, 1.91vw, 42.08px);
  row-gap: clamp(10.47px, 0.87vw, 19.2px);
  width: var(--content-width);
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 clamp(29px, 2.42vw, 53px) clamp(29px, 2.42vw, 53px) clamp(29px, 2.42vw, 53px);
}

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

.det-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  max-width: 720px;
}

.det-wrap img {
  width: auto;
  height: auto;
  max-width: 720px;
}
  .det-label {
  width: 100%;
  margin: 0;
  margin-top: 14px;   /* <-- X: Abstand zwischen Blöcken */
  font-size: inherit;
  color: var(--text-main);
  font-weight: 700;
  font-size: clamp(13.63px, 1.14vw, 25.30px);
}

.det-text {
  width: 100%;
  margin: 0;
  margin-top: 1px;    /* <-- Y: Abstand Label/h2/h3 → Text darunter */
  color: var(--text-main);
  font-size: clamp(13.63px, 1.14vw, 25.30px);
}

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

.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;
  font-size: clamp(13.63px, 1.14vw, 25.30px);
} 

.det-wrap img + .det-label {
  margin-top: 10px;   /* <-- nur für das Label direkt nach dem Bild */
}

/* =========================
   DET-NAV (grüne Pfeile)
========================= */
.det-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(32px, 6vw, 64px);
  width: 100%;
  height: 100%;
}

.det-nav-link {
  color: #2e3d28;
  display: flex;
  align-items: center;
  transition: color 0.2s;
}

.det-nav-link:hover {
  color: #fff;
}

.det-nav-inactive {
  color: #2e3d28;
  opacity: 0.35;
  display: flex;
  align-items: center;
}

/* =========================
   DESKTOP (≥1200px)
========================= */
@media (min-width: 1200px) {
  .grid-header {
    margin-top: 0;
  }

  .headline {  
  padding-top: 6px;
  padding-bottom: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.headline h1 {
  margin: 0;
  line-height: 1.2;
  font-size: clamp(22.54px, 1.771vw, 38.64px);

}
  .titleBox {
    height: 51px;
    align-items: center;
  }

  .titleBox .det-nav svg {
    width: 45px;
    height: 45px;
  }

   .det-nav {
    gap: clamp(24px, 4vw, 40px);
 }

  #grid {
    padding-top: 0;
    padding-bottom: clamp(11.64px, 1.46vw, 29.09px);
  }
  
}

/* =========================
   TABLET (≤1199px)
========================= */
@media (max-width: 1199px) {
  #page {
    padding-top: 0;
  }

  .grid-header {
    margin-top: 0;
  }
  
    .headline {
    height: auto;
    padding-top: 9px;
    padding-bottom: 13px;
    align-items: center;
    margin-top: 0;
  }

  .headline h1 {
    width: 100%;
    font-size: 18px !important;
    text-align: center;
    padding: 0 16px;
    line-height: 1.2;
    font-weight: bold;
  }

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

  .titleBox {
    height: 50px;
    align-items: center;
    display: flex;
    padding-bottom: 4px;
  }

  .titleBox .det-nav {
    padding: 14px 16px;
    gap: 52px; 
  }

     .det-nav-link,
  .det-nav-inactive {
    padding: 8px 12px;
   }

  .titleBox .det-nav svg {
    width: 44px;
    height: 44px;
  }

   .footer-links a {
    font-size: 14px !important;
  }

  #grid {
    display: block;
    width: 96%;
    max-width: 100%;
    padding: 0 20px 20px 20px;
  }
}

/* =========================
   MOBILE (≤600px)
========================= */
@media (max-width: 600px) {
  #page {
    padding-top: 0;
  }

  .grid-header {
    margin-top: 0;
  }

  .headline {
    height: auto;
    padding-top: 7px;
    padding-bottom: 9px;
    align-items: center;
  }

  .headline h1 {
    width: 100%;
    font-size: 17px !important;
    text-align: center;
    line-height: 1.2;
    font-weight: bold;
  }

  .titleBox {
    height: 46px;
    display: flex;
    align-items: center;
    padding-bottom: 3px;
  }

  .titleBox .det-nav {
    padding: 10px 0;
  }

  .titleBox .det-nav svg {
    width: 44px;
    height: 44px;
  }

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

  .footer-links a {
    font-size: 14px !important;
  }

  #grid {
    display: block;
    padding: 0 4px 20px 4px;
    width: 96%;
    max-width: 100%;
  }

    .det-nav {
    gap: 48px; 
  }
  
  .det-nav-link,
  .det-nav-inactive {
    padding: 8px 8px;
   }
    

  .det-wrap {
    width: 100%;
  }
}

/* =========================
   4K & GROSSBILDSCHIRM (≥2190px)
========================= */
@media (min-width: 2190px) {
  /* Grid-Header */
  .grid-header {
    margin-top: 0;
  }

  .headline {
    height: auto;
    align-items: center;
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .headline h1 {
    font-size: clamp(22.54px, 1.771vw, 38.64px);
    line-height: 1.2;
  }

  .titleBox {
    height: auto;
    min-height: 80px;
    align-items: center;
    padding: 8px 0;
  }

  .titleBox .det-nav svg {
    width: 74px;
    height: 74px;
  }

     .det-wrap {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  /* Navigation (Pfeile) */
  .det-nav {
    gap: clamp(80px, 6vw, 140px);
  }

  .det-nav-link svg,
  .det-nav-inactive svg {
    width: clamp(64px, 3vw, 96px);
    height: clamp(64px, 3vw, 96px);
  }

  .det-nav-link {
    padding: 12px 20px;
  }

  .det-nav-inactive {
    padding: 12px 20px;
  }

   #grid .det-wrap img {
   width: 1000px; 
   max-width: 1000px;      
   height: auto;
   display: block;
    margin: 0 auto;
}

  /* Bildbeschreibung */
  .det-text {
    font-size: clamp(22px, 1.5vw, 36px);
    line-height: 1.4;
    margin-top: 0;
    margin-bottom: 6px;
  }

   .det-label,
  .det-h2,
  .det-h3 {
    font-size: clamp(22px, 1.5vw, 36px);
    line-height: 1.4;
  }
 
  
 #grid {
    display: flex;
    justify-content: center;
    align-items: center;
  }

}
