/* MiMaNex Einkaufsliste - Ueberblick
   Hybrid-Design: Farbpalette & Header/Footer der Tester-Seite,
   Karten-Layout der Ueberblick-Seite */

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

:root {
  --green-dark:  #2C4A2E;
  --green-mid:   #3D6B40;
  --green-light: #5A8C5D;
  --green-pale:  #EAF2EA;
  --cream:       #F8F5EF;
  --text-body:   #3A4A3A;
  --text-muted:  #7A8A7A;
  --white:       #FFFFFF;
  --line:        rgba(90,140,93,0.25);
  --radius:      18px;
  --shadow:      0 18px 60px rgba(44,74,46,0.10);
}

html { scroll-behavior: smooth; }

body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text-body);
  background:
    radial-gradient(1100px 600px at 18% 0%, rgba(90,140,93,0.10), transparent 60%),
    radial-gradient(900px 520px at 82% 10%, rgba(61,107,64,0.08), transparent 55%),
    linear-gradient(180deg, #FFFFFF 0%, var(--cream) 35%, #FFFFFF 100%);
  min-height: 100vh;
  line-height: 1.7;
}
a { color: var(--green-mid); }

/* ---- Sprachleiste & Header (Tester-Design) ---- */
.lang-bar { background: var(--green-dark); text-align: right; padding: 6px 32px; }
.lang-bar a { display: inline-block; border: 1px solid rgba(255,255,255,0.4); color: #fff; padding: 4px 14px; border-radius: 20px; font-size: 0.78rem; text-decoration: none; transition: background 0.2s; }
.lang-bar a:hover { background: rgba(255,255,255,0.2); }

.site-header { background: var(--white); border-bottom: 3px solid var(--green-mid); padding: 0 40px; display: flex; align-items: center; justify-content: space-between; height: 72px; box-shadow: 0 2px 12px rgba(44,74,46,0.08); position: sticky; top: 0; z-index: 100; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-text { font-family: Arial Black, Arial, sans-serif; font-size: 1.3rem; color: var(--green-dark); line-height: 1.1; }
.logo-text span { display: block; font-family: system-ui,-apple-system,Arial,sans-serif; font-size: 0.7rem; font-weight: 500; color: var(--green-light); letter-spacing: 0.08em; text-transform: uppercase; }
.site-header nav a { color: var(--text-body); text-decoration: none; font-size: 0.9rem; font-weight: 500; margin-left: 24px; transition: color 0.2s; }
.site-header nav a:hover { color: var(--green-mid); }

/* ---- Inhalt (Karten-Layout) ---- */
.container { max-width: 1060px; margin: 0 auto; padding: 28px 18px 72px; }

.hero { margin-top: 10px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 18px; align-items: stretch; }

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,0.97), rgba(255,255,255,0.90));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.heroText { padding: 26px 26px; }
.heroText h1 { font-family: Arial Black, Arial, sans-serif; font-size: 28px; letter-spacing: .2px; color: var(--green-dark); line-height: 1.3; }
.heroText .sub { margin: 12px 0 0; color: var(--text-muted); font-size: 15px; line-height: 1.6; }
.heroText .sub strong { color: var(--text-body); }

.badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.badge {
  font-size: 12px; color: var(--green-dark);
  padding: 8px 12px; border-radius: 999px;
  border: 1px solid rgba(90,140,93,0.35);
  background: var(--green-pale);
  font-weight: 600;
}

.heroShot {
  display: grid; place-items: center; padding: 18px;
  background:
    radial-gradient(520px 260px at 50% 10%, rgba(90,140,93,0.18), transparent 60%),
    linear-gradient(180deg, rgba(44,74,46,0.04), rgba(44,74,46,0.01));
}
.phone {
  width: min(320px, 100%);
  aspect-ratio: 9/19.5;
  border-radius: 28px;
  border: 2px solid #444;
  background: #111;
  box-shadow: 0 22px 70px rgba(26,43,26,0.45);
  overflow: hidden; position: relative;
}
.phone::before {
  content: "";
  position: absolute; top: 10px; left: 50%;
  transform: translateX(-50%);
  width: 84px; height: 18px; border-radius: 999px;
  background: rgba(0,0,0,0.55);
  border: 1px solid rgba(255,255,255,0.10);
  z-index: 2;
}
.phone img { width: 100%; height: 100%; object-fit: cover; display: block; }

.section { margin-top: 18px; }
.section .kopf { padding: 20px 24px; border-bottom: 1px solid var(--line); }
.section .kopf h2 { font-family: Arial Black, Arial, sans-serif; font-size: 20px; color: var(--green-dark); }
.section .kopf p { margin: 8px 0 0; color: var(--text-muted); font-size: 14px; line-height: 1.6; }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.liste { padding: 18px 24px; }
.liste ul { margin: 0; padding: 0 0 0 18px; color: var(--text-muted); line-height: 1.8; }
.liste li strong { color: var(--green-dark); }
.hinweis { margin-top: 14px; font-size: 12px; color: var(--text-muted); }

.screens { padding: 18px 18px 22px; }
.gallery { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.thumb {
  border: 1px solid var(--line);
  border-radius: 16px; overflow: hidden;
  background: var(--green-pale);
  cursor: pointer;
  transition: transform .12s ease, border-color .12s ease, box-shadow .12s ease;
}
.thumb:hover { transform: translateY(-3px); border-color: var(--green-light); box-shadow: 0 8px 24px rgba(44,74,46,0.18); }
.thumb img { width: 100%; height: auto; display: block; }
.hint { margin: 12px 4px 0; color: var(--text-muted); font-size: 12px; }

/* ---- Footer (Tester-Design) ---- */
.site-footer { background: #1A2B1A; color: rgba(255,255,255,0.5); text-align: center; padding: 28px 40px; font-size: 0.82rem; }
.site-footer a { color: rgba(255,255,255,0.6); text-decoration: none; }
.site-footer a:hover { color: #A8D5AA; }

/* ---- Lightbox ---- */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(26,43,26,0.88);
  display: none; align-items: center; justify-content: center;
  padding: 18px; z-index: 200;
}
.lightbox.open { display: flex; }
.lightbox .frame {
  max-width: min(520px, 90vw); width: 100%;
  border-radius: 24px; overflow: hidden;
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: 0 30px 90px rgba(0,0,0,0.75);
  background: rgba(0,0,0,0.35); position: relative;
}
.lightbox img { width: 100%; height: auto; display: block; }
.lightbox .close {
  position: absolute; top: 10px; right: 10px;
  width: 40px; height: 40px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(0,0,0,0.45); color: #fff;
  cursor: pointer; display: grid; place-items: center; font-size: 18px;
}
.lightbox .close:hover { border-color: var(--green-light); }
.lb-nav {
  background: rgba(0,0,0,0.35); color: #fff;
  border: 1px solid rgba(255,255,255,0.2); border-radius: 999px;
  width: 48px; height: 48px; font-size: 26px; cursor: pointer;
  margin: 0 14px; flex-shrink: 0;
}
.lb-nav:hover { border-color: var(--green-light); }

/* ---- Responsive ---- */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .site-header { padding: 0 20px; }
  .site-header nav { display: none; }
  .heroText h1 { font-size: 24px; }
}
