/* Austrianstuff – Darstellung. Eigene Schriftdateien (die CSP erlaubt keine fremden Domains). */
@font-face {
  font-family: 'Anton'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('/assets/fonts/anton-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('/assets/fonts/inter-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('/assets/fonts/inter-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('/assets/fonts/inter-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 800; font-display: swap;
  src: url('/assets/fonts/inter-800.woff2') format('woff2');
}
:root, [data-theme="dark"] {
  --bg: #121212; --flaeche: #1c1c1e; --flaeche2: #26262a; --text: #f2efe9; --gedaempft: #a7a39b;
  --linie: #35353a; --rot: #ef3340; --rot-dunkel: #b3262f; --rot-text: #fff; --ok: #4cc38a; --warn: #e6b450; --fehler: #ff6b6b;
}
[data-theme="light"] {
  --bg: #faf8f4; --flaeche: #ffffff; --flaeche2: #f0ece4; --text: #1b1a17; --gedaempft: #5e5a52;
  --linie: #ddd7cb; --rot: #ef3340; --rot-dunkel: #b3262f; --rot-text: #fff; --ok: #1a7f4e; --warn: #8a5b00; --fehler: #b3261e;
}
* { box-sizing: border-box; }
html { color-scheme: dark light; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.6 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1; padding-top: 2rem; padding-bottom: 3rem; }
.breit { width: 100%; max-width: 1120px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
h1, h2, h3, .marke { font-family: 'Anton', Georgia, "Iowan Old Style", "Times New Roman", serif; font-weight: 400; letter-spacing: .01em; line-height: 1.2; }
h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin: 0 0 .6em; text-transform: uppercase; }
h2 { font-size: 1.5rem; margin: 2em 0 .6em; text-transform: uppercase; }
h3 { font-size: 1.1rem; margin: 0 0 .3em; text-transform: uppercase; }
.marke { text-transform: uppercase; }
a { color: var(--rot); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--warn); outline-offset: 2px; }
img { max-width: 100%; height: auto; display: block; }
code, pre { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .9em; }
pre { background: var(--flaeche2); padding: 12px; overflow-x: auto; border-radius: 6px; white-space: pre-wrap; word-break: break-all; }
.klein { font-size: .875rem; color: var(--gedaempft); }
.lead { font-size: 1.15rem; color: var(--gedaempft); max-width: 60ch; }
.rechts { text-align: right; }
.nur-lesen { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.sprung { position: absolute; left: -999px; top: 0; background: var(--rot); color: var(--rot-text); padding: 8px 12px; z-index: 10; }
.sprung:focus { left: 8px; top: 8px; }

/* Flaggen-Streifen: rot/weiss/rot, wie am Hero-Teaser freigegeben. */
.flaggenleiste {
  height: 10px;
  background: linear-gradient(to bottom, var(--rot) 0 33.4%, #ffffff 33.4% 66.6%, var(--rot) 66.6% 100%);
}

.banner { background: var(--warn); color: #1b1a17; text-align: center; padding: 6px 16px; font-size: .9rem; }
.kopf { border-bottom: 1px solid var(--linie); background: var(--bg); position: sticky; top: 0; z-index: 5; }
.kopf-zeile { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; }
.marke { font-size: 1.4rem; font-weight: 400; text-decoration: none; color: var(--text); }
.marke-akzent { color: var(--rot); }
.haupt { display: flex; gap: 4px 20px; flex-wrap: wrap; flex: 1; }
.haupt a, .korb-link, .kopf-rechts a {
  color: var(--text); text-decoration: none; padding: 4px 2px; border-bottom: 2px solid transparent;
  font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
}
.haupt a:hover, .korb-link:hover, .kopf-rechts a:hover { border-bottom-color: var(--rot); }
[aria-current="page"] { border-bottom-color: var(--rot) !important; }
.kopf-rechts { display: flex; align-items: center; gap: 12px; }
.zaehler { background: var(--rot); color: var(--rot-text); border-radius: 999px; padding: 0 8px; font-size: .8rem; }

/* Marken-Schale: Kopf- und Fusszeile des Shops immer dunkel, unabhaengig vom Hell/Dunkel-Umschalter
   (der Umschalter ist fuer die Lesbarkeit des Inhalts gedacht, nicht fuer die Marke selbst). Nur im
   Shop (layout.php) - die Verwaltung (admin_layout.php) bleibt bewusst schlicht und themenfolgend. */
.kopf-marke { background: #141414; border-bottom: none; }
.kopf-marke .marke, .kopf-marke .haupt a, .kopf-marke .kopf-rechts a { color: #ffffff; }
.kopf-marke .marke { display: inline-flex; flex-direction: column; line-height: 1; }
.kopf-marke .haupt a:hover, .kopf-marke .korb-link:hover { border-bottom-color: var(--rot); }
.kopf-marke .klein, .kopf-marke .marke-sub { color: #9a9a9a; }
.kopf-marke .marke-sub {
  display: block; font-size: .65rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  margin-top: 2px;
}
.kopf-marke .knopf-still { color: #cfcfcf; border-color: rgba(255,255,255,.25); }
.kopf-marke .knopf-still:hover { color: #ffffff; border-color: rgba(255,255,255,.4); }

.fuss { border-top: 1px solid var(--linie); background: var(--flaeche); padding: 0 0 24px; }
.fuss-marke { background: #141414; border-top: none; color: #b9b9b9; }
.fuss-marke .fuss-inhalt { padding-top: 24px; }
.fuss-marke .marke { color: #ffffff; }
.fuss-marke a, .fuss-marke p, .fuss-marke .klein { color: #b9b9b9; }
.fuss-marke a:hover { color: #ffffff; }
.fuss-raster { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.fuss nav { display: flex; flex-direction: column; gap: 4px; }
.fuss a { color: var(--gedaempft); }
.fuss p { margin: .3em 0 0; color: var(--gedaempft); }

.knopf, .knopf-klein, .knopf-still {
  display: inline-block; font: inherit; cursor: pointer; text-decoration: none; border-radius: 3px;
  border: 1px solid var(--rot); background: var(--rot); color: var(--rot-text); padding: 10px 20px; line-height: 1.2;
  font-weight: 700; text-transform: uppercase; letter-spacing: .04em; font-size: .85rem;
}
.knopf:hover { background: var(--rot-dunkel); border-color: var(--rot-dunkel); filter: none; }
.knopf[disabled] { opacity: .5; cursor: not-allowed; }
.knopf-gross { padding: 14px 28px; font-size: .95rem; margin-top: 16px; }
.knopf-klein { padding: 6px 10px; font-size: .75rem; background: var(--flaeche2); color: var(--text); border-color: var(--linie); }
.knopf-klein:hover { background: var(--flaeche2); border-color: var(--rot); color: var(--text); }
.knopf-gefahr:hover { border-color: var(--fehler); color: var(--fehler); }
.knopf-still {
  background: transparent; color: var(--gedaempft); border-color: var(--linie); padding: 6px 10px; font-size: .75rem;
  font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
}
.knopf-still:hover { color: var(--text); }

/* Startseiten-Hero: immer die dunkle Marken-Box, wie am Teaser freigegeben - unabhaengig vom
   Hell/Dunkel-Umschalter (siehe .kopf-marke oben). Nur auf der Startseite (start.php) im Einsatz. */
.held {
  position: relative; overflow: hidden; background: #141414; color: #ffffff;
  padding: clamp(40px, 7vw, 76px) clamp(24px, 5vw, 48px); margin: 0 0 2.5rem; border-radius: 3px;
}
.held::before {
  content: ''; position: absolute; top: -10%; right: -8%; width: 46%; height: 120%;
  background: var(--rot); opacity: .16; clip-path: polygon(18% 0%, 100% 6%, 86% 100%, 0% 88%); pointer-events: none;
}
.held > * { position: relative; }
.held .lead { color: #c4c4c4; }
.kicker {
  text-transform: uppercase; letter-spacing: .12em; color: var(--rot); margin: 0 0 .9em; font-weight: 700;
  display: inline-flex; align-items: center;
}
.held .kicker {
  color: #e9e9e9; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.2);
  padding: 7px 14px; border-radius: 2px; font-size: .75rem;
}
.raster { display: grid; gap: 16px; }
.raster-4 { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.kachel {
  display: flex; flex-direction: column; gap: 6px; background: var(--flaeche); border: 1px solid var(--linie);
  border-radius: 2px; padding: 20px 20px 24px; color: var(--text); text-decoration: none;
  position: relative; overflow: hidden;
}
.kachel::after { content: ''; position: absolute; left: 0; bottom: 0; width: 100%; height: 4px; background: var(--rot); }
.kachel:hover { border-color: var(--rot); }
.kachel strong { font-family: 'Anton', Georgia, serif; text-transform: uppercase; letter-spacing: .01em; font-size: 1.05rem; }
.leer { color: var(--gedaempft); padding: 2rem 0; }

.karte { background: var(--flaeche); border: 1px solid var(--linie); border-radius: 2px; overflow: hidden; display: flex; flex-direction: column; }
.karte:hover { border-color: var(--rot); }
.karte-bild, .produkt-bild { aspect-ratio: 1 / 1; background: var(--flaeche2); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.karte-bild img, .produkt-bild img { width: 100%; height: 100%; object-fit: cover; }
.platzhalter { font: 700 4rem Georgia, serif; color: var(--linie); }
.karte-text { padding: 14px 16px 16px; }
.karte h3 a { color: var(--text); text-decoration: none; }
.preis { font-weight: 700; font-variant-numeric: tabular-nums; }
.preis-zeile { display: flex; justify-content: space-between; gap: 8px; margin: .5em 0 0; align-items: baseline; }
.preis-gross { font-size: 1.8rem; margin: .2em 0; }
.aus { color: var(--fehler); }
.ok { color: var(--ok); }

.produkt { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 800px) { .produkt { grid-template-columns: 1fr 1fr; } }
.produkt-bild { border-radius: 8px; border: 1px solid var(--linie); }
.herkunft { background: var(--flaeche); border-left: 3px solid var(--rot); padding: 8px 12px; }

.text { max-width: 70ch; }
.text ul { padding-left: 1.2em; }
.zeile { display: flex; gap: 12px; align-items: end; flex-wrap: wrap; }
.zeile.eng { gap: 6px; }
.aktionen { justify-content: space-between; margin-top: 24px; align-items: center; }
.menge { display: flex; flex-direction: column; font-size: .85rem; color: var(--gedaempft); }

.formular label { display: block; margin: 0 0 14px; font-size: .9rem; color: var(--gedaempft); }
.formular input[type=text], .formular input[type=email], .formular input[type=tel], .formular input[type=password], .formular textarea,
.menge input, .mini {
  display: block; width: 100%; margin-top: 4px; font: inherit; color: var(--text); background: var(--flaeche);
  border: 1px solid var(--linie); border-radius: 6px; padding: 10px 12px;
}
.menge input { width: 90px; } .mini { width: 70px; margin: 0; padding: 6px 8px; }
.formular fieldset { border: 1px solid var(--linie); border-radius: 8px; padding: 16px 16px 4px; margin: 0 0 20px; }
.formular legend { font-weight: 700; padding: 0 6px; color: var(--text); }
.zwei { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.zwei-schmal { grid-template-columns: 110px 1fr; }
.schmal { max-width: 460px; }
.haken { display: flex !important; gap: 10px; align-items: start; color: var(--text) !important; }
.haken input { margin-top: 5px; }
.kasse { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .kasse { grid-template-columns: 1.4fr 1fr; align-items: start; } .uebersicht { position: sticky; top: 90px; } }
.uebersicht, .kasten { background: var(--flaeche); border: 1px solid var(--linie); border-radius: 8px; padding: 16px 20px; margin: 16px 0; }
.uebersicht h2 { margin-top: 0; }
.liste-pur { list-style: none; padding: 0; margin: 0; }
.liste-pur li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--linie); }
.liste-pur .gesamt, .gesamt { font-weight: 700; }

.tabelle-rahmen { overflow-x: auto; }
.tabelle { width: 100%; border-collapse: collapse; }
.tabelle th, .tabelle td { padding: 10px 8px; border-bottom: 1px solid var(--linie); text-align: left; vertical-align: middle; }
.tabelle th.rechts, .tabelle td.rechts { text-align: right; }
.tabelle th { color: var(--gedaempft); font-weight: 600; font-size: .85rem; }
.summen { max-width: 360px; margin-left: auto; margin-top: 16px; }
.summen dl, .daten { display: grid; grid-template-columns: auto 1fr; gap: 4px 20px; margin: 0; }
.summen dd, .daten dd { margin: 0; text-align: right; }
.daten dd { text-align: left; }
.daten dt { color: var(--gedaempft); }
.gesamt { border-top: 1px solid var(--linie); padding-top: 6px; font-size: 1.1rem; }

.meldung { padding: 10px 14px; border-radius: 6px; border: 1px solid var(--linie); background: var(--flaeche); margin: 0 0 12px; }
.meldung-ok { border-color: var(--ok); }
.meldung-fehler { border-color: var(--fehler); }
.meldung-hinweis { border-color: var(--warn); }
.status { display: inline-block; padding: 2px 12px; border-radius: 999px; background: var(--flaeche2); border: 1px solid var(--linie); }
.status-bezahlt, .status-versendet { border-color: var(--ok); color: var(--ok); }
.status-wartet_auf_zahlung { border-color: var(--warn); color: var(--warn); }
address { font-style: normal; }
summary { cursor: pointer; }
@media (max-width: 560px) { .zwei, .zwei-schmal { grid-template-columns: 1fr; } .haupt { order: 3; flex-basis: 100%; } }
@media (prefers-reduced-motion: no-preference) { .karte, .kachel { transition: border-color .15s; } }

/* Verwaltung */
.admin .kopf-zeile { row-gap: 8px; }
.admin .kopf-rechts { flex-wrap: wrap; }
.admin select, .admin textarea, .admin input[type=file], .menge select {
  display: block; width: 100%; margin-top: 4px; font: inherit; color: var(--text); background: var(--flaeche);
  border: 1px solid var(--linie); border-radius: 6px; padding: 10px 12px;
}
.formular select, .formular textarea, .formular input[type=file] {
  display: block; width: 100%; margin-top: 4px; font: inherit; color: var(--text); background: var(--flaeche);
  border: 1px solid var(--linie); border-radius: 6px; padding: 10px 12px;
}
.formular input[type=number] { display: block; margin-top: 4px; font: inherit; color: var(--text); background: var(--flaeche); border: 1px solid var(--linie); border-radius: 6px; padding: 10px 12px; }
.vorschau { border-radius: 6px; border: 1px solid var(--linie); object-fit: cover; }
.qr { background: #fff; display: inline-block; padding: 8px; border-radius: 8px; margin: 8px 0; }
.qr svg { display: block; max-width: 100%; height: auto; }
.admin .knopf-still[type=submit] { white-space: nowrap; }
.karte-bild, .karte-bild:hover { text-decoration: none; }
