/* Webshop Schmidt — ein Stylesheet, keine Abhaengigkeiten, keine externen Fonts.
   Externe Fonts wuerden ein Consent-Thema aufmachen; die Systemschrift genuegt. */

:root {
  --grund: #faf9f7;
  --flaeche: #ffffff;
  --text: #1c1b19;
  --text-leise: #5c5852;
  --linie: #e2ded8;
  --akzent: #b23a13;          /* Rost/Glut — passt zu Metallwaren */
  --akzent-dunkel: #8d2d0d;
  --dunkel: #24211e;
  --ok: #1f6b3a;
  --warn: #8a5a00;
  --fehler: #a51f1f;
  --radius: 4px;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--grund);
  color: var(--text);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--akzent-dunkel); }
a:hover { color: var(--akzent); }

:focus-visible {
  outline: 3px solid var(--akzent);
  outline-offset: 2px;
}

.skiplink {
  position: absolute; left: -9999px;
  background: var(--dunkel); color: #fff; padding: .75rem 1rem; z-index: 100;
}
.skiplink:focus { left: .5rem; top: .5rem; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }

/* --- Kopf --- */
.kopf { background: var(--dunkel); color: #fff; }
.kopf-inner {
  display: flex; flex-wrap: wrap; gap: 1rem;
  align-items: center; justify-content: space-between;
  padding-top: 1rem; padding-bottom: 1rem;
}
.marke { color: #fff; text-decoration: none; display: block; }
.marke-name { display: block; font-size: 1.3rem; font-weight: 700; letter-spacing: -.01em; }
.marke-claim { display: block; font-size: .85rem; color: #b8b2aa; }
.kopf nav { display: flex; gap: 1.25rem; align-items: center; flex-wrap: wrap; }
.kopf nav a { color: #fff; text-decoration: none; font-weight: 500; }
.kopf nav a:hover { color: #fff; text-decoration: underline; }
.badge {
  display: inline-block; min-width: 1.4em; padding: .05em .4em;
  background: var(--akzent); color: #fff; border-radius: 999px;
  font-size: .8rem; text-align: center; font-variant-numeric: tabular-nums;
}

/* --- Inhalt --- */
main { padding: 2.5rem 0 4rem; }
h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); line-height: 1.2; margin: 0 0 .5rem; }
h2 { font-size: 1.2rem; margin: 2rem 0 .5rem; }
.lead { color: var(--text-leise); font-size: 1.05rem; max-width: 55ch; margin: 0 0 2rem; }

/* --- Produktliste --- */
.produkte {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.karte {
  background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius);
  display: flex; flex-direction: column; overflow: hidden;
}
.karte img { aspect-ratio: 4 / 3; object-fit: cover; background: var(--linie); }
.karte-text { padding: 1rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.karte h2 { margin: 0; font-size: 1.05rem; }
.karte h2 a { color: var(--text); text-decoration: none; }
.karte h2 a:hover { color: var(--akzent-dunkel); }
.karte p { margin: 0; color: var(--text-leise); font-size: .92rem; }
.karte .preis { margin-top: auto; }

.preis { font-size: 1.25rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.preis-note { font-size: .82rem; color: var(--text-leise); font-weight: 400; }

/* --- Produktdetail --- */
.detail { display: grid; gap: 2.5rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 800px) { .detail { grid-template-columns: 1fr 1fr; align-items: start; } }
.detail-bild img { border: 1px solid var(--linie); border-radius: var(--radius); aspect-ratio: 4/3; object-fit: cover; }
.detail-text > * + * { margin-top: 1rem; }

.gpsr {
  border: 1px solid var(--linie); border-left: 4px solid var(--warn);
  background: #fffdf7; padding: 1rem 1.25rem; border-radius: var(--radius);
  font-size: .92rem;
}
.gpsr h2 { margin-top: 0; font-size: 1rem; }
.gpsr h3 { font-size: .92rem; margin: 1rem 0 .25rem; }
.gpsr p { margin: 0 0 .4rem; }

/* --- Formulare, Buttons --- */
.btn {
  display: inline-block; border: 0; border-radius: var(--radius); cursor: pointer;
  background: var(--akzent); color: #fff; font: inherit; font-weight: 600;
  padding: .8rem 1.4rem; text-decoration: none; text-align: center;
}
.btn:hover { background: var(--akzent-dunkel); color: #fff; }
.btn:disabled { background: var(--text-leise); cursor: not-allowed; }
.btn-gross { width: 100%; padding: 1rem 1.4rem; font-size: 1.05rem; }
.btn-leise { background: transparent; color: var(--akzent-dunkel); border: 1px solid var(--linie); }
.btn-leise:hover { background: var(--flaeche); color: var(--akzent-dunkel); }

.feld { margin-bottom: 1.1rem; }
.feld label { display: block; font-weight: 600; margin-bottom: .3rem; font-size: .95rem; }
.feld .hint { display: block; font-weight: 400; color: var(--text-leise); font-size: .85rem; }
input[type=text], input[type=email], input[type=tel], input[type=number], textarea, select {
  width: 100%; font: inherit; padding: .6rem .7rem;
  border: 1px solid var(--linie); border-radius: var(--radius); background: var(--flaeche);
  color: var(--text);
}
textarea { min-height: 6rem; resize: vertical; }
.feld-fehler input, .feld-fehler textarea, .feld-fehler select { border-color: var(--fehler); }
.fehlertext { color: var(--fehler); font-size: .88rem; margin-top: .25rem; }

.check { display: flex; gap: .6rem; align-items: flex-start; margin-bottom: 1rem; }
.check input { margin-top: .3rem; flex: 0 0 auto; width: auto; }
.check label { font-weight: 400; font-size: .95rem; }

.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.menge-zeile { display: flex; gap: .75rem; align-items: flex-end; flex-wrap: wrap; }
.menge-zeile .feld { margin-bottom: 0; }
.menge-zeile input[type=number] { width: 5.5rem; }

/* --- Warenkorb / Checkout --- */
.zwei-spalten { display: grid; gap: 2rem; grid-template-columns: minmax(0,1fr); }
@media (min-width: 860px) { .zwei-spalten { grid-template-columns: 1.3fr .8fr; align-items: start; } }

.korb { width: 100%; border-collapse: collapse; }
.korb th, .korb td { text-align: left; padding: .75rem .5rem; border-bottom: 1px solid var(--linie); vertical-align: top; }
.korb th { font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; color: var(--text-leise); }
.korb .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.korb tfoot td { border-bottom: 0; font-weight: 700; }
.korb-bild { width: 72px; }
.korb-bild img { width: 72px; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius); }

.panel {
  background: var(--flaeche); border: 1px solid var(--linie);
  border-radius: var(--radius); padding: 1.25rem;
}
.panel h2:first-child { margin-top: 0; }
.summe-zeile { display: flex; justify-content: space-between; gap: 1rem; padding: .3rem 0; }
.summe-zeile.gesamt { border-top: 1px solid var(--linie); margin-top: .5rem; padding-top: .6rem; font-weight: 700; font-size: 1.1rem; }

.hinweis {
  border-left: 4px solid var(--akzent); background: var(--flaeche);
  border-radius: var(--radius); padding: 1rem 1.25rem; margin: 1.5rem 0;
}
.hinweis.warn { border-left-color: var(--warn); background: #fffdf7; }
.hinweis.fehler { border-left-color: var(--fehler); background: #fff7f7; }
.hinweis.ok { border-left-color: var(--ok); background: #f6fbf7; }
.hinweis :first-child { margin-top: 0; }
.hinweis :last-child { margin-bottom: 0; }

.platzhalter-warnung {
  background: #ffe9c9; border: 2px dashed var(--warn); color: #4a3200;
  padding: 1rem 1.25rem; border-radius: var(--radius); margin-bottom: 2rem; font-weight: 600;
}

/* --- Textseiten --- */
.textseite { max-width: 68ch; }
.textseite h2 { margin-top: 2rem; }
.textseite ul { padding-left: 1.2rem; }

/* --- Fuss --- */
.fuss { background: var(--dunkel); color: #cfc9c1; padding: 2.5rem 0 1.5rem; margin-top: 4rem; font-size: .92rem; }
.fuss h2 { color: #fff; font-size: .95rem; margin: 0 0 .4rem; }
.fuss a { color: #fff; }
.fuss p { margin: 0 0 .5rem; }
.fuss-spalten { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.fuss-links { list-style: none; margin: 0; padding: 0; }
.fuss-links li { margin-bottom: .25rem; }
.fuss-note { border-top: 1px solid #3a352f; margin-top: 2rem; padding-top: 1rem; color: #a49d94; }

[hidden] { display: none !important; }
