@font-face {
  font-family: "AvenirNext";
  src: url("AvenirNext.ttf") format("truetype");
  font-weight: 100;
  font-style: normal;
}

@font-face {
  font-family: "CookieRegular";
  src: url("Cookie-Regular.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "MiniProRegular";
  src: url("MinionPro-Regular.otf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

:root {
  --green: #2ecc71;
  --mainGreen: rgb(63, 127, 50);
  --mainYellow: rgb(204, 198, 108);
  --headline: rgb(57, 104, 43);
  --formbackground: rgb(197, 190, 97);
  --black: #222;
  --white: #fff;
}

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  scroll-padding-top: 130px;
}


body {
  font-family: "AvenirNext", sans-serif;
  color: var(--black);
  overflow-x: hidden;
}

.right {
  display: flex;
  text-align: right;
}

.textbottom {
  align-content: flex-end;
  height: 100%;
}

/* Navigation */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background: var(--mainGreen);
  height: 120px;
  z-index: 1000;
}

.shadow {
  -webkit-box-shadow: 0px 2px 16px 0px rgba(51, 51, 51, 0.25);
  -moz-box-shadow: 0px 2px 16px 0px rgba(51, 51, 51, 0.25);
  box-shadow: 0px 2px 16px 0px rgba(51, 51, 51, 0.25);
}

.navbar {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem 2rem;
}

footer {
  background: var(--mainGreen);
  color: white;
  display: flex;
  padding: 1rem 2rem;
  width: 100%;
  height: auto;
  z-index: 1000;
}

.logo {
  color: var(--white);
  width: 141px;
  height: 100px;
  background-image: url(../icons/logo-kartoffelkult.webp);
  background-size: cover;
  background-repeat: no-repeat;
}

.social {
  margin-right: 10px;
  width: auto;
  height: 60px;
}

.icon-description {
  width: 100%;
  max-width: 150px;
}

.icon-text {
  font-size: 1.2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.centerlogo {
  display: flex;
  justify-content: center;
  align-items: center;
}

.mobile-logo {
  display: hidden;
}

.nav-links,
.footer-elements {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 2rem;
}

.footer-elements {
  width: 100%;
  justify-content: space-between;
}

.col a,
.nav-links a,
.footer-elements a {
  text-decoration: none;
  font-weight: bold;
}

.nav-links a,
.footer-elements a {
  color: var(--white);
  transition: color 0.3s;

}

a {
  color: var(--black);
  transition: color 0.3s;
}

label {
  line-height: 40px;
}

a:hover {
  color: var(--headline);
}

.kartoffel-card {
  display: flex;
  align-items: start;
}

.kartoffel-card div {
  text-align: left;
  padding-left: 15px;
}

.kartoffel-card div p {
  font-size: 1rem;

}

.kartoffel-bild {
  width: 120px;
  height: auto;
}

.activeLabel {
  line-height: 40px;
  border-radius: 5px;
  padding: 5px;
  color: var(--white);
  background-color: var(--mainGreen);
}

.nav-links a.activelink,
.footer-elements a.activelink {
  color: var(--black);
}

.nav-links a:hover,
.footer-elements a:hover {
  color: var(--black);
}

.blackback {
  background-color: var(--black);
}

a img {
  display: block;
  /* wichtig, damit sich das Bild ordentlich drehen lässt */
  transition: transform 0.3s ease-in-out;
}

a:hover img {
  transform: scale(0.8)
}

/* Hamburger Menü */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 0.4rem;
  z-index: 1100;
  transition: transform 0.3s ease;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--white);
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* Animation zum "X" */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Overlay Hintergrund */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  z-index: 900;
}

.overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Sektionen */
.section {
  width: 100%;
  max-width: 1920px;
  /*min-height: 100vh;*/
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  margin: 0 auto;
  padding: 0px;
  display: flex;
  flex-direction: column;
  margin-bottom: 5rem;
  /* Standard: untereinander */
}

.fullsize {
  width: 100%;
  height: 800px;
  object-fit: cover;
  object-position: center;
  display: block;
}

.fullsize.specialfamily {
  object-position: 0 45%;
}

/* Karten */
.card {
  background: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  border-radius: 0.5rem;
  padding: 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}


/* Formulare */
form input,
form textarea,
form button {
  width: 100%;
  max-width: 100%;
  padding: 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid #ccc;
  box-sizing: border-box;
  font-family: inherit;
  font-size: 1rem;
}

form input:focus,
form textarea:focus {
  border-color: var(--mainGreen);
  box-shadow: 0 0 5px var(--black);
  outline: none;
}

