/*
Theme Name: Nippon Sushi & Thai
Theme URI: https://nippon-sushi.de
Description: Child-Theme für Divi 5 – Nippon Sushi & Thai, Lüneburg. Enthält ausschließlich Gestaltung; die Bestelllogik liegt im Plugin "Nippon Bestellsystem".
Author: Green Dragon – Thao Duong-Cordsen
Author URI: https://greendragon.xyz
Template: Divi
Version: 1.0.0
License: GNU General Public License v2
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nippon-sushi
*/

:root {
    --nippon-gruen: #4caf50;
    --nippon-gruen-dunkel: #2e7d32;
    --nippon-gruen-tief: #1b5e20;
    --nippon-gelb: #ffc107;
    --nippon-gelb-dunkel: #f5a800;
    /* Für Text auf Weiß: das Marken-Gelb erreicht dort nur 2,0:1 und ist damit
       nicht lesbar. Dieser dunklere Ton derselben Farbfamilie liegt bei 5,9:1. */
    --nippon-gelb-text: #8a5a00;

    /* Zinnoberrot für den Abholrabatt. Kein Signalrot, sondern der Ton
       japanischer Stempel und Torii — er sticht heraus, ohne wie eine
       Fehlermeldung zu wirken. Weiß darauf erreicht 6,5:1. */
    --nippon-rot: #b3271a;
    --nippon-rot-tief: #8f1f14;
    --nippon-rot-hell: #ff7a66;
    /* Rot als Schriftfarbe braucht im Dunkelmodus einen helleren Ton:
       #b3271a erreicht auf dunklem Grund nur rund 3,9:1. */
    --nippon-rot-text: #b3271a;
    /* Tusche und Papier: das Publikum für Sushi erwartet Ruhe und Weißraum,
       nicht die Signalfarben eines Lieferdienstes. Das Markengrün bleibt,
       tritt aber als Akzent auf und nicht als Fläche. */
    --nippon-tinte: #16191a;
    --nippon-text: #333a35;
    --nippon-grau: #6b746c;
    --nippon-linie: #e4e7e1;
    --nippon-flaeche: #f7f7f3;
    --nippon-weiss: #ffffff;
    /* Flächen, die auch Divi-Bausteine einfärben — als Variable, damit der
       Dunkelmodus ohne doppelte Regelsätze auskommt. */
    --nippon-seite: #ffffff;
    --nippon-kopf: #ffffff;
    --nippon-knopf-text: #ffffff;
    --nippon-vegan-flaeche: #e3f3e4;
    --nippon-vegan-text: #1b5e20;
    --nippon-vegi-flaeche: #eef6e9;
    --nippon-vegi-text: #3d6b1f;
    --nippon-abzeichen-kachel: rgba(255, 255, 255, 0.94);
    --nippon-emblem-deckung: 0.07;
    --nippon-bild-filter: none;
    --nippon-anfahrt-deckung: 0.28;
    --nippon-ruf-deckung: 0.62;

    --nippon-radius: 14px;
    --nippon-schatten: 0 4px 20px rgba(31, 36, 33, 0.08);
    --nippon-schatten-hoch: 0 12px 38px rgba(31, 36, 33, 0.14);
    --nippon-schrift: "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
    /* Serife für Überschriften: gibt der Karte den Ton eines Restaurants
       statt den eines Onlineshops. */
    --nippon-schrift-titel: "Lora", Georgia, "Times New Roman", serif;
}

body,
body.et-db #et-boc .et-l {
    font-family: var(--nippon-schrift);
}

body {
    color: var(--nippon-text);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6,
body.et-db #et-boc .et-l h1,
body.et-db #et-boc .et-l h2,
body.et-db #et-boc .et-l h3,
body.et-db #et-boc .et-l h4,
body.et-db #et-boc .et-l h5,
body.et-db #et-boc .et-l h6 {
    font-family: var(--nippon-schrift-titel);
    color: var(--nippon-tinte);
    font-weight: 600;
    letter-spacing: -0.005em;
}

/* Kurze, ausgezeichnete Zeilen bleiben in der Grundschrift: Serifen wirken
   dort unruhig, weil sie in Versalien und Kleingrößen zu viel Kontrast haben. */
.nippon-augenbraue,
.nippon-karte__unter,
.nippon-ernfilter__titel,
.nippon-abzeichen,
.nippon-knopf,
.nippon-ernfilter__knopf,
.nippon-karte__sprung,
#top-menu li a {
    font-family: var(--nippon-schrift);
}

a {
    color: var(--nippon-gruen-dunkel);
}

a:hover {
    color: var(--nippon-gruen-tief);
}

/* ---------- Kopfbereich ---------- */

#main-header {
    box-shadow: 0 1px 0 var(--nippon-linie) !important;
}

/* Das Logo trägt den Schriftzug „Sushi & Thai"; unter dieser Höhe ist er
   nicht mehr lesbar. */
#logo {
    max-height: 62px !important;
}

.et_pb_svg_logo #logo,
#main-header .logo_container {
    height: auto;
}

@media (max-width: 980px) {
    #logo {
        max-height: 48px !important;
    }
}

#et-top-navigation {
    font-weight: 600;
}

#top-menu li a {
    color: var(--nippon-text) !important;
    font-size: 15px;
}

#top-menu li a:hover,
#top-menu li.current-menu-item > a {
    color: var(--nippon-gruen-dunkel) !important;
    opacity: 1;
}

/* Der Bestell-Punkt im Menü wird zum Knopf */
#top-menu li.nippon-cta > a {
    background: var(--nippon-gruen-dunkel);
    color: var(--nippon-weiss) !important;
    border-radius: 999px;
    padding: 10px 22px !important;
    transition: background 0.2s ease;
}

#top-menu li.nippon-cta > a:hover {
    background: var(--nippon-gruen-tief);
    color: var(--nippon-weiss) !important;
}

/* ---------- Startseite: Hero ---------- */

.nippon-hero {
    position: relative;
    overflow: hidden;
    padding: 82px 0 74px;
    background:
        radial-gradient(120% 90% at 82% 8%, rgba(255, 193, 7, 0.13) 0%, rgba(255, 193, 7, 0) 55%),
        radial-gradient(95% 80% at 8% 92%, rgba(76, 175, 80, 0.15) 0%, rgba(76, 175, 80, 0) 58%),
        var(--nippon-weiss);
}

/* Emblem als ruhige Flächengrafik, bewusst sehr zurückgenommen */
.nippon-hero__emblem {
    position: absolute;
    top: 50%;
    right: -70px;
    width: 480px;
    max-width: 46vw;
    transform: translateY(-50%);
    opacity: var(--nippon-emblem-deckung);
    pointer-events: none;
    user-select: none;
}

.nippon-hero__inhalt {
    position: relative;
    z-index: 1;
    max-width: 40rem;
}

.nippon-hero h1 {
    margin: 0 0 18px;
    font-size: clamp(2.1rem, 5vw, 3.35rem);
    line-height: 1.1;
    font-weight: 700;
}

.nippon-hero h1 em {
    font-style: normal;
    color: var(--nippon-gruen-dunkel);
}

.nippon-hero__text {
    margin: 0 0 30px;
    font-size: clamp(1rem, 1.5vw, 1.16rem);
    line-height: 1.7;
    color: var(--nippon-grau);
}

