/* Relative Pfade – funktionieren sowohl auf Apache als auch mit Node.js */
@font-face {
  font-family: "Poppins";
  src: url("../Document fonts/Poppins-Regular.ttf");
  font-weight: 400;
}

@font-face {
  font-family: "Poppins";
  src: url("../Document fonts/Poppins-Medium.ttf");
  font-weight: 500;
}

@font-face {
  font-family: "Poppins";
  src: url("../Document fonts/Poppins-Bold.ttf");
  font-weight: 700;
}

:root {
  /* ====== DU KANNST HIER ALLES EINFACH ÄNDERN ====== */
  --eu-card-width: 520px;
  /* Breite der EU Box */
  --eu-banner-height: 140px;
  /* Höhe des EU-Banners (oben) */
  --partner-logo-h: 34px;
  /* Höhe der Partnerlogos */
  --partner-logo-maxw: 120px;
  /* Max-Breite pro Partnerlogo */

  --bg: #f3f4f6;
  --panel: #ffffff;
  --text: #2e3340;
  --muted: #6c7280;
  --footer: #3f4452;
}

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

/* Kein horizontaler Scroll, aber ohne "hartes Abschneiden" */
html,
body {
  width: 100%;
  overflow-x: clip;
  /* besser als hidden */
}

body {
  font-family: "Poppins", sans-serif;
  background: var(--bg);
  color: var(--text);
}

/* Header */
.topbar {
  padding: 40px 60px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  height: 38px;
}

/* Sprachumschalter */
.lang-switch {
  display: flex;
  gap: 6px;
}

.lang-btn {
  padding: 5px 12px;
  border: 1px solid rgba(0, 0, 0, .15);
  border-radius: 8px;
  background: transparent;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  transition: background .14s, color .14s, border-color .14s;
}

.lang-btn:hover {
  background: rgba(0, 0, 0, .05);
}

.lang-btn--active {
  background: var(--text);
  color: #fff;
  border-color: var(--text);
}

/* Main */
.page {
  display: flex;
  justify-content: center;
  padding: 40px 18px 60px;
}

.card {
  width: min(1200px, 92vw);
  background: var(--panel);
  border-radius: 24px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, .08);
  padding: 60px 40px;
  text-align: center;
}

/* Produktkarten im Shop-Grid */
.product-card {
  border: 2px solid transparent;
  border-radius: 16px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .12);
  border-color: #16a35a;
}

h1 {
  font-size: 80px;
  font-weight: 700;
}

.subtitle {
  margin-top: 20px;
  font-weight: 500;
  letter-spacing: 4px;
  color: var(--muted);
}

/* Bereiche */
.area-grid {
  margin-top: 50px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.area {
  text-decoration: none;
  color: inherit;
  transition: transform .18s ease;
  display: block;
}

.area:hover {
  transform: translateY(-4px);
}

.area__img {
  aspect-ratio: 4/3;
  border-radius: 18px;
  overflow: hidden;
  background: #f6f7f9;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, .1);
  border: 2px solid transparent;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.area:hover .area__img {
  border-color: #16a35a;
  box-shadow: 0 14px 32px rgba(0, 0, 0, .14);
}

.area__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  padding: 0;
  transition: transform .18s ease;
}

.area:hover .area__img img {
  transform: scale(1.03);
}

.area__label {
  margin-top: 12px;
  font-size: 14px;
  color: var(--muted);
  transition: color .18s ease;
}

.area:hover .area__label {
  color: #16a35a;
}

/* Footer */
.footer {
  background: var(--footer);
  padding: 80px 0;
}

.footer__wrap {
  /* sorgt dafür, dass NIE etwas über den Screen hinausgeht */
  width: min(1400px, calc(100vw - 40px));
  margin: 0 auto;
}

.footer__layout {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 60px;
  align-items: start;
}

/* Links */
.footer__brandlogo {
  height: 64px;
  margin-bottom: 40px;
  filter: brightness(1.2);
}

.footer__cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
}

.ftext {
  color: rgba(255, 255, 255, .85);
  line-height: 1.6;
}

.fhead {
  color: #fff;
  margin-bottom: 10px;
  font-weight: 500;
}

.flink {
  display: block;
  color: rgba(255, 255, 255, .85);
  margin-bottom: 4px;
  text-decoration: none;
}

.flink:hover {
  color: #fff;
}

/* Social */
.social {
  margin-top: 60px;
  display: flex;
  gap: 16px;
}

.social__btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .18);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .16s ease, background .16s ease;
}

.social__btn:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, .24);
}

.social__btn img {
  width: 86%;
  height: 86%;
  object-fit: contain;
  display: block;
  opacity: .95;
}

/* EU Card */
.footer__right {
  height: 170px;
  display: flex;
  justify-content: flex-end;
  transform: translateX(40px);
  /* ← nach rechts */
}

.eu-card {
  width: 600px;
  max-width: 520px;
  /* ✅ garantiert nicht abgeschnitten */
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
}

/* EU Banner (du kannst die Höhe oben einstellen) */
.eu-card__banner {
  width: 100%;
  height: 70px;
  object-fit: contain;
  /* wenn du lieber "contain" willst, sag Bescheid */
  /*display:block;*/
  padding-top: 20px;
  padding-right: 220px;
}