/* Button */
form button {
  background: var(--black);
  color: #fff;
  border: none;
  border-radius: 0.5rem;
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

form button:hover:not(:disabled) {
  background-color: var(--mainGreen);
  /* dunkleres Grün */
}

/* Bild-Platzhalter */
.placeholder {
  background: #ccc;
  border-radius: 1rem;
  min-height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: #666;
}

/* Grid-System (4-Spalten) */
.row {
  width: calc(100vw - 32px);
  max-width: 1920px;
  overflow: hidden;
  border-radius: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  margin-left: 16px;
  margin-right: 16px;
}

.center {
  flex: 1;
  text-align: center;
}

.text-left {
  text-align: left;
}

.smallfont {
  font-size: 1rem;
}

.col {
  padding: 1rem;
  margin-left: auto;
  margin-right: auto;
  flex: 1;
  text-align: center;
}

.col-1 {
  flex: 0 0 25%;
  max-width: 25%;
}

.col-2 {
  flex: 0 0 50%;
  max-width: 50%;
}

.col-3 {
  flex: 0 0 75%;
  max-width: 75%;
}

.col-4 {
  flex: 0 0 100%;
  max-width: 70%;
}

.col-negativ {
  position: relative;
  top: -80px;
}

.col-full {
  max-width: 100%;
}

.full {
  width: 100%;
}

.marginless {
  margin-left: 0px;
  margin-right: 0px;
}

h1 {
  font-family: "CookieRegular", sans-serif;
  color: var(--headline);
  font-size: 12rem;
  font-weight: 100;
  position: relative;
  margin-bottom: 2rem;
}

h1.klein {
  font-family: "AvenirNext", sans-serif;
  color: var(--black);
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 20px;
}

h2 {
  font-family: "CookieRegular", sans-serif;
  color: var(--white);
  font-size: 4rem;
  font-weight: 100;
  position: relative;
  margin-bottom: 1rem;
}


p {
  position: relative;
  margin-bottom: 20px;
}

.first {
  margin-top: 120px;
}

.green {
  background-color: var(--mainGreen);
  color: white;
}

.yellow {
  background-color: var(--mainYellow);
}

.black {
  color: var(--black);
}

.green h1 {
  color: var(--white);
}

article {
  width: 100%;
}

.icon-anker {
  position: relative;
  width: 100%;
}

.icon {
  position: absolute;
  width: 150px;
  height: 150px;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

.icon-chips {
  background-image: url(../icons/Chips.webp);
  top: -550px;
  left: calc(100% - 250px);
  transform: rotate(25deg);
}

.icon-pommes {
  background-image: url(../icons/pommes.webp);
  top: -50px;
  left: 50px;
  transform: rotate(-25deg);

}

.quadrat {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
  display: block;
  margin: 0 auto;
  border-radius: 1rem;
}

.quadrat.komplett {
  padding: 2rem;
  object-fit: contain;
}

.mitte {
  display: flex;
  align-items: center;
  justify-content: center;
}

.produktgruppe,
.automathofladen {
  display: none;
}


.visible {
  display: flex;
  margin-left: auto;
  margin-right: auto;
}

.scroll {
  margin-bottom: 100px;
}

.welle {
  background-image: url('../icons/welle.svg');
  background-repeat: repeat-x;
  background-position: top;
  padding-top: 75px;
}

.chatbox {
  margin-left: 15%;
  width: 50%;
}

.chatbox>div {
  background-color: var(--mainGreen);
  border-radius: 1rem;
  color: var(--white);
  padding: 3rem;

}

.chatbox>img {
  object-position: top;
  position: relative;
  left: 65%;
  top: -200px;
  width: 400px;
  height: 400px;
  object-fit: cover;
  border-radius: 50%;
}

.chatbox h1 {
  font-size: 8rem
}

@media (max-width: 1400px) {
  .fullsize {
    height: 700px;
  }

  .chatbox>img {
    top: -175px;
    width: 350px;
    height: 350px;
  }
}

@media (max-width: 1280px) {
  .fullsize {
    height: 600px;
  }

  .icon {
    width: 120px;
    height: 120px;
  }

  .icon-chips {
    top: -450px;
    left: calc(100% - 220px);
  }

  h1 {
    font-size: 11rem;
  }

  .section {
    font-size: 1.25rem;
  }

  .col-negativ {
    top: -70px;
  }

  .chatbox>img {
    top: -160px;
    width: 320px;
    height: 320px;
  }
}

@media (max-width: 1024px) {

  .col-4 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .col-negativ {
    top: -60px;
  }

  .fullsize {
    height: 500px;
  }

  .icon {
    width: 120px;
    height: 120px;
  }

  .icon-chips {
    top: -400px;
    left: calc(100% - 170px);
  }

  h1 {
    font-size: 10rem;
  }

  .mobile-logo {
    color: var(--white);
    width: 141px;
    height: 100px;
    background-image: url(../icons/logo-kartoffelkult.webp);
    background-size: cover;
    background-repeat: no-repeat;
  }

  .logo {
    display: none;
  }

  .navbar {
    justify-content: space-between;
    align-items: center;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -250px;
    height: 100%;
    width: 250px;
    background: var(--mainGreen);
    flex-direction: column;
    align-items: flex-start;
    padding: 4rem 2rem;
    gap: 1.5rem;
    transition: right 0.3s ease;
    z-index: 1000;
  }

  .nav-links.active {
    right: 0;
  }

  .hamburger {
    display: flex;
  }

  .chatbox>img {
    top: -125px;
    width: 250px;
    height: 250px;
  }

}

@media (max-width: 960px) {
  h1 {
    font-size: 8rem;
  }

  .chatbox {
    margin-left: unset;
    width: unset;
  }

  .chatbox>img {
    left: unset;
    top: -50px;
    width: 200px;
    height: 200px;
  }
}

@media (max-width: 680px) {

  .col-1 {
    flex: 0 0 50%;
    max-width: 100%;
  }

  .col-2,
  .col-3,
  .col-4 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .col-negativ {
    top: 0px;
  }

  .fullsize {
    height: 400px;
  }

  .icon {
    width: 100px;
    height: 100px;
  }

  .icon-chips {
    top: -300px;
    left: calc(100% - 120px);
  }

  h1 {
    font-size: 4.5rem;
  }

  h2 {
    font-size: 3rem;
  }

  .chatbox h1 {
    font-size: 4rem
  }

  .chatbox {

    margin-left: 0px;
    margin-right: 0px;
  }

  .kartoffel-card {
    justify-content: center;
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .footer-elements {
    width: 100%;
    flex-direction: column-reverse;
  }
}

/* =============== Custom Consent Manager Styling =============== */

/* Consent Banner */
.consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, rgb(63, 127, 50) 0%, #2d5a2d 100%);
  padding: 20px;
  box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.4);
  z-index: 9999;
  font-family: "AvenirNext", sans-serif;
  color: #fff;
}

.consent-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.consent-content h2 {
  margin: 0 0 8px 0;
  font-size: 1.75rem;
  font-weight: 600;
}

.consent-content p {
  margin: 0;
  font-size: 14px;
  opacity: 0.95;
}

.consent-buttons {
  display: flex;
  gap: 10px;
  white-space: nowrap;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.btn-primary,
.btn-secondary {
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: "AvenirNext", sans-serif;
}

.btn-primary {
  background-color: rgb(204, 198, 108);
  color: #222;
}

.btn-primary:hover {
  background-color: #d4d4a0;
  box-shadow: 0 2px 8px rgba(204, 198, 108, 0.3);
}

.btn-secondary {
  background-color: transparent;
  color: rgb(204, 198, 108);
  border: 2px solid rgb(204, 198, 108);
}

.btn-secondary:hover {
  background-color: rgba(204, 198, 108, 0.1);
}

/* Consent Modal */
.consent-modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  font-family: "AvenirNext", sans-serif;
}

.consent-modal-content {
  background-color: #fff;
  margin: 5% auto;
  padding: 0;
  border-radius: 8px;
  width: 90%;
  max-width: 600px;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.consent-modal-header {
  background-color: rgb(63, 127, 50);
  color: #fff;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 8px 8px 0 0;
}

.consent-modal-header h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
}

.modal-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.modal-close:hover {
  transform: rotate(90deg);
}

.consent-modal-body {
  padding: 20px;
}

.consent-category {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}

.consent-category:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.consent-category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.consent-category h3 {
  margin: 0;
  font-size: 16px;
  color: rgb(63, 127, 50);
  font-weight: 600;
}

.consent-category p {
  margin: 10px 0 0 0;
  font-size: 14px;
  color: #666;
  line-height: 1.5;
}

.badge-required {
  background-color: rgb(63, 127, 50);
  color: #fff;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
}

/* Toggle Switch */
.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.3s;
  border-radius: 24px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}

