/* Kladiwudel – Shop-Design. Farben orientieren sich am türkisen Logo. */
:root {
  --brand: #63cbc7;
  --brand-dark: #177a76;
  --brand-darker: #0f5d5a;
  --brand-soft: #e9f8f7;
  --ink: #22302f;
  --muted: #5f706f;
  --line: #dfe8e7;
  --bg: #ffffff;
  --bg-alt: #f6f9f9;
  --danger: #b3261e;
  --ok: #1d6b3a;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(20, 50, 48, .08), 0 4px 14px rgba(20, 50, 48, .06);
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.55; font-size: 16px; }
img { max-width: 100%; height: auto; }
a { color: var(--brand-dark); }
a:hover { color: var(--brand-darker); }
h1 { font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.2; margin: 1.2rem 0 1rem; }
h1 small { font-size: .95rem; font-weight: 400; color: var(--muted); margin-left: .4rem; }
h2 { font-size: 1.2rem; margin: 1.4rem 0 .6rem; }
address { font-style: normal; }
:focus-visible { outline: 3px solid var(--brand-dark); outline-offset: 2px; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 0; background: #fff; padding: .6rem 1rem; z-index: 10; }
.skip:focus { left: 8px; top: 8px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Kopf */
.site-header { border-bottom: 1px solid var(--line); background: #fff; }
.header-row { display: flex; align-items: center; gap: 20px; padding-top: 14px; padding-bottom: 14px; }
.logo img { display: block; width: 253px; max-width: 46vw; height: auto; }
.logo-text { font-size: 2.2rem; font-weight: 800; color: var(--brand); letter-spacing: -.02em; }
.logo { text-decoration: none; flex: none; }
.search { flex: 1; display: flex; max-width: 480px; margin-left: auto; }
.search input { flex: 1; min-width: 0; border: 2px solid var(--line); border-right: 0; border-radius: 999px 0 0 999px; padding: .6rem 1rem; font: inherit; }
.search input:focus { border-color: var(--brand-dark); outline: none; }
.search button { border: 0; background: var(--brand-dark); color: #fff; border-radius: 0 999px 999px 0; padding: 0 1rem; cursor: pointer; display: flex; align-items: center; }
.search button:hover { background: var(--brand-darker); }
.cart-link { display: flex; align-items: center; gap: .45rem; text-decoration: none; color: var(--ink); font-weight: 600; padding: .5rem .8rem; border-radius: 999px; position: relative; white-space: nowrap; }
.cart-link:hover { background: var(--brand-soft); color: var(--ink); }
.badge { background: var(--brand-dark); color: #fff; border-radius: 999px; font-size: .8rem; min-width: 1.5rem; height: 1.5rem; display: inline-flex; align-items: center; justify-content: center; padding: 0 .4rem; }
.nav-toggle { display: none; border: 2px solid var(--line); background: #fff; border-radius: 999px; padding: .5rem 1rem; font: inherit; font-weight: 600; cursor: pointer; }
.main-nav { background: var(--brand-soft); }
.main-nav ul { list-style: none; margin: 0; padding: 8px 0; display: flex; flex-wrap: wrap; gap: 4px 6px; }
.main-nav a { display: block; padding: .38rem .8rem; border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .95rem; }
.main-nav a:hover { background: #fff; }
.main-nav a.active { background: var(--brand-dark); color: #fff; }

/* Bausteine */
main { padding-bottom: 48px; min-height: 50vh; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; border: 2px solid var(--brand-dark); background: #fff; color: var(--brand-dark); padding: .6rem 1.2rem; border-radius: 999px; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; line-height: 1.2; }
.btn:hover { background: var(--brand-soft); color: var(--brand-darker); }
.btn-primary { background: var(--brand-dark); color: #fff; }
.btn-primary:hover { background: var(--brand-darker); border-color: var(--brand-darker); color: #fff; }
.btn-small { padding: .4rem .8rem; font-size: .88rem; }
.btn-block { display: flex; width: 100%; }
.btn-order { font-size: 1.1rem; padding: .9rem 1.2rem; margin-top: 1rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.link-btn { border: 0; background: none; color: var(--brand-dark); text-decoration: underline; cursor: pointer; font: inherit; padding: 0; }
.alert { padding: .8rem 1rem; border-radius: var(--radius); margin: 1rem 0; border: 1px solid; }
.alert-success { background: #e9f6ee; border-color: #b9dfc6; color: var(--ok); }
.alert-error { background: #fdecea; border-color: #f3c2bd; color: var(--danger); }
.alert-info { background: var(--brand-soft); border-color: #bfe6e4; color: var(--brand-darker); }
.empty { color: var(--muted); padding: 2rem 0; }
.hint, .muted, small { color: var(--muted); }
.hint { font-size: .9rem; }
.lead { font-size: 1.1rem; }
.breadcrumb { font-size: .9rem; color: var(--muted); margin: 1rem 0 0; }
.breadcrumb a { color: var(--muted); }
.section-title { font-size: 1.35rem; margin: 2.4rem 0 1rem; padding-bottom: .4rem; border-bottom: 3px solid var(--brand); display: inline-block; }
.box { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem; }
.box h2 { margin-top: 0; font-size: 1rem; }
.box p { margin: .3rem 0; }
.richtext { max-width: 75ch; }
.richtext img { border-radius: var(--radius); }
.richtext table { border-collapse: collapse; }
.richtext td, .richtext th { border: 1px solid var(--line); padding: .4rem .6rem; }
.content-page { max-width: 900px; }

/* Startseite */
.hero { position: relative; margin: 20px 0 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 6; background: var(--brand-soft); }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .9s ease; }
.hero-slide.is-active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.welcome { margin-top: 1.6rem; }
.welcome h1 { color: var(--brand-darker); }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.tile { position: relative; display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--bg-alt); box-shadow: var(--shadow); text-decoration: none; }
.tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.tile:hover img { transform: scale(1.05); }
.tile span { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(15, 93, 90, .88); color: #fff; font-weight: 700; padding: .45rem .7rem; font-size: .95rem; }

/* Produktlisten */
.list-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.sort-form { display: flex; align-items: center; gap: .5rem; font-size: .95rem; }
select, input, textarea { font: inherit; color: inherit; }
.sort-form select { border: 2px solid var(--line); border-radius: 999px; padding: .35rem .8rem; background: #fff; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 18px; }
.card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; transition: box-shadow .2s ease, transform .2s ease; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card-img { display: block; aspect-ratio: 4 / 3; background: var(--bg-alt); }
.card-img img { width: 100%; height: 100%; object-fit: contain; display: block; padding: 8px; }
.card h3 { font-size: .98rem; font-weight: 600; margin: .7rem .9rem .3rem; line-height: 1.35; flex: 1; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { color: var(--brand-dark); text-decoration: underline; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: 0 .9rem .9rem; flex-wrap: wrap; }
.price { font-weight: 800; font-size: 1.1rem; margin: 0; }
.price small { font-weight: 400; font-size: .75rem; display: block; }
.price-old { font-weight: 400; font-size: .8em; color: var(--muted); margin-left: .25rem; white-space: nowrap; }
.soldout { color: var(--danger); font-weight: 600; font-size: .9rem; }
.pagination { display: flex; gap: 6px; justify-content: center; margin: 2rem 0 0; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 2.4rem; height: 2.4rem; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; border: 2px solid var(--line); text-decoration: none; font-weight: 600; padding: 0 .6rem; }
.pagination .current { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.pagination .gap { border: 0; }

/* Produktseite */
.product { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 36px; margin-top: 1rem; }
.product-main { display: block; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-alt); padding: 14px; text-align: center; }
.product-main img { max-height: 560px; width: auto; max-width: 100%; display: inline-block; }
.product-thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.thumb { border: 2px solid var(--line); border-radius: 8px; padding: 2px; background: #fff; cursor: pointer; width: 76px; height: 76px; }
.thumb img { width: 100%; height: 100%; object-fit: contain; }
.thumb.is-active { border-color: var(--brand-dark); }
.product-info h1 { margin-top: 0; }
.sku { color: var(--muted); font-size: .9rem; margin: -.5rem 0 1rem; }
.price-big { font-size: 2rem; color: var(--brand-darker); }
.price-note { color: var(--muted); font-size: .9rem; margin: .1rem 0 .6rem; }
.delivery { margin: 0 0 1.2rem; }
.delivery::before { content: ""; display: inline-block; width: .7rem; height: .7rem; border-radius: 50%; background: #3aa35c; margin-right: .5rem; }
.buy-form { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; padding: 1rem; background: var(--brand-soft); border-radius: var(--radius); margin-bottom: 1.4rem; }
.buy-form input[type=number], .cart-table input[type=number] { width: 5rem; border: 2px solid var(--line); border-radius: 8px; padding: .5rem; text-align: center; background: #fff; }

/* Warenkorb & Kasse */
.table-wrap { overflow-x: auto; }
.cart-table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.cart-table th { text-align: left; font-size: .85rem; color: var(--muted); border-bottom: 2px solid var(--line); padding: .5rem .6rem; font-weight: 600; }
.cart-table td { padding: .7rem .6rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.cart-img { width: 96px; }
.cart-img img { width: 80px; height: 60px; object-fit: contain; display: block; }
.num { text-align: right !important; white-space: nowrap; }
.totals-box { max-width: 440px; margin-left: auto; }
.totals { width: 100%; border-collapse: collapse; }
.totals td { padding: .35rem 0; }
.totals .total td { font-weight: 800; font-size: 1.2rem; border-top: 2px solid var(--ink); padding-top: .6rem; }
.totals .muted td { font-size: .88rem; color: var(--muted); }
.steps { list-style: none; display: flex; gap: 0; padding: 0; margin: 1.4rem 0 0; counter-reset: step; font-size: .92rem; flex-wrap: wrap; }
.steps li { counter-increment: step; padding: .4rem 1rem .4rem 0; color: var(--muted); }
.steps li::before { content: counter(step); display: inline-flex; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--line); color: var(--ink); align-items: center; justify-content: center; margin-right: .4rem; font-weight: 700; }
.steps li.current { color: var(--ink); font-weight: 700; }
.steps li.current::before, .steps li.done::before { background: var(--brand-dark); color: #fff; }
.checkout-form { max-width: 720px; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem 1.2rem; margin: 0 0 1.2rem; }
legend { font-weight: 700; padding: 0 .5rem; font-size: 1.05rem; }
.field { margin-bottom: .9rem; flex: 1; min-width: 0; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: .25rem; }
.field input, .field select, .field textarea { width: 100%; border: 2px solid var(--line); border-radius: 8px; padding: .6rem .7rem; background: #fff; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand-dark); outline: none; }
.field.has-error input { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: .88rem; display: block; margin-top: .2rem; }
.row { display: flex; gap: 14px; }
.row-zip .field:first-child { flex: 0 0 9rem; }
.check { display: flex; gap: .6rem; align-items: flex-start; margin: .6rem 0; cursor: pointer; }
.check input { margin-top: .3rem; width: 1.1rem; height: 1.1rem; flex: none; accent-color: var(--brand-dark); }
.option { display: flex; gap: .7rem; align-items: flex-start; padding: .7rem .8rem; border: 2px solid var(--line); border-radius: 8px; margin-bottom: .5rem; cursor: pointer; }
.option:has(input:checked) { border-color: var(--brand-dark); background: var(--brand-soft); }
.option input { margin-top: .3rem; accent-color: var(--brand-dark); }
.form-actions { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.review-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin: 1rem 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 36px; }

/* Fuß */
.site-footer { background: var(--brand-darker); color: #e6f4f3; margin-top: 40px; padding: 36px 0 20px; font-size: .95rem; }
.site-footer a { color: #fff; }
.site-footer h2 { font-size: 1rem; margin: 0 0 .6rem; color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: .25rem 0; }
.site-footer ul.cols { columns: 2; }
.footer-grid { display: grid; grid-template-columns: 1fr 1.3fr 1.3fr; gap: 32px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .2); margin-top: 28px; padding-top: 16px; font-size: .85rem; color: #cfe7e5; }
.footer-bottom p { margin: .3rem 0; }
.footer-note { display: flex; align-items: center; gap: .8rem; margin: .6rem 0; }
.footer-note img { background: #fff; border-radius: 4px; padding: 2px; max-height: 50px; width: auto; }
.footer-note p { margin: 0; }

@media (max-width: 860px) {
  .header-row { flex-wrap: wrap; }
  .search { order: 3; max-width: none; flex-basis: 100%; margin: 0; }
  .cart-link { margin-left: auto; }
  .cart-link span:not(.badge) { display: none; }
  .nav-toggle { display: inline-block; }
  .main-nav { display: none; }
  .main-nav.is-open { display: block; }
  .product { grid-template-columns: 1fr; gap: 20px; }
  .contact-grid, .footer-grid { grid-template-columns: 1fr; }
  .hero { aspect-ratio: 16 / 9; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
  .row { flex-direction: column; gap: 0; }
  .row-zip .field:first-child { flex: 1; }
  .cart-img { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
@media print {
  .site-header, .site-footer, .btn, .steps { display: none !important; }
}

/* Museumsbezug */
.museum-box { margin: 2.5rem 0; padding: 1.4rem 1.6rem; background: #eef9f8; border: 1px solid #cdeceb; border-left: 6px solid var(--brand); border-radius: 10px; }
.museum-box h2 { margin: 0 0 .5rem; font-size: 1.3rem; }
.museum-box p { margin: 0 0 .8rem; max-width: 60rem; }
.museum-links { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; margin-bottom: 0 !important; }
.museum-note { margin: 1.5rem 0 0; padding: .8rem 1rem; background: #f4fbfb; border-radius: 8px; font-size: .92rem; color: #46585a; }
.museum-note a { white-space: nowrap; }
.footer-museum { margin: 0 0 .6rem; }

/* Firmenkonto */
.account-link { display: flex; align-items: center; gap: .4rem; text-decoration: none; color: var(--ink); font-weight: 600; padding: .5rem .8rem; border-radius: 999px; white-space: nowrap; }
.account-link:hover { background: var(--brand-soft); color: var(--ink); }
.account-narrow { max-width: 720px; }
.account-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; }
.account-section { margin: 2rem 0; }
.account-section h2 { font-size: 1.25rem; }
.field-hint { display: block; margin-top: .2rem; font-size: .85rem; }
@media (max-width: 760px) { .account-link span { display: none; } }