.nippon-knopfreihe {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.nippon-knopf {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 14px 30px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    border: 2px solid transparent;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

/* Die Schriftfarbe muss sich gegen umgebende Link-Regeln durchsetzen —
   sonst steht dunkler Text auf dunkelgrünem Grund (2,1:1 statt 5,1:1). */
.nippon-knopf--voll,
a.nippon-knopf--voll,
.nippon-knopf--voll:visited {
    background: var(--nippon-gruen-dunkel);
    color: var(--nippon-weiss) !important;
}

.nippon-knopf--voll:hover,
a.nippon-knopf--voll:hover,
.nippon-knopf--voll:focus {
    background: var(--nippon-gruen-tief);
    color: var(--nippon-weiss) !important;
    transform: translateY(-2px);
}

.nippon-knopf--rand {
    border-color: var(--nippon-linie);
    color: var(--nippon-tinte);
    background: var(--nippon-weiss);
}

.nippon-knopf--rand:hover {
    border-color: var(--nippon-gruen);
    color: var(--nippon-gruen-dunkel);
    transform: translateY(-2px);
}

/* Der Abholrabatt ist das, was der Betreiber am meisten will — er bekommt
   deshalb die Signalfarbe und nicht das ohnehin allgegenwärtige Grün. */
.nippon-hero__marke {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
    padding: 7px 18px 7px 8px;
    border-radius: 999px;
    background: var(--nippon-rot);
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 700;
    box-shadow: 0 3px 14px rgba(179, 39, 26, 0.28);
}

.nippon-hero__marke b {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 26px;
    padding: 0 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--nippon-rot-tief);
    font-size: 0.88rem;
    letter-spacing: -0.01em;
}

/* ---------- Abschnitte ---------- */

/* Divi setzt Section-Padding inline und mit hoher Spezifität; die eigenen
   Abstände müssen deshalb nachdrücklich gesetzt werden. */
.et_pb_section.nippon-abschnitt {
    padding-top: 82px !important;
    padding-bottom: 82px !important;
}

.et_pb_section.nippon-hero {
    padding-top: 90px !important;
    padding-bottom: 84px !important;
}

.nippon-abschnitt--flaeche {
    background: var(--nippon-flaeche) !important;
}

@media (max-width: 767px) {
    .et_pb_section.nippon-abschnitt {
        padding-top: 52px !important;
        padding-bottom: 52px !important;
    }

    .et_pb_section.nippon-hero {
        padding-top: 54px !important;
        padding-bottom: 52px !important;
    }
}

.nippon-kopf {
    max-width: 40rem;
    margin: 0 0 38px;
}

.nippon-kopf--mitte {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.nippon-kopf h2 {
    margin: 0 0 12px;
    font-size: clamp(1.6rem, 3vw, 2.15rem);
    line-height: 1.2;
}

.nippon-kopf p {
    margin: 0;
    color: var(--nippon-grau);
    line-height: 1.7;
}

/* ---------- Angebot: All you can eat ---------- */

.nippon-angebot {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 0;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--nippon-linie);
    background: var(--nippon-weiss);
    box-shadow: var(--nippon-schatten);
}

.nippon-angebot__text {
    padding: 46px 44px;
}

.nippon-angebot__text h2 {
    margin: 0 0 12px;
    font-size: clamp(1.5rem, 2.6vw, 2rem);
}

.nippon-angebot__text p {
    margin: 0 0 8px;
    color: var(--nippon-grau);
    line-height: 1.7;
}

.nippon-angebot__preis {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 46px 30px;
    background: linear-gradient(150deg, var(--nippon-gruen-dunkel), var(--nippon-gruen));
    color: var(--nippon-weiss);
    text-align: center;
}

.nippon-angebot__betrag {
    font-size: clamp(2.4rem, 5vw, 3.4rem);
    font-weight: 700;
    line-height: 1;
    color: var(--nippon-gelb);
}

.nippon-angebot__einheit {
    font-size: 0.95rem;
    opacity: 0.92;
}

@media (max-width: 820px) {
    .nippon-angebot {
        grid-template-columns: 1fr;
    }

    .nippon-angebot__text {
        padding: 34px 26px;
    }

    .nippon-angebot__preis {
        padding: 32px 22px;
    }
}

/* ---------- Bildplatz, bis eigene Fotos vorliegen ---------- */

.nippon-bildplatz {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 230px;
    border-radius: var(--nippon-radius);
    background:
        repeating-linear-gradient(135deg, rgba(76, 175, 80, 0.05) 0 12px, rgba(76, 175, 80, 0.09) 12px 24px);
    border: 1px dashed rgba(76, 175, 80, 0.35);
    color: var(--nippon-gruen-dunkel);
    font-size: 0.86rem;
    font-weight: 600;
    text-align: center;
    padding: 20px;
}

/* ---------- Kontakt ---------- */

.nippon-kontakt {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 26px;
}

.nippon-kontakt h3 {
    margin: 0 0 10px;
    font-size: 1.05rem;
    color: var(--nippon-gruen-dunkel);
}

/* Knöpfe von der allgemeinen Link-Farbe ausnehmen */
.nippon-kontakt p,
.nippon-kontakt a:not(.nippon-knopf) {
    margin: 0 0 4px;
    line-height: 1.75;
    color: var(--nippon-text);
    text-decoration: none;
}

.nippon-kontakt a:not(.nippon-knopf):hover {
    color: var(--nippon-gruen-dunkel);
    text-decoration: underline;
}

/* ---------- Bausteine ---------- */

.nippon-augenbraue {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--nippon-gelb-text);
    margin-bottom: 0.6rem;
}

.nippon-karte {
    background: var(--nippon-weiss);
    border: 1px solid var(--nippon-linie);
    border-radius: var(--nippon-radius);
    box-shadow: var(--nippon-schatten);
}

/* Kategorie-Kacheln der Startseite */
/* Drei Spalten: bei sechs Kategorien ergibt das zwei volle Reihen statt
   einer angebrochenen mit Lücke. */
.nippon-kacheln {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

@media (max-width: 980px) {
    .nippon-kacheln {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .nippon-kacheln {
        grid-template-columns: 1fr;
    }
}

.nippon-kachel {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 230px;
    padding: 22px;
    border-radius: var(--nippon-radius);
    overflow: hidden;
    /* Kacheln ohne Foto: Markenverlauf statt Platzhalterbild */
    background: linear-gradient(150deg, var(--nippon-gruen-tief) 0%, var(--nippon-gruen-dunkel) 55%, #43a047 100%);
    color: var(--nippon-weiss);
    text-decoration: none;
    box-shadow: var(--nippon-schatten);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Emblem als dezente Signatur auf den bildlosen Kacheln */
.nippon-kachel:not(:has(.nippon-kachel__bild))::before {
    content: "";
    position: absolute;
    right: -34px;
    bottom: -46px;
    width: 190px;
    height: 190px;
    background: url("bilder/nippon-emblem.svg") no-repeat center / contain;
    opacity: 0.16;
    filter: grayscale(1) brightness(3);
    pointer-events: none;
}

.nippon-kachel:hover {
    transform: translateY(-4px);
    box-shadow: var(--nippon-schatten-hoch);
    color: var(--nippon-weiss);
}

.nippon-kachel__bild {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

.nippon-kachel:hover .nippon-kachel__bild {
    transform: scale(1.05);
}

.nippon-kachel::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 40, 20, 0.86) 0%, rgba(15, 40, 20, 0.35) 55%, rgba(15, 40, 20, 0.1) 100%);
}

.nippon-kachel__inhalt {
    position: relative;
    z-index: 1;
}

.nippon-kachel__titel {
    display: block;
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.2;
}

.nippon-kachel__pfeil {
    display: inline-block;
    margin-top: 6px;
    font-size: 1.15rem;
    line-height: 1;
    color: var(--nippon-gelb);
    transform: translateX(0);
    transition: transform 0.25s ease;
}

.nippon-kachel:hover .nippon-kachel__pfeil {
    transform: translateX(5px);
}

/* Info-Streifen (Öffnungszeiten, Abholrabatt, Lieferung) */
.nippon-fakten {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
}

.nippon-fakt {
    padding: 24px;
    background: var(--nippon-weiss);
    border: 1px solid var(--nippon-linie);
    border-left: 4px solid var(--nippon-gelb);
    border-radius: var(--nippon-radius);
}

.nippon-fakt__titel {
    margin: 0 0 8px;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--nippon-gruen-dunkel);
}

.nippon-fakt p {
    margin: 0;
    line-height: 1.65;
    font-size: 0.95rem;
}

/* Hinweisbanner Abholrabatt */
.nippon-rabatt-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    padding: 18px 22px;
    border-radius: var(--nippon-radius);
    background: linear-gradient(100deg, var(--nippon-gruen-dunkel), var(--nippon-gruen));
    color: var(--nippon-weiss);
}

