/* OneSys-Webshop-Vorlagen (website/shop.php). Farben je Shop aus /shop/<kürzel>/theme.css (--sp, --sd).
   Vorlagen: .tpl-technik (kantig, dicht, wie Blackreel), .tpl-mode (Serifen, viel Weißraum),
   .tpl-lebensmittel (weich, rund, warm), .tpl-dienstleistung (sachlich, Karten mit Rahmen). */
:root { --sp: #e30613; --sd: #111; --bg: #fff; --ink: #1b1f24; --muted: #5d6670; --line: #e3e6ea; --r: 6px; }
* { box-sizing: border-box; }
body.shop { margin: 0; font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color: var(--ink); background: var(--bg); }
.font-serif h1, .font-serif h2, .font-serif .s-brand { font-family: Georgia, "Times New Roman", serif; font-weight: 400; letter-spacing: .01em; }
.font-rounded { font-family: "Trebuchet MS", "Segoe UI", system-ui, sans-serif; }
a { color: var(--sp); }
.sr { position: absolute; left: -9999px; }
.s-wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.preview-bar { background: #fff3cd; color: #5c4400; text-align: center; padding: 8px 16px; font-size: .9rem; }
.preview-bar a { color: inherit; font-weight: 700; }
.s-top { background: var(--sd); color: #fff; }
.s-top-in { display: flex; align-items: center; gap: 24px; padding: 16px 0 8px; flex-wrap: wrap; }
.s-brand { color: #fff; text-decoration: none; font-size: 1.6rem; font-weight: 800; }
.s-brand img { display: block; max-height: 48px; width: auto; }
.s-search { flex: 1; display: flex; min-width: 240px; }
.s-search input { flex: 1; padding: 11px 14px; border: 0; border-radius: var(--r) 0 0 var(--r); font: inherit; }
.s-search button, .s-btn, .s-ask button { background: var(--sp); color: #fff; border: 0; padding: 11px 20px; font: 700 1rem inherit; cursor: pointer; border-radius: 0 var(--r) var(--r) 0; text-decoration: none; display: inline-block; }
.s-btn, .s-ask button { border-radius: var(--r); }
.s-slogan { margin: 0 auto; padding: 0 0 12px; color: rgba(255, 255, 255, .75); font-size: .9rem; }
.s-hero { background: linear-gradient(120deg, var(--sd), var(--sp)); color: #fff; padding: 56px 0; }
.s-hero h1 { margin: 0 0 .3em; font-size: clamp(1.8rem, 4vw, 2.8rem); line-height: 1.15; }
.s-hero p { margin: 0; font-size: 1.15rem; max-width: 640px; opacity: .92; }
.s-h { margin: 36px 0 18px; }
.s-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.s-card a { display: block; color: inherit; text-decoration: none; border: 1px solid var(--line); border-radius: var(--r); padding: 14px; height: 100%; background: #fff; transition: box-shadow .15s, transform .15s; }
.s-card a:hover { box-shadow: 0 8px 22px rgba(0, 0, 0, .1); transform: translateY(-2px); }
.s-card h3 { font-size: 1rem; margin: 10px 0 4px; line-height: 1.3; }
.s-img { aspect-ratio: 1; border-radius: var(--r); background: linear-gradient(135deg, color-mix(in srgb, var(--sp) 18%, #fff), color-mix(in srgb, var(--sd) 12%, #fff)); display: grid; place-items: center; }
.s-img span { font-size: 2.6rem; font-weight: 800; color: color-mix(in srgb, var(--sp) 70%, #000); opacity: .5; }
.s-img.big span { font-size: 6rem; }
.s-nr { color: var(--muted); font-size: .85rem; margin: 0; }
.s-price { font-weight: 800; color: var(--sp); font-size: 1.1rem; margin: 6px 0 0; }
.s-price small { font-weight: 400; color: var(--muted); font-size: .8rem; }
.s-more { text-align: center; margin: 28px 0; }
.s-about { margin: 48px 0; padding: 28px; background: #f6f7f9; border-radius: var(--r); }
.s-detail { padding: 24px 0 48px; }
.s-crumbs { font-size: .9rem; color: var(--muted); margin-bottom: 18px; }
.s-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.s-detail h1 { margin: 0 0 4px; }
.s-detail .s-price { font-size: 1.6rem; margin: 12px 0 18px; }
.s-ask { display: grid; gap: 10px; border-top: 1px solid var(--line); margin-top: 24px; padding-top: 18px; }
.s-ask h2 { font-size: 1.1rem; margin: 0; }
.s-ask label { display: grid; gap: 4px; font-size: .92rem; font-weight: 600; }
.s-ask input[type=email], .s-ask textarea { font: inherit; padding: 10px 12px; border: 1px solid #c4cad1; border-radius: var(--r); }
.s-ask .s-check { display: flex; gap: 8px; font-weight: 400; align-items: flex-start; }
.s-ask button { justify-self: start; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.s-msg { padding: 12px 16px; border-radius: var(--r); background: #eef2f6; margin-bottom: 16px; }
.s-msg.ok { background: #e8f7e8; } .s-msg.err { background: #fdecec; }
.s-legal { padding: 32px 0 56px; max-width: 820px; }
.s-text { white-space: normal; }
.s-foot { background: var(--sd); color: rgba(255, 255, 255, .75); padding: 28px 0; margin-top: 40px; font-size: .9rem; }
.s-foot nav { display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 8px; }
.s-foot a { color: #fff; }

/* Vorlage Technik: kantig, dicht, Artikelnummern im Vordergrund */
.tpl-technik { --r: 2px; }
.tpl-technik .s-hero { background: repeating-linear-gradient(135deg, var(--sd) 0 22px, #1c1c1c 22px 44px); border-bottom: 6px solid var(--sp); }
.tpl-technik .s-grid { grid-template-columns: repeat(5, 1fr); gap: 12px; }
.tpl-technik .s-nr { font-family: ui-monospace, Consolas, monospace; }
/* Vorlage Mode: viel Weißraum, helle Kopfzeile, große Bilder */
.tpl-mode { --r: 0; --bg: #fbf8f5; }
.tpl-mode .s-top { background: #fff; color: var(--sd); border-bottom: 1px solid var(--line); }
.tpl-mode .s-brand { color: var(--sd); letter-spacing: .2em; text-transform: uppercase; font-size: 1.4rem; }
.tpl-mode .s-slogan { color: var(--muted); }
.tpl-mode .s-search input { border: 1px solid var(--line); }
.tpl-mode .s-hero { background: linear-gradient(180deg, #f3e9e1, #e8d7ca); color: var(--sd); padding: 96px 0; text-align: center; }
.tpl-mode .s-hero p { margin-inline: auto; }
.tpl-mode .s-grid { grid-template-columns: repeat(3, 1fr); gap: 28px; }
.tpl-mode .s-card a { border: 0; background: transparent; padding: 0; }
.tpl-mode .s-img { aspect-ratio: 3 / 4; }
.tpl-mode .s-price { color: var(--sd); font-weight: 400; }
.tpl-mode .s-foot { background: #fff; color: var(--muted); border-top: 1px solid var(--line); }
.tpl-mode .s-foot a { color: var(--sd); }
/* Vorlage Lebensmittel: rund, warm, freundliche Karten */
.tpl-lebensmittel { --r: 18px; --bg: #fbfaf3; }
.tpl-lebensmittel .s-hero { background: radial-gradient(circle at 80% 20%, #f6d365 0, transparent 40%), linear-gradient(120deg, var(--sd), var(--sp)); }
.tpl-lebensmittel .s-card a { border: 0; box-shadow: 0 4px 14px rgba(60, 80, 20, .1); }
.tpl-lebensmittel .s-search input, .tpl-lebensmittel .s-search button { border-radius: 999px; }
.tpl-lebensmittel .s-search input { border-radius: 999px 0 0 999px; }
.tpl-lebensmittel .s-search button { border-radius: 0 999px 999px 0; }
/* Vorlage Dienstleistung: sachlich, breite Karten, Preise als Pakete */
.tpl-dienstleistung { --r: 10px; }
.tpl-dienstleistung .s-grid { grid-template-columns: repeat(3, 1fr); }
.tpl-dienstleistung .s-img { aspect-ratio: 16 / 7; }
.tpl-dienstleistung .s-card a { border-top: 4px solid var(--sp); }

@media (max-width: 900px) {
  .s-grid, .tpl-technik .s-grid { grid-template-columns: repeat(2, 1fr); }
  .tpl-mode .s-grid, .tpl-dienstleistung .s-grid { grid-template-columns: repeat(2, 1fr); }
  .s-detail-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .tpl-mode .s-grid, .tpl-dienstleistung .s-grid { grid-template-columns: 1fr; }
}
