/* entwurf.css – Ergänzungen zum Kit (assets/system.css) für den Stuckdiscount-Entwurf.
   Lädt NACH system.css, layout.css und dem :root-Farbblock der Seite. Kit-Dateien nie ändern.
   Auftrag des Inhabers: größere Schrift (Fließtext mind. 17 px), hoher Kontrast,
   Klickflächen mind. 44 px, sichtbare Menüpunkte, Handy-Leiste mit drei Zielen. */

/* 1. Schriftgrößen: eine Stufe größer als im Kit (Kit: 13/14/16/18) */
:root {
  --t-label: 15px;
  --t-small: 16px;
  --t-body: 18px;
  --t-lead: 20px;
  --t-card: 20px;
  --btn-h: 48px;
}
@media (min-width: 1024px) {
  :root { --t-lead: 22px; --t-card: 22px; }
}
body { line-height: 1.6; }

/* 2. Kopfzeile: Menüpunkte 17 px, Telefonnummer als Link, Logo-Bild */
.nav__link { font-size: 17px; }
.nav__actions .btn { font-size: 17px; }
.nav__logo img { width: 40px; height: 40px; flex: none; }
.nav__tel { white-space: nowrap; font-variant-numeric: tabular-nums; }
/* zwischen 1024 und 1239 px reicht der Platz nicht für fünf Menüpunkte, Nummer und Knopf:
   die Nummer steht dann nur im Fußbereich und im Abschnitt „Besuch" */
@media (min-width: 1024px) and (max-width: 1239px) { .nav__tel { display: none; } }

/* 3. Handy-Leiste mit drei Zielen (Anrufen · Katalog · Anfrage) */
@media (max-width: 639px) {
  .actionbar.actionbar--3 { gap: var(--s-2); padding-inline: var(--s-4); }
  .actionbar.actionbar--3 .btn { padding-inline: var(--s-1); font-size: 17px; }
}

/* 4. Produktkacheln: freigestellte Stücke ganz zeigen (nicht beschneiden) */
.tile--stueck { --tile-ratio: 1 / 1; }
.tile--stueck .tile__media { background: var(--p-surface); }
.ground-surface .tile--stueck .tile__media { background: var(--p-bg); }
.tile--stueck .tile__media > img { object-fit: contain; padding: var(--s-6); }
@media (max-width: 639px) { .tile--stueck .tile__media > img { padding: var(--s-4); } }

/* 5. Listen mit Verweis: der Name der Zeile ist der Link, ganze Zeile mind. 44 px */
.rows__name[href] { display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; text-decoration-color: color-mix(in oklab, currentColor 35%, transparent); text-underline-offset: 4px; }
.rows__name[href]:hover { text-decoration-color: currentColor; }

/* 6. Kontaktzeilen (Telefon, E-Mail): große, gut treffbare Links */
.kontakt-liste { display: grid; gap: var(--s-1); margin: 0; padding: 0; list-style: none; }
.kontakt-liste a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 500; font-variant-numeric: tabular-nums; text-decoration: underline; text-decoration-color: color-mix(in oklab, currentColor 35%, transparent); text-underline-offset: 4px; }
.kontakt-liste a:hover { text-decoration-color: currentColor; }

/* 7. Hinweis (z. B. „Besuch bitte vorher telefonisch abstimmen"): hervorgehobener Absatz, kein Kasten */
.hinweis { font-size: var(--t-lead); line-height: 1.45; font-weight: 500; max-width: 46ch; }

/* 8. Fußbereich: Links mit 44 px Klickhöhe */
.footer__nav a, .footer__legal a { display: inline-flex; align-items: center; min-height: 44px; }
.footer__legal { font-size: var(--t-small); }

/* 9. Kontaktzeilen nebeneinander und Verweise unter den Produktkacheln */
.kontakt-liste--reihe { display: flex; flex-wrap: wrap; gap: 0 var(--s-6); }
.footer .kontakt-liste { font-size: var(--t-body); }
.weitere { margin-top: var(--s-4); justify-self: start; align-self: center; }
p.weitere { font-weight: 500; }