.nippon-rabatt-banner strong {
    color: var(--nippon-gelb);
}

/* Öffnungszeiten-Liste */
.nippon-zeiten {
    margin: 0;
    padding: 0;
    list-style: none;
}

.nippon-zeiten li {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 9px 0;
    border-bottom: 1px dashed var(--nippon-linie);
}

.nippon-zeiten li:last-child {
    border-bottom: 0;
}

.nippon-zeiten dt,
.nippon-zeiten .tag {
    font-weight: 600;
    color: var(--nippon-tinte);
}

/* ---------- Speisekarte / WooCommerce ---------- */

/* Raster statt Float: nur so sind alle Karten einer Reihe gleich hoch,
   unabhängig davon, wie lang die Beschreibung ausfällt. */
.woocommerce ul.products,
.woocommerce-page ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
    display: none !important;
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
    /* Divis Float- und Breitenangaben abschalten, das Raster übernimmt. */
    float: none !important;
    width: auto !important;
    margin: 0 !important;
    clear: none !important;

    display: flex;
    flex-direction: column;
    height: 100%;

    background: var(--nippon-weiss);
    border: 1px solid var(--nippon-linie);
    border-radius: var(--nippon-radius);
    padding: 16px;
    box-shadow: var(--nippon-schatten);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.woocommerce ul.products li.product:hover {
    transform: translateY(-3px);
    box-shadow: var(--nippon-schatten-hoch);
}

/* Immer gleich hoher Bildbereich, auch wenn kein Foto hinterlegt ist. */
.woocommerce ul.products li.product a img {
    aspect-ratio: 4 / 3;
    object-fit: cover;
    width: 100%;
    margin-bottom: 0 !important;
    border-radius: 10px;
    background: var(--nippon-flaeche);
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 1.05rem !important;
    font-weight: 600;
    color: var(--nippon-tinte);
    padding-top: 10px !important;
}

/* Das Kennzeichen liegt auf dem Bild statt darüber — sonst beginnen die Titel
   je nach Kennzeichnung auf unterschiedlicher Höhe. */
.woocommerce ul.products li.product {
    position: relative;
}

.woocommerce ul.products li.product > .nippon-abzeichen {
    position: absolute;
    top: 26px;
    left: 26px;
    z-index: 2;
    margin: 0;
    background: var(--nippon-abzeichen-kachel);
    box-shadow: 0 1px 6px rgba(22, 25, 26, 0.24);
}

.woocommerce ul.products li.product .price,
.woocommerce div.product p.price,
.woocommerce div.product span.price {
    color: var(--nippon-gruen-dunkel) !important;
    font-weight: 700;
}

/* Der Preis wird nach unten geschoben und steht dadurch in jeder Karte
   auf derselben Linie. */
.woocommerce ul.products li.product .price {
    margin-top: auto !important;
    padding-top: 10px;
}

/* Die Beschreibung auf drei Zeilen begrenzen — sonst bestimmt das längste
   Gericht die Höhe der ganzen Reihe. */
.woocommerce ul.products li.product .nippon-kurzbeschreibung {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: calc(3 * 1.55 * 0.86rem);
    font-size: 0.86rem;
    line-height: 1.55;
    color: var(--nippon-grau);
    margin: 4px 0 10px;
}

