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

:root {
  --edeka-blue: #003c8f;
  --edeka-blue-dark: #002a64;
  --edeka-yellow:#F84F98; // #ffd400;
  --edeka-yellow-dark: #E88AAE; //#f2b900;
  --white: #ffffff;
  --off-white: #f6f7f9;
  --grey-light: #e6e8ec;
  --grey-mid: #9aa0aa;
  --text: #1a1d23;
  --text-soft: #545962;
  --nav-h: 92px;
  --nav-h-scrolled: 64px;
}

html { background-color: var(--edeka-blue); scroll-behavior: smooth; }
html, body { overflow-x: clip; }
body { font-family: 'Open Sans', system-ui, sans-serif; color: var(--text); background-color: var(--white); line-height: 1.6; }

#page-root { min-height: 100vh; opacity: 1; transition: opacity 0.25s ease; }
#page-root.fading { opacity: 0; }

a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
img, svg { display: block; max-width: 100%; height: auto; }

/* ===== NAV ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: var(--white);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 clamp(16px, 5vw, 48px); height: var(--nav-h);
  box-shadow: 0 1px 0 var(--grey-light);
  transition: height 0.32s cubic-bezier(0.4,0,0.2,1), box-shadow 0.32s;
}
.nav.scrolled { height: var(--nav-h-scrolled); box-shadow: 0 2px 16px rgba(0,0,0,0.12); }

.nav-logo { display: flex; align-items: center; gap: 14px; cursor: pointer; flex-shrink: 0; }
.nav-logo img { width: auto; height: 60px; transition: height 0.32s cubic-bezier(0.4,0,0.2,1); }
.nav.scrolled .nav-logo img { height: 42px; }
.nav-logo-text { font-family: 'Roboto Slab', serif; font-weight: 700; font-size: 22px; line-height: 1.1; color: var(--edeka-blue); transition: font-size 0.32s; }
.nav.scrolled .nav-logo-text { font-size: 18px; }
.nav-logo-text span { display: block; font-family: 'Open Sans', sans-serif; font-weight: 500; font-size: 12px; color: var(--grey-mid); letter-spacing: 0.02em; }
.nav.scrolled .nav-logo-text span { font-size: 11px; }

.nav-links { display: flex; align-items: center; gap: clamp(18px, 2.5vw, 36px); list-style: none; }
.nav-link {
  font-size: 16px; font-weight: 600; color: var(--text); cursor: pointer;
  padding: 6px 0; position: relative; transition: color 0.2s; white-space: nowrap;
}
.nav-link::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 3px;
  background: var(--edeka-yellow); transform: scaleX(0); transform-origin: left; transition: transform 0.22s;
}
.nav-link:hover { color: var(--edeka-blue); }
.nav-link:hover::after { transform: scaleX(1); }
.nav-link.active { color: var(--edeka-blue); }
.nav-link.active::after { transform: scaleX(1); }

.nav-actions { display: flex; align-items: center; gap: 8px; }
.theme-toggle {
  width: 44px; height: 44px; border-radius: 50%; font-size: 20px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  background: var(--off-white); border: 1px solid var(--grey-light); transition: background 0.2s, transform 0.15s;
}
.theme-toggle:hover { background: var(--grey-light); transform: translateY(-1px); }

.hamburger { display: none; flex-direction: column; justify-content: center; gap: 6px; width: 44px; height: 44px; padding: 8px; }
.hamburger-line { height: 3px; border-radius: 3px; background: var(--edeka-blue); transition: all 0.3s; }
.hamburger.open .hamburger-line:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.hamburger.open .hamburger-line:nth-child(2) { opacity: 0; }
.hamburger.open .hamburger-line:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* ===== MENU OVERLAY (mobile) ===== */
.menu-overlay {
  position: fixed; top: var(--nav-h); left: 0; right: 0; bottom: 0;
  background: var(--edeka-blue); z-index: 99;
  display: none; flex-direction: column; align-items: flex-start; padding: 32px;
  animation: menuIn 0.3s cubic-bezier(0.22,1,0.36,1) both;
}
.menu-overlay.open { display: flex; }
body.scrolled .menu-overlay { top: var(--nav-h-scrolled); }
@keyframes menuIn { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: translateY(0); } }
.menu-item {
  font-size: clamp(22px, 5vw, 32px); font-weight: 700; color: var(--white);
  padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,0.12); width: 100%; cursor: pointer; transition: color 0.2s;
}
.menu-item:hover { color: var(--edeka-yellow); }

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-block; background: var(--edeka-yellow); color: var(--edeka-blue);
  padding: 13px 30px; font-size: 15px; font-weight: 700; border-radius: 4px;
  letter-spacing: 0.02em; transition: background 0.2s, transform 0.15s;
}
.btn-primary:hover { background: var(--edeka-yellow-dark); transform: translateY(-2px); }
.btn-outline {
  display: inline-block; border: 2px solid var(--edeka-blue); color: var(--edeka-blue);
  padding: 11px 28px; font-size: 15px; font-weight: 700; border-radius: 4px; background: none; transition: all 0.2s;
}
.btn-outline:hover { background: var(--edeka-blue); color: var(--white); }