/* 10. Fokusrahmen in Schriftfarbe: Gold auf dem hellen Grund wäre zu schwach (unter 3:1) */
:focus-visible { outline-color: var(--p-ink); }
.ground-inverse :focus-visible { outline-color: var(--p-inv-ink); }

/* 11. Fotos: Hochformat neben Text (ein Bildschirm), Quadrat-Kacheln */
.frame--hoch { aspect-ratio: 8 / 9; }
@media (max-width: 1023px) { .frame--hoch { aspect-ratio: 4 / 3; } }
.tile--quadrat { --tile-ratio: 1 / 1; }

/* 12. Tablet (640–1023 px): der Knopf „Anfrage stellen" bleibt neben dem Menü-Knopf sichtbar */
@media (min-width: 640px) and (max-width: 1023px) {
  .nav:not(.is-open) .nav__actions > .btn { display: inline-flex; }
}

/* 13. Handy: Verweise im Abschnittskopf über die ganze Breite; sehr schmale Geräte (320 px) */
@media (max-width: 639px) {
  .section-head--row > .link, a.link.weitere { width: 100%; justify-self: stretch; min-height: 44px; }
}
@media (max-width: 359px) {
  .btn { padding-inline: var(--s-3); font-size: 16px; }
}

/* 14. Niedrige Bildschirme am PC (z. B. Laptop 1366 × 768): Abschnitte wachsen mit dem Inhalt,
      statt sich zu überlagern; das Kit rechnet sonst fest mit einem Bildschirm je Abschnitt */
@media (min-width: 1280px) and (max-height: 859px) {
  main > :is(section, .section):not(.hero), footer.closing { height: auto; min-height: calc(var(--h, 1) * 100svh); display: flex; flex-direction: column; }
  main > :is(section, .section):not(.hero) > .wrap, footer.closing > .wrap { flex: 1 0 auto; height: auto; min-height: 0; }
}
@media (min-width: 1024px) and (max-height: 779px) {
  .hero--split h1 { font-size: 52px; }
}

/* 15. Fußbereich: Knopf in normaler Größe links, Überschrift einzeilig, Kontaktlinks in einer Reihe */
.closing__cta > .btn { align-self: flex-start; flex: none; }
.closing__cta h2 { max-width: none; }
.footer ul.kontakt-liste--reihe { display: flex; gap: 0 var(--s-6); }
@media (max-width: 639px) { .closing__cta > .btn { align-self: stretch; } }

/* 16. Kacheln mit span-4: am Tablet drei nebeneinander; am Handy zwei, die mit tile--breit über die
      ganze Breite und flacher. (!important: die Kit-Regel für „letzte ungerade Kachel" ist spezifischer) */
@media (min-width: 640px) and (max-width: 1023px) {
  .grid > .tile.span-4 { grid-column: auto / span 4 !important; }
}
@media (max-width: 639px) {
  .grid > .tile.span-4 { grid-column: auto / span 6 !important; }
  .grid > .tile.span-4.tile--breit { grid-column: 1 / -1 !important; --tile-ratio: 2 / 1; }
}
.footer__nav { gap: var(--s-2) var(--s-5); }
@media (min-width: 640px) and (max-width: 1023px) { .tile--quadrat { --tile-ratio: 2 / 3; } }

/* 17. Hero-Überschrift eine Kit-Stufe kleiner (64 statt 72 px): deutsche Wörter sind lang,
      so bleibt auch eine Überschrift mit 45 Zeichen auf drei Zeilen */
.hero--split h1 { font-size: var(--ly-h1-col); }

/* 18. Handy, Abschnitt „Warum Stuckdiscount": zwei Bildschirme, die sechs Punkte mit mehr Luft */
@media (max-width: 639px) {
  #warum { --hm: 2; }
  #warum .grid { row-gap: var(--s-7); margin-top: var(--s-9) !important; }
}

/* 19. Zweiter Knopf mit sichtbarem Rand: die graue Fläche allein hebt sich für schwächere Augen
      zu wenig vom hellen Grund ab */
html[data-buttons] .btn.btn--secondary { border: 1px solid color-mix(in oklab, var(--p-ink) 55%, transparent); }