@media (max-width: 1100px) {
    .woocommerce ul.products,
    .woocommerce-page ul.products {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 860px) {
    .woocommerce ul.products,
    .woocommerce-page ul.products {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 520px) {
    .woocommerce ul.products,
    .woocommerce-page ul.products {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* Buttons durchgängig im Markenton */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
.woocommerce #place_order {
    background: var(--nippon-gruen-dunkel) !important;
    color: var(--nippon-weiss) !important;
    border: 0 !important;
    border-radius: 999px !important;
    padding: 12px 26px !important;
    font-weight: 700 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    transition: background 0.2s ease, transform 0.2s ease;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce #place_order:hover {
    background: var(--nippon-gruen-tief) !important;
    transform: translateY(-1px);
}

/* Divi färbt Hinweise kräftig blau — das passt nicht zur Marke. */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error,
.woocommerce .woocommerce-message,
.woocommerce .woocommerce-info,
.woocommerce .woocommerce-error {
    padding: 16px 20px 16px 22px !important;
    margin: 0 0 24px !important;
    border: 1px solid var(--nippon-linie) !important;
    border-left: 4px solid var(--nippon-gelb) !important;
    border-radius: var(--nippon-radius) !important;
    background: var(--nippon-flaeche) !important;
    color: var(--nippon-text) !important;
    font-size: 0.95rem;
    line-height: 1.65;
    list-style: none;
}

.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before,
.woocommerce .woocommerce-message::before,
.woocommerce .woocommerce-info::before,
.woocommerce .woocommerce-error::before {
    display: none !important;
}

.woocommerce-message a,
.woocommerce-info a,
.woocommerce-error a {
    color: var(--nippon-gruen-dunkel) !important;
    font-weight: 600;
}

.woocommerce-error,
.woocommerce .woocommerce-error {
    border-left-color: #c0392b !important;
    background: #fff6f5 !important;
    color: #7d2b20 !important;
}

/* Der Knopf im Hinweis soll nicht wie der Haupt-Handlungsknopf wirken */
.woocommerce-message .button {
    background: transparent !important;
    color: var(--nippon-gruen-dunkel) !important;
    border: 1px solid var(--nippon-linie) !important;
    padding: 9px 18px !important;
    font-weight: 600 !important;
}

/* Auf der Warenkorbseite ist „… wurde hinzugefügt" überflüssig */
.woocommerce-cart .woocommerce-message {
    display: none;
}

/* Abholrabatt in Warenkorb und Kasse hervorheben */
.woocommerce .cart-discount,
.woocommerce tr.fee th,
.woocommerce tr.fee td {
    color: var(--nippon-gruen-dunkel);
    font-weight: 700;
}

/* Blockierte Kasse: der Grund muss sofort ins Auge fallen */
.nippon-kassenhinweis {
    max-width: 44rem;
    margin: 0 auto 40px;
    padding: 34px 36px;
    background: var(--nippon-weiss);
    border: 1px solid var(--nippon-linie);
    border-radius: var(--nippon-radius);
    box-shadow: var(--nippon-schatten);
}

.nippon-kassenhinweis h2 {
    margin: 0 0 16px;
    font-size: 1.5rem;
}

.nippon-kassenhinweis .woocommerce-error {
    margin: 0 0 18px;
    padding: 16px 18px 16px 20px;
    list-style: none;
    background: #fff6f5;
    border: 1px solid #f0cfca;
    border-left: 4px solid #c0392b;
    border-radius: 10px;
    color: #7d2b20;
    line-height: 1.65;
}

.nippon-kassenhinweis .woocommerce-error::before {
    display: none;
}

.nippon-abholhinweis {
    margin: 0 0 22px;
    padding: 14px 18px;
    border-radius: var(--nippon-radius);
    background: var(--nippon-flaeche);
    border: 1px solid var(--nippon-linie);
    border-left: 4px solid var(--nippon-gelb);
    font-size: 0.95rem;
}

.nippon-abholhinweis strong {
    color: var(--nippon-gruen-dunkel);
}

/* Lieferort-Auswahl an der Kasse */
#nippon_lieferort_field select {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--nippon-linie);
    border-radius: 8px;
    background: var(--nippon-weiss);
    font-size: 0.95rem;
}

.nippon-mindestbestellwert-hinweis {
    margin-top: 8px;
    font-size: 0.87rem;
    color: var(--nippon-grau);
}

/* Kategorie-Navigation der Speisekarte */
.nippon-kartennav {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 14px 0;
    margin-bottom: 26px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid var(--nippon-linie);
}

.nippon-kartennav a {
    padding: 7px 15px;
    border-radius: 999px;
    background: var(--nippon-flaeche);
    border: 1px solid var(--nippon-linie);
    color: var(--nippon-text);
    font-size: 0.87rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.nippon-kartennav a:hover,
.nippon-kartennav a[aria-current="true"] {
    background: var(--nippon-gruen-dunkel);
    border-color: var(--nippon-gruen-dunkel);
    color: var(--nippon-weiss);
}

/* ---------- Liefergebiete-Tabelle ---------- */

.nippon-liefertabelle {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.nippon-liefertabelle th,
.nippon-liefertabelle td {
    padding: 11px 14px;
    text-align: left;
    border-bottom: 1px solid var(--nippon-linie);
}

.nippon-liefertabelle thead th {
    background: var(--nippon-gruen-dunkel);
    color: var(--nippon-weiss);
    font-weight: 700;
}

.nippon-liefertabelle td:nth-child(3),
.nippon-liefertabelle td:nth-child(4),
.nippon-liefertabelle th:nth-child(3),
.nippon-liefertabelle th:nth-child(4) {
    text-align: right;
    white-space: nowrap;
}

.nippon-liefertabelle tbody tr:nth-child(even) {
    background: var(--nippon-flaeche);
}

.nippon-tabelle-rahmen {
    border: 1px solid var(--nippon-linie);
    border-radius: var(--nippon-radius);
    overflow: hidden;
}

.nippon-liefertabelle__zusatz {
    color: var(--nippon-grau);
}

/* Auf schmalen Bildschirmen wird jede Zeile zur eigenen Karte. Seitwärts
   scrollen zu müssen ist auf dem Handy die schlechtere Lösung — die
   Spaltenüberschrift steht dann über data-label vor dem jeweiligen Wert. */
@media (max-width: 720px) {
    .nippon-tabelle-rahmen {
        border: 0;
        border-radius: 0;
    }

    .nippon-liefertabelle,
    .nippon-liefertabelle tbody,
    .nippon-liefertabelle tr,
    .nippon-liefertabelle td {
        display: block;
        width: 100%;
    }

    /* Der Kopf entfällt sichtbar, bleibt aber für Screenreader erhalten. */
    .nippon-liefertabelle thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
    }

    .nippon-liefertabelle tbody tr {
        margin-bottom: 14px;
        border: 1px solid var(--nippon-linie);
        border-radius: var(--nippon-radius);
        background: var(--nippon-weiss) !important;
        overflow: hidden;
    }

    .nippon-liefertabelle td {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: baseline;
        gap: 6px 16px;
        padding: 10px 15px;
        text-align: right !important;
        white-space: normal !important;
        border-bottom: 1px solid var(--nippon-linie);
    }

    .nippon-liefertabelle td::before {
        content: attr(data-label);
        flex: 0 0 auto;
        font-weight: 600;
        color: var(--nippon-grau);
        text-align: left;
    }

    /* Der Ort ist die Überschrift der Karte, nicht eine Zeile unter vielen. */
    .nippon-liefertabelle td:first-child {
        display: block;
        text-align: left !important;
        background: var(--nippon-flaeche);
        font-weight: 700;
        font-size: 1.02rem;
        color: var(--nippon-tinte);
    }

    .nippon-liefertabelle td:first-child::before {
        display: none;
    }

    .nippon-liefertabelle td:last-child {
        border-bottom: 0;
    }
}

/* ---------- Ernährungsfilter ---------- */

.nippon-ernfilter {
    margin: 0 0 34px;
    padding: 20px 22px;
    border: 1px solid var(--nippon-linie);
    border-radius: var(--nippon-radius);
    background: var(--nippon-weiss);
}

.nippon-ernfilter__titel {
    display: block;
    margin-bottom: 12px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--nippon-gelb-text);
}

.nippon-ernfilter__reihe {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.nippon-ernfilter__knopf {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: 2px solid var(--nippon-linie);
    border-radius: 999px;
    background: var(--nippon-weiss);
    color: var(--nippon-tinte) !important;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.nippon-ernfilter__knopf:hover {
    border-color: var(--nippon-gruen);
    background: var(--nippon-flaeche);
}

.nippon-ernfilter__knopf.ist-aktiv {
    border-color: var(--nippon-gruen-dunkel);
    background: var(--nippon-gruen-dunkel);
    color: var(--nippon-weiss) !important;
}

.nippon-ernfilter__sym {
    font-size: 1.05rem;
    line-height: 1;
}

.nippon-ernfilter__hinweis {
    margin: 14px 0 0;
    font-size: 0.86rem;
    line-height: 1.6;
    color: var(--nippon-grau);
}

.nippon-ernfilter__stand:empty {
    display: none;
}

.nippon-ernfilter__stand {
    margin: 8px 0 0;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--nippon-gruen-tief);
}

/* ---------- Kennzeichnung am Gericht ---------- */

.nippon-abzeichen {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 6px;
    padding: 3px 11px 3px 8px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.5;
}

.nippon-abzeichen--vegan {
    background: var(--nippon-vegan-flaeche);
    color: var(--nippon-vegan-text);
}

.nippon-abzeichen--vegetarisch {
    background: var(--nippon-vegi-flaeche);
    color: var(--nippon-vegi-text);
}

/* ---------- Abholung ---------- */

.nippon-abholung__kopf {
    max-width: 44rem;
    margin: 0 0 34px;
}

.nippon-abholung__kopf h2 {
    margin: 0 0 12px;
    font-size: clamp(1.6rem, 3vw, 2.15rem);
    line-height: 1.2;
}

/* Der Abholrabatt ist überall rot — auch in der Überschrift. */
.nippon-abholung__kopf h2 em {
    font-style: normal;
    color: var(--nippon-rot-text);
}

/*
 * Jede Nennung des Abholrabatts im Fließtext.
 *
 * Eine eigene Klasse statt Einzelfällen: so bleibt die Auszeichnung
 * einheitlich, und eine spätere Änderung der Farbe wirkt überall.
 * Rechtstexte bleiben ausgenommen — dort wäre eine Hervorhebung deplatziert.
 */
.nippon-rabatt {
    font-weight: 700;
    color: var(--nippon-rot-text);
    white-space: nowrap;
}

.nippon-abholung__kopf p {
    margin: 0;
    color: var(--nippon-grau);
    line-height: 1.7;
}

.nippon-schritte {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin: 0;
    padding: 0;
}

/* Die Nummer steckt im grünen Kreis. Divi setzt für Listen eine eigene
   Aufzählung, sonst stünde die Ziffer doppelt da — einmal als „1." davor
   und einmal im Kreis. */
.nippon-schritte,
.nippon-schritte > li {
    list-style: none !important;
}

.nippon-schritte > li::marker {
    content: none;
}

.nippon-schritte > li::before {
    display: none !important;
}

.nippon-schritt {
    position: relative;
    padding: 30px 26px 26px;
    border: 1px solid var(--nippon-linie);
    border-radius: var(--nippon-radius);
    background: var(--nippon-weiss);
    box-shadow: var(--nippon-schatten);
}

.nippon-schritt__nr {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-bottom: 14px;
    border-radius: 50%;
    background: var(--nippon-gruen-dunkel);
    color: var(--nippon-weiss);
    font-weight: 700;
    font-size: 1.1rem;
}

.nippon-schritt h3 {
    margin: 0 0 8px;
    font-size: 1.16rem;
}

.nippon-schritt p {
    margin: 0 0 14px;
    color: var(--nippon-grau);
    line-height: 1.65;
    font-size: 0.96rem;
}

.nippon-schritt__link {
    font-weight: 700;
    text-decoration: none;
    border-bottom: 2px solid var(--nippon-gelb);
    padding-bottom: 1px;
}

.nippon-abholung__spar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 22px;
    margin: 26px 0 0;
    /* Oben und unten ausdrücklich gleich — Divi setzt für Absätze sonst ein
       zusätzliches padding-bottom. */
    padding: 22px 28px !important;
    border-radius: var(--nippon-radius);
    background: linear-gradient(118deg, var(--nippon-rot-tief), var(--nippon-rot));
    color: #ffffff;
    line-height: 1.6;
    box-shadow: 0 8px 26px rgba(179, 39, 26, 0.24);
}

/* line-height 1 macht die Zeilenbox kleiner als die Ziffern wirken; der
   Streifen sah dadurch unten enger aus als oben. */
.nippon-abholung__sparzahl {
    font-family: var(--nippon-schrift-titel);
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.25;
}

/* Kleiner roter Merker im Kontaktbereich.
   Die Auswahl muss „.nippon-kontakt p" schlagen, sonst steht dunkle Schrift
   auf rotem Grund (1,8:1 statt 6,5:1). */
.nippon-kontakt p.nippon-kontakt__spar,
.nippon-kontakt__spar {
    display: inline-block;
    margin-top: 12px !important;
    padding: 5px 14px;
    border-radius: 999px;
    background: var(--nippon-rot);
    color: #ffffff;
    font-size: 0.86rem;
    font-weight: 700;
}

.nippon-kopf__vegi {
    margin-top: 12px !important;
    font-size: 0.95rem;
}

.nippon-hero__fussnote {
    margin: 16px 0 0;
    font-size: 0.88rem;
    color: var(--nippon-grau);
}

/* ---------- Anfahrt ---------- */

.nippon-anfahrt {
    margin-top: 38px;
    scroll-margin-top: 90px;
}

.nippon-anfahrt__rahmen {
    position: relative;
    border: 1px solid var(--nippon-linie);
    border-radius: var(--nippon-radius);
    overflow: hidden;
    background: var(--nippon-flaeche);
}

.nippon-anfahrt__karte {
    display: block;
    width: 100%;
    height: 340px;
    border: 0;
}

/* Der Platzhalter hat dieselbe Höhe wie die Karte — beim Laden springt
   dadurch nichts. */
.nippon-anfahrt__platz {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 340px;
    padding: 30px 26px;
    text-align: center;
}

/* Deutlich zurückgenommen: die Zeichnung soll die Fläche füllen, nicht mit
   dem Text um Aufmerksamkeit ringen. */
.nippon-anfahrt__bild {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.28;
    pointer-events: none;
}

.nippon-anfahrt__frage,
.nippon-anfahrt__hinweis,
.nippon-anfahrt__fein,
.nippon-anfahrt__laden {
    position: relative;
    z-index: 1;
}

.nippon-anfahrt__frage {
    margin: 0 0 6px;
    font-family: var(--nippon-schrift-titel);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--nippon-tinte);
}

.nippon-anfahrt__hinweis {
    max-width: 30rem;
    margin: 0 0 18px;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--nippon-text);
}