.eu-card__logos {
  padding: 15px 20px;
  display: flex;
  gap: 22px;
  align-items: center;
  border-top: 1px solid rgba(0, 0, 0, .15);
  flex-wrap: wrap;
  /* bei kleineren Screens umbrechen */
}

.eu-card__logos img {
  height: 80px;
  max-width: 60px;
  width: auto;
  object-fit: contain;
  display: block;
  padding-bottom: 20px;
}

/* Responsive */
@media (max-width: 900px) {
  .footer__layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer__right {
    justify-content: flex-start;
    transform: none;
    height: auto;
  }

  .eu-card {
    max-width: 100%;
  }

  .footer {
    padding: 48px 0;
  }
}

@media (max-width: 1100px) {
  .area-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

@media (max-width: 820px) {
  .topbar {
    padding: 20px 22px 0;
  }

  .area-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  h1 {
    font-size: clamp(32px, 8vw, 60px);
  }

  .card {
    padding: 32px 20px;
  }

  .subtitle {
    letter-spacing: 1.5px;
    font-size: 13px;
  }

  .footer__cols {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .footer__brandlogo {
    height: 48px;
    margin-bottom: 24px;
  }

  .eu-card__banner {
    padding-right: 80px;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 28px;
  }

  .card {
    padding: 22px 14px;
  }

  .subtitle {
    font-size: 11px;
    letter-spacing: 1px;
  }

  .area-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .area__label {
    font-size: 12px;
  }

  .footer__cols {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .footer__cols--lower {
    grid-template-columns: 1fr;
  }

  .social {
    flex-wrap: wrap;
    gap: 12px;
  }

  .eu-card {
    width: 100%;
  }

  .eu-card__banner {
    padding-right: 0;
    height: auto;
    object-fit: contain;
  }

  .eu-card__logos {
    gap: 14px;
  }

  .eu-card__logos img {
    height: 56px;
    max-width: 44px;
  }
}

/* ══════════════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════════════ */
.hero{
  width:min(1200px,92vw);
  margin:40px auto 60px;
  padding:60px 48px;
  background:var(--panel);
  border-radius:24px;
  box-shadow:0 25px 60px rgba(0,0,0,.08);
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:48px;
  align-items:center;
}
.hero__eyebrow{
  font-size:11px;
  font-weight:600;
  letter-spacing:2.5px;
  text-transform:uppercase;
  color:#46ac33;
  margin-bottom:14px;
}
.hero__headline{
  font-size:64px;
  font-weight:700;
  color:var(--text);
  line-height:1.05;
  margin-bottom:18px;
}
.hero__sub{
  font-size:16px;
  line-height:1.7;
  color:var(--muted);
  margin-bottom:32px;
  max-width:460px;
}
.hero__cta{
  display:inline-block;
  padding:14px 28px;
  background:var(--text);
  color:#fff;
  border-radius:10px;
  text-decoration:none;
  font-weight:600;
  font-size:15px;
  transition:background .16s;
}
.hero__cta:hover{background:#1a1f2b;}
.hero__visual{
  display:flex;
  justify-content:center;
  align-items:center;
}
.hero__img-link{
  display:block;
  border-radius:16px;
  overflow:hidden;
}
.hero__visual img{
  width:100%;
  height:auto;
  border-radius:16px;
  box-shadow:0 12px 40px rgba(0,0,0,.22);
  display:block;
  transition:filter .3s ease;
}
.hero__img-link:hover img{
  filter:invert(1);
}

/* ══════════════════════════════════════════════════════
   KONTAKT-SEKTION
   ══════════════════════════════════════════════════════ */
.contact-section{
  padding:0 18px 40px;
}
.contact-box{
  width:min(860px,92vw);
  margin:0 auto;
  background:var(--panel);
  border-radius:18px;
  padding:40px;
  box-shadow:0 8px 24px rgba(0,0,0,.06);
  display:flex;
  flex-direction:column;
  gap:8px;
}
.contact-label{
  font-size:11px;
  font-weight:700;
  letter-spacing:2px;
  text-transform:uppercase;
  color:var(--muted);
  margin-bottom:4px;
}
.contact-name{font-weight:600;font-size:17px;color:var(--text);}
.contact-link{color:#00a8e0;text-decoration:none;font-size:15px;}
.contact-link:hover{text-decoration:underline;}
.contact-company{font-size:13px;color:var(--muted);margin-top:4px;}

/* ══════════════════════════════════════════════════════
   SHOP-SEKTION
   DOM-Elemente: #products, #cart, #status, #checkoutBtn
   Logik: frontend/app.js
   ══════════════════════════════════════════════════════ */
.shop-wrap {
  width: min(1200px, 92vw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: start;
  padding: 60px 0;
}

/* Produktraster – Karten werden von app.js als <article class="card"> erzeugt */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.products-grid .card {
  /* width und padding überschreiben das globale .card (width:min(1200px,92vw); padding:60px 40px) */
  width: 100%;
  padding: 24px;
  text-align: left;
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.products-grid .card .product-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 10px;
  background: #f3f4f6;
  display: block;
}

.products-grid .card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-top: 4px;
  min-height: 52px;
}

.products-grid .card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.products-grid .card button {
  margin-top: auto;
  padding: 10px 20px;
  background: var(--text);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background .16s;
}

.products-grid .card button:hover {
  background: #1a1f2b;
}

/* Warenkorb-Panel */
.cart-panel {
  background: var(--panel);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
  position: sticky;
  top: 60px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cart-title {
  font-size: 20px;
  font-weight: 600;
}

.cart-list {
  list-style: none;
  min-height: 60px;
  border: 1px dashed #d1d5db;
  border-radius: 10px;
  padding: 12px;
  font-size: 14px;
  color: var(--muted);
}

.cart-list:empty::before {
  /* Text kommt aus CSS-Variable – wird von i18n.js bei Sprachwechsel aktualisiert */
  content: var(--i18n-cart-empty, "Warenkorb ist leer");
  display: block;
  text-align: center;
  color: #c4c9d4;
  padding: 8px 0;
}

.cart-status {
  font-size: 13px;
  color: var(--muted);
  min-height: 18px;
  word-break: break-all;
}

.cart-checkout-btn {
  width: 100%;
  padding: 14px;
  background: var(--text);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background .16s;
}

.cart-checkout-btn:hover {
  background: #1a1f2b;
}

/* ══════════════════════════════════════════════════════
   PLATZHALTER-SEKTIONEN
   → Werden durch echte Unterseiten / Komponenten ersetzt
   ══════════════════════════════════════════════════════ */
.placeholder-section {
  padding: 0 18px 40px;
}

/* Rechtliche Seiten (Impressum, Datenschutz) */
.legal-section {
  padding: 0 18px 60px;
}

.legal-box {
  width: min(860px, 92vw);
  margin: 0 auto;
  background: var(--panel);
  border-radius: 18px;
  padding: 52px 48px;
  box-shadow: 0 6px 24px rgba(0,0,0,.06);
}

.legal-box h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 32px;
  color: var(--text);
}

.legal-box h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 28px 0 8px;
  color: var(--text);
}

.legal-box p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
  margin-bottom: 8px;
}

.legal-box a {
  color: #16a35a;
  text-decoration: underline;
}

.legal-box strong {
  color: var(--text);
}

@media (max-width: 600px) {
  .legal-box { padding: 32px 22px; }
}

.placeholder-box {
  width: min(860px, 92vw);
  margin: 0 auto;
  background: var(--panel);
  border-radius: 18px;
  padding: 48px 40px;
  border: 2px dashed #d1d5db;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.placeholder-box--legal {
  border-color: #fca5a5;
  background: #fff8f8;
}

.placeholder-box h2 {
  font-size: 28px;
  font-weight: 700;
}

.placeholder-box p {
  color: var(--muted);
  line-height: 1.6;
  max-width: 600px;
}

/* Platzhalter-Badge */
.placeholder-tag {
  display: inline-block;
  background: #f3f4f6;
  color: #6b7280;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  padding: 3px 10px;
  border-radius: 6px;
  border: 1px solid #d1d5db;
  text-transform: uppercase;
  width: fit-content;
}

.placeholder-tag--urgent {
  background: #fef2f2;
  color: #dc2626;
  border-color: #fca5a5;
}

.placeholder-note {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* Responsive Shop + Platzhalter */
@media (max-width:900px) {
  .cart-panel {
    position: static;
  }

  .placeholder-box {
    padding: 32px 24px;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width:820px){
  .placeholder-box h2{font-size:22px;}
  .hero{
    grid-template-columns:1fr;
    padding:32px 24px;
    gap:28px;
    text-align:center;
  }
  .hero__visual{order:-1;}
  .hero__visual img{max-width:480px;margin:0 auto;}
  .hero__headline{font-size:40px;}
  .hero__sub{max-width:100%;margin-left:auto;margin-right:auto;}
}
@media (max-width:580px){
  .products-grid{grid-template-columns:1fr;}
  .hero__headline{font-size:32px;}
  .contact-box{padding:28px 20px;}
}

/* ── Image carousel (shared: landing page + sector detail panel) ─ */
.img-car {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #f3f4f6;
  border-radius: 10px;
}

/* Landing page card variant: matches original product-img ratio */
.product-img-car {
  aspect-ratio: 4 / 3;
  margin-bottom: 0;
}

/* Sector detail-panel variant */
.detail-panel__car {
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  margin-bottom: 20px;
}

.img-car__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
  opacity: 0;
  transition: opacity .35s ease;
}

.img-car__img--active {
  opacity: 1;
}

.img-car__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,.38);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  padding: 5px 10px 7px;
  border-radius: 6px;
  transition: background .15s;
  z-index: 2;
  user-select: none;
}

.img-car__btn:hover {
  background: rgba(0,0,0,.62);
}

.img-car__btn--prev { left: 8px; }
.img-car__btn--next { right: 8px; }

.img-car__dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
  z-index: 2;
}

.car-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,.5);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background .15s;
}

.car-dot--active {
  background: #fff;
}