:root {
  color-scheme: light;
  --paper: #f8f6f0;
  --surface: #fffdfa;
  --ink: #172f28;
  --muted: #4b6158;
  --green: #235143;
  --line: #d9e0d6;
  --tint: #eaf0e6;
  --serif: Georgia, "Times New Roman", serif;
  font: 16px/1.55 system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  scroll-behavior: smooth;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .55; }
:focus-visible { outline: 3px solid #a4542d; outline-offset: 3px; }
.wrap { width: min(1200px, calc(100% - 48px)); margin-inline: auto; }
.topbar { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; }
.brand strong { font: 700 42px/.9 var(--serif); letter-spacing: -.12em; padding-right: 4px; }
.brand strong span { color: #b55f43; }
.brand > span, .topbar-name, .kicker { font-size: .75rem; font-weight: 750; letter-spacing: .13em; }
.topbar-name { text-transform: uppercase; color: var(--muted); }
.cart-link { display: inline-flex; gap: 8px; align-items: center; text-decoration: none; font-weight: 650; font-size: .9rem; min-height: 44px; }
.cart-link span { background: var(--tint); border-radius: 100px; padding: 2px 9px; }
.hero { margin-top: 26px; border-radius: 25px; background: var(--tint); padding: clamp(24px, 5vw, 60px); display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(20px, 4vw, 56px); align-items: center; }
.hero h1 { font: 500 clamp(2.7rem, 5.8vw, 5.2rem)/.99 var(--serif); letter-spacing: -.055em; margin: 13px 0 20px; }
.hero h1 em { color: var(--green); }
.hero-copy > p:not(.kicker) { max-width: 33ch; color: var(--muted); font-size: 1.04rem; }
.kicker { color: var(--green); }
.kicker span { display: inline-block; vertical-align: middle; width: 7px; height: 7px; border-radius: 50%; background: #527a57; margin-right: 7px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.button { border: 1px solid var(--green); border-radius: 11px; display: inline-flex; justify-content: center; align-items: center; gap: 9px; min-height: 44px; padding: 9px 15px; text-decoration: none; font-weight: 650; line-height: 1.3; }
.primary { color: white; background: var(--green); }
.primary:hover:not(:disabled) { background: var(--ink); }
.secondary { background: var(--surface); color: var(--green); }
.secondary:hover { background: var(--tint); }
.hero-photos { display: grid; grid-template-columns: 1.65fr 1fr; grid-template-rows: repeat(2, 1fr); aspect-ratio: 1.25; gap: 7px; }
.sample-photo { display: block; aspect-ratio: 1; background: #e6ded3 url("beispielfotos.webp") var(--tile-x, 0%) var(--tile-y, 0%)/300% 300% no-repeat; }
.hero-photos .sample-photo { aspect-ratio: auto; border-radius: 12px; }
.hero-photos .sample-photo:first-child { grid-row: span 2; }
.demo-note { display: flex; gap: 7px 14px; flex-wrap: wrap; margin: 16px 0 32px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; font-size: .88rem; color: var(--muted); }
.demo-note strong { color: var(--ink); }
.shop-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(255px, .4fr); gap: 24px; align-items: start; }
#sortiment, #warenkorb { scroll-margin-top: 20px; }
h2 { font: 500 clamp(1.85rem, 3vw, 2.6rem)/1.1 var(--serif); letter-spacing: -.04em; margin: 5px 0 14px; }
.categories { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 11px; }
.categories button { border: 1px solid var(--line); color: var(--ink); background: var(--surface); border-radius: 100px; padding: 8px 13px; min-height: 44px; font-size: .88rem; font-weight: 650; }
.categories button[aria-pressed="true"] { background: var(--green); color: white; border-color: var(--green); }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.product { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; min-width: 0; }
.product-photo, .product > .sample-photo { width: 100%; aspect-ratio: 1; object-fit: cover; background-color: var(--tint); }
.placeholder { display: grid; place-items: center; color: var(--muted); font-size: .9rem; }
.product-copy { padding: 13px; display: flex; flex-direction: column; gap: 6px; flex: 1; overflow-wrap: anywhere; }
.product-copy h3 { font-size: 1rem; line-height: 1.25; }
.product-copy .button { margin-top: auto; width: 100%; padding-inline: 7px; font-size: .88rem; }
.product-copy .price { font-weight: 750; }
.basket { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px; position: sticky; top: 16px; }
.cart-rows { padding: 0; margin: 0; list-style: none; }
.cart-rows li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.qty { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.qty button { min-width: 36px; min-height: 44px; border: 1px solid var(--line); border-radius: 8px; background: var(--tint); color: var(--ink); }
.total { margin: 12px 0; display: flex; justify-content: space-between; gap: 8px; font-weight: 750; }
.basket .primary { width: 100%; }
.notice:not(:empty), .last-order { margin-top: 14px; padding: 10px; background: var(--tint); border-radius: 9px; font-size: .88rem; }
.last-order h3, .last-order p { margin-bottom: 5px; }
.last-order .button { margin-top: 6px; font-size: .85rem; }
.footer { border-top: 1px solid var(--line); margin-top: 36px; padding: 15px 0 32px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: .88rem; }
.footer button { border: 0; color: inherit; background: transparent; text-decoration: underline; min-height: 44px; }
dialog { border: 1px solid var(--line); border-radius: 20px; background: var(--surface); color: var(--ink); padding: clamp(15px, 4vw, 27px); width: min(590px, calc(100% - 24px)); max-height: calc(100dvh - 24px); }
dialog::backdrop { background: #142e28aa; }
.dialog-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.close { font-size: 1.6rem; line-height: 1; min-width: 44px; min-height: 44px; background: var(--tint); color: var(--ink); border: 1px solid var(--line); border-radius: 10px; }
form { display: grid; gap: 12px; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
label { display: grid; gap: 4px; font-weight: 650; font-size: .88rem; min-width: 0; }
input:not([type="radio"]), select, textarea { width: 100%; color: inherit; background: white; border: 1px solid #899e91; border-radius: 8px; min-height: 44px; padding: 7px 9px; }
input[type="file"] { padding: 7px; font-weight: 400; }
fieldset { border: 1px solid var(--line); border-radius: 10px; padding: 9px; min-inline-size: 0; }
legend { padding: 0 5px; font-size: .88rem; font-weight: 650; }
.photo-options { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.photo-option { position: relative; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 7px; padding: 4px; background: var(--surface); cursor: pointer; overflow-wrap: anywhere; line-height: 1.2; font-size: .68rem; }
.photo-option input { position: absolute; top: 5px; right: 5px; accent-color: var(--green); margin: 0; }
.photo-option:has(input:checked) { outline: 2px solid var(--green); background: var(--tint); }
.photo-option:focus-within { outline: 2px solid #a4542d; }
.photo-option .sample-photo, .photo-option .placeholder { width: 100%; aspect-ratio: 1; border-radius: 4px; font-size: .72rem; }
.form-error { color: #a02824; font-size: .9rem; }
.form-error:empty { display: none; }
@media (max-width: 900px) {
  .products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .shop-layout { grid-template-columns: 1fr; }
  .basket { position: static; }
  .hero { grid-template-columns: 1fr; }
  .hero-photos { grid-template-columns: repeat(3, 1fr); grid-template-rows: auto; aspect-ratio: auto; }
  .hero-photos .sample-photo { aspect-ratio: 1; }
  .hero-photos .sample-photo:first-child { grid-row: auto; }
}
@media (max-width: 450px) {
  .wrap { width: calc(100% - 26px); }
  .hero { padding: 20px; margin-top: 14px; border-radius: 17px; }
  .topbar-name { display: none; }
  .product-copy { padding: 9px; }
  .products { gap: 8px; }
  .photo-options { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
}