.nippon-anfahrt__fein {
    margin: 14px 0 0;
    font-size: 0.8rem;
    color: var(--nippon-grau);
}

.nippon-anfahrt__unten {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
    gap: 6px 20px;
    margin: 12px 0 0 !important;
    font-size: 0.92rem;
}

.nippon-anfahrt__adresse {
    color: var(--nippon-grau);
}

.nippon-anfahrt__route {
    font-weight: 700;
}

@media (max-width: 560px) {
    .nippon-anfahrt__karte,
    .nippon-anfahrt__platz {
        height: 260px;
        min-height: 260px;
    }
}

/* ---------- Telefonbestellung ---------- */

.nippon-telefonknopf {
    letter-spacing: 0.01em;
}

.nippon-telefonknopf__sym {
    font-size: 1.1rem;
    line-height: 1;
}

.nippon-telefonhinweis {
    margin: 22px 0;
    padding: 22px 24px;
    border-radius: var(--nippon-radius);
    border: 1px solid var(--nippon-linie);
    background: var(--nippon-flaeche);
}

.nippon-telefonhinweis__text {
    margin: 0 0 14px;
    color: var(--nippon-text);
    line-height: 1.65;
}

@media (max-width: 900px) {
    .nippon-schritte {
        grid-template-columns: 1fr;
    }
}

/* ---------- Kleine Bildschirme ---------- */

/* ---------- Rechtstexte ---------- */

.nippon-rechtstext {
    max-width: 46rem;
}

.nippon-rechtstext h2 {
    margin-top: 2.2rem;
    font-size: 1.45rem;
}

.nippon-rechtstext h3 {
    margin-top: 1.6rem;
    font-size: 1.12rem;
    color: var(--nippon-gruen-dunkel);
}

.nippon-rechtstext p,
.nippon-rechtstext li {
    line-height: 1.75;
}

.nippon-platzhalter {
    background: #fff4d6;
    border-bottom: 2px solid var(--nippon-gelb-dunkel);
    padding: 0 4px;
    font-weight: 700;
    color: #7a5600;
}

/* ---------- Fußbereich ---------- */

#main-footer {
    background: #16281a;
}

.nippon-footer {
    padding: 58px 0 44px;
}

.nippon-footer__raster {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1.1fr 0.8fr;
    gap: 40px;
}

.nippon-footer__block h4 {
    margin: 0 0 14px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--nippon-gelb);
}

.nippon-footer__block p,
.nippon-footer__block li {
    margin: 0 0 8px;
    font-size: 0.93rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.76);
}

.nippon-footer__block a {
    color: rgba(255, 255, 255, 0.76);
    text-decoration: none;
}

.nippon-footer__block a:hover {
    color: var(--nippon-gelb);
}

.nippon-footer__logo {
    height: auto;
    max-width: 190px;
    margin-bottom: 16px;
}

