/* ==========================================================================
   DARK MODE — sushisupply.de (alle Subpages)
   Stand: 2026-04-03
   Deckt alle 3 Templates ab: styles.css, styles.min.css, inline
   Homepage hat eigenen Dark Mode in homepage-redesign.js (Step 18)
   ========================================================================== */

@media (prefers-color-scheme: dark) {

  /* ------------------------------------------------------------------
     1. GLOBAL: Body, HTML, Grundfarben
     ------------------------------------------------------------------ */
  html, body {
    background: #1a1a1a !important;
    color: #e0dcd6 !important;
    color-scheme: dark;
  }

  /* Allgemeine Typografie */
  h1, h2, h3, h4, h5, h6 { color: #f0ece6 !important; }
  p, li, dd, dt, td, th   { color: #d0cbc3 !important; }
  a                        { color: #f08060 !important; }
  a:hover                  { color: #ff9070 !important; }
  strong, b                { color: #e8e2da !important; }
  small                    { color: #a09888 !important; }
  blockquote, cite         { color: #b0a898 !important; }
  hr                       { border-color: rgba(255,255,255,0.1) !important; }

  /* Bilder/Media — nicht invertieren */
  img, video, picture, svg:not(.icon) { filter: none !important; }

  /* ------------------------------------------------------------------
     2. HEADER & NAVIGATION (alle Seiten)
     ------------------------------------------------------------------ */
  .site-header {
    background: rgba(26,26,26,0.96) !important;
    border-bottom: 1px solid rgba(255,255,255,0.06) !important;
  }
  .brand       { color: #fff !important; }
  .brand img   { filter: brightness(1.1) !important; }
  .nav-links a { color: #e0dcd6 !important; }
  .nav-links a:hover,
  .nav-links a.active { color: #d94f32 !important; }

  .nav-toggle  { background: #d94f32 !important; color: #fff !important; }

  .nav-dropdown-menu {
    background: rgba(37,37,37,0.98) !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5) !important;
  }
  .nav-dropdown-menu a { color: #d0cbc3 !important; }
  .nav-dropdown-menu a:hover { color: #d94f32 !important; }

  .nav-cta { background: #d94f32 !important; color: #fff !important; }

  /* Delivery/Order Dropdowns */
  .nav-delivery-menu,
  .nav-order-menu,
  .nav-lief-overview {
    background: rgba(37,37,37,0.98) !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
  }
  .nav-delivery-menu a,
  .nav-order-menu a,
  .nav-delivery-links a { color: #d0cbc3 !important; }

  /* ------------------------------------------------------------------
     3. FOOTER (bereits dunkel — Feintuning)
     ------------------------------------------------------------------ */
  .footer-shell {
    background: #141a1e !important;
  }
  .footer-brand, .footer-brand-name { color: #fff !important; }
  .footer-grid a, .footer-nav a     { color: rgba(255,255,255,0.75) !important; }
  .footer-grid a:hover              { color: #d94f32 !important; }
  .footer-bottom                    { color: rgba(255,255,255,0.45) !important; }
  .footer-col h2, .footer-col h3,
  .footer-col h4                    { color: rgba(255,255,255,0.9) !important; }
  .footer-top                       { border-color: rgba(255,255,255,0.06) !important; }

  /* ------------------------------------------------------------------
     4. SHARED COMPONENTS: Buttons, Badges, Kicker, Eyebrow
     ------------------------------------------------------------------ */
  /* Buttons */
  .button, a.button,
  .btn, .btn-primary,
  .menu-cta-btn {
    background: #d94f32 !important;
    color: #fff !important;
    border: none !important;
  }
  .button-secondary, a.button-secondary,
  .btn-ghost {
    background: transparent !important;
    color: #f08060 !important;
    border: 1px solid #f08060 !important;
  }
  .button:hover, .btn:hover,
  .btn-primary:hover { background: #c4432a !important; }

  /* Kicker, Eyebrow, Lead */
  .kicker         { color: #d94f32 !important; }
  .eyebrow        { background: rgba(217,79,50,0.12) !important; color: #d94f32 !important; }
  .lead           { color: #c0b8ae !important; }
  .text-link      { color: #f08060 !important; }
  .section-label  { color: #d94f32 !important; }
  .section-kicker { color: #d94f32 !important; }
  .aeo-lead       { color: #c0b8ae !important; }

  /* ------------------------------------------------------------------
     5. TEMPLATE A+B: styles.css / styles.min.css Seiten
        /menu/ /stores/ /catering/ /kontakt/ /ueber-uns/ /faq/
        /datenschutz/ /impressum/ /abholung/
        /sushi-*-hamburg/ (Standort-Seiten)
     ------------------------------------------------------------------ */

  /* Page Hero */
  .page-hero {
    background: #222222 !important;
  }
  .page-hero h1 { color: #f0ece6 !important; }
  .page-hero p, .page-hero .lead { color: #c0b8ae !important; }
  .page-hero-grid { color: #e0dcd6 !important; }

  /* Sections */
  .section {
    border-color: rgba(255,255,255,0.04) !important;
  }
  .section-alt {
    background: #1e1e1e !important;
  }
  .section-head h2,
  .section-heading h2 { color: #f0ece6 !important; }
  .section-head p     { color: #c0b8ae !important; }

  /* Cards (Menü, Store, allgemein) */
  .card,
  .menu-card,
  .store-card {
    background: #252525 !important;
    border: 1px solid rgba(255,255,255,0.06) !important;
  }
  .card h3, .menu-card h3, .store-card h3 { color: #f0ece6 !important; }
  .card p, .menu-card p, .store-card p     { color: #c0b8ae !important; }
  .card a, .menu-card a, .store-card a     { color: #f08060 !important; }
  .card-grid       { color: #e0dcd6 !important; }
  .card-slideshow  { color: #e0dcd6 !important; }

  /* Store-Card Details */
  .store-card-content { color: #d0cbc3 !important; }
  .store-links a      { color: #f08060 !important; }
  .store-meta         { color: #a09888 !important; }

  /* Info Panel */
  .info-panel {
    background: #252525 !important;
    border: 1px solid rgba(255,255,255,0.06) !important;
  }
  .info-panel h3     { color: #f0ece6 !important; }
  .info-panel p      { color: #c0b8ae !important; }
  .info-panel a      { color: #f08060 !important; }
  .info-panel strong { color: #e8e2da !important; }

  /* Info Grid */
  .info-grid { color: #e0dcd6 !important; }

  /* Hero Actions */
  .hero-actions a { color: #fff !important; }

  /* Hero Slideshow (Menu Seite) */
  .hero-mood-slideshow { background: #1a1a1a !important; }

  /* Kontakt-Seite */
  .contact-layout       { color: #e0dcd6 !important; }
  .contact-panel        {
    background: #252525 !important;
    border: 1px solid rgba(255,255,255,0.06) !important;
  }
  .contact-panel h2, .contact-panel h3 { color: #f0ece6 !important; }
  .contact-panel p      { color: #c0b8ae !important; }
  .contact-list a       { color: #f08060 !important; }
  .social-row           { color: #e0dcd6 !important; }
  .social-chip {
    background: #252525 !important;
    color: #d0cbc3 !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
  }
  .social-chip:hover    { background: #333333 !important; }
  .instagram-callout {
    background: #252525 !important;
    color: #d0cbc3 !important;
  }

  /* ------------------------------------------------------------------
     6. TEMPLATE C: Zielgruppen-Seiten (inline CSS)
        /pendler-sushi-hamburg/ /studenten-rabatt-sushi-hamburg/
        /business-lunch-hauptbahnhof/ /sushi-fuer-die-zugreise/
        /sushi-hamburg-besucher/ /no-food-waste/
     ------------------------------------------------------------------ */

  /* Hero (Template C) — coral bg bleibt, Text muss weiss sein */
  .hero           { color: #fff !important; }
  .hero-headline  { color: #fff !important; }
  .hero-sub       { color: rgba(255,255,255,0.85) !important; }
  .hero-kicker    { color: rgba(255,255,255,0.9) !important; }
  .hero-text      { color: #fff !important; }
  .hero-inner     { color: #fff !important; }
  .hero-cta       { background: #fff !important; color: #d94f32 !important; }

  /* Container (Template C) */
  .container { color: #e0dcd6 !important; }

  /* Section Light → Dark */
  .section-light {
    background: #1e1e1e !important;
  }
  .section-header h2  { color: #f0ece6 !important; }
  .section-intro      { color: #c0b8ae !important; }

  /* Produkt-Cards */
  .produkt-card {
    background: #252525 !important;
    border: 1px solid rgba(255,255,255,0.06) !important;
  }
  .produkt-card h3    { color: #f0ece6 !important; }
  .produkt-card p     { color: #c0b8ae !important; }
  .preis              { color: #d94f32 !important; }
  .preis-alt          { color: #807870 !important; }
  .produkte-grid      { color: #e0dcd6 !important; }

  /* USP Cards */
  .usp-card {
    background: #252525 !important;
    border: 1px solid rgba(255,255,255,0.06) !important;
  }
  .usp-card h3 { color: #f0ece6 !important; }
  .usp-card p  { color: #c0b8ae !important; }
  .usp-num     { color: #d94f32 !important; }
  .usp-grid    { color: #e0dcd6 !important; }

  /* FAQ */
  .faq-section { color: #e0dcd6 !important; }
  .faq-item {
    border-color: rgba(255,255,255,0.08) !important;
  }
  .faq-question {
    color: #f0ece6 !important;
    background: transparent !important;
  }
  .faq-answer  { color: #c0b8ae !important; }
  .faq-list    { color: #e0dcd6 !important; }

  /* Text Prose (Zielgruppen-Seiten) */
  .text-prose      { color: #d0cbc3 !important; }
  .text-prose h2   { color: #f0ece6 !important; }
  .text-prose h3   { color: #f0ece6 !important; }
  .text-prose a    { color: #f08060 !important; }

  /* ------------------------------------------------------------------
     7. LIEFERSERVICE-SEITE (grösstes Template C)
     ------------------------------------------------------------------ */

  /* Hero Slideshow */
  .hero-slideshow { color: #fff !important; }
  .hero-slide     { color: #fff !important; }
  .hero-slide-copy { color: #fff !important; }
  .hero-eyebrow  { color: rgba(255,255,255,0.8) !important; }
  .hero-arrows   { color: #fff !important; }
  .hero-arrow    { background: rgba(255,255,255,0.15) !important; color: #fff !important; }
  .hero-arrow:hover { background: rgba(255,255,255,0.25) !important; }
  .hero-dot      { background: rgba(255,255,255,0.35) !important; }
  .hero-dot.active { background: #fff !important; }
  .hero-dots     { color: #fff !important; }
  .hero-ctas a   { color: #fff !important; }

  /* How-Section (Wie bestelle ich?) */
  .how-section   { background: #1e1e1e !important; }
  .how-heading   { color: #f0ece6 !important; }
  .how-eyebrow   { color: #d94f32 !important; }
  .how-card {
    background: #252525 !important;
    border: 1px solid rgba(255,255,255,0.06) !important;
  }
  .how-card h3   { color: #f0ece6 !important; }
  .how-card p    { color: #c0b8ae !important; }
  .how-num       { background: #d94f32 !important; color: #fff !important; }
  .how-inner     { color: #e0dcd6 !important; }

  /* Location Cards */
  .loc-card {
    background: #252525 !important;
    border: 1px solid rgba(255,255,255,0.06) !important;
    overflow: hidden;
  }
  .loc-card h3         { color: #f0ece6 !important; }
  .loc-card p          { color: #c0b8ae !important; }
  .loc-card-body       { color: #d0cbc3 !important; }
  .loc-card-btn        { color: #fff !important; }
  .loc-card-img        { background: #333333 !important; }
  .loc-coming-soon     { color: #a09888 !important; }
  .location-grid       { color: #e0dcd6 !important; }

  /* Platform Cards (Lieferando, Wolt, etc.) */
  .platform-section    { background: #1e1e1e !important; }
  .platform-card {
    background: #252525 !important;
    border: 1px solid rgba(255,255,255,0.06) !important;
  }
  .platform-card h3    { color: #f0ece6 !important; }
  .platform-card p     { color: #c0b8ae !important; }
  .platform-card-body  { color: #d0cbc3 !important; background: #252525 !important; }
  .platform-card-img   { background: #333333 !important; }
  .platform-meta       { color: #a09888 !important; }
  .platform-badge      { color: #e0dcd6 !important; }
  .platform-big-btn    { color: #fff !important; }
  .platform-cards      { color: #e0dcd6 !important; }

  /* Lieferando/Wolt Buttons */
  .lieferando-btn,
  .lieferando-big-btn  { color: #fff !important; }
  .lieferando-badge    { color: #e0dcd6 !important; }
  .wolt-btn            { color: #fff !important; }

  /* Menu Cards (Lieferservice) */
  .menu-card-body      { color: #d0cbc3 !important; }
  .menu-card-img       { background: #333333 !important; }
  .menu-slider         { color: #e0dcd6 !important; }
  .menu-slider-wrap    { color: #e0dcd6 !important; }
  .slider-btn          { background: rgba(255,255,255,0.1) !important; color: #fff !important; }
  .slider-btn:hover    { background: rgba(255,255,255,0.2) !important; }

  /* Info Box */
  .info-box {
    background: #252525 !important;
    border: 1px solid rgba(255,255,255,0.06) !important;
    color: #d0cbc3 !important;
  }
  .info-box h3 { color: #f0ece6 !important; }

  /* CTA Band */
  .cta-band {
    background: #d94f32 !important;
    color: #fff !important;
  }
  .cta-band h2, .cta-band-copy h2 { color: #fff !important; }
  .cta-band p, .cta-band-copy p   { color: rgba(255,255,255,0.9) !important; }
  .cta-band a, .cta-band-actions a { color: #fff !important; }

  /* Promo Bar */
  .promo-bar {
    background: #252525 !important;
    color: #e0dcd6 !important;
  }
  .promo-bar-inner { color: #e0dcd6 !important; }

  /* Stats Bar */
  .stats-bar       { background: #222222 !important; }
  .stats-bar-inner { color: #e0dcd6 !important; }
  .stat-item       { color: #e0dcd6 !important; }
  .stat-number     { color: #d94f32 !important; }
  .stat-label      { color: #a09888 !important; }
  .stat-divider    { background: rgba(255,255,255,0.1) !important; }

  /* Sticky Order Bar */
  .sticky-order {
    background: rgba(26,26,26,0.96) !important;
    border-top: 1px solid rgba(255,255,255,0.06) !important;
    color: #e0dcd6 !important;
  }
  .sticky-order a { color: #fff !important; }

  /* ÖPNV */
  .oepnv-badge { color: #e0dcd6 !important; }
  .oepnv-list  { color: #d0cbc3 !important; }

  /* Coming Soon */
  .coming-soon-btn {
    background: rgba(255,255,255,0.08) !important;
    color: #a09888 !important;
  }

  /* ------------------------------------------------------------------
     8. LEGAL-SEITEN: /agb/ /impressum/ /datenschutz/
     ------------------------------------------------------------------ */
  .legal-shell {
    color: #d0cbc3 !important;
  }
  .legal-shell h1, .legal-shell h2,
  .legal-shell h3 { color: #f0ece6 !important; }
  .legal-shell a   { color: #f08060 !important; }
  .legal-shell p   { color: #d0cbc3 !important; }
  .stand           { color: #807870 !important; }

  /* ------------------------------------------------------------------
     9. SICHERHEITSNETZ: CSS Custom Properties + Cream-Backgrounds
     ------------------------------------------------------------------ */
  /* Template C nutzt --bg: #f3eadc — auf dunkel umsetzen */
  :root {
    --bg: #1a1a1a !important;
  }

  /* Body mit inline cream bg (Lieferservice etc.) — NUR cream, NICHT coral */
  body[style*="background: #f3eadc"],
  body[style*="background: rgb(243"],
  body[style*="background-color: #f3eadc"],
  body[style*="background-color: rgb(243"] {
    background: #1a1a1a !important;
  }

  /* Sections mit cream/warm bg — NICHT coral! */
  [style*="background:var(--bg)"],
  [style*="background: var(--bg)"] {
    background: #1a1a1a !important;
  }

  /* Sections die explizit cream/warm als RGB setzen */
  [style*="background-color: rgb(255, 248, 240"],
  [style*="background: rgb(255, 248, 240"],
  [style*="background-color: rgba(255, 248, 240"],
  [style*="background: rgba(255, 248, 240"] {
    background: #1e1e1e !important;
  }

  /* NICHT überschreiben: coral/accent sections behalten ihre Farbe */
  /* var(--coral) und rgb(217, 79, 50) bleiben unangetastet */

  /* Scroll-Animierte Elemente */
  .reveal { color: inherit !important; }

  /* ------------------------------------------------------------------
     10. SELECTION & FOCUS
     ------------------------------------------------------------------ */
  ::selection {
    background: #d94f32 !important;
    color: #fff !important;
  }
  :focus-visible {
    outline-color: #d94f32 !important;
  }

} /* Ende @media (prefers-color-scheme: dark) */


/* ============================================ */
/* DARK MODE PATCH v2 — 03.04.2026             */
/* Fehlende Elemente aller Templates           */
/* ============================================ */
@media (prefers-color-scheme: dark) {

  /* --- Stadtteil-Chips (ueber-uns, stores) --- */
  .area-chip,
  .chip-grid .area-chip {
    background: rgba(37, 37, 37, 0.92) !important;
    color: #e0dcd6 !important;
    border-color: rgba(217, 79, 50, 0.3) !important;
  }

  /* --- Story-Grid Container --- */
  .story-grid {
    background: rgba(26, 26, 26, 0.84) !important;
  }

  /* --- Google Review Cards --- */
  .review-card {
    background: rgba(37, 37, 37, 0.92) !important;
    color: #e0dcd6 !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
  }
  .review-card p,
  .review-card span,
  .review-card .review-text,
  .review-card .review-author,
  .review-card .review-name {
    color: #d0cbc3 !important;
  }
  .review-card .review-stars,
  .review-card .stars {
    color: #f0b400 !important;
  }

  /* --- No-Food-Waste Badges & Tags --- */
  .nfw-badge,
  .tag {
    background: rgba(37, 37, 37, 0.92) !important;
    color: #e0dcd6 !important;
    border-color: rgba(217, 79, 50, 0.3) !important;
  }

  /* --- Template C: Zielgruppen-Seiten --- */
  .zielgruppe-card {
    background: #252525 !important;
    color: #e0dcd6 !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
  }
  .zielgruppe-card h3,
  .zielgruppe-card p,
  .zielgruppe-card span {
    color: #e0dcd6 !important;
  }

  .standort-box {
    background: #252525 !important;
    color: #e0dcd6 !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
  }
  .standort-box h3,
  .standort-box p,
  .standort-box a {
    color: #e0dcd6 !important;
  }

  .weitere-card {
    background: #252525 !important;
    color: #e0dcd6 !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
  }
  .weitere-card h3,
  .weitere-card p {
    color: #e0dcd6 !important;
  }

  .cta-btn {
    background: #d94f32 !important;
    color: #fff !important;
  }

  /* --- Nuclear Safety Net: alle verbleibenden cream/white Backgrounds --- */
  .section[style*="background"],
  div[style*="background: rgb(243"],
  div[style*="background: #f3"],
  div[style*="background-color: rgb(243"],
  div[style*="background-color: rgb(255, 248"],
  div[style*="background-color: rgb(255, 255, 255"],
  div[style*="background: rgb(255, 248"],
  div[style*="background: rgb(255, 255, 255"],
  section[style*="background: rgb(243"],
  section[style*="background: rgb(255"],
  section[style*="background-color: rgb(243"],
  section[style*="background-color: rgb(255"] {
    background: #1a1a1a !important;
    color: #e0dcd6 !important;
  }

  /* --- Übrig gebliebene weiße Sections --- */
  .section {
    background: #1a1a1a !important;
    color: #e0dcd6 !important;
  }
  .section h2, .section h3, .section p {
    color: #e0dcd6 !important;
  }

  /* --- USP Cards (Template C) ergänzend --- */
  .usp-card {
    background: #252525 !important;
    color: #e0dcd6 !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
  }

}

/* ============================================================
   DARK MODE FINAL PATCH — Alle fehlenden Overrides
   Append to: styles.css, styles.min.css, dm.css
   Date: 2026-04-03
   ============================================================ */

@media (prefers-color-scheme: dark) {

  /* ---- MOBILE HAMBURGER MENU (das Hauptproblem!) ---- */
  .nav-links {
    background: rgba(26, 26, 26, 0.98) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 16px 32px rgba(0,0,0,0.5) !important;
  }
  .nav-links a {
    color: #e0dcd6 !important;
  }
  .nav-links a:hover,
  .nav-links a.active {
    color: #d94f32 !important;
  }

  /* ---- MOBILE DROPDOWN (Lieferservice/Bestellen im Hamburger) ---- */
  .nav-dropdown-menu {
    background: rgba(37, 37, 37, 0.98) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5) !important;
  }
  .nav-dropdown-menu a {
    color: #d0cbc3 !important;
  }
  .nav-dropdown-menu a:hover {
    background: rgba(217, 79, 50, 0.15) !important;
    color: #d94f32 !important;
  }

  /* ---- HERO SECTIONS ---- */
  .hero-copy {
    background: rgba(37, 37, 37, 0.95) !important;
    color: #e0dcd6 !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
  }
  .hero-cta {
    background: transparent !important;
  }
  .hero-badge {
    background: rgba(37, 37, 37, 0.92) !important;
    color: #e0dcd6 !important;
  }
  .hero-stage-copy .metric {
    background: rgba(37, 37, 37, 0.92) !important;
    color: #e0dcd6 !important;
  }
  .hero-stage-copy .pill {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #e0dcd6 !important;
  }

  /* ---- ANNOUNCEMENT / NEWS ---- */
  .announcement-card {
    background: #252525 !important;
    color: #e0dcd6 !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
  }

  /* ---- SITE HEADER (Sicherheits-Override) ---- */
  .site-header {
    background: rgba(26, 26, 26, 0.96) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
  }

  /* ---- BRAND / LOGO (Sichtbarkeit sicherstellen) ---- */
  .brand img,
  .brand svg {
    filter: brightness(1.1) !important;
  }

  /* ---- FORMS & INPUTS (Kontakt, Newsletter) ---- */
  input, textarea, select {
    background: rgba(37, 37, 37, 0.92) !important;
    color: #e0dcd6 !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
  }
  input::placeholder, textarea::placeholder {
    color: rgba(208, 203, 195, 0.5) !important;
  }

  /* ---- BUTTONS (alle CTA-Varianten) ---- */
  .button-secondary, .btn-secondary {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #e0dcd6 !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
  }

  /* ---- NUCLEAR SAFETY NET: Inline-Backgrounds ---- */
  [style*="background: rgb(255, 249, 241"],
  [style*="background: rgb(251, 246, 238"],
  [style*="background: rgb(243, 240, 235"],
  [style*="background: rgb(248, 245, 240"],
  [style*="background-color: rgb(255, 249, 241"],
  [style*="background-color: rgb(251, 246, 238"],
  [style*="background: rgb(255, 255, 255"],
  [style*="background-color: rgb(255, 255, 255"],
  [style*="background: white"],
  [style*="background-color: white"],
  [style*="background:#fff"],
  [style*="background-color:#fff"] {
    background: #1a1a1a !important;
    color: #e0dcd6 !important;
  }
}
