/* =============================================================
   Zülfi’s Catering — nur für diese Site
   Preisrechner und Liefergebiet. Alles Übrige kommt aus
   tokens.css, components.css und layout.css.
   ============================================================= */
/* ============ Preisrechner ============ */
.rechner{
  display:grid;gap:clamp(1.75rem,3.5vw,3rem);
  padding:clamp(1.5rem,3vw,2.5rem);
  background:var(--surface);border:1px solid var(--line);
  border-radius:var(--radius-lg);box-shadow:var(--shadow-card);
}
.rechner__eingabe .h3{margin-bottom:1.25rem}
.rechner__slider{
  min-height:auto!important;padding:0!important;border:0!important;
  background:transparent!important;margin-top:.35rem;width:100%;
  height:24px;accent-color:var(--orange);
}
.rechner__slider:focus{box-shadow:none!important}
/* Der Schieberegler liegt in einem .feld und erbte von dort outline:none.
   Seine eigene Regel oben löschte zusätzlich den Ersatz-Schein, der dort das
   Fehlen der Outline ausgleicht — damit war er das einzige Bedienelement des
   Projekts ohne jede Fokusanzeige. Der Ring kommt deshalb hier zurück, und
   zwar als outline: Ein box-shadow wäre von der !important-Regel erschlagen
   worden. Die drei Klassen schlagen die zwei aus `.feld input:focus`. */
.feld .rechner__slider:focus-visible{
  outline:3px solid var(--orange);outline-offset:4px;border-radius:999px;
}
.schalter{
  display:flex;gap:.5rem;border:0;padding:0;margin:0 0 .5rem;
  background:var(--surface-alt);border-radius:var(--radius-pill);
  padding:4px;width:fit-content;max-width:100%;
}
.schalter label{
  position:relative;display:inline-flex;align-items:center;justify-content:center;
  min-height:40px;padding:0 1.1rem;border-radius:var(--radius-pill);
  font-family:var(--font-head);font-size:.88rem;font-weight:700;cursor:pointer;
  transition:background-color .2s var(--ease),color .2s var(--ease);
}
.schalter input{position:absolute;opacity:0;width:1px;height:1px}
.schalter label:has(input:checked){background:var(--accent);color:var(--on-accent)}
.schalter label:has(input:focus-visible){outline:3px solid var(--orange);outline-offset:2px}

.rechner__ausgabe{display:flex;flex-direction:column;gap:1.25rem;justify-content:center}
.rechner__ausgabe .bon{background:var(--surface-alt)}
.rechner__individuell{
  padding:1.25rem;background:var(--surface-alt);
  border-left:3px solid var(--accent);border-radius:var(--radius);
}
.rechner__individuell[hidden]{display:none}
.rechner__individuell .h3{margin-bottom:.4rem}
@media (min-width:880px){ .rechner{grid-template-columns:1fr 1fr;align-items:start} }

.tabellen{display:grid;gap:clamp(1.25rem,2.5vw,2rem);margin-top:clamp(2rem,4vw,3rem)}
@media (min-width:820px){ .tabellen{grid-template-columns:1fr 1fr;align-items:start} }

.beispiele__titel{margin:clamp(2.5rem,5vw,3.75rem) 0 1.5rem;text-align:center}
.beispiele{display:grid;gap:clamp(1.5rem,3vw,2rem)}
.beispiele .bon{background:var(--surface-alt)}
@media (min-width:760px){ .beispiele{grid-template-columns:repeat(3,1fr)} }

.enthalten{
  display:grid;gap:clamp(1.5rem,3vw,2.5rem);
  margin-top:clamp(2.5rem,5vw,3.75rem);
  padding:clamp(1.5rem,3vw,2.25rem);
  background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-lg);
}
.enthalten .h3{margin-bottom:.9rem}
.haken li,.kreuze li{
  position:relative;padding-left:1.9rem;margin-bottom:.55rem;
  font-size:var(--fs-sm);color:var(--text-muted);
}
.haken li::before{
  content:"";position:absolute;left:0;top:.28em;width:1.1em;height:1.1em;
  background:var(--accent);border-radius:50%;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round' d='m5.5 12.5 4.3 4.3 8.7-9.6'/%3E%3C/svg%3E") center/82% no-repeat;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round' d='m5.5 12.5 4.3 4.3 8.7-9.6'/%3E%3C/svg%3E") center/82% no-repeat;
}
.kreuze li::before{
  content:"";position:absolute;left:.1em;top:.3em;width:.95em;height:.95em;
  background:var(--text-muted);
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='3.4' stroke-linecap='round' d='M6 6l12 12M18 6 6 18'/%3E%3C/svg%3E") center/100% no-repeat;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='3.4' stroke-linecap='round' d='M6 6l12 12M18 6 6 18'/%3E%3C/svg%3E") center/100% no-repeat;
}
@media (min-width:700px){ .enthalten{grid-template-columns:1.1fr .9fr} }

.preis-stand{
  margin-top:1.75rem;text-align:center;
  font-size:var(--fs-xs);color:var(--text-muted);
;max-width:65ch}

/* ============ Liefergebiet ============ */
.gebiet{display:grid;gap:clamp(2rem,4vw,3.5rem);align-items:center}
.gebiet__listen{display:grid;gap:2rem}
.gebiet__listen .h3{margin-bottom:.75rem}
.orte{display:flex;flex-wrap:wrap;gap:.45rem;margin-bottom:.75rem}
.orte li{
  padding:.35rem .8rem;background:var(--surface);border:1px solid var(--line);
  border-radius:var(--radius-pill);font-size:var(--fs-sm);
}
.section--alt .orte li{background:var(--surface)}
.gebiet__karte svg{width:100%;max-width:380px;margin-inline:auto;height:auto}
.gebiet__karte figcaption{margin-top:.75rem;text-align:center;font-size:var(--fs-xs)}
.karte__ort{
  font-family:var(--font-head);font-weight:700;font-size:15px;
  fill:var(--text);
}
.karte__km{
  font-family:var(--font-sans);font-size:11px;font-weight:600;
  fill:var(--text-muted);
}
@media (min-width:880px){
  .gebiet{grid-template-columns:1.1fr .9fr}
  .gebiet__listen{grid-template-columns:1fr;gap:2.25rem}
}

/* ============ Ohne JavaScript ============ */
html:not(.js) .rechner__eingabe{display:none}
html:not(.js) .rechner{grid-template-columns:1fr}
html:not(.js) .rechner__ausgabe .bon{display:none}
html:not(.js) [data-uebernehmen]{display:none}
html:not(.js) .rechner::before{
  content:"Die Preistabellen stehen direkt unter diesem Rechner. Für die Berechnung braucht der Rechner JavaScript.";
  font-size:var(--fs-sm);color:var(--text-muted);
}

/* ============ Druck ============ */
@media print{
  .rechner{display:none!important}
}
