:root{
  --bg:#ffffff;
  --text:#0b1220;
  --muted:#6b7280;
  --line:#e5e7eb;
  --accent:#15BBF0;
  --card:#ffffff;
  --shadow:0 10px 30px rgba(0,0,0,.08);
  --radius:14px;
}

*{box-sizing:border-box}
body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.flex{display:flex}
.flex-vertical{flex-direction:column}
.flex-column{flex-direction:column}
.flex-space-between{justify-content:space-between}
.flex-grow-1{flex:1}
.centered-content{
  min-height:100vh;
  max-width:860px;
  margin:0 auto;
  padding:16px 14px 0;
}

/* Header */
.app-header.header{
  position:sticky;
  top:0;
  z-index:10;
  background:rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom:1px solid var(--line);
  padding:12px 0;
  display:flex;
  align-items:center;
  gap:14px;
}

.logo{
  height:28px;
  width:auto;
}
.lang-toggle img{
  width:28px;
  height:28px;
  display:block;
}

.lang-toggle-overlay{
  position:absolute;
  top:1px;
  right:1px;
  z-index:5;
  background:#fff;
  border-radius:50%;
  padding:4px;
  box-shadow:0 4px 12px rgba(0,0,0,.15);
}

.lang-toggle-overlay img{
  width:26px;
  height:26px;
  display:block;
}

/* Tabs */
.tabs-ctn{
  display:flex;
  gap:8px;
  flex:1;
  justify-content:flex-end;
}
.tab-btn{
  appearance:none;
  border:1px solid var(--line);
  background:#fff;
  color:var(--text);
  border-radius:999px;
  padding:8px 12px;
  font-weight:600;
  font-size:13px;
  cursor:pointer;
}
.tab-btn.is-active{
  border-color:var(--accent);
  box-shadow:0 0 0 2px rgba(21,187,240,.15);
}

/* Sections */
#scroll-content{padding-top:10px}
.section{
  margin:12px 0 0;
  background:var(--card);
  border:1px solid var(--line);
  box-shadow:var(--shadow);
  border-radius:var(--radius);
  padding:14px;
}
.section.hero{
  box-shadow: none;
}

.section.hero .product-name{
  margin-top: 6px;
}

.section.hero .product-description{
  margin-bottom: 2px;
}
.title{font-size:16px; margin-bottom:10px}
.font-bold{font-weight:700}
.font-regular{font-weight:500}
.font-light{font-weight:300}

/* Panels */
.tab-panel{display:none}
.tab-panel.is-active{display:block}

/* Product */
.img-ctn{
  display:flex;
  justify-content:center;
  align-items:center;
  padding:10px;
}
.img-ctn img{
  max-width:220px;
  max-height:320px;
  object-fit:contain;
}
.img-placeholder{
  width:220px;
  height:260px;
  border:1px dashed var(--line);
  border-radius:12px;
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--muted);
}

.product-name{
  font-size:22px;
  margin-top:6px;
  text-align:center;
}
.product-description{
  margin-top:10px;
  color:#111827;
  line-height:1.45;
}

/* Infos grid */
.infos-ctn{margin-top:14px}
.fields-ctn{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:10px 12px;
}
.field{
  border:1px solid var(--line);
  border-radius:12px;
  padding:10px;
}
.label{
  color:var(--muted);
  font-size:12px;
  margin-bottom:4px;
}
.value{
  font-size:14px;
}

/* Ingredients */
.ingredient-list{
  padding:8px 0 6px;
  line-height:1.45;
}
.inline-block{display:inline-block}
.empty{color:var(--muted)}

/* Simple table */
.simple-table{
  margin-top:12px;
  border:1px solid var(--line);
  border-radius:12px;
  overflow:hidden;
}
.simple-row{
  display:grid;
  grid-template-columns: 1fr 120px;
  gap:10px;
  padding:10px 12px;
  border-top:1px solid var(--line);
}
.simple-header{background:#f9fafb; border-top:none}
.c2{text-align:right}

/* Nutrition */
.nutrition-table{margin-top:8px}
.table-header{
  border-bottom:1px solid var(--line);
  padding:8px 0;
}
.table-header .daily{width:120px; text-align:right}
.row.nutrient{
  display:flex;
  align-items:flex-start;
  gap:10px;
  padding:10px 0;
  border-bottom:1px solid var(--line);
}
.row.nutrient:last-child{border-bottom:none}
.row .name{flex:1}
.Cell{width:120px; text-align:right}
.hint{
  margin-top:10px;
  color:var(--muted);
  font-size:12px;
}

/* Recycling */
.recycling-icons{
  display:flex;
  gap:18px;
  justify-content:center;
  flex-wrap:wrap;
  padding:8px 0 4px;
}
.recycling-icons img{
  height:110px;
  width:auto;
}

/* Landing */
.landing{
  margin-top:24px;
  padding:24px 18px;
  text-align:center;
}
.landing-name{
  font-size:24px;
  margin-bottom:14px;
}
.landing-text{
  margin:8px 0;
  line-height:1.5;
}
.landing-online{
  margin-top:16px;
  color:var(--accent);
}
.gtin-form{
  display:flex;
  gap:8px;
  justify-content:center;
  margin-top:14px;
  flex-wrap:wrap;
}
.gtin-input{
  border:1px solid var(--line);
  border-radius:999px;
  padding:10px 16px;
  font-size:15px;
  width:min(280px, 100%);
  outline:none;
}
.gtin-input:focus{
  border-color:var(--accent);
  box-shadow:0 0 0 2px rgba(21,187,240,.15);
}
.gtin-submit{
  appearance:none;
  border:1px solid var(--accent);
  background:var(--accent);
  color:#fff;
  border-radius:999px;
  padding:10px 20px;
  font-weight:600;
  font-size:14px;
  cursor:pointer;
}
.gtin-error{
  margin-top:12px;
  color:#b91c1c;
}

/* Footer */
/* Footer: wrapper (dein footer ist auch .section, daher keine extra border-top nötig) */
.footer{
  margin:14px 0 18px;
  padding:14px;
  display:block;              /* statt flex */
  border-top:0;               /* optional, weil .section schon border hat */
}

/* Inneres Layout */
.footer-inner{
  display:flex;
  align-items:center;
  gap:14px;
  flex-wrap:wrap;             /* wichtig für mobile */
}

/* Logo-Bereich */
.footer-logo{
  flex:0 0 auto;
  width:100%;
  max-width:220px;
  height:120px;
  display:flex;
  align-items:center;
  justify-content:center;
}

/* Bild skalieren */
.footer-logo img{
  max-width:100%;
  max-height:100%;
  width:auto;
  height:auto;
  object-fit:contain;
  display:block;
}


/* Textbereich */
.footer-info{
  flex:1 1 260px;             /* darf wachsen, Mindestbreite */
  min-width:260px;
}


/* Mobile */
@media (max-width:640px){
  .fields-ctn{grid-template-columns:1fr}
  .tabs-ctn{flex-wrap:wrap; justify-content:flex-end}
  .Cell,.table-header .daily{width:96px}
  .simple-row{grid-template-columns:1fr 96px}
}
