/* Natürlich schön – Feinschliff-Ebene für die bestehenden Seiten (27.11.2026)
   Regeln aus Impeccable, Emil Kowalski und den Web Interface Guidelines.
   Wird in alle HTML-Seiten zusätzlich geladen; ändert keine Inhalte. */

/* 1) Keine „Eyebrow“-Zeilen über Überschriften – die Überschrift spricht für sich.
      Der Angebots-Hinweis (vor einem Absatz) bleibt, weil er Information trägt. */
.eyebrow:has(+ h1), .eyebrow:has(+ h2), .eyebrow:has(+ h3),
div:has(> .eyebrow:only-child):has(+ h1),
div:has(> .eyebrow:only-child):has(+ h2) { display: none !important; }
:is(h1, h2) { text-wrap: balance; }
p { text-wrap: pretty; }

/* 2) Sprunglink für Tastatur & Screenreader */
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 1000; padding: 10px 16px; border-radius: 999px;
  background: var(--primary, #2f4a33); color: var(--primary-foreground, #fff); font-weight: 500; text-decoration: none;
  transition: top .2s cubic-bezier(.23, 1, .32, 1); }
.skip-link:focus { top: 12px; outline: 3px solid var(--gold, #c9a45c); outline-offset: 2px; }
main:focus { outline: none; }

/* 3) Knöpfe reagieren auf Druck (eigene „scale“-Eigenschaft, stört bestehende transforms nicht) */
a[class*="rounded-full"], button[class*="rounded-full"], a[class*="rounded-md"], button[class*="rounded-md"] {
  transition-property: color, background-color, border-color, box-shadow, opacity, scale;
  transition-duration: .16s; transition-timing-function: cubic-bezier(.23, 1, .32, 1); touch-action: manipulation; }
a[class*="rounded-full"]:active, button[class*="rounded-full"]:active,
a[class*="rounded-md"]:active, button[class*="rounded-md"]:active { scale: .97; }

/* 4) Browser-Details aus der Markenpalette */
input, textarea { caret-color: var(--primary, #2f4a33); }
a { text-underline-offset: .18em; }
:focus-visible { outline: 2px solid var(--gold, #c9a45c); outline-offset: 3px; }
time, [class*="tabular"], .price { font-variant-numeric: tabular-nums; }
html { scroll-padding-top: 90px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  a:active, button:active { scale: none !important; }
}