input:checked+.slider {
  background-color: rgb(63, 127, 50);
}

input:checked+.slider:before {
  transform: translateX(26px);
}

.consent-modal-footer {
  padding: 20px;
  border-top: 1px solid #eee;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.consent-modal-footer .btn-primary,
.consent-modal-footer .btn-secondary {
  flex: 0 1 auto;
}

.responsive-iframe {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border: none;
}

.iframe-placeholder {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: #f0f0f0;
  border: 2px dashed #ccc;
  border-radius: 4px;
  padding: 20px;
  text-align: center;
  gap: 16px;
}

.iframe-placeholder p {
  margin: 0;
  color: #666;
  font-size: 14px;
}

.btn-load-iframe {
  background-color: rgb(63, 127, 50);
  color: #fff;
  border: none;
  padding: 10px 24px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: "AvenirNext", sans-serif;
}

.btn-load-iframe:hover {
  background-color: #2d5a2d;
  box-shadow: 0 2px 8px rgba(63, 127, 50, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
  .consent-container {
    flex-direction: column;
    align-items: flex-start;
  }

  .consent-buttons {
    width: 100%;
    justify-content: flex-start;
  }

  .consent-modal-content {
    width: 95%;
    margin: 20% auto;
  }

  .consent-modal-footer {
    flex-direction: column;
  }

  .consent-modal-footer .btn-primary,
  .consent-modal-footer .btn-secondary {
    width: 100%;
  }
}