/* ===== HERO SLIDER (home) ===== */
.slider { position: relative; margin-top: var(--nav-h); height: clamp(420px, 68vh, 680px); background: var(--edeka-blue); overflow: hidden; transition: margin-top 0.32s; }
body.scrolled .slider { margin-top: var(--nav-h-scrolled); }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.9s ease; }
.slide.active { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide::after { content: ''; position: absolute; inset: 0; background: linear-gradient(105deg, rgba(0,42,100,0.78) 0%, rgba(0,42,100,0.35) 55%, rgba(0,42,100,0.15) 100%); }

.slider-overlay {
  position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; justify-content: center;
  padding: 0 clamp(24px, 8vw, 110px); max-width: 720px;
  pointer-events: none; /* darf Slider-Pfeile/-Punkte nicht abfangen */
}
.slider-overlay .btn-primary { pointer-events: auto; }
.slider-overlay .kicker { color: var(--edeka-yellow); font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; font-size: 13px; margin-bottom: 16px; }
.slider-overlay h1 { font-family: 'Roboto Slab', serif; color: var(--white); font-size: clamp(30px, 5.2vw, 60px); line-height: 1.1; margin-bottom: 20px; text-wrap: balance; }
.slider-overlay p { color: rgba(255,255,255,0.92); font-size: clamp(15px, 2vw, 19px); margin-bottom: 30px; max-width: 540px; }

.slider-btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 4;
  width: 52px; height: 52px; border-radius: 50%; background: rgba(255,255,255,0.85); color: var(--edeka-blue);
  font-size: 26px; font-weight: 700; display: flex; align-items: center; justify-content: center; transition: background 0.2s, transform 0.2s;
}
.slider-btn:hover { background: var(--white); }
.slider-btn.prev { left: clamp(12px, 2vw, 28px); }
.slider-btn.next { right: clamp(12px, 2vw, 28px); }
.slider-dots { position: absolute; bottom: 22px; left: 0; right: 0; z-index: 4; display: flex; justify-content: center; gap: 12px; }
.slider-dot { width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,0.5); cursor: pointer; transition: background 0.2s, transform 0.2s; }
.slider-dot.active { background: var(--edeka-yellow); transform: scale(1.2); }

/* ===== SECTIONS ===== */
.section { padding: clamp(48px, 8vw, 96px) clamp(24px, 8vw, 110px); }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.kicker { font-size: 13px; font-weight: 700; color: var(--edeka-yellow-dark); letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 12px; }
.section-title { font-family: 'Roboto Slab', serif; font-size: clamp(26px, 3.6vw, 42px); font-weight: 700; color: var(--edeka-blue); line-height: 1.15; margin-bottom: 16px; }
.section-body { font-size: clamp(15px, 1.7vw, 17px); color: var(--text-soft); }

.section.tinted { background: var(--off-white); }
.section.blue { background: var(--edeka-blue); }
.section.blue .section-title { color: var(--white); }
.section.blue .section-body { color: rgba(255,255,255,0.8); }
.section.blue .kicker { color: var(--edeka-yellow); }

