/* Eigene Ergänzungen zum Design-Kit (system.css, layout.css). Die Kit-Dateien bleiben unverändert. */

/* Schrift lokal gehostet: keine Anfrage an Google-Server */
@font-face {
  font-family: "Host Grotesk";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(fonts/host-grotesk.woff2) format("woff2");
}

/* Palette und Schrift, wie vom Skill ausgeteilt (paper-grey-brass, Host Grotesk) */
:root {
  --p-bg: #e8e8e3; --p-surface: #dcdcd6; --p-ink: #181715; --p-muted: #5c5b56;
  --p-accent: #bfb21a; --p-accent-ink: #181715; --p-action: #181715; --p-action-ink: #e8e8e3;
  --p-inv-bg: #181715; --p-inv-surface: #242321; --p-inv-ink: #e8e8e3; --p-inv-muted: #91908d;
  --p-inv-accent: #bfb21a; --p-inv-accent-ink: #181715; --p-inv-action: #bfb21a; --p-inv-action-ink: #181715;
  --font-display: "Host Grotesk", system-ui, sans-serif;
  --font-text: "Host Grotesk", system-ui, sans-serif;
  --display-weight: 400;
  --display-tracking: -0.035em;
  --display-tracking-xl: -0.04em;
}

/* Einsatzgebiet: Ortsliste in zwei Spalten */
.orte { columns: 2; column-gap: var(--gutter); margin: 0; padding: 0; list-style: none; font-size: var(--t-lead); line-height: 2; }

/* Unterseiten: Abschnitte so hoch wie ihr Text, nicht ein voller Bildschirm */
.sub main { padding-top: var(--nav); }
.sub main > section { height: auto; min-height: 0; padding-block: var(--s-8) 0; }
.sub main > section:last-child { padding-bottom: var(--s-9); }
.sub h1 { font-size: clamp(34px, 2.1vw + 26px, 56px); line-height: 1.1; max-width: 24ch; }
.sub h1 + p { margin-top: var(--s-5); }
.sub .prose > * + * { margin-top: var(--s-4); }
.sub .prose h2 { font-size: var(--t-h3); margin-top: var(--s-7); }
.sub .prose { max-width: 62ch; }

/* Startseite: Abstand der zweiten Zeile eines Abschnitts (Preisbestandteile, besenrein, Partner-Link) */
.zusagen__preis, .ablauf__besenrein, .partner__link, .ferne__link { margin-top: var(--head-gap); }
.sub h2 { font-size: clamp(26px, 1vw + 22px, 36px); line-height: 1.15; }
.sub .prose a, .sub .t-small a { text-decoration: underline; text-underline-offset: 3px; }

/* Navigation: der Name bricht nie um; unter 1280px zeigt der Knopf nur die Nummer, damit alles in eine Zeile passt */
.nav__logo { white-space: nowrap; }
@media (min-width: 1024px) and (max-width: 1279px) { .nav__verb { display: none; } .nav__logo { font-size: 19px; } .nav__link { padding-inline: var(--s-2); } }
/* Unter 1320px passt der Name nicht neben mittig gesetzte Links (er überlappte sie): die Links rücken an den Namen.
   Unter 1200px entfällt zusätzlich "Leistungen" (steht im Footer), sonst reicht die Zeile nicht für die Telefonnummer */
@media (min-width: 1024px) and (max-width: 1319px) { .nav--centre .nav__bar { grid-template-columns: auto 1fr auto; } }
@media (min-width: 1024px) and (max-width: 1199px) { .nav__item:first-child { display: none; } }

/* Zwischenüberschriften außerhalb von Karten: dieselbe Größe wie Karten- und FAQ-Titel */
.zusagen__preis h3, .ablauf__besenrein h3, #gebiet h3 { font: 500 var(--t-card)/1.3 var(--font-text); letter-spacing: -0.01em; }

/* Handy: die vier Fakten im Hero zeigen (das Kit blendet sie aus, dann bleibt der halbe erste Bildschirm leer) */
@media (max-width: 639px) { .hero--statement .hero__facts { display: grid; } }

/* Foto-Feld im Anfrageformular: Ablagefläche mit Vorschau (Skript in src/formular.html) */
.drop { display: grid; justify-items: center; gap: var(--s-2); padding: var(--s-5) var(--s-4); border: 1.5px dashed var(--line-strong);
  border-radius: var(--r-md); background: var(--surface); color: var(--muted); font-weight: 400; text-align: center; cursor: pointer;
  transition: border-color .15s, background-color .15s; }
.drop:hover, .drop--ziel { border-color: var(--ink); background: color-mix(in oklab, var(--accent) 14%, var(--surface)); }
.drop:focus-within { outline: 2px solid var(--action); outline-offset: 2px; }
.drop__text { font-size: var(--t-body); color: var(--ink); }
/* mit JavaScript ist das Datei-Feld unsichtbar, bleibt aber per Tastatur erreichbar */
.field .drop--js input { position: absolute; width: 1px; height: 1px; padding: 0; border: 0; opacity: 0; }
.field .drop:not(.drop--js) input { height: auto; padding: var(--s-2); }
.drop__liste { display: flex; flex-wrap: wrap; gap: var(--s-2); margin: 0; padding: 0; list-style: none; }
.drop__liste:empty { display: none; }
.drop__liste li { position: relative; width: 64px; height: 64px; border-radius: var(--r-sm); background: var(--surface); }
.drop__liste img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.drop__liste button { position: absolute; top: -8px; right: -8px; width: 24px; height: 24px; border: 0; border-radius: 50%;
  background: var(--ink); color: var(--bg); font: 500 16px/1 var(--font-text); cursor: pointer; }
/* Trefferfläche des Entfernen-Knopfs auf 44px vergrößern */
.drop__liste button::after { content: ""; position: absolute; inset: -10px; }
/* Startseite: der Formular-Abschnitt wächst mit Vorschaubildern und Fehlermeldungen, statt in den nächsten zu laufen */
main > #anfrage { height: auto; min-height: 100svh; }
/* Rechtstexte: Aufzählungen mit Punkten (das Kit setzt Listen ohne) */
.sub .prose ul { padding-left: 1.2em; list-style: disc; }

/* Drucken und Widerrufs-PDF (build.mjs druckt /widerruf/ mit Chrome): nur der Text, ohne Navigation, Footer und Schnellkontakt */
@media print {
  .nav, .actionbar, footer.closing, .skip-link, .print-hide { display: none !important; }
  .sub main { padding-top: 0; }
  .sub main > section, .sub main > section:last-child { padding-block: 0; }
  /* wie ein Schriftstück: weißes Papier, Belehrung auf Seite 1, Formular auf Seite 2 */
  body { background: #fff !important; }
  .sub .prose { max-width: none; }
  .sub .prose :is(p, li) { font-size: 10.5pt; line-height: 1.45; }
  .sub .prose > * + * { margin-top: 6pt; }
  .sub h1 { font-size: 22pt; }
  .sub .prose h2 { font-size: 13pt; margin-top: 14pt; }
  .neue-seite { break-before: page; }
  @page { margin: 18mm 20mm; }
}
