/* Rüdiger Wöhrl Online-Shop – angelehnt an ruediger-woehrl.de */
:root {
  --red: #EA4532;
  --red-soft: #FEF0EE;
  --navy: #0F1C32;
  --navy-2: #1B2B4B;
  --ink: #1a1a1a;
  --text: #444;
  --muted: #6B7280;
  --line: #E5E7EB;
  --sand: #F8F8F4;
  --sand-2: #F1F1EE;
  --ok: #15803d;
  --warn: #b45309;
  --err: #b91c1c;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(0,0,0,.05), 0 8px 24px rgba(15,28,50,.06);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif; color: var(--ink); background: #fff; line-height: 1.55; font-size: 15px; }
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.h1, .h2, .h3, h1, h2, h3 { font-family: 'Montserrat', 'Inter', sans-serif; letter-spacing: -.02em; color: var(--ink); }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header */
.topbar { background: var(--navy); color: rgba(255,255,255,.8); font-size: .78rem; }
.topbar .wrap { display: flex; gap: 22px; justify-content: flex-end; padding-top: 7px; padding-bottom: 7px; flex-wrap: wrap; }
.topbar a { text-decoration: none; color: inherit; }
.topbar b { color: #fff; font-weight: 600; }
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.97); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 24px; height: 72px; }
.logo img { height: 44px; width: auto; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.logo .shop-tag { font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--red); background: var(--red-soft); padding: 4px 10px; border-radius: 100px; }
.search { display: flex; flex: 1; max-width: 520px; margin-left: auto; }
.search input { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 8px 0 0 8px; padding: 10px 12px; font: inherit; font-size: .88rem; }
.search button { border: 1px solid var(--line); border-left: none; background: var(--sand); border-radius: 0 8px 8px 0; padding: 0 14px; cursor: pointer; font: inherit; font-size: .84rem; font-weight: 600; }
.cart-link { position: relative; display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 700; font-family: 'Montserrat', sans-serif; font-size: .82rem; background: var(--navy); color: #fff; border-radius: 8px; padding: 10px 16px; flex: none; }
.cart-link .count { background: var(--red); color: #fff; border-radius: 100px; min-width: 22px; height: 22px; display: inline-grid; place-items: center; font-size: .72rem; padding: 0 6px; }
.cat-bar { border-top: 1px solid var(--sand-2); }
.cat-bar .wrap { display: flex; gap: 26px; overflow-x: auto; scrollbar-width: none; }
.cat-bar .wrap::-webkit-scrollbar { display: none; }
.cat-bar a { text-decoration: none; font-size: .86rem; font-weight: 500; color: var(--text); padding: 11px 0 9px; border-bottom: 2px solid transparent; white-space: nowrap; }
.cat-bar a:hover, .cat-bar a[aria-current="page"] { color: var(--ink); border-color: var(--red); }
.admin-nav { display: flex; gap: 20px; margin-left: auto; }
.admin-nav a { text-decoration: none; font-size: .88rem; font-weight: 600; color: var(--text); }
.admin-nav a:hover { color: var(--red); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 8px; padding: 11px 20px; font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: .84rem; letter-spacing: .01em; text-decoration: none; border: none; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s; }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 4px 16px rgba(234,69,50,.3); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(234,69,50,.38); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-sm { padding: 8px 12px; font-size: .76rem; }
.btn-lg { padding: 15px 26px; font-size: .95rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
.link-btn { background: none; border: none; color: var(--muted); font: inherit; font-size: .82rem; text-decoration: underline; cursor: pointer; }

/* Hero */
.hero { background: linear-gradient(135deg, var(--navy-2) 0%, var(--navy) 100%); color: #fff; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(800px 380px at 88% 10%, rgba(234,69,50,.22), rgba(234,69,50,0) 70%); pointer-events: none; }
.hero .wrap { position: relative; z-index: 1; padding-top: 56px; padding-bottom: 56px; }
.hero .eyebrow { display: inline-flex; align-items: center; gap: 8px; font-family: 'Montserrat', sans-serif; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #fff; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); padding: 6px 14px; border-radius: 100px; }
.hero .eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--red); }
.hero h1 { color: #fff; font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 900; line-height: 1.08; margin: 18px 0 14px; max-width: 20ch; }
.hero p { color: rgba(255,255,255,.8); max-width: 62ch; font-size: 1.02rem; }
.hero .crumbs { font-size: .78rem; color: rgba(255,255,255,.6); margin-bottom: 10px; }
.hero .crumbs a { color: inherit; text-decoration: none; }
.usp { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 30px; }
.usp div { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); border-radius: 10px; padding: 14px 16px; font-size: .86rem; color: rgba(255,255,255,.85); }
.usp b { display: block; color: #fff; font-family: 'Montserrat', sans-serif; font-size: .92rem; margin-bottom: 2px; }

/* Sections */
.section { padding: 48px 0; }
.section-sand { background: var(--sand); }
.section-title { font-size: 1.6rem; font-weight: 800; margin-bottom: 6px; }
.section-sub { color: var(--muted); margin-bottom: 24px; }

/* Category grid */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cat-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; display: flex; flex-direction: column; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; }
.cat-card:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(15,28,50,.12); }
.cat-card .pic { background: var(--sand); height: 200px; display: flex; align-items: center; justify-content: center; padding: 18px; overflow: hidden; }
.cat-card .pic img { max-height: 100%; max-width: 100%; width: auto; height: auto; object-fit: contain; }
.cat-card .body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.cat-card h3 { font-size: 1.1rem; font-weight: 800; }
.cat-card .meta { display: flex; justify-content: space-between; align-items: baseline; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--sand-2); font-size: .85rem; color: var(--muted); }
.cat-card .meta b { color: var(--ink); font-family: 'Montserrat', sans-serif; }

/* Series */
.series { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 26px; box-shadow: var(--shadow); overflow: hidden; scroll-margin-top: 130px; }
.series-head { display: grid; grid-template-columns: 260px 1fr; gap: 28px; padding: 24px; }
.series-pic { background: var(--sand); border-radius: 10px; display: grid; place-items: center; padding: 16px; align-self: start; }
.series-pic img { max-height: 220px; width: auto; object-fit: contain; }
.label { display: inline-flex; align-items: center; gap: 8px; background: var(--red-soft); color: var(--red); border-radius: 100px; padding: 4px 12px; font-family: 'Montserrat', sans-serif; font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.series h2 { font-size: 1.45rem; font-weight: 800; margin: 10px 0 8px; }
.series .desc { color: var(--text); }
.series details { margin-top: 12px; }
.series summary { cursor: pointer; font-weight: 600; font-size: .88rem; color: var(--navy-2); }
.series ul.features { margin: 10px 0 0 18px; color: var(--text); font-size: .9rem; display: grid; gap: 4px; }
.calib { display: flex; gap: 10px; align-items: flex-start; background: var(--sand); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; margin-top: 12px; font-size: .86rem; color: var(--text); }
.calib .ico { flex: none; width: 22px; height: 22px; border-radius: 5px; background: var(--ok); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: .75rem; }

/* Tables */
.table-scroll { overflow-x: auto; border-top: 1px solid var(--line); }
table.variants { width: 100%; border-collapse: collapse; font-size: .88rem; }
table.variants th { text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; background: var(--sand); padding: 10px 14px; white-space: nowrap; }
table.variants td { padding: 10px 14px; border-top: 1px solid var(--sand-2); vertical-align: middle; }
table.variants tr:hover td { background: #fcfcfa; }
table.variants .code { font-weight: 700; font-family: 'Montserrat', sans-serif; white-space: nowrap; }
table.variants .price { font-weight: 700; white-space: nowrap; text-align: right; }
table.variants .buy { white-space: nowrap; text-align: right; }
.buy-form { display: inline-flex; gap: 6px; align-items: center; }
.qty { width: 62px; border: 1px solid var(--line); border-radius: 8px; padding: 7px 8px; font: inherit; text-align: center; }

/* Cart + checkout */
.layout-2 { display: grid; grid-template-columns: 1fr 380px; gap: 28px; align-items: start; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-pad { padding: 22px; }
.card h2 { font-size: 1.15rem; font-weight: 800; margin-bottom: 14px; }
.summary-row { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: .92rem; }
.summary-row.total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 12px; font-weight: 800; font-size: 1.08rem; font-family: 'Montserrat', sans-serif; }
.summary-lines { display: grid; gap: 10px; margin-bottom: 12px; font-size: .86rem; }
.summary-lines .line { display: flex; justify-content: space-between; gap: 10px; }
.cart-table td, .cart-table th { padding: 12px 14px; }
.notice { border-radius: 10px; padding: 12px 14px; font-size: .88rem; margin-bottom: 16px; border: 1px solid; }
.notice-info { background: #f0f6ff; border-color: #cfe0fb; color: #1e3a8a; }
.notice-warn { background: #fff8eb; border-color: #fde3b0; color: #7c4a03; }
.notice-ok { background: #effaf2; border-color: #c4ebcf; color: #14532d; }
.notice-err { background: #fff1f1; border-color: #fbcaca; color: #7f1d1d; }
fieldset { border: none; margin-bottom: 22px; }
legend { font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 1.02rem; margin-bottom: 12px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid-3 { display: grid; grid-template-columns: 140px 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; }
.field label { font-size: .78rem; font-weight: 600; color: var(--text); }
.field input, .field textarea, .field select { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; font: inherit; font-size: .92rem; background: #fff; }
.field input:focus, .field textarea:focus { outline: 2px solid rgba(234,69,50,.25); border-color: var(--red); }
.field .hint { font-size: .76rem; color: var(--muted); }
.field-validation-error, .validation-summary-errors { color: var(--err); font-size: .78rem; }
.input-validation-error { border-color: var(--err) !important; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; margin-bottom: 10px; }
.check input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--red); flex: none; }
.ship-fields { border-left: 3px solid var(--red-soft); padding-left: 16px; margin-top: 8px; }
.pay-logos { font-size: .78rem; color: var(--muted); margin-top: 10px; text-align: center; }

/* Status badges (admin) */
.badge { display: inline-block; border-radius: 100px; padding: 2px 10px; font-size: .72rem; font-weight: 700; white-space: nowrap; }
.b-ok { background: #dcfce7; color: #14532d; }
.b-wait { background: #e0e7ff; color: #312e81; }
.b-warn { background: #fef3c7; color: #78350f; }
.b-err { background: #fee2e2; color: #7f1d1d; }
.b-none { background: var(--sand-2); color: var(--muted); }
table.admin { width: 100%; border-collapse: collapse; font-size: .84rem; }
table.admin th { text-align: left; background: var(--sand); padding: 8px 10px; font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
table.admin td { padding: 8px 10px; border-top: 1px solid var(--sand-2); vertical-align: top; }
.events { font-size: .84rem; display: grid; gap: 6px; }
.events .ev { display: grid; grid-template-columns: 130px 1fr; gap: 10px; padding: 6px 0; border-bottom: 1px dashed var(--sand-2); }
.events .ev.e1 { color: var(--warn); }
.events .ev.e2 { color: var(--err); }
.kv { display: grid; grid-template-columns: 160px 1fr; gap: 6px 14px; font-size: .88rem; }
.kv dt { color: var(--muted); }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.inline-form { display: inline-flex; gap: 6px; align-items: center; }
.inline-form input { border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; font: inherit; font-size: .85rem; }

/* Footer */
.site-footer { background: var(--navy); color: rgba(255,255,255,.72); margin-top: 56px; font-size: .86rem; }
.site-footer .wrap { padding-top: 36px; padding-bottom: 28px; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
.site-footer h4 { color: #fff; font-family: 'Montserrat', sans-serif; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 10px; }
.site-footer a { color: rgba(255,255,255,.72); text-decoration: none; display: block; margin-bottom: 6px; }
.site-footer a:hover { color: #fff; }
.site-footer .legal { border-top: 1px solid rgba(255,255,255,.1); }
.site-footer .legal .wrap { display: block; padding-top: 14px; padding-bottom: 14px; font-size: .76rem; }

@media (max-width: 1020px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .layout-2 { grid-template-columns: 1fr; }
  .usp { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .wrap { padding: 0 16px; }
  .header-row { height: auto; flex-wrap: wrap; gap: 10px 12px; padding-top: 10px; padding-bottom: 10px; }
  .logo img { height: 34px; }
  .logo .shop-tag { display: none; }
  .cart-link { margin-left: auto; padding: 9px 12px; }
  .search { order: 3; flex-basis: 100%; max-width: none; margin-left: 0; }
  .cat-bar .wrap { gap: 18px; }
  .series { scroll-margin-top: 170px; }
  .cat-grid, .grid-2, .usp, .site-footer .wrap { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 110px 1fr; }
  .series-head { grid-template-columns: 1fr; padding: 18px; }
  .series-pic img { max-height: 160px; }
  .topbar .wrap { justify-content: center; gap: 4px 12px; font-size: .72rem; }
  .topbar .wrap > :nth-child(2) { display: none; }
  .kv { grid-template-columns: 1fr; }
}