/* background-image band */
.band {
  position: relative; padding: clamp(56px, 9vw, 120px) clamp(24px, 8vw, 110px);
  background-size: cover; background-position: center; color: var(--white);
}
.band::before { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(0,42,100,0.86), rgba(0,42,100,0.55)); }
.band > * { position: relative; z-index: 2; max-width: 680px; }
.band .section-title { color: var(--white); }
.band .section-body { color: rgba(255,255,255,0.9); }
.band .kicker { color: var(--edeka-yellow); }

/* ===== GRID HELPERS ===== */
.grid { display: grid; gap: clamp(16px, 2.5vw, 28px); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); }

/* ===== OFFER CARDS ===== */
.offer-card {
  background: var(--white); border: 1px solid var(--grey-light); border-radius: 10px; overflow: hidden;
  display: flex; flex-direction: column; transition: transform 0.2s, box-shadow 0.2s;
}
.offer-card:hover { transform: translateY(-5px); box-shadow: 0 14px 30px rgba(0,42,100,0.12); }
.offer-media { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--off-white); }
.offer-media img { width: 100%; height: 100%; object-fit: cover; }
.offer-badge {
  position: absolute; top: 12px; left: 12px; background: var(--edeka-yellow); color: var(--edeka-blue);
  font-weight: 800; font-size: 13px; padding: 5px 12px; border-radius: 4px; letter-spacing: 0.02em;
}
.offer-body { padding: 18px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.offer-cat { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--grey-mid); margin-bottom: 6px; }
.offer-name { font-size: 18px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.offer-desc { font-size: 14px; color: var(--text-soft); flex: 1; }
.offer-foot { display: flex; align-items: baseline; justify-content: space-between; margin-top: 16px; }
.offer-price { font-family: 'Roboto Slab', serif; font-size: 30px; font-weight: 700; color: var(--edeka-blue); }
.offer-price small { font-size: 14px; font-weight: 600; }
.offer-unit { font-size: 12px; color: var(--grey-mid); }

/* ===== NEWS CARDS ===== */
.news-card {
  background: var(--white); border: 1px solid var(--grey-light); border-radius: 10px; overflow: hidden;
  display: flex; flex-direction: column; transition: transform 0.2s, box-shadow 0.2s;
}
.news-card:hover { transform: translateY(-5px); box-shadow: 0 14px 30px rgba(0,42,100,0.12); }
.news-media { aspect-ratio: 16/10; overflow: hidden; background: var(--off-white); }
.news-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.news-card:hover .news-media img { transform: scale(1.05); }
.news-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.news-date { font-size: 12px; font-weight: 700; color: var(--edeka-yellow-dark); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 8px; }
.news-title { font-family: 'Roboto Slab', serif; font-size: 20px; font-weight: 600; color: var(--edeka-blue); margin-bottom: 10px; line-height: 1.25; }
.news-excerpt { font-size: 14px; color: var(--text-soft); flex: 1; }
.news-more { margin-top: 16px; font-size: 14px; font-weight: 700; color: var(--edeka-blue); display: inline-flex; align-items: center; gap: 6px; }
.news-more::after { content: '→'; transition: transform 0.2s; }
.news-card:hover .news-more::after { transform: translateX(4px); }

/* ===== INFO / FEATURES ===== */
.feature { text-align: center; padding: 8px; }
.feature-icon { width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%; background: var(--edeka-yellow); color: var(--edeka-blue); display: flex; align-items: center; justify-content: center; font-size: 30px; }
.feature h3 { font-size: 19px; color: var(--edeka-blue); margin-bottom: 8px; }
.feature p { font-size: 14px; color: var(--text-soft); }

/* market info strip */
.info-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px,100%),1fr)); gap: clamp(20px,3vw,40px); }
.info-block h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--edeka-yellow); margin-bottom: 10px; }
.info-block p { color: rgba(255,255,255,0.88); font-size: 16px; }

