/*CSS Reset from joshwcomeau.com */

/* 1. Use a more-intuitive box-sizing model */
*, *::before, *::after {
  box-sizing: border-box;
}

/* 2. Remove default margin */
*:not(dialog) {
  margin: 0;
}

/* 3. Enable keyword animations */
@media (prefers-reduced-motion: no-preference) {
  html {
    interpolate-size: allow-keywords;
  }
}



/* 6. Improve media defaults */
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}



/* 8. Avoid text overflows */
p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

/* 9. Improve line wrapping */
p {
  text-wrap: pretty;
}
h1, h2, h3, h4, h5, h6 {
  text-wrap: balance;
}

/*
  10. Create a root stacking context
*/
#root, #__next {
  isolation: isolate;
}

/* ===== BASE COLORS =====
  Text: color: #383838;
  Basegreen: #7da377;


*/



/* ===== BASE STYLES ===== */
h1, h2, h3, p, input, table, th, td  {
  text-align: center;
  font-weight: normal;
  color: #383838;
  line-height: 1.7;
  letter-spacing: 0.05em;
    font-family: "Roboto", "Arial", "Helvetica", "sans-serif";
}



/* ===== TYPOGRAPHY ===== */
h2 { font-size: 2.0em; }
p   { font-size: 1.3em; margin: 0.1em;  }

input {
  font-size: 1.0em;
  font-family: "Roboto", "Arial", "Helvetica", "sans-serif";
}

/* ===== LAYOUT ===== */
body {

  background-color: #7da377;
  height: 100%;
  width: 100%;
 min-width: 900px;

    /* 4. Add accessible line-height */
    line-height: 1.5;
    /* 5. Improve text rendering */
    -webkit-font-smoothing: antialiased;
}


/* ===== LINKS ===== */
a {
  text-decoration: none;
}

a:link    { color: #7da377; text-decoration: none; }
a:visited { color: #8dbc87; text-decoration: none;}
a:hover   { color: #7da377; opacity: 0.7; text-decoration: none; letter-spacing: 0.1em }
a:active  { color: #7da377; text-decoration: none;}




form { line-height: 1.5; }

input {
  line-height: 1.4;
  width: 50%;
}

/* ===== GRID LAYOUT für bestellen ===== */
.wrap { }

.spalte-1 { float: left; width: 49%; text-align: right; }
.spalte-2 { float: left; width: 2%; }
.spalte-3 { float: left; width: 49%; text-align: left; }


/* ===== GRID LAYOUT für kartoffeln ===== */


    .grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      grid-gap: 6em 3em;
      padding: 0em;
      margin: 0em;
      place-items: center;

    }

    .featured.child {
      grid-column: span 2;

    }

    .child {

    }

    .img1-1 {
      aspect-ratio: 1/1;
      width: 100%;
      object-fit: cover;

    }

    .img2-1 {
      aspect-ratio: 2/1;
      width: 100%;
      object-fit: cover;

    }

    .textleft {
      text-align: left;
    }
    .textright {
      text-align: right;
    }

    .centerimg
    {  display: block;
  margin: auto;
  width: 50%;}




/* ===== BOXES & CONTAINERS ===== */
#box {
background-color: #f8f8f8;
  width: 92%;
  height: 90%;
  margin: 2% 4%;
  padding: 5%;
  text-align: center;


}

hr {
  margin: 20px 2px 25px;
  border: 1.5px solid #383838;
  border-radius: 1px;
}

table, th, td {
  border-bottom: 0px solid black;
  padding: 1%;
  line-height: 2;

}

table { border-spacing: 0; 
font-size: 1em;
}

table p {font-size: 1.1em;}

.rechts { text-align: right; }
.links  { text-align: left; }

.flexbox {
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  font-size: 0.9em;

}

.flexbox-grün
{
  background-color: #7da377;
    display: flex;
      flex-direction: row;
      justify-content: space-evenly;
      width: 100%;
      padding: 0.2em 0;
        font-size: 0.9em;
        ;
}

#grauebox {
  border-top: 3px solid #383838;
  border-bottom: 3px solid #383838;
  margin: 5% 0px;
  padding: 1% 0%;
  width: 100%;
  border-radius: 1px;
}

#fussbox {
  border-top: 3px solid #383838;
  margin: 5% 0px;
  width: 100%;
  border-radius: 1px;
}



/* ===== BUTTONS ===== */

button {
  background-color: #7da377;
  border-radius: 5px;
  border: none;
  width: 40%;
  line-height: 2;
  margin: 1%;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 1.4em;
  color: #dfdfdf;
  box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2), 0 6px 20px 0 rgba(0,0,0,0.19);
    transition: transform 0.3s ease;
}

button:hover { opacity: 0.9;
  transform: scale(1.05); }

/* ===== CARDS & THUMBNAILS ===== */
.aktuell {
  width: 25%;
  padding: 2%;
  margin: 1%;
  display: inline-block;
  box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2), 0 6px 20px 0 rgba(0,0,0,0.19);
    transition: transform 0.3s ease;
}

.aktuell:hover {
  transform: scale(1.05);
  opacity: 0.9;
}


/*Klasse definiert bilder mit Rahmen etc */

.kartoffeln{
  padding: 7%;
  display: inline-block;
  box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2), 0 6px 20px 0 rgba(0,0,0,0.19);
    transition: transform 0.3s ease;
}

.kartoffeln:hover {
  transform: scale(1.05);
  opacity: 0.9;

}



.pan {
  width: 95%;
  margin: 2.5%;
  box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2), 0 6px 20px 0 rgba(0,0,0,0.19);
}

/* ===== GALLERY ===== */

.gallery-scroll {
  display: flex;
  width: 96%;
  overflow-x: auto;
  padding: 5% 2%;
  margin: 0% 2%;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  gap: 7%;
}

.gallery-item {
  flex: 0 0 auto;
  width: 28%;
  box-sizing: border-box;

}



/* ===== LIGHTBOX ===== */
#lightbox {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.9);
}

#lightbox img {
  max-width: 90%;
  max-height: 80vh;
  display: block;
  margin: auto;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

#lightbox-controls {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.lightbox-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.01);
  z-index: 9999;
  justify-content: center;
  align-items: center;

}

.lightbox-content {

  cursor: pointer;
  object-fit: contain;
}

.close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: white;
  font-size: 40px;
  cursor: pointer;
  z-index: 1000;
}

.nav-btn {
  position: absolute;
  color: white;
  border: none;
  font-size: 40px;
  cursor: pointer;
  z-index: 1000;
  user-select: none;
  width: 1em;
  transition: transform 0.3s ease;
  background-color: transparent;
  box-shadow: revert;
}

.prev-btn {

  left: 1%;
}

.next-btn {
  right: 1%;
}

.nav-btn:hover {
 transform: scale(1.05);
}
/* Swipe indicators */
.swipe-indicator {
  position: absolute;
  bottom: 20px;
  width: 100%;
  text-align: center;
  color: white;
  font-size: 14px;
  opacity: 0.7;
  display: none;
}