.nippon-footer__liste {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Öffnungszeiten-Shortcode im dunklen Fuß lesbar halten */
.nippon-footer .nippon-zeiten li {
    border-bottom-color: rgba(255, 255, 255, 0.14);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.76);
}

.nippon-footer .nippon-zeiten .tag {
    color: rgba(255, 255, 255, 0.95);
}

#footer-bottom {
    background: #101d13;
    padding: 16px 0;
}

#footer-bottom .et-social-icons {
    display: none;
}

#footer-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 6px 24px;
    width: 100%;
    float: none !important;
    /* 0,5 ergäbe nur 4,4:1 — knapp unter der Anforderung von 4,5:1 */
    color: rgba(255, 255, 255, 0.66);
    font-size: 0.82rem;
}

#footer-info a {
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.82rem;
    text-decoration: none;
}

#footer-info a:hover {
    color: var(--nippon-gelb);
}

.nippon-herz {
    color: #e2645c;
}

@media (max-width: 700px) {
    #footer-info {
        justify-content: center;
        text-align: center;
    }
}

@media (max-width: 980px) {
    .nippon-footer__raster {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
}

@media (max-width: 560px) {
    .nippon-footer__raster {
        grid-template-columns: 1fr;
    }
}

/* ---------- Karte als Liste ---------- */

/*
 * Der Kartenbereich hat eine eigene Innenpolsterung, damit die Zeilen nicht
 * am Rand kleben. Damit die Überschrift darüber nicht danebensteht, bekommt
 * sie über nippon-kopf--karte denselben Einzug — sonst beginnt der Titel
 * 32 px weiter links als jedes Gericht.
 */
.nippon-karte,
.nippon-kopf--karte {
    --nippon-karte-einzug: clamp(10px, 2.5vw, 34px);
    padding-inline: var(--nippon-karte-einzug);
}

.nippon-karte {
    max-width: 68rem;
}

.nippon-kopf--karte {
    max-width: calc(68rem + 2 * clamp(10px, 2.5vw, 34px));
}

/* ---------- Mitlaufende Bedienleiste ---------- */

/*
 * Divi fixiert den Kopfbereich beim Scrollen (64 px). Ohne diesen Abstand
 * klebte die Leiste dahinter und wäre unerreichbar. Unterhalb von 981 px
 * fixiert Divi den Kopf nicht — dort ist der Abstand null.
 */
:root {
    --nippon-kopf-hoehe: 0px;
}

@media (min-width: 981px) {
    :root {
        --nippon-kopf-hoehe: 64px;
    }
}

.nippon-karte__einleitung {
    margin-bottom: 14px;
}

.nippon-karte__einleitung .nippon-ernfilter__hinweis {
    margin: 6px 0 0;
    max-width: 46rem;
}

.nippon-karte__leiste {
    position: sticky;
    top: var(--nippon-kopf-hoehe);
    z-index: 30;
    margin: 0 0 38px;
    /* Über die seitliche Polsterung der Karte hinaus, damit beim Scrollen
       kein Inhalt seitlich daneben durchscheint. */
    margin-inline: calc(-1 * var(--nippon-karte-einzug));
    padding-inline: var(--nippon-karte-einzug);
    background: var(--nippon-seite);
    border-bottom: 1px solid var(--nippon-linie);
    box-shadow: 0 6px 16px -12px rgba(22, 25, 26, 0.45);
}

.nippon-karte__leiste-innen {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px 0;
}

/* Die Knopfreihe im mitlaufenden Zustand etwas kompakter */
.nippon-karte__leiste .nippon-ernfilter__reihe {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.nippon-karte__leiste .nippon-ernfilter__knopf {
    padding: 8px 16px;
    font-size: 0.9rem;
}

/* Sprungleiste zu den Abschnitten */
.nippon-karte__navi {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 0;
    padding: 0;
}

/* Knapp gehalten: die Leiste läuft mit und soll nicht mehr Platz nehmen
   als nötig. Bei größerer Polsterung rutscht die letzte Kategorie in eine
   dritte Zeile. */
.nippon-karte__sprung {
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--nippon-flaeche);
    color: var(--nippon-tinte) !important;
    font-size: 0.84rem;
    font-weight: 600;
    white-space: nowrap;
    text-decoration: none;
    transition: background 0.2s ease;
}

.nippon-karte__sprung:hover {
    background: var(--nippon-gruen-dunkel);
    color: var(--nippon-weiss) !important;
}

.nippon-karte__block {
    margin: 0 0 52px;
    /* Unter dem fixierten Kopfbereich und der mitlaufenden Leiste hindurch:
       sonst verschwindet die Abschnittsüberschrift beim Anspringen darunter. */
    scroll-margin-top: calc(var(--nippon-kopf-hoehe) + 116px);
}

.nippon-karte__titel {
    margin: 0 0 6px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--nippon-gelb);
    font-size: clamp(1.4rem, 2.6vw, 1.85rem);
}

.nippon-karte__einleitung {
    margin: 10px 0 0;
    color: var(--nippon-grau);
    line-height: 1.65;
}

.nippon-karte__unter {
    margin: 30px 0 4px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--nippon-gelb-text);
}

.nippon-karte__liste {
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
}

/* Name links, Preis rechts, dazwischen die Punktreihe der gedruckten Karte. */
.nippon-karte__zeile {
    display: flex;
    align-items: baseline;
    gap: 6px;
    padding: 11px 0;
    border-bottom: 1px solid var(--nippon-linie);
}

/* Die Artikelnummer steht in einer eigenen Spalte, damit die Gerichtnamen
   trotz unterschiedlich langer Nummern bündig beginnen. */
.nippon-karte__nr {
    flex: 0 0 auto;
    min-width: 2.6rem;
    padding-top: 2px;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--nippon-grau);
    font-variant-numeric: tabular-nums;
}

.nippon-karte__wort {
    flex: 0 1 auto;
    min-width: 0;
}

/* Allergen- und Zusatzstoffcodes, wie auf der gedruckten Karte */
.nippon-codes {
    margin-left: 4px;
    font-size: 0.7em;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--nippon-gelb-text);
    cursor: help;
}

/* ---------- Legende ---------- */

.nippon-legende {
    margin-top: 52px;
    padding: 26px 28px;
    border: 1px solid var(--nippon-linie);
    border-radius: var(--nippon-radius);
    background: var(--nippon-flaeche);
}

.nippon-legende__titel {
    margin: 0 0 18px;
    font-size: 1.2rem;
}

.nippon-legende__spalten {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px 34px;
}

.nippon-legende__spalten h3 {
    margin: 0 0 8px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--nippon-gelb-text);
    font-family: var(--nippon-schrift);
}

/* Der Buchstabe ist die Aufzählung — Divis Punkte davor stören nur. */
.nippon-legende__liste,
.nippon-legende__liste li {
    list-style: none !important;
}

.nippon-legende__liste li::marker {
    content: none;
}

.nippon-legende__liste {
    margin: 0;
    padding: 0;
    font-size: 0.9rem;
    line-height: 1.75;
}

.nippon-legende__liste b {
    display: inline-block;
    min-width: 1.5rem;
    color: var(--nippon-tinte);
}

.nippon-legende__hinweis {
    margin: 20px 0 0;
    padding-top: 16px;
    border-top: 1px solid var(--nippon-linie);
    font-size: 0.88rem;
    line-height: 1.6;
    color: var(--nippon-grau);
}

@media (max-width: 620px) {
    .nippon-legende__spalten {
        grid-template-columns: 1fr;
    }

    .nippon-karte__nr {
        min-width: 2.2rem;
        font-size: 0.78rem;
    }
}