/* ===== SUBPAGE HERO ===== */
.subpage-hero {
  margin-top: var(--nav-h); position: relative; padding: clamp(48px,8vw,96px) clamp(24px,8vw,110px);
  background-size: cover; background-position: center; transition: margin-top 0.32s;
}
body.scrolled .subpage-hero { margin-top: var(--nav-h-scrolled); }
.subpage-hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(0,42,100,0.88), rgba(0,42,100,0.5)); }
.subpage-hero > * { position: relative; z-index: 2; }
.subpage-back { font-size: 14px; color: rgba(255,255,255,0.7); margin-bottom: 18px; cursor: pointer; width: fit-content; transition: color 0.2s; }
.subpage-back:hover { color: var(--white); }
.subpage-hero .kicker { color: var(--edeka-yellow); }
.subpage-title { font-family: 'Roboto Slab', serif; font-size: clamp(30px,5vw,54px); font-weight: 700; color: var(--white); line-height: 1.12; max-width: 760px; }
.subpage-lead { color: rgba(255,255,255,0.92); font-size: clamp(16px,2vw,20px); margin-top: 16px; max-width: 620px; }
.prospekt-gueltigkeit { display: inline-block; margin-top: 20px; padding: 8px 16px; border-radius: 999px; background: rgba(255,255,255,0.14); color: var(--white); font-weight: 600; font-size: 15px; }

/* prose */
.prose { max-width: 760px; }
.prose p { font-size: clamp(15px,1.7vw,17px); color: var(--text-soft); margin-bottom: 20px; }
.prose h3 { font-family: 'Roboto Slab', serif; font-size: 22px; color: var(--edeka-blue); margin: 36px 0 14px; }
.prose ul { list-style: none; margin-bottom: 20px; }
.prose li { padding: 8px 0 8px 26px; position: relative; color: var(--text-soft); border-bottom: 1px solid var(--grey-light); }
.prose li::before { content: '✓'; position: absolute; left: 0; color: var(--edeka-yellow-dark); font-weight: 800; }

/* ===== CONTACT ===== */
.kontakt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px,5vw,56px); align-items: start; }
.kontakt-info .kontakt-label { font-size: 12px; font-weight: 700; color: var(--edeka-yellow-dark); letter-spacing: 0.1em; text-transform: uppercase; margin: 22px 0 4px; }
.kontakt-info .kontakt-label:first-child { margin-top: 0; }
.kontakt-info p { font-size: 16px; color: var(--text); }
.kontakt-form { background: var(--off-white); border: 1px solid var(--grey-light); border-radius: 10px; padding: clamp(20px,3vw,32px); }
.kontakt-form label { font-size: 13px; font-weight: 600; color: var(--text-soft); margin-bottom: 5px; display: block; }
.kontakt-form input, .kontakt-form textarea {
  width: 100%; border: 1px solid var(--grey-light); border-radius: 6px; padding: 12px 14px;
  font: inherit; font-size: 15px; margin-bottom: 16px; outline: none; background: var(--white); transition: border-color 0.2s;
}
.kontakt-form input:focus, .kontakt-form textarea:focus { border-color: var(--edeka-blue); }
.kontakt-form textarea { height: 130px; resize: vertical; }
.map-embed { margin-top: 28px; border-radius: 10px; overflow: hidden; border: 1px solid var(--grey-light); aspect-ratio: 16/7; }
.map-embed iframe { width: 100%; height: 100%; border: 0; }

/* ===== FOOTER ===== */
.footer {
  background: var(--edeka-blue); color: rgba(255,255,255,0.75);
  padding: clamp(40px,6vw,64px) clamp(24px,8vw,110px) 28px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px,100%),1fr)); gap: 32px 40px;
}
.footer-col h4 { color: var(--white); font-size: 15px; margin-bottom: 14px; }
.footer-col p { font-size: 14px; line-height: 1.7; margin-bottom: 10px; }
.footer-brand img { height: 52px; margin-bottom: 14px; }
.footer-brand p { font-weight: 600; color: var(--white); }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a { font-size: 14px; cursor: pointer; transition: color 0.2s; }
.footer-links a:hover { color: var(--edeka-yellow); }
.footer-copy { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,0.15); padding-top: 20px; font-size: 12px; color: rgba(255,255,255,0.5); }

