:root {
    color-scheme: light;
    --accent: #0b5061;
    --ink: #21323b;
    --muted: #6c7e88;
    --border: #dbe3e8;
    --bg: #f0f4f6;
    --soft: #f6f9fb;
    --radius: 15px;
    font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 15px;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: linear-gradient(130deg, #e5eff1, #f6f8f9 42%, #edf2f5); }
button, input { font: inherit; }
button { cursor: pointer; }
.sp-page { width: min(1250px, 100% - 2rem); margin: 2rem auto 3rem; }
.sp-header { display:flex; justify-content:space-between; align-items:center; gap: 1.5rem; margin-bottom:1.35rem; }
.sp-eyebrow { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; color:var(--accent); }
.sp-dot { margin-inline: .35rem; }
h1 { font-size:clamp(1.5rem, 2.8vw, 2.4rem); line-height:1.15; margin:.38rem 0 .3rem; }
h2 { font-size:1.1rem; margin:0 0 .5rem; }
h3 { font-size:.9rem; margin:0; }
.sp-subtitle, .sp-intro { font-size: .85rem; color:var(--muted); margin:.25rem 0; line-height:1.55; }
.sp-back { color:var(--accent); font-weight:700; font-size:.85rem; text-decoration:none; white-space:nowrap; }
.sp-back:hover { text-decoration:underline; }
.sp-panel { background:rgba(255,255,255,.82); border:1px solid rgba(255,255,255,.95); border-radius:23px; padding:1.45rem; box-shadow:0 13px 42px rgba(25,48,61,.09); }
.sp-print-actions { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:.55rem; margin:.8rem 0 .1rem; }
.sp-btn { color:#fff; background:var(--accent); font-weight:700; border:none; border-radius:999px; font-size:.78rem; padding:.65rem 1.05rem; }
.sp-btn:hover { filter:brightness(.93); }
.sp-btn:focus-visible, .sp-tab:focus-visible, .sp-location:focus-visible { outline:3px solid var(--accent); outline-offset:3px; }
.sp-tabs { display:flex; flex-wrap:wrap; gap:.5rem; margin:1.2rem 0 1rem; padding-bottom:.75rem; border-bottom:1px solid var(--border); }
.sp-tab { border:1px solid var(--border); border-radius:100px; background:#fff; color:var(--ink); padding:.52rem .95rem; font-size:.85rem; font-weight:700; }
.sp-tab small { font-size:.72rem; color:var(--muted); margin-left:.18rem; }
.sp-tab.active { background:var(--accent); color:#fff; border-color:var(--accent); box-shadow:0 3px 11px rgba(11,80,97,.16); }
.sp-tab.active small { color:#fff; opacity:.82; }
.sp-week-panel { display:none; }
.sp-week-panel.active { display:block; }
.sp-day { margin-bottom:1.18rem; }
.sp-day-title { display:flex; align-items:baseline; gap:.55rem; flex-wrap:wrap; text-transform:uppercase; letter-spacing:.055em; font-size:.87rem; font-weight:800; color:var(--accent); border-left:3px solid var(--accent); background:var(--soft); padding:.42rem .78rem; margin-bottom:.65rem; border-radius:5px; }
.sp-day-date { font-size:.76rem; font-weight:600; color:var(--muted); text-transform:none; letter-spacing:0; }
.sp-cards { display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:.65rem; }
.sp-card { display:flex; min-width:0; min-height:108px; border:1px solid var(--border); background:#fff; border-radius:var(--radius); box-shadow:0 3px 12px rgba(22,56,71,.035); overflow:hidden; }
.sp-dish { min-width:0; flex:1 1 52%; padding:.8rem .86rem .8rem .98rem; border-left:3px solid var(--accent); display:flex; flex-direction:column; }
.sp-menu-label { font-size:.68rem; font-weight:800; letter-spacing:.08em; text-transform:uppercase; color:var(--accent); margin-bottom:.48rem; }
.sp-maindish { font-size:.94rem; line-height:1.38; font-weight:700; }
.sp-greenline { font-size:.82rem; line-height:1.4; color:#536773; margin:0 0 .45rem; }
.sp-part-label { display:block; color:var(--accent); font-size:.64rem; font-weight:700; letter-spacing:.06em; text-transform:uppercase; }
.sp-dessert { color:var(--muted); font-size:.81rem; line-height:1.4; margin-top:.4rem; }
.sp-tags { margin-top:auto; padding-top:.55rem; display:flex; gap:.3rem; flex-wrap:wrap; }
.sp-tag { display:inline-flex; font-size:.63rem; font-weight:700; padding:.13rem .43rem; color:#42652b; background:#edf4e8; border-radius:99px; }
.sp-nutri { min-width:0; flex:1 1 48%; border-left:1px solid var(--border); padding:.85rem .8rem; }
.sp-nutri-head { font-size:.65rem; font-weight:800; color:var(--muted); text-transform:uppercase; letter-spacing:.07em; margin-bottom:.5rem; }
.sp-nutrient-item { margin-bottom:.68rem; }
.sp-nutrient-item:last-child { margin-bottom:0; }
.sp-component-name { font-size:.75rem; font-weight:500; color:var(--accent); line-height:1.3; }
.sp-values { display:flex; flex-wrap:wrap; column-gap:.7rem; row-gap:.15rem; color:var(--muted); font-size:.71rem; margin-top:.2rem; }
.sp-values span { white-space:nowrap; }
.sp-card--no-nutri .sp-dish { border-right:0; }
.sp-allergen { display:inline-flex; justify-content:center; align-items:center; min-width:19px; height:19px; border:1px solid #c5d7e0; background:#f3f8fb; font-size:.74rem; font-weight:850; color:var(--accent); border-radius:4px; padding:0 3px; vertical-align:1px; line-height:1; }
.sp-legend { border-top:1px solid var(--border); margin-top:1.5rem; padding-top:1rem; }
.sp-legend h3 { text-transform:uppercase; letter-spacing:.04em; color:var(--accent); font-size:.8rem; margin-bottom:.6rem; }
.sp-legend-sub { text-transform:uppercase; letter-spacing:.04em; color:var(--muted); font-size:.71rem; margin:.8rem 0 .3rem; }
.sp-legend-chips { display:flex; gap:.4rem .7rem; flex-wrap:wrap; }
.sp-legend-chip { display:inline-flex; align-items:center; gap:.35rem; padding:.2rem .35rem .2rem .1rem; font-size:.71rem; color:#576b75; }
.sp-legend-chip .sp-allergen { min-width:20px; height:20px; }
.sp-legend-note, .sp-site-note { color:var(--muted); line-height:1.5; font-size:.71rem; margin-top:.65rem; }
.sp-site-note { margin-top:1.1rem; padding-top:.6rem; border-top:1px solid var(--border); }
.sp-empty { color:var(--muted); font-size:.95rem; padding:1.2rem 0; }
.sp-location-list { display:grid; grid-template-columns: repeat(auto-fill,minmax(270px,1fr)); gap:.75rem; margin-top:1rem; }
.sp-location { color:var(--ink); text-decoration:none; background:#fff; border:1px solid var(--border); border-radius:12px; display:flex; justify-content:space-between; align-items:center; padding:1rem; gap:.7rem; font-weight:700; }
.sp-location:hover { border-color:var(--accent); color:var(--accent); }
.sp-location-symbol { color:var(--accent); font-size:1.2rem; }
/* Footer mit altem Logo und Rechtshinweisen – ohne Bootstrap-Abhaengigkeit. */
.sp-footer {
    margin-top:1.35rem;
    padding:1.1rem 1rem 1.4rem;
    border-top:1px solid var(--border);
    color:var(--muted);
    text-align:center;
}
.sp-footer-nav { display:flex; align-items:center; justify-content:center; flex-wrap:wrap; gap:.65rem 1.25rem; }
.sp-footer-logo { display:inline-flex; align-items:center; justify-content:center; width:44px; height:44px; border-radius:8px; text-decoration:none; }
.sp-footer-logo img { display:block; width:40px; height:40px; object-fit:contain; }
.sp-footer-link { display:inline-block; color:var(--ink); font-family:inherit; font-size:.86rem; font-weight:600; text-decoration:none; padding:.35rem .2rem; }
.sp-footer-link:hover { color:var(--accent); text-decoration:underline; }
.sp-footer-link:focus-visible, .sp-footer-logo:focus-visible { outline:3px solid var(--accent); outline-offset:3px; }
.sp-footer-copy { margin:.45rem 0 0; font-size:.72rem; color:var(--muted); }

.sp-print-title { display:none; }
@media (max-width:800px) {
    .sp-page { width:calc(100% - 1rem); margin:.8rem auto; }
    .sp-panel { padding:1rem; border-radius:17px; }
    .sp-cards { grid-template-columns:1fr; }
    .sp-header { align-items:flex-start; }
}
@media (max-width:420px) {
    .sp-card { flex-direction:column; }
    .sp-nutri { border-left:0; border-top:1px solid var(--border); }
    .sp-back { font-size:.72rem; }
}
@page { size:A4; margin:10mm; }
@media print {
    :root { font-size:10px; }
    html,body { background:#fff!important; color:#111; -webkit-print-color-adjust:exact; print-color-adjust:exact; }
    .sp-page { margin:0; width:100%; }
    .sp-header { margin-bottom:2mm; border-bottom:1px solid var(--accent); padding-bottom:2mm; }
    .sp-header h1 { font-size:18px; margin:0; }
    .sp-header .sp-eyebrow,.sp-back,.sp-print-actions,.sp-tabs,.sp-subtitle,.sp-intro,.sp-footer { display:none!important; }
    .sp-panel { border:0; border-radius:0; box-shadow:none; padding:0; background:#fff; }
    .sp-week-panel { display:none!important; }
    .sp-week-panel.active { display:block!important; }
    .sp-print-title { display:block; margin-bottom:2mm; font-size:12px; color:var(--accent); }
    .sp-day { margin-bottom:3mm; break-inside:avoid; }
    .sp-day-title { font-size:10px; padding:1mm 2mm; margin-bottom:1mm; }
    .sp-cards { grid-template-columns:repeat(2,minmax(0,1fr)); gap:2mm; }
    .sp-card { min-height:0; border-radius:3px; box-shadow:none; break-inside:avoid; }
    .sp-dish,.sp-nutri { padding:1.5mm 2mm; }
    .sp-menu-label,.sp-nutri-head { font-size:8px; margin-bottom:1mm; }
    .sp-maindish { font-size:10px; }
    .sp-greenline,.sp-dessert,.sp-component-name { font-size:8px; }
    .sp-values { font-size:7px; gap:1px 4px; }
    .sp-nutrient-item { margin-bottom:2mm; }
    .sp-allergen { min-width:11px; height:11px; padding:0 1px; font-size:7px; vertical-align:0; }
    .sp-legend { margin-top:3mm; padding-top:2mm; }
    .sp-legend h3 { font-size:8px; margin-bottom:1mm; }
    .sp-legend-sub { font-size:7px; margin:1.8mm 0 .7mm; }
    .sp-legend-chip { padding:0; font-size:6.5px; gap:1mm; }
    .sp-legend-chip .sp-allergen { min-width:11px; height:11px; }
    .sp-legend-note,.sp-site-note { font-size:7px; margin-top:2mm; }
}

/* Bildschirm und Druck koennen unterschiedliche Vorspeisen-Einstellungen haben.
   Die Vorspeise bleibt im DOM, wenn die Druckvariante "mit" moeglich ist. */
body.sp-screen-no-starter .sp-greenline,
body.sp-screen-no-starter .sp-nutrient-item--starter { display:none; }
@media print {
    body.sp-print-with-starter .sp-greenline,
    body.sp-print-with-starter .sp-nutrient-item--starter { display:block !important; }
    body.sp-print-no-starter .sp-greenline,
    body.sp-print-no-starter .sp-nutrient-item--starter { display:none !important; }
}

/* Original-Legende, Allergene als echte SVG-Bilddateien und Nährwert-Piktogramme. */
.sp-allergen-img { width:20px; height:20px; display:inline-block; vertical-align:-.3em; flex:0 0 auto; object-fit:contain; }
.sp-legend-chip .sp-allergen-img { width:17px; height:17px; }
.sp-values .sp-nv { display:inline-flex; align-items:center; gap:3px; }
.nv-ico { width:11px; height:11px; display:inline-block; flex:0 0 auto; }
.sp-nutri-legend-row { display:flex; flex-wrap:wrap; align-items:flex-start; gap:.8rem 2rem; }
.sp-nutri-legend { flex:0 0 auto; }
.sp-nutri-legend .nv-ico { width:17px; height:17px; }
.sp-nutri-note { flex:1 1 360px; margin-top:0; align-self:center; }
.sp-code { display:inline-flex; align-items:center; justify-content:center; min-width:19px; height:19px; padding:0 5px; background:var(--accent); color:#fff; font-weight:800; border-radius:4px; font-size:.67rem; }
.sp-legend .sp-legend-sub { display:block; margin:.85rem 0 .4rem; color:var(--accent); font-size:.74rem; font-weight:800; }
.sp-extra-text { margin:1.1rem 0 .5rem; padding:1rem 1.3rem; border:1px solid var(--border); background:rgba(255,255,255,.82); border-radius:15px; color:var(--ink); line-height:1.55; font-size:.86rem; white-space:pre-line; overflow-wrap:anywhere; }
@media print {
    .sp-allergen-img { width:11px !important; height:11px !important; vertical-align:-.1em; }
    .sp-legend-chip .sp-allergen-img { width:11px !important; height:11px !important; }
    .nv-ico { width:9px; height:9px; }
    .sp-nutri-legend .nv-ico { width:12px; height:12px; }
    .sp-nutri-legend-row { gap:3mm; }
    .sp-nutri-note { flex:1 1 60mm; }
    .sp-extra-text { margin:3mm 0 0; padding:2mm 0; border:0; border-top:1px solid var(--border); border-radius:0; background:#fff; font-size:7.5px; break-inside:avoid; }
    .sp-code { display:inline; min-width:0; height:auto; border:0; padding:0; background:none; color:var(--accent); font-size:7px; }
}

/* Originale Vegan-/Veggie-Symbole aus allergene.zip. */
.sp-tag { align-items:center; gap:.3rem; }
.sp-mark-img { width:16px; height:16px; object-fit:contain; display:inline-block; flex:0 0 auto; }
@media print { .sp-mark-img { width:11px !important; height:11px !important; } }

/* Vegan/Veggie: wirklich nur das SVG, ohne Text oder Badge-Hintergrund. */
.sp-tag--icon {
    padding:0;
    background:none;
    border:0;
    border-radius:0;
    display:inline-flex;
    align-items:center;
    line-height:1;
}
.sp-tag--icon .sp-mark-img { width:21px; height:21px; }
@media print {
    .sp-tag--icon .sp-mark-img { width:14px !important; height:14px !important; }
}

/* Zweiter, grosser Hinweistext je Standort, oberhalb der Wochen-Tabs. */
.sp-highlight-note {
    white-space:pre-line;
    overflow-wrap:anywhere;
    margin:.9rem 0 1rem;
    padding:.85rem 1rem;
    border-left:4px solid var(--accent);
    border-radius:8px;
    background:var(--soft);
    color:var(--ink);
    font-size:1.14rem;
    font-weight:650;
    line-height:1.5;
}
@media print {
    .sp-highlight-note {
        margin:2mm 0 3mm;
        padding:1.5mm 2mm;
        border-left-width:1mm;
        font-size:10px;
        line-height:1.3;
        break-inside:avoid;
    }
}

/* Zweiter grosser Hinweis am Ende der Legende, direkt nach dem kleinen Hinweis. */
.sp-highlight-note--unten {
    margin:1rem 0 .25rem;
}
@media print {
    .sp-highlight-note--unten { margin:2mm 0 1mm; }
}


/* Rechtliche Seiten: gleiches Layout/Design wie der Speiseplan. */
.sp-legal-layout { min-height:calc(100vh - 5rem); display:flex; flex-direction:column; }
.sp-legal-layout .sp-legal-panel { flex:0 0 auto; }
.sp-legal-text { max-width:98ch; line-height:1.75; font-size:.94rem; font-weight:400; color:var(--ink); white-space:pre-wrap; overflow-wrap:anywhere; }
.sp-legal-placeholder { margin:0; color:var(--muted); font-size:.94rem; line-height:1.65; }
.sp-legal-layout .sp-footer { margin-top:auto; }
.sp-footer-link[aria-current="page"] { color:var(--accent); text-decoration:underline; text-underline-offset:.18em; }
@media (max-width:600px) {
    .sp-legal-layout .sp-header { flex-direction:column; align-items:flex-start; gap:.6rem; }
    .sp-legal-text { font-size:.91rem; line-height:1.7; }
}
@media print {
    .sp-legal-layout { display:block; min-height:0; }
    .sp-legal-layout .sp-header { margin-bottom:5mm; }
    .sp-legal-layout .sp-header h1 { font-size:20px; }
    .sp-legal-layout .sp-back, .sp-legal-layout .sp-footer { display:none!important; }
    .sp-legal-text { max-width:none; font-size:11px; line-height:1.55; white-space:pre-wrap; }
}