.nippon-karte__name {
    font-weight: 600;
    color: var(--nippon-tinte);
    font-size: 1.02rem;
}

.nippon-karte__name .nippon-abzeichen {
    margin: 0 0 0 8px;
    vertical-align: 1px;
}

.nippon-karte__text {
    display: block;
    margin-top: 3px;
    font-size: 0.88rem;
    line-height: 1.55;
    color: var(--nippon-grau);
}

.nippon-karte__fuehrung {
    flex: 1 1 auto;
    min-width: 18px;
    align-self: baseline;
    border-bottom: 1px dotted var(--nippon-linie);
    transform: translateY(-4px);
}

.nippon-karte__preis {
    flex: 0 0 auto;
    font-weight: 700;
    color: var(--nippon-gruen-dunkel);
    white-space: nowrap;
}

.nippon-karte__preis .woocommerce-Price-amount {
    color: inherit;
}

.nippon-karte__leer {
    padding: 30px;
    border: 1px dashed var(--nippon-linie);
    border-radius: var(--nippon-radius);
    color: var(--nippon-grau);
    text-align: center;
}

@media (max-width: 620px) {
    /* Die Punktreihe hat auf schmalen Geräten keinen Platz mehr; der Preis
       rutscht unter den Namen. */
    .nippon-karte__zeile {
        flex-wrap: wrap;
    }

    .nippon-karte__wort {
        flex: 1 1 100%;
    }

    .nippon-karte__fuehrung {
        display: none;
    }

    .nippon-karte__preis {
        margin-top: 5px;
    }

    .nippon-karte__navi {
        gap: 6px;
        overflow-x: auto;
        flex-wrap: nowrap;
        /* Rand mitnehmen, damit die letzte Marke nicht am Rand klebt */
        padding-right: 12px;
    }

    .nippon-karte__leiste {
        margin-bottom: 26px;
    }

    .nippon-karte__leiste-innen {
        padding: 10px 0;
    }

    .nippon-karte__sprung {
        white-space: nowrap;
    }
}

/* Gedruckt bleibt die Karte eine Karte — ohne Navigation und Filter. */
@media print {
    .nippon-karte__navi,
    .nippon-ernfilter,
    .nippon-ruf,
    #main-header,
    #main-footer {
        display: none !important;
    }

    .nippon-karte__block {
        break-inside: avoid;
    }
}

/* ---------- Mitlaufender Anrufknopf ---------- */

