/* strickli.ch – Stylesheet */
:root {
  --cream: #FBF6EF;
  --paper: #F4EBDD;
  --wool: #E9DCC8;
  --rose: #E8C4B8;
  --terra: #C47A5E;
  --terra-dark: #A65F45;
  --sage: #8C9C7E;
  --sage-light: #E7ECE1;
  --ink: #3A2E29;
  --muted: #7A6A62;
  --line: #E6DACB;
  --white: #fff;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(58,46,41,.06), 0 8px 24px rgba(58,46,41,.07);
  --serif: 'Iowan Old Style', 'Palatino Linotype', 'Book Antiqua', Palatino, Georgia, serif;
  --sans: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--cream); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--terra-dark); }
a:hover { color: var(--ink); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
code { background: var(--paper); padding: .1em .35em; border-radius: 6px; font-size: .9em; }
.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.center img { margin: 0 auto 1rem; }
.muted { color: var(--muted); }
.small, small { font-size: .85em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 99; }
:focus-visible { outline: 3px solid var(--terra); outline-offset: 2px; border-radius: 6px; }

/* Header */
.site-header { background: rgba(251,246,239,.92); backdrop-filter: blur(8px); position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 10px 0; }
.brand img { height: 60px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.main-nav a { text-decoration: none; color: var(--ink); padding: 8px 14px; border-radius: 999px; font-weight: 500; font-size: .95rem; }
.main-nav a:hover, .main-nav a[aria-current] { background: var(--paper); }
.cart-link { display: inline-flex; align-items: center; gap: 6px; background: var(--ink); color: var(--cream) !important; }
.cart-link:hover { background: var(--terra-dark) !important; }
.cart-count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--terra); color: #fff; font-size: .75rem; font-weight: 700; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 26px; border-radius: 999px; border: 0; background: var(--terra); color: #fff; font: 600 1rem var(--sans); text-decoration: none; cursor: pointer; transition: background .15s, transform .15s; }
.btn:hover { background: var(--terra-dark); color: #fff; transform: translateY(-1px); }
.btn:disabled { background: var(--wool); color: var(--muted); cursor: not-allowed; transform: none; }
.btn-block { width: 100%; }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { background: var(--paper); color: var(--ink); }
.btn-sm { padding: 7px 14px; font-size: .88rem; }
.btn-danger { background: #B4483A; }
.btn-danger:hover { background: #8F3429; }
.icon-btn { border: 0; background: none; color: var(--muted); font-size: 1rem; cursor: pointer; padding: 8px; border-radius: 50%; }
.icon-btn:hover { background: var(--paper); color: var(--ink); }
.link-arrow { font-weight: 600; text-decoration: none; }

/* Hero */
.hero { background: linear-gradient(180deg, var(--cream), var(--paper)); overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; padding: 56px 0 40px; }
.eyebrow { text-transform: uppercase; letter-spacing: .18em; font-size: .78rem; font-weight: 700; color: var(--sage); margin-bottom: .8em; }
.lead { font-size: 1.15rem; color: #5A4A43; }
.hero-art img { width: 100%; max-width: 460px; margin-left: auto; }

/* USP */
.usp { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: -10px; margin-bottom: 24px; position: relative; }
.usp div { background: var(--white); border-radius: var(--radius); padding: 18px 22px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.usp strong { font-family: var(--serif); font-size: 1.1rem; }
.usp span { color: var(--muted); font-size: .92rem; }

/* Shop */
.shop { padding: 40px 0 70px; }
.shop-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; margin-bottom: 26px; }
.shop-head h2 { margin: 0; }
.filters { display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { text-decoration: none; color: var(--ink); background: var(--white); border: 1.5px solid var(--line); padding: 7px 16px; border-radius: 999px; font-size: .92rem; font-weight: 500; }
.chip:hover { border-color: var(--terra); color: var(--ink); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.chips-small .chip { padding: 5px 12px; font-size: .84rem; }
.grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px; }
.card a { display: block; text-decoration: none; color: inherit; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; height: 100%; }
.card a:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(58,46,41,.12); color: inherit; }
.card-img { aspect-ratio: 1; background: var(--paper); overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card a:hover .card-img img { transform: scale(1.04); }
.card-body { padding: 16px 18px 20px; }
.card-body h3 { margin: 10px 0 4px; }
.card-desc { color: var(--muted); font-size: .92rem; margin-bottom: 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.price { font-weight: 700; font-size: 1.05rem; margin: 0; }
.price-lg { font-size: 1.5rem; margin-bottom: .6em; }
.is-soldout .card-img img { filter: grayscale(.6) opacity(.7); }
.badge { display: inline-block; font-size: .74rem; font-weight: 700; letter-spacing: .02em; padding: 4px 10px; border-radius: 999px; }
.badge-lager { background: var(--sage-light); color: #4F5E43; }
.badge-bestellung { background: #F6E6E1; color: var(--terra-dark); }
.badge-aus { background: #EEE; color: #777; }
.empty { color: var(--muted); padding: 30px 0; }

/* About */
.about { background: var(--sage-light); padding: 70px 0; }
.about-inner { display: grid; grid-template-columns: 320px 1fr; gap: 50px; align-items: center; }
.about-inner > div:last-child { max-width: 640px; }

/* Seiten */
.page { padding: 50px 0 80px; }
.prose h2 { font-size: 1.35rem; margin-top: 1.8em; }
.prose p, .prose li { color: #4C3F39; }
.crumbs { font-size: .9rem; color: var(--muted); margin: 24px 0; }
.crumbs a { color: var(--muted); }
.flash { padding: 12px 18px; border-radius: 12px; margin: 16px 0; background: var(--sage-light); color: #3E4B33; font-weight: 500; }
.flash-error { background: #F8E1DC; color: #8F3429; }
.note-box { background: var(--paper); padding: 16px 18px; border-radius: 12px; margin: 16px 0; }
.simple-table { border-collapse: collapse; width: 100%; }
.simple-table th, .simple-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }

/* Produkt */
.product { padding-bottom: 80px; }
.product-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 50px; align-items: start; }
.gallery { position: sticky; top: 90px; }
.gallery-main { background: var(--paper); border-radius: var(--radius); overflow: hidden; aspect-ratio: 1; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.thumb { padding: 0; border: 2px solid transparent; border-radius: 12px; overflow: hidden; width: 78px; height: 78px; cursor: pointer; background: var(--paper); }
.thumb.is-active { border-color: var(--terra); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-info h1 { margin-top: 12px; font-size: clamp(1.8rem, 3.5vw, 2.5rem); }
.buy-form { background: var(--white); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); margin: 20px 0 28px; }
.buy-row { display: grid; grid-template-columns: 100px 1fr; gap: 12px; align-items: end; }
.delivery-hint { margin: 14px 0 0; font-size: .9rem; color: var(--muted); }
.facts { display: grid; grid-template-columns: 110px 1fr; gap: 8px 16px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .95rem; }
.facts dt { font-weight: 700; }
.facts dd { margin: 0; color: #4C3F39; }

/* Formulare */
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.field small { font-weight: 400; color: var(--muted); }
input[type=text], input:not([type]), input[type=email], input[type=password], input[type=number], input[type=search], select, textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--white);
  border: 1.5px solid var(--line); border-radius: 12px; padding: 11px 14px; transition: border-color .15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--terra); box-shadow: 0 0 0 3px rgba(196,122,94,.15); }
textarea { resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 10px 0; font-size: .93rem; cursor: pointer; }
.check input { margin-top: 4px; accent-color: var(--terra); width: 18px; height: 18px; flex: none; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* Warenkorb */
.cart-lines { list-style: none; padding: 0; margin: 0 0 24px; }
.cart-line { display: grid; grid-template-columns: 96px 1fr 80px 110px 40px; gap: 18px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart-line img { border-radius: 12px; background: var(--paper); }
.cart-line-info .badge { margin-top: 6px; }
.cart-line-info a { color: var(--ink); text-decoration: none; }
.cart-line-price { font-weight: 700; text-align: right; }
.cart-summary { max-width: 440px; margin-left: auto; background: var(--white); padding: 24px; border-radius: var(--radius); box-shadow: var(--shadow); }
.cart-summary dl { display: grid; grid-template-columns: 1fr auto; gap: 6px; margin: 0 0 14px; }
.cart-summary dd { margin: 0; font-weight: 600; }

/* Footer */
.site-footer { background: var(--ink); color: #E9DFD7; margin-top: 0; }
.knit-band { height: 22px; background-color: var(--cream);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22'%3E%3Cpath d='M2 2 L11 18 L20 2' fill='none' stroke='%23E8C4B8' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: repeat-x; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; padding: 46px 0 30px; }
.footer-logo { height: 52px; width: auto; margin-bottom: 10px; }
.footer-logo-invert { filter: brightness(0) invert(.92); }
.site-footer h3 { font-family: var(--sans); font-size: .8rem; text-transform: uppercase; letter-spacing: .15em; color: var(--rose); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 6px 0; }
.site-footer a { color: #E9DFD7; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 18px 0 26px; font-size: .85rem; color: #B5A79F; }

/* ---------- Verwaltung ---------- */
body.admin { background: #F7F3EE; font-size: 16px; }
.admin-bar { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.admin-bar-inner { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; gap: 16px; flex-wrap: wrap; }
.admin-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--muted); font-weight: 600; }
.admin-brand img { height: 34px; width: auto; }
.admin-bar nav { display: flex; gap: 4px; flex-wrap: wrap; }
.admin-bar nav a { text-decoration: none; color: var(--ink); padding: 7px 12px; border-radius: 10px; font-size: .93rem; font-weight: 500; }
.admin-bar nav a:hover, .admin-bar nav a[aria-current] { background: var(--paper); }
.admin-main { padding: 28px 0 60px; }
.admin-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.admin-head h1 { font-size: 1.8rem; margin: 0; }
.admin-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.search input { width: 220px; padding: 10px 14px; }
.table-wrap { overflow-x: auto; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th { text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 12px 14px; border-bottom: 1px solid var(--line); }
.admin-table td { padding: 10px 14px; border-bottom: 1px solid #F1EAE1; vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: 0; }
.admin-table tr.is-off td { opacity: .5; }
.admin-table a { color: var(--ink); }
.thumb-sm { width: 52px; height: 52px; object-fit: cover; border-radius: 10px; background: var(--paper); }
.inline-form { display: flex; gap: 6px; align-items: center; }
.inline-form input { width: 72px; padding: 6px 10px; }
.toggle { width: 46px; height: 26px; border-radius: 999px; border: 0; background: #DDD3C8; position: relative; cursor: pointer; padding: 0; }
.toggle span { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: left .15s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.toggle.on { background: var(--sage); }
.toggle.on span { left: 23px; }
.admin-cols { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; align-items: start; }
.panel { background: var(--white); border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow); margin-bottom: 20px; }
.panel h2 { font-family: var(--sans); font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; color: var(--sage); margin: 6px 0 14px; }
.panel h2:not(:first-child) { margin-top: 26px; }
.radio-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.radio-card { position: relative; cursor: pointer; }
.radio-card input { position: absolute; opacity: 0; }
.radio-card > span { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; height: 100%; }
.radio-card small { color: var(--muted); }
.radio-card input:checked + span { border-color: var(--terra); background: #FCF4F1; box-shadow: 0 0 0 3px rgba(196,122,94,.12); }
.radio-card input:focus-visible + span { outline: 3px solid var(--terra); }
.logo-pick { display: grid; gap: 10px; }
.logo-pick img { height: 52px; width: auto; }
.img-manage { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 16px; }
.img-manage li { width: 140px; }
.img-manage img { width: 140px; height: 140px; object-fit: cover; border-radius: 12px; background: var(--paper); margin-bottom: 6px; }
.img-manage .check { margin: 4px 0; font-size: .85rem; }
.upload input { padding: 18px; border-style: dashed; background: #FDFBF8; }
.form-actions { display: flex; gap: 10px; margin: 6px 0 30px; }
.danger-zone { display: flex; gap: 14px; align-items: center; padding-top: 20px; border-top: 1px dashed var(--line); }
.login-box { max-width: 420px; margin: 50px auto; background: var(--white); padding: 30px; border-radius: var(--radius); box-shadow: var(--shadow); }
.narrow-panel { max-width: 480px; }
.small-field input { width: 120px; }
.order-items { list-style: none; padding: 0; margin: 0 0 14px; }
.order-items li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.order-items .badge { margin-top: 6px; }
.wish { background: #FCF4F1; border-left: 3px solid var(--terra); padding: 6px 10px; border-radius: 6px; margin: 6px 0; }
.sum { display: grid; grid-template-columns: 1fr auto; gap: 4px; }
.sum dd { margin: 0; }
.address { background: var(--paper); padding: 12px 14px; border-radius: 10px; }
.status { font-size: .8rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: #EEE; }
.status-bezahlt { background: #FFF1D6; color: #8A5B00; }
.status-versendet { background: var(--sage-light); color: #4F5E43; }
.status-storniert { background: #F8E1DC; color: #8F3429; }

/* Responsive */
@media (max-width: 900px) {
  .hero-inner, .product-grid, .about-inner, .admin-cols { grid-template-columns: 1fr; }
  .hero-art img { max-width: 360px; margin: 0 auto; }
  .gallery { position: static; }
  .about-inner > div:first-child { max-width: 200px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .filters { align-items: flex-start; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .header-inner { flex-direction: column; gap: 4px; padding: 8px 0; }
  .brand img { height: 46px; }
  .main-nav { flex-wrap: nowrap; gap: 2px; }
  .main-nav a { padding: 6px 10px; font-size: .9rem; white-space: nowrap; }
  .cart-label { display: none; }
  .hero-inner { padding: 32px 0 20px; gap: 16px; }
  .hero-art img { max-width: 260px; }
  .usp { grid-template-columns: 1fr; margin-top: 10px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .card-body { padding: 12px; }
  .card-desc { display: none; }
  .cart-line { grid-template-columns: 70px 1fr 64px; grid-template-areas: "img info del" "img qty price"; gap: 8px 12px; }
  .cart-line img { grid-area: img; width: 70px; height: 70px; }
  .cart-line-info { grid-area: info; }
  .cart-line .qty-small { grid-area: qty; }
  .cart-line-price { grid-area: price; }
  .cart-line .icon-btn { grid-area: del; justify-self: end; }
  .row2, .radio-cards { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* Verwaltung: Stripe */
.mode-badge { font-size: .85rem; font-weight: 700; padding: 6px 14px; border-radius: 999px; }
.mode-live { background: var(--sage-light); color: #3E4B33; }
.mode-test { background: #FFF1D6; color: #8A5B00; }
.mode-none { background: #F8E1DC; color: #8F3429; }
.dot-warn { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--terra); vertical-align: middle; margin-left: 2px; }
.checklist { list-style: none; padding: 0; margin: 0 0 16px; }
.checklist li { padding: 6px 0; color: var(--muted); }
.checklist li span { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #EEE6DC; font-size: .8rem; margin-right: 6px; }
.checklist li.is-ok { color: var(--ink); }
.checklist li.is-ok span { background: var(--sage); color: #fff; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }
.hint-warn { background: #FFF6E5; border-left: 3px solid #D9A441; padding: 10px 12px; border-radius: 6px; font-size: .9rem; }
.howto { padding-left: 20px; margin: 0 0 14px; }
.howto li { margin-bottom: 10px; }
details.more { margin: 4px 0 16px; }
details.more summary { cursor: pointer; color: var(--terra-dark); font-size: .9rem; margin-bottom: 10px; }

/* Kontakt */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 50px; align-items: start; }
.contact-intro img { margin-bottom: 1rem; }
.contact-form { padding: 28px; }
.contact-done { text-align: center; padding: 30px 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 20px; } .contact-intro img { width: 90px; } }