/* ===== RESPONSIVE ===== */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .kontakt-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .nav-logo-text span { display: none; }
  .slider-btn { width: 42px; height: 42px; font-size: 20px; }
  .offer-price { font-size: 26px; }
}

/* ===== DARK MODE (Schieferoptik, orientiert an der Vorlage) ===== */
body.dark { background-color: #0c0e11; color: #eef1f5; }
/* Schiefer-Textur fixiert hinter allen Inhalten */
body.dark::before {
  content: ''; position: fixed; inset: 0; z-index: -1;
  background: url('Images/Background/AdobeStock_209254754.jpeg') center / cover no-repeat fixed;
  opacity: 0.45;
}

/* Nav */
body.dark .nav { background: rgba(10,12,15,0.92); box-shadow: 0 1px 0 rgba(255,255,255,0.08); }
body.dark .nav.scrolled { background: rgba(10,12,15,0.97); box-shadow: 0 2px 16px rgba(0,0,0,0.6); }
body.dark .nav-logo-text { color: #fff; }
body.dark .nav-link { color: #eef1f5; }
body.dark .nav-link:hover, body.dark .nav-link.active { color: var(--edeka-yellow); }
body.dark .hamburger-line { background: #fff; }
body.dark .theme-toggle { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.18); color: #fff; }
body.dark .theme-toggle:hover { background: rgba(255,255,255,0.16); }

/* Flächen / Sektionen */
body.dark .section.tinted { background: rgba(255,255,255,0.04); }
body.dark .section.blue { background: rgba(0,30,72,0.85); }
body.dark .section-title { color: #fff; }
body.dark .section-body { color: rgba(255,255,255,0.75); }
body.dark .kicker { color: var(--edeka-yellow); }

/* Features */
body.dark .feature h3 { color: #fff; }
body.dark .feature p { color: rgba(255,255,255,0.72); }

/* Karten (Angebote / News) */
body.dark .offer-card, body.dark .news-card {
  background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.12);
}
body.dark .offer-card:hover, body.dark .news-card:hover { box-shadow: 0 14px 30px rgba(0,0,0,0.5); }
body.dark .offer-media, body.dark .news-media { background: rgba(255,255,255,0.04); }
body.dark .offer-name { color: #fff; }
body.dark .offer-desc, body.dark .news-excerpt { color: rgba(255,255,255,0.7); }
body.dark .offer-price { color: var(--edeka-yellow); }
body.dark .news-title { color: #fff; }
body.dark .news-more { color: var(--edeka-yellow); }

/* Text / Prosa */
body.dark .prose p, body.dark .prose li { color: rgba(255,255,255,0.78); }
body.dark .prose h3 { color: #fff; }
body.dark .prose li { border-bottom-color: rgba(255,255,255,0.12); }
body.dark .prose li::before { color: var(--edeka-yellow); }

/* Kontakt */
body.dark .kontakt-info p { color: #eef1f5; }
body.dark .kontakt-form { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.12); }
body.dark .kontakt-form label { color: rgba(255,255,255,0.7); }
body.dark .kontakt-form input, body.dark .kontakt-form textarea {
  background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.16); color: #fff;
}
body.dark .kontakt-form input:focus, body.dark .kontakt-form textarea:focus { border-color: var(--edeka-yellow); }
body.dark .kontakt-form input::placeholder, body.dark .kontakt-form textarea::placeholder { color: rgba(255,255,255,0.4); }
body.dark .map-embed { border-color: rgba(255,255,255,0.12); }

/* Footer etwas dunkler */
body.dark .footer { background: rgba(0,20,52,0.9); }

/* Buttons: Outline auf Dunkel sichtbar machen */
body.dark .btn-outline { border-color: var(--edeka-yellow); color: var(--edeka-yellow); }
body.dark .btn-outline:hover { background: var(--edeka-yellow); color: var(--edeka-blue); }

@media (prefers-reduced-motion: no-preference) {
  body, .nav, .section.tinted, .offer-card, .news-card { transition: background-color 0.3s ease, color 0.3s ease; }
}