.nippon-ruf {
    position: fixed;
    right: max(18px, env(safe-area-inset-right));
    bottom: max(18px, env(safe-area-inset-bottom));
    z-index: 9000;

    display: inline-flex;
    align-items: center;
    gap: 0;
    height: 56px;
    padding: 0 16px;
    border-radius: 999px;
    background: var(--nippon-gruen-dunkel);
    color: var(--nippon-weiss) !important;
    text-decoration: none;
    box-shadow: 0 6px 22px rgba(27, 94, 32, 0.32);

    /* Im Ruhezustand zurückgenommen, aber nicht unsichtbar: ein Bedienelement,
       das man erst suchen muss, nützt niemandem. */
    opacity: 0.62;
    transition: opacity 0.25s ease, gap 0.3s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.nippon-ruf__sym {
    font-size: 1.5rem;
    line-height: 1;
}

/* Die Nummer ist zunächst auf Breite null zusammengezogen und fährt bei
   Kontakt aus. max-width lässt sich weich überblenden, width auto nicht. */
.nippon-ruf__text {
    max-width: 0;
    overflow: hidden;
    white-space: nowrap;
    font-weight: 700;
    font-size: 1rem;
    transition: max-width 0.32s ease;
}

/* :active fasst den Fingerdruck mit ab — auf Berührungsgeräten gibt es kein
   Hover, das Ausfahren geschieht dort während des Drucks. */
.nippon-ruf:hover,
.nippon-ruf:focus-visible,
.nippon-ruf:active {
    opacity: 1;
    gap: 10px;
    color: var(--nippon-weiss) !important;
    box-shadow: var(--nippon-schatten-hoch);
    transform: translateY(-2px);
}

.nippon-ruf:hover .nippon-ruf__text,
.nippon-ruf:focus-visible .nippon-ruf__text,
.nippon-ruf:active .nippon-ruf__text {
    max-width: 14rem;
}

/* Wer erhöhten Kontrast eingestellt hat, bekommt ihn auch hier. */
@media (prefers-contrast: more) {
    .nippon-ruf {
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .nippon-ruf,
    .nippon-ruf__text {
        transition: none;
    }
}

/* Auf sehr schmalen Geräten nicht die halbe Breite einnehmen */
@media (max-width: 400px) {
    .nippon-ruf:hover .nippon-ruf__text,
    .nippon-ruf:focus-visible .nippon-ruf__text,
    .nippon-ruf:active .nippon-ruf__text {
        max-width: 10.5rem;
    }
}

/* ---------- Dunkelmodus ---------- */

/*
 * Folgt der Systemeinstellung des Besuchers. Umgesetzt über dieselben
 * Farbvariablen wie der helle Modus — dadurch erfasst er alle eigenen
 * Bausteine auf einmal, statt sie einzeln nachzuziehen.
 *
 * Die Variablennamen beschreiben ihre Rolle im hellen Modus („weiss" ist die
 * Fläche, auf der Inhalt steht); hier bekommen sie die dunklen Entsprechungen.
 * Alle Werte sind auf mindestens 4,5:1 geprüft.
 */
/*
 * Die dunklen Werte stehen zweimal: einmal für die Systemeinstellung (greift
 * auch ohne JavaScript) und einmal für die ausdrückliche Wahl über den
 * Schalter. Doppelt sind ausschließlich die Variablen — alle Regeln darunter
 * lesen sie und gelten für beide Fälle.
 */
@media (prefers-color-scheme: dark) {
    :root:not([data-farbschema="hell"]) {
        --nippon-gruen: #6fbf73;
        --nippon-gruen-dunkel: #3f9a45;
        --nippon-gruen-tief: #2e7d32;
        --nippon-gelb: #ffc94d;
        --nippon-gelb-text: #e8b44a;
        --nippon-rot: #d1402f;
        --nippon-rot-tief: #b3271a;
        --nippon-rot-text: #ff8a78;

        --nippon-tinte: #f2f5f3;
        --nippon-text: #dfe3e0;
        --nippon-grau: #a3aca6;
        --nippon-linie: #333a40;
        --nippon-flaeche: #191d20;
        --nippon-weiss: #1e2225;

        --nippon-seite: #14171a;
        --nippon-kopf: #1a1e21;
        --nippon-knopf-text: #0e1a10;
        --nippon-vegan-flaeche: rgba(111, 191, 115, 0.17);
        --nippon-vegan-text: #8fd193;
        --nippon-vegi-flaeche: rgba(154, 199, 110, 0.15);
        --nippon-vegi-text: #a8cf80;
        --nippon-abzeichen-kachel: rgba(20, 23, 26, 0.86);
        --nippon-emblem-deckung: 0.05;
        --nippon-bild-filter: brightness(0.88);
        --nippon-anfahrt-deckung: 0.14;
        --nippon-ruf-deckung: 0.72;

        --nippon-schatten: 0 4px 20px rgba(0, 0, 0, 0.5);
        --nippon-schatten-hoch: 0 12px 38px rgba(0, 0, 0, 0.62);
    }
}

:root[data-farbschema="dunkel"] {
    --nippon-gruen: #6fbf73;
    --nippon-gruen-dunkel: #3f9a45;
    --nippon-gruen-tief: #2e7d32;
    --nippon-gelb: #ffc94d;
    --nippon-gelb-text: #e8b44a;
    --nippon-rot: #d1402f;
    --nippon-rot-tief: #b3271a;
    --nippon-rot-text: #ff8a78;

    --nippon-tinte: #f2f5f3;
    --nippon-text: #dfe3e0;
    --nippon-grau: #a3aca6;
    --nippon-linie: #333a40;
    --nippon-flaeche: #191d20;
    --nippon-weiss: #1e2225;

    --nippon-seite: #14171a;
    --nippon-kopf: #1a1e21;
    --nippon-knopf-text: #0e1a10;
    --nippon-vegan-flaeche: rgba(111, 191, 115, 0.17);
    --nippon-vegan-text: #8fd193;
    --nippon-vegi-flaeche: rgba(154, 199, 110, 0.15);
    --nippon-vegi-text: #a8cf80;
    --nippon-abzeichen-kachel: rgba(20, 23, 26, 0.86);
    --nippon-emblem-deckung: 0.05;
    --nippon-bild-filter: brightness(0.88);
    --nippon-anfahrt-deckung: 0.14;
    --nippon-ruf-deckung: 0.72;

    --nippon-schatten: 0 4px 20px rgba(0, 0, 0, 0.5);
    --nippon-schatten-hoch: 0 12px 38px rgba(0, 0, 0, 0.62);
}

/* Ab hier gelten die Regeln in beiden Modi — sie lesen nur Variablen. */

body,
#page-container,
#main-content {
    background-color: var(--nippon-seite) !important;
    color: var(--nippon-text);
}

/* Divi setzt Kopf- und Fußbereich mit hoher Spezifität. */
#main-header,
#top-header,
.et-fixed-header,
#et_mobile_nav_menu .mobile_nav,
.et_mobile_menu {
    background-color: var(--nippon-kopf) !important;
    border-color: var(--nippon-linie) !important;
}

#main-header,
.et-fixed-header {
    box-shadow: 0 1px 0 var(--nippon-linie) !important;
}

#top-menu li a,
#et_search_icon:before,
.et_mobile_menu li a {
    color: var(--nippon-text) !important;
}

/* Das Hamburger-Symbol färbt Divi über eine eigene, spät ausgegebene Regel
   ein. Ohne diese Zeile bliebe es im Dunkelmodus dunkel auf dunklem Grund
   und damit unsichtbar. */
.mobile_menu_bar:before,
.mobile_menu_bar:after,
.et_pb_menu__icon.et_pb_menu__toggle:before,
.et_toggle_slide_menu:after {
    color: var(--nippon-text) !important;
}

/* Divi-Abschnitte tragen ihre Hintergrundfarbe inline. */
.et_pb_section {
    background-color: transparent !important;
}

.et_pb_section.nippon-abschnitt--flaeche {
    background-color: var(--nippon-flaeche) !important;
}

.nippon-karte__navi {
    background: var(--nippon-seite);
}

.nippon-liefertabelle tbody tr:nth-child(even) {
    background: var(--nippon-flaeche);
}

.woocommerce ul.products li.product a img,
.nippon-kachel__bild {
    filter: var(--nippon-bild-filter);
}

.nippon-anfahrt__bild {
    opacity: var(--nippon-anfahrt-deckung);
}

.nippon-ruf {
    opacity: var(--nippon-ruf-deckung);
}

/* ---------- Umschalter für das Farbschema ---------- */

/* Im Kopfbereich sitzt der Schalter dort, wo Divi sonst Warenkorb und Lupe
   zeigt — rechts neben dem Menü.

   Divis logo_container spannt sich über die volle Kopfbreite und lag über dem
   Knopf: anklickbar war nur dessen unterster Rand. Die eigene Stapelebene
   holt die ganze Fläche nach vorn. */
.nippon-schema--kopf {
    position: relative;
    z-index: 3;
    display: inline-block;
    margin-left: 4px;
    vertical-align: middle;
    line-height: 1;
}

/* Auf schmalen Geräten steht der Schalter links neben dem Hamburger. */
@media (max-width: 980px) {
    .nippon-schema--kopf {
        margin-right: 12px;
    }
}

.nippon-schema__knopf {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid var(--nippon-linie);
    border-radius: 50%;
    background: transparent;
    color: var(--nippon-text);
    font-size: 1.05rem;
    line-height: 1;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.nippon-schema__knopf:hover {
    border-color: var(--nippon-gruen);
    background: var(--nippon-flaeche);
}

/* Die Symbole sind reine Beschriftung; Klicks gehören dem Knopf. */
.nippon-schema__sym {
    pointer-events: none;
}

/* Es wird immer das Symbol des Modus gezeigt, in den der Klick führt. */
.nippon-schema__sym--hell {
    display: none;
}

:root[data-farbschema="dunkel"] .nippon-schema__sym--hell {
    display: inline;
}

:root[data-farbschema="dunkel"] .nippon-schema__sym--dunkel {
    display: none;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-farbschema="hell"]) .nippon-schema__sym--hell {
        display: inline;
    }

    :root:not([data-farbschema="hell"]) .nippon-schema__sym--dunkel {
        display: none;
    }
}

/* ---------- Barrierefreiheit ---------- */

/* Das hidden-Attribut wirkt nur über display:none aus dem Browser-Stylesheet.
   Jede eigene display-Angabe schlägt es — ein per hidden ausgeblendetes
   Element mit display:flex bliebe sichtbar. Diese Regel stellt das für alle
   eigenen Bausteine sicher. */
[hidden] {
    display: none !important;
}

/* Sichtbarer Tastaturfokus. Divi entfernt den Standard-Umriss an vielen
   Stellen; ohne Ersatz ist die Seite per Tastatur nicht bedienbar. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
    outline: 3px solid var(--nippon-gruen-dunkel) !important;
    outline-offset: 3px !important;
    border-radius: 4px;
}

/* Auf dunklem Grund muss der Fokus hell sein, sonst verschwindet er. */
#main-footer a:focus-visible,
.nippon-kachel:focus-visible,
.nippon-knopf--voll:focus-visible {
    outline-color: var(--nippon-gelb) !important;
}

/* Sprungmarke zum Inhalt für Screenreader und Tastatur */
.nippon-sprungmarke {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 100000;
    padding: 12px 22px;
    background: var(--nippon-gruen-dunkel);
    color: var(--nippon-weiss);
    font-weight: 700;
    text-decoration: none;
}

.nippon-sprungmarke:focus {
    left: 12px;
    top: 12px;
    color: var(--nippon-weiss);
}

/* Nur für Screenreader */
.nippon-nur-vorlesen {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Wer Bewegung reduziert haben möchte, bekommt keine */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }

    .nippon-kachel:hover,
    .nippon-knopf:hover,
    .woocommerce ul.products li.product:hover {
        transform: none !important;
    }
}

/* Bei erhöhtem Kontrastbedarf die Linien deutlicher zeichnen */
@media (prefers-contrast: more) {
    :root {
        --nippon-grau: #4c544d;
        --nippon-linie: #b9c9bb;
    }
}

/* ---------- Kleine Bildschirme ---------- */

@media (max-width: 767px) {
    .nippon-kachel {
        min-height: 190px;
    }

    .nippon-kartennav {
        gap: 6px;
        padding: 10px 0;
    }

    .nippon-kartennav a {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
}
