/* Reset + Basics */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif; color: #0d2030; }
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
:root {
  --brand: #0e5aa7;
  --accent: #15c3ff;
  --bg: #f6fbff;
  --muted: #6b85a0;
  --trop-green: #3ec28f;
  --trop-yellow: #ffe066;
  --trop-orange: #ffb347;
  --trop-pink: #ff7eb9;
  --trop-leaf: #1fa97c;
  --leaf-pattern: url('../img/leaf-pattern.png');
  --leaf-divider: url('../img/leaf-divider.png');
}

/* Background gradient for body */
body {
  background: linear-gradient(120deg, var(--bg) 0%, #e0ffe9 50%, #b2f7ef 100%);
  background-attachment: fixed;
}

/* Subtle, blurred leaf pattern for hero and band */
.hero, .band {
  position: relative;
  background-image: linear-gradient(120deg, #e6f4ea 0%, #b2f7ef 100%);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.hero::before,
.band::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url('../img/leaf-pattern.png') repeat;
  background-size: 320px;
  opacity: 0.13;
  filter: blur(6px);
  pointer-events: none;
}
.hero > *, .band > * {
  position: relative;
  z-index: 1;
}

.container { width: min(1120px, 92%); margin-inline: auto; }
.btn { background: var(--brand); color: #fff; padding: 12px 18px; border-radius: 999px; display: inline-block; font-weight: 700; transition: transform .15s ease, opacity .15s ease; }
.btn:hover { transform: translateY(-1px); opacity: .95; }
.btn.ghost { background: transparent; color: var(--brand); border: 2px solid var(--brand); }
.btn.small { padding: 8px 12px; font-weight: 600; }
.link { color: var(--brand); font-weight: 700; }
.accent { color: var(--accent); }
.page-pad { padding: 96px 0 64px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.85); backdrop-filter: blur(8px); border-bottom: 1px solid #e6eef6; }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.logo { font-weight: 800; letter-spacing: .08em; }
.logo img {
  height: 60px !important;
  width: auto !important;
  display: block;
  margin-top: -20px;
  margin-bottom: -20px;
}
.nav { display: flex; gap: 20px; align-items: center; }
.nav a { color: #143047; opacity: .9; }
.nav a.active { color: var(--brand); font-weight: 700; }
.hamburger { display: none; background: none; border: 0; padding: 6px; }
.hamburger span { display: block; width: 24px; height: 2px; background: #143047; margin: 5px 0; }

/* Hero */
.hero { position: relative; background: var(--bg); overflow: hidden; }
.hero-bg { width: 100%; height: 62vh; object-fit: cover; filter: saturate(1.1) contrast(1.05); opacity: .88; }
.hero-content { position: absolute; inset: 0; display: grid; grid-template-columns: 1.2fr .8fr; align-items: center; }
.hero-copy { padding-left: clamp(16px, 6vw, 60px); }
.hero h1 { font-size: clamp(28px, 4vw, 52px); line-height: 1.08; margin: 0 0 16px; }
.hero p { font-size: clamp(16px, 2.1vw, 18px); color: #11324b; max-width: 560px; }
.hero-cta { margin-top: 18px; display: flex; gap: 12px; }
.hero-can { align-self: end; justify-self: center; transform: translateY(16px); }
.hero-can img { width: clamp(180px, 30vw, 360px); filter: drop-shadow(0 12px 28px rgba(0,0,0,.18)); }

/* USPs */
.usps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 56px 0; }
.usp { background: #fff; padding: 18px; border-radius: 16px; border: 1px solid #e6eef6; box-shadow: 0 6px 24px rgba(13,32,48,.04); }
.usp h3 { margin: 4px 0 8px; }
.usp p { color: var(--muted); }

/* Band */
.band { background: url('../img/leaf-pattern.png') center/auto 520px repeat, linear-gradient(180deg,#e8f6ff,#f6fbff); border-block: 1px solid #d9ecfa; }
.band-inner { padding: 56px 0; text-align: center; }
.band h2 { margin: 0 0 8px; }

/* Produktkarten */
.products-preview { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; padding: 56px 0; }
.card { background: #fff; border: 1px solid #e6eef6; border-radius: 20px; overflow: hidden; box-shadow: 0 6px 24px rgba(13,32,48,.04), 0 0 0 4px #e0ffe9; transition: transform 0.18s cubic-bezier(.4,0,.2,1), box-shadow 0.18s; position: relative; }
.card:hover {
  transform: translateY(-8px) scale(1.04) rotate(-1deg);
  box-shadow: 0 16px 40px rgba(62,194,143,0.18), 0 0 0 6px #ffe066;
  border-color: var(--trop-green);
}
.card-body { padding: 16px 16px 18px; }
.card h3 { margin: 0 0 6px; }

/* Newsletter */
.newsletter { background: linear-gradient(120deg, #e0ffe9 0%, #fffbe6 100%); border-top: 2px solid var(--trop-green); }
.news-inner { padding: 48px 0; text-align: center; }
.news-form { display: inline-flex; gap: 8px; margin-top: 8px; }
.news-form input { padding: 12px 14px; border: 1px solid #cfe3f6; border-radius: 999px; min-width: 260px; }

/* Produktseite */
.product-hero { display: grid; grid-template-columns: .9fr 1.1fr; gap: 24px; align-items: center; }
.product-can { width: clamp(200px, 36vw, 420px); filter: drop-shadow(0 12px 28px rgba(0,0,0,.18)); }

.specs { padding-left: 18px; }
.specs li { margin: 8px 0; }
.nutrition .table-scroll { max-width: 520px; border: 1px solid #e6eef6; border-radius: 12px; overflow: auto; }
.nutrition table { width: 100%; border-collapse: collapse; }
.nutrition th, .nutrition td { padding: 10px 12px; border-bottom: 1px solid #e9f0f6; text-align: left; }

/* Zweispalter */
.two-col { display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px; align-items: center; }

/* Wo kaufen */
.cards-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }

/* Kontakt */
.contact-form .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.contact-form input, .contact-form textarea { width: 100%; padding: 12px 14px; border: 1px solid #d7e6f4; border-radius: 10px; }
.contact-form button { margin-top: 10px; }

/* Kontaktformular: Vorname/Nachname nebeneinander, Rest volle Breite */
.contact-form .grid.grid-names {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.contact-form .fullwidth,
.contact-form textarea.fullwidth {
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 16px;
  display: block;
}
.contact-form input,
.contact-form textarea {
  margin-bottom: 16px;
}
@media (max-width: 600px) {
  .contact-form .grid.grid-names {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

/* Kontaktformular mobile optimieren */
@media (max-width: 700px) {
  .contact-form {
    padding: 0 8px;
    width: 100%;
    max-width: 100vw;
  }
  .contact-form .fullwidth,
  .contact-form input,
  .contact-form textarea {
    width: 100%;
    min-width: 0;
    font-size: 1em;
    box-sizing: border-box;
  }
  .contact-form .grid.grid-names {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .contact-form button.btn {
    width: 100%;
    margin-top: 12px;
    font-size: 1.1em;
  }
  .contact-form textarea {
    min-height: 120px;
  }
  main.container.page-pad {
    padding: 12px 0;
  }
  .contact-form input,
  .contact-form textarea {
    margin-bottom: 10px;
  }
}

/* Footer */
.site-footer { background: linear-gradient(90deg, #0c1e2d 80%, #3ec28f 100%); color: #fffbe6; position: relative; }
.site-footer::before {
  content: '';
  position: absolute;
  left: 0; right: 0; top: -32px; height: 32px;
  background: url('../img/leaf-divider.png') repeat-x center/60px;
  opacity: 0.25;
  pointer-events: none;
}
.footer-grid { display: grid; grid-template-columns: 1.1fr .6fr .6fr; gap: 24px; padding: 36px 0; }
.footer-grid h4 { margin: 0 0 10px; color: #fff; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.footer-grid a { color: #cfe0ef; }
.copyright { border-top: 1px solid #123149; padding: 12px 0 18px; text-align: center; font-size: 14px; }

/* Mobile */
@media (max-width: 960px){
  .header-inner {
    flex-direction: row;
    align-items: center;
    padding: 10px 0;
    position: relative;
  }
  .nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    background: rgba(255,255,255,.98);
    flex-direction: column;
    padding: 24px 0 24px 0;
    border-bottom: 1px solid #e6eef6;
    transform: translateY(-120%);
    transition: transform .2s ease;
    z-index: 999;
    box-shadow: 0 8px 32px rgba(62,194,143,0.13);
  }
  .nav.open {
    transform: translateY(0);
  }
  .nav a {
    padding: 16px 0;
    font-size: 1.2em;
    text-align: center;
    border-bottom: 1px solid #e6eef6;
  }
  .hamburger {
    display: block;
    position: absolute;
    right: 16px;
    top: 18px;
    z-index: 1000;
  }
  /* Sprachbuttons im Header ausblenden, im Menü anzeigen */
  .lang-switcher {
    position: static;
    display: none;
  }
  .nav.open .lang-switcher {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 18px 0 0 0;
  }
  .hero-content {
    position: static;
    display: block;
    padding: 24px 0 0 0;
  }
  .hero-copy {
    padding: 0 12px;
    text-align: center;
  }
  .hero h1 {
    font-size: 2em;
  }
  .products-subline {
    font-size: 1em;
    margin-bottom: 12px;
  }
  .hero-can {
    display: none;
  }
  .usps {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 32px 0;
  }
  .usp {
    padding: 14px;
    font-size: 1em;
  }
  .products-preview {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 32px 0;
  }
  .card {
    max-width: 100%;
    margin: 0 auto 18px auto !important;
  }
  .band-inner {
    padding: 32px 0;
  }
  .newsletter {
    padding: 24px 0;
  }
  .news-inner {
    padding: 24px 0;
  }
  .news-form {
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }
  .news-form input {
    min-width: 100%;
  }
  .site-footer {
    padding: 0;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 24px 0;
    text-align: center;
  }
  .footer-grid h4 {
    margin-top: 18px;
  }
  .copyright {
    font-size: 13px;
    padding: 10px 0 14px;
  }
  .about-section .two-col {
    flex-direction: column;
    gap: 18px;
  }
  .about-section img {
    margin-left: 0;
    margin-top: 18px;
    max-width: 100%;
  }
  .nutrition-facts.modern.nutrition-box-gesamt {
    max-width: 98vw;
    padding: 12px 2vw 10px 2vw;
    font-size: 0.97em;
  }
  .nutrition-facts table th,
  .nutrition-facts table td {
    padding: 7px 4px;
    font-size: 0.96em;
  }
  .contact-form .grid.grid-names {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

/* Extra kleine Geräte */
@media (max-width: 480px){
  .hero h1 {
    font-size: 1.3em;
  }
  .products-headline {
    font-size: 1.3em;
  }
  .band-inner h2 {
    font-size: 1.1em;
  }
  .footer-grid .logo {
    font-size: 1em;
  }
  .logo img {
    height: 38px !important;
  }
  .logo span {
    font-size: 1em;
    margin-left: 4px;
  }
}

/* --- Tropical Theme Additions --- */
/* Tropical accent for buttons */
.btn {
  background: linear-gradient(90deg, var(--trop-green) 0%, var(--trop-yellow) 100%);
  color: #0c1e2d;
  border: none;
  box-shadow: 0 2px 8px rgba(62,194,143,0.08);
}
.btn.ghost {
  background: transparent;
  color: var(--trop-green);
  border: 2px solid var(--trop-green);
}
.btn:hover {
  background: linear-gradient(90deg, var(--trop-pink) 0%, var(--trop-orange) 100%);
  color: #fff;
}

/* Tropical accent for links */
.link {
  color: var(--trop-pink);
}
.link:hover {
  color: var(--trop-orange);
}

/* Headings with tropical gradient text */
h1, h2, h3, h4 {
  background: linear-gradient(90deg, var(--trop-green), var(--trop-pink), var(--trop-yellow));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Tropisches Blatt als Divider unter Überschriften */
h1::after, h2::after {
  content: '';
  display: block;
  margin: 12px auto 0;
  width: 60px;
  height: 32px;
  background: url('../img/leaf-divider.png') repeat-x center/contain;
  opacity: 0.7;
}

/* Tropisches Blatt als Footer-Band */
.site-footer::before {
  content: '';
  position: absolute;
  left: 0; right: 0; top: -32px; height: 32px;
  background: url('../img/leaf-divider.png') repeat-x center/60px;
  opacity: 0.25;
  pointer-events: none;
}

/* Optional: Tropisches Blatt als dezentes Muster im Hintergrund */
.hero::before,
.band::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url('../img/leaf-divider.png') repeat;
  background-size: 120px;
  opacity: 0.07;
  filter: blur(2px);
  pointer-events: none;
}

/* Add a subtle border to product cards */
.p-card {
  border: 2px solid var(--trop-green);
  border-radius: 18px;
  transition: border-color 0.2s;
}
.p-card:hover {
  border-color: var(--trop-pink);
}

/* Tropical accent for USP icons/text */
.usp {
  border: 2px solid var(--trop-green);
  background: #fffbe6;
  box-shadow: 0 2px 12px rgba(255,224,102,0.08);
}
.usp h3 {
  color: var(--trop-green);
  background: none;
  -webkit-text-fill-color: initial;
}

/* Responsive tweaks for tropical backgrounds */
@media (max-width: 960px){
  .hero, .band {
    background-size: 180px, cover;
  }
  .site-footer::before {
    background-size: 48px;
  }
}

/* Modernes, dynamisches Nährwert-Design */
.nutrition-facts.modern {
  margin: 32px auto 0 auto;
  background: linear-gradient(120deg, #e0ffe9 0%, #fffbe6 100%);
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(62,194,143,0.13), 0 0 0 3px #b2f7ef44;
  padding: 20px 22px 14px 22px;
  max-width: 320px;
  width: 100%;
  animation: popIn 0.5s cubic-bezier(.4,0,.2,1);
  border: 1.5px solid #b2f7ef;
  transition: box-shadow 0.18s, border-color 0.18s;
}
.nutrition-facts.modern:hover {
  box-shadow: 0 8px 32px rgba(62,194,143,0.18), 0 0 0 5px #ffe066;
  border-color: #ffe066;
}
.nutrition-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.18em;
  font-weight: 700;
  color: #1fa97c;
  margin-bottom: 12px;
  letter-spacing: 0.01em;
}
.nutrition-icon {
  font-size: 1.4em;
  filter: drop-shadow(0 2px 6px #b2f7ef88);
  background: linear-gradient(90deg, #3ec28f 60%, #ffe066 100%);
  border-radius: 50%;
  padding: 2px 6px;
}
.nutrition-facts.modern th.important {
  color: #ff7eb9;
}
@media (max-width: 600px) {
  .nutrition-facts.modern {
    max-width: 95vw;
    padding: 14px 4vw 10px 4vw;
  }
}
@keyframes popIn {
  from { transform: scale(0.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* Language Switcher Styles */
.lang-switcher {
  display: flex;
  gap: 8px;
  position: absolute;
  right: 32px;
  top: 18px;
  z-index: 100;
}
.lang-btn {
  background: #e6f4ea;
  color: #143047;
  border: none;
  border-radius: 999px;
  padding: 6px 16px;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: background .15s, color .15s;
}
.lang-btn.active,
.lang-btn:hover {
  background: #3ec28f;
  color: #fff;
}
@media (max-width: 700px) {
  .lang-switcher {
    right: 12px;
    top: 12px;
  }
}

/* Sprachbuttons im Header ausblenden, im Menü anzeigen */
@media (max-width: 960px) {
  .lang-switcher {
    position: static;
    display: none;
  }
  .nav.open .lang-switcher {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 18px 0 0 0;
  }
}

/* Mobile: Logo und Schrift im Header kleiner und näher zusammen */
@media (max-width: 960px) {
  .logo img {
    height: 48px !important;
    margin-top: -8px;
    margin-bottom: -8px;
  }
  .logo span {
    font-size: 1.15em;
    margin-left: 6px;
  }
}

@media (max-width: 480px) {
  .logo img {
    height: 38px !important;
  }
  .logo span {
    font-size: 1em;
    margin-left: 4px;
  }
}

/* Mobile: Sprachbuttons und Hamburger über das Logo setzen */
@media (max-width: 480px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 8px 0 0 0;
    position: relative;
  }
  .lang-switcher,
  .hamburger {
    position: static;
    margin-bottom: 4px;
  }
  .lang-switcher {
    align-self: flex-end;
    margin-right: 48px;
    margin-top: 0;
    margin-bottom: 0;
    gap: 6px;
  }
  .hamburger {
    align-self: flex-end;
    margin-right: 0;
    margin-top: 0;
    margin-bottom: 0;
  }
  .logo {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 0;
    margin-bottom: 0;
    width: 100%;
    justify-content: flex-start;
  }
  .logo img {
    height: 32px !important;
    margin-top: 0;
    margin-bottom: 0;
  }
  .logo span {
    font-size: 0.95em;
    margin-left: 2px;
  }
}

/* Optional: Hamburger und Sprachbuttons nebeneinander */
@media (max-width: 480px) {
  .header-inner > .lang-switcher,
  .header-inner > .hamburger {
    display: inline-block;
    vertical-align: middle;
  }
}