/* WARICUT Ersatzteil-Shop – Design angelehnt an ridder.de (Public Sans, Blau #1362ad). */
:root {
  --accent: #1362ad;
  --accent-dark: #0e4e8a;
  --header: #15293f;
  --header-text: #ffffff;
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-alt: #f2f4f7;
  --text: #15181d;
  --muted: #5f6a78;
  --border: #e2e6ec;
  --radius: 8px;
  --shadow: 0 1px 3px rgba(21, 41, 63, .08), 0 6px 20px rgba(21, 41, 63, .06);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--text);
  line-height: 1.55;
  /* Hintergrundfoto wie auf ridder.de */
  background: var(--header) url("../img/ridder-bg.jpg") center top / cover fixed no-repeat;
}

a { color: var(--accent); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }

/* Kopfzeile */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: .85rem 1.25rem;
  background: var(--header);
  color: var(--header-text);
  position: sticky;
  top: 0;
  z-index: 30;
}
.logo { display: inline-flex; flex-direction: column; gap: 3px; text-decoration: none; color: #fff; }
.logo img { height: 42px; width: auto; display: block; }
.logo > span { font-weight: 500; font-size: .74rem; letter-spacing: .13em; text-transform: uppercase; color: #9fc3e6; }
.header-right { display: flex; align-items: center; gap: 1.1rem; }
.user-area { display: flex; align-items: center; gap: .5rem; font-size: .82rem; color: #c7d4e2; }
.user-area:empty { display: none; }
#user-email { font-weight: 600; color: #fff; }
.link-btn { background: none; border: none; color: #9fc3e6; cursor: pointer; font: inherit; padding: 0; text-decoration: underline; }

/* Buttons */
.btn, .cart-button {
  font: inherit;
  cursor: pointer;
  border-radius: var(--radius);
  border: 1px solid transparent;
  padding: .55rem 1rem;
  text-decoration: none;
  display: inline-block;
}
.cart-button { background: var(--accent); color: #fff; border-color: var(--accent); font-weight: 600; }
.cart-button:hover { background: var(--accent-dark); }
.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); font-weight: 600; }
.btn-primary:hover { background: var(--accent-dark); }
.btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }

/* Hero */
.hero { background: var(--accent); color: #fff; }
.hero-inner { max-width: 1140px; margin: 0 auto; padding: 2.4rem 1.25rem; }
.hero h1 { margin: 0 0 .5rem; font-size: 1.7rem; font-weight: 800; line-height: 1.2; }
.hero p { margin: 0; font-size: 1.02rem; color: #e3eefa; max-width: 70ch; }

main {
  max-width: 1140px;
  margin: 1.5rem auto;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.97);
  border-radius: 10px;
  box-shadow: 0 8px 30px rgba(21, 41, 63, .25);
}
@media (max-width: 760px) { main { margin: 0; border-radius: 0; } }

/* Blaue Abschnitts-Banner wie auf ridder.de */
.section-banner { background: var(--accent); border-radius: var(--radius); padding: .7rem 1.1rem; margin: .5rem 0 1rem; }
.section-banner h2 { margin: 0; color: #fff; font-size: 1.15rem; font-weight: 700; text-align: center; letter-spacing: .01em; }

/* Rubrik-Übersicht (Startseite) */
.overview-hint { color: var(--muted); margin: 0 0 1.25rem; }
.rubrik-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.rubrik-card {
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.1rem 1.15rem 1rem;
  cursor: pointer;
  font: inherit;
  color: var(--text);
  display: flex;
  flex-direction: column;
  gap: .35rem;
  transition: box-shadow .15s, transform .15s;
}
.rubrik-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.rubrik-card h3 { margin: 0; font-size: 1.08rem; font-weight: 700; }
.rubrik-card .anzahl { color: var(--muted); font-size: .9rem; flex: 1; }
.rubrik-card .weiter { color: var(--accent); font-weight: 600; font-size: .92rem; }
.alle-card { border-top-color: var(--accent-dark); background: #eef4fb; }
.alle-card h3 { color: var(--accent-dark); }

/* Produktansicht */
.breadcrumb { font-size: .92rem; margin: .25rem 0 1rem; color: var(--muted); }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb .sep { margin: 0 .4rem; color: var(--border); }
.breadcrumb .current { color: var(--text); font-weight: 600; }

.toolbar { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin-bottom: 1.1rem; }
.toolbar .search { flex: 1 1 260px; }
select, input, textarea {
  font: inherit;
  padding: .5rem .65rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
}
.toolbar .search input { width: 100%; }
.result-count { margin: 0; color: var(--muted); font-size: .9rem; width: 100%; }

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.1rem; }
.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  transition: box-shadow .15s;
}
.product-card:hover { box-shadow: var(--shadow); }
.add-row { display: flex; gap: .5rem; align-items: flex-end; }
.add-row .btn { flex: 1; }
.qty-input { display: flex; flex-direction: column; gap: .15rem; font-size: .72rem; color: var(--muted); }
.qty-input input { width: 4.2rem; padding: .5rem .4rem; border: 1px solid var(--border); border-radius: 6px; font: inherit; font-size: .95rem; color: var(--text); text-align: center; }
.product-image {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  background: #fff;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: .85rem;
  overflow: hidden;
}
.product-image img { width: 100%; height: 100%; object-fit: contain; padding: .5rem; }
.img-tag { position: absolute; left: .4rem; bottom: .4rem; font-size: .68rem; background: rgba(21,41,63,.6); color: #fff; padding: .1rem .4rem; border-radius: 4px; }
.product-nr { font-size: .78rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.product-card h3 { margin: 0; font-size: 1.02rem; font-weight: 600; flex: 1; }
.product-cat { font-size: .76rem; color: var(--muted); }
.product-docs { display: flex; flex-wrap: wrap; gap: .25rem .75rem; font-size: .85rem; }
.product-docs:empty { display: none; }
.product-price { font-weight: 700; font-size: 1.05rem; }
.product-price.on-request { font-weight: 600; color: var(--muted); font-size: .95rem; }

/* Warenkorb */
.cart {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(390px, 100%);
  background: var(--surface);
  border-left: 1px solid var(--border);
  padding: 1rem 1.1rem;
  display: flex; flex-direction: column;
  z-index: 40;
  box-shadow: -8px 0 28px rgba(21,41,63,.16);
}
.cart[hidden] { display: none; }
.cart-header { display: flex; justify-content: space-between; align-items: center; }
.cart-header h2 { margin: 0; font-size: 1.15rem; }
.cart-header button { background: none; border: none; font-size: 1.6rem; cursor: pointer; color: var(--text); line-height: 1; }
.cart-items { list-style: none; padding: 0; margin: 1rem 0; flex: 1; overflow-y: auto; }
.cart-item { display: grid; grid-template-columns: 1fr auto; gap: .2rem .5rem; padding: .6rem 0; border-bottom: 1px solid var(--border); }
.cart-item .qty { display: flex; gap: .3rem; align-items: center; }
.cart-item .qty button { width: 1.8rem; height: 1.8rem; border: 1px solid var(--border); background: var(--surface); color: var(--text); border-radius: 6px; cursor: pointer; }
.cart-item .nr { grid-column: 1 / -1; color: var(--muted); }
.cart-empty { color: var(--muted); }
.cart-footer { border-top: 1px solid var(--border); padding-top: 1rem; }
.cart-total { margin: 0 0 .5rem; }
.cart-footer .btn-primary { display: block; text-align: center; }
.hint { color: var(--muted); font-size: .85rem; }

/* Kasse */
.checkout { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 800px) { .checkout { grid-template-columns: 1fr 1fr; } .checkout h1 { grid-column: 1 / -1; } }
.checkout-form { display: flex; flex-direction: column; gap: .75rem; }
.checkout-form label { display: flex; flex-direction: column; gap: .25rem; font-size: .9rem; }
.checkout-form .row { display: grid; grid-template-columns: 1fr 2fr; gap: .75rem; }
.checkout-form .row-3 { grid-template-columns: 4.5rem 7rem 1fr; }
.checkout-form .row-2 { grid-template-columns: 1fr 1fr; }
.checkout-form h2 { margin: .75rem 0 0; font-size: 1.1rem; }
.checkout-form fieldset.adresse { border: 1px solid var(--border); border-radius: var(--radius); padding: .9rem; margin: 0; display: flex; flex-direction: column; gap: .75rem; }
.checkout-form fieldset.gespiegelt { background: var(--surface-alt); }
.checkout-form fieldset.gespiegelt input { background: transparent; color: var(--muted); }
.checkout-form label.check { flex-direction: row; align-items: center; gap: .5rem; font-size: .95rem; }
@media (max-width: 480px) { .checkout-form .row-3 { grid-template-columns: 4rem 1fr; } .checkout-form .row-3 label:last-child { grid-column: 1 / -1; } }
.checkout-form fieldset.art-wahl { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .5rem; }
.checkout-form label.art-option { flex-direction: row; align-items: flex-start; gap: .6rem; border: 1px solid var(--border); border-radius: var(--radius); padding: .7rem .9rem; cursor: pointer; background: var(--surface); }
.checkout-form label.art-option input { margin-top: .3rem; }
.checkout-form label.art-option span { display: flex; flex-direction: column; }
.checkout-form label.art-option small { color: var(--muted); font-size: .85rem; }
.checkout-form label.art-option:has(input:checked) { border-color: var(--accent); background: #eef4fb; box-shadow: 0 0 0 1px var(--accent); }
.checkout-form .optional { color: var(--muted); font-size: .8rem; font-weight: 400; }
.versand-hinweis { background: #fff8e1; border-left: 4px solid #e0a100; border-radius: var(--radius); padding: .7rem .9rem; font-size: .9rem; }
.versand-hinweis .titel { display: block; margin-bottom: .15rem; }
.checkout-form fieldset.express-wahl { border: 1px solid var(--border); border-radius: var(--radius); padding: .6rem .9rem .8rem; margin: 0; display: flex; flex-direction: column; gap: .4rem; }
.checkout-form fieldset.express-wahl legend { font-size: .9rem; font-weight: 600; padding: 0 .3rem; }
.express-warnung { margin: .3rem 0 0; color: #a4330b; font-size: .9rem; }
.success { font-size: 1.2rem; font-weight: 600; color: var(--accent); }

/* Anmeldung */
.login-main { max-width: 430px; margin: 0 auto; padding: 2.5rem 1.25rem; }
.login-card { background: var(--surface); border: 1px solid var(--border); border-top: 3px solid var(--accent); border-radius: var(--radius); padding: 1.9rem; display: flex; flex-direction: column; gap: .9rem; box-shadow: var(--shadow); }
.login-card[hidden] { display: none; }   /* sonst bleibt ein ausgeblendetes Formular sichtbar (display:flex) */
.login-card h1 { margin: 0; font-size: 1.4rem; }
.login-intro { margin: 0; color: var(--muted); }
.login-card label { display: flex; flex-direction: column; gap: .3rem; font-size: .9rem; }
.login-card label.checkbox { flex-direction: row; align-items: center; gap: .5rem; }
.login-card label.checkbox input { width: auto; }
.login-card input { width: 100%; }
.login-error { margin: 0; color: #c0392b; font-size: .9rem; }
.login-help { margin: 0; font-size: .9rem; }
.login-forgot { margin: -.35rem 0 0; font-size: .88rem; text-align: right; }
.login-note { margin: .25rem 0 0; border-top: 1px solid var(--border); padding-top: .75rem; }

/* Fußzeile */
.site-footer { background: var(--header); color: #c7d4e2; margin-top: 2rem; }
.footer-inner { max-width: 1140px; margin: 0 auto; padding: 1.6rem 1.25rem; display: flex; flex-wrap: wrap; gap: 1rem 3rem; justify-content: space-between; font-size: .9rem; }
.site-footer strong { color: #fff; }
.site-footer a { color: #9fc3e6; }
.footer-links { text-align: right; }

@media (max-width: 560px) {
  .hero h1 { font-size: 1.35rem; }
  .footer-inner { flex-direction: column; }
  .footer-links { text-align: left; }
}

/* ===== Shop-Layout: Rubrikbaum links, Artikelkacheln rechts (Stand 04.11.2026) ===== */
.hero-kompakt .hero-inner { padding: 1.3rem 1.25rem; }
.hero-kompakt h1 { font-size: 1.35rem; }
.hero-kompakt p { font-size: .95rem; }

main.shop-layout {
  max-width: 1360px;
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 1.75rem;
  align-items: start;
}
.sidebar {
  position: sticky;
  top: 86px;
  max-height: calc(100vh - 106px);
  overflow-y: auto;
  border-right: 1px solid var(--border);
  padding-right: 1rem;
  scrollbar-width: thin;
}
.sidebar-title { margin: 0 0 .6rem; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.tree-toggle { display: none; }

.rubrik-tree, .rubrik-tree ul { list-style: none; margin: 0; padding: 0; }
.tree-row {
  display: flex;
  align-items: center;
  gap: .15rem;
  padding-left: calc(var(--tiefe, 0) * .95rem);
  border-radius: 6px;
}
.tree-row:hover { background: var(--surface-alt); }
.tree-pfeil {
  flex: 0 0 1.4rem;
  height: 1.6rem;
  border: none;
  background: none;
  color: var(--muted);
  cursor: pointer;
  font-size: .8rem;
  padding: 0;
  border-radius: 4px;
}
.tree-pfeil:hover { color: var(--accent); }
.tree-pfeil.leer { cursor: default; }
.tree-link {
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: .5rem;
  padding: .32rem .45rem .32rem 0;
  text-decoration: none;
  color: var(--text);
  font-size: .9rem;
  line-height: 1.3;
}
.tree-anzahl { font-size: .74rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.rubrik-tree > li > .tree-row .tree-link { font-weight: 600; }
.tree-row.auf-pfad .tree-link { color: var(--accent-dark); font-weight: 600; }
.tree-row.aktiv { background: var(--accent); }
.tree-row.aktiv .tree-link, .tree-row.aktiv .tree-anzahl, .tree-row.aktiv .tree-pfeil { color: #fff; }
.tree-row.aktiv .tree-link { font-weight: 700; }
.tree-alle { margin-bottom: .35rem; border-bottom: 1px solid var(--border); border-radius: 6px 6px 0 0; padding-bottom: .15rem; }

.content { min-width: 0; }
.content .breadcrumb { margin-top: 0; }
.content-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .25rem 1rem; margin-bottom: .75rem; }
.content-head h1 { margin: 0; font-size: 1.45rem; font-weight: 800; color: var(--header); }
.content-head .result-count { width: auto; }
.content .search { display: block; margin-bottom: 1.1rem; }
.content .search input { width: 100%; max-width: 520px; }
.product-cat a { color: var(--muted); text-decoration: none; }
.product-cat a:hover { color: var(--accent); text-decoration: underline; }
.keine-treffer { grid-column: 1 / -1; color: var(--muted); }
.btn-mehr { display: block; margin: 1.5rem auto 0; background: var(--surface-alt); border-color: var(--border); color: var(--accent-dark); font-weight: 600; }
.btn-mehr:hover { background: #e5ebf3; }
.product-grid { grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); }

@media (max-width: 900px) {
  main.shop-layout { grid-template-columns: 1fr; gap: 1rem; }
  .sidebar { position: static; max-height: none; border-right: none; padding-right: 0; }
  .sidebar-title { display: none; }
  .tree-toggle {
    display: block; width: 100%; text-align: left; font: inherit; font-weight: 600;
    padding: .6rem .8rem; border: 1px solid var(--border); border-radius: var(--radius);
    background: var(--surface-alt); color: var(--text); cursor: pointer;
  }
  .sidebar .rubrik-tree { display: none; margin-top: .5rem; border: 1px solid var(--border); border-radius: var(--radius); padding: .4rem; max-height: 65vh; overflow-y: auto; }
  .sidebar.offen .rubrik-tree { display: block; }
}
.hero-kompakt .hero-inner { max-width: 1360px; }
.product-card .add-row .btn { padding: .5rem .55rem; font-size: .88rem; white-space: nowrap; }
.product-card h3 { font-size: .97rem; }
@media (max-width: 640px) {
  .site-header { flex-wrap: wrap; padding: .7rem 1rem; }
  .header-right { width: 100%; justify-content: space-between; gap: .6rem; }
  #user-email { display: none; }
  .cart-button { padding: .45rem .8rem; }
  .hero-kompakt .hero-inner { padding: .9rem 1rem; }
  .hero-kompakt h1 { font-size: 1.1rem; margin: 0; }
  .hero-kompakt p { display: none; }
  main.shop-layout { padding: 1rem; }
}

/* ---------- Katalog-Verwaltung (admin.html) ---------- */
main.admin { max-width: 1240px; }
.admin [hidden] { display: none !important; }
.admin-kopf { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: 1rem; }
.admin-kopf h1 { margin: 0; font-size: 1.45rem; font-weight: 800; color: var(--header); }
.admin-kopf p { margin: .2rem 0 0; font-size: .9rem; }
.admin-upload { display: flex; flex-direction: column; align-items: flex-end; gap: .3rem; }
.admin-upload .hint { margin: 0; font-size: .8rem; }
.admin-meldung { padding: .65rem .9rem; border-radius: var(--radius); background: var(--surface-alt); border: 1px solid var(--border); margin-bottom: 1rem; font-size: .92rem; }
.admin-meldung.ok { background: #eaf4ea; border-color: #b9dbb9; color: #1e5b1e; }
.admin-meldung.fehler { background: #fbeceb; border-color: #efc2be; color: #8a241b; }
.admin-filter { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-bottom: .5rem; }
.admin-filter button { font: inherit; font-size: .9rem; cursor: pointer; padding: .45rem .85rem; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text); }
.admin-filter button span { display: inline-block; min-width: 1.4em; margin-left: .25rem; padding: 0 .4em; border-radius: 999px; background: var(--surface-alt); font-size: .8rem; font-weight: 600; text-align: center; }
.admin-filter button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
.admin-filter button[aria-pressed="true"] span { background: rgba(255, 255, 255, .22); }
.admin-suche { margin-left: auto; }
.admin-suche input { width: 300px; max-width: 100%; padding: .5rem .7rem; border: 1px solid var(--border); border-radius: 6px; font: inherit; }
.admin-liste { list-style: none; margin: .5rem 0 0; padding: 0; border-top: 1px solid var(--border); }
.admin-zeile { display: grid; grid-template-columns: 84px minmax(0, 1fr) minmax(0, 1.1fr); gap: .5rem 1rem; align-items: center; padding: .7rem 0; border-bottom: 1px solid var(--border); }
.admin-bild { width: 84px; height: 84px; border: 1px dashed #b8c3d1; border-radius: 6px; background: var(--surface-alt); display: flex; align-items: center; justify-content: center; overflow: hidden; cursor: pointer; position: relative; }
.admin-bild:hover, .admin-bild.drop { border-color: var(--accent); background: #e8f0f9; }
.admin-bild img { max-width: 100%; max-height: 100%; object-fit: contain; background: #fff; }
.admin-bild-leer { font-size: .72rem; color: var(--muted); text-align: center; line-height: 1.25; }
.admin-info { display: flex; flex-direction: column; gap: .1rem; min-width: 0; }
.admin-info .product-nr { font-size: .78rem; color: var(--muted); }
.admin-name { font-size: .95rem; line-height: 1.3; }
.admin-preis { font-size: .85rem; color: var(--muted); }
.admin-tags { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .15rem; }
.admin-tag { font-size: .72rem; padding: .05rem .45rem; border-radius: 999px; background: #e8f0f9; color: var(--accent-dark); }
.admin-tag.warn { background: #fdf1dc; color: #7a4b00; }
.admin-rubrik { display: flex; flex-direction: column; gap: .25rem; min-width: 0; }
.admin-rubrik select { width: 100%; padding: .45rem .5rem; border: 1px solid var(--border); border-radius: 6px; font: inherit; font-size: .88rem; background: #fff; }
.admin-status { font-size: .8rem; min-height: 1em; color: var(--muted); }
.admin-status.ok { color: #1e7b1e; }
.admin-status.fehler { color: #c0392b; }
.admin-aktionen { display: flex; flex-wrap: wrap; gap: .8rem; font-size: .8rem; }
.admin-aktionen .link-btn { color: var(--accent); }
.admin-block { margin-top: 2rem; padding-top: 1rem; border-top: 2px solid var(--border); }
.admin-block h2 { margin: 0 0 .75rem; font-size: 1.1rem; }
.admin-rubrik-form { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto; gap: .75rem; align-items: end; }
.admin-rubrik-form label { display: flex; flex-direction: column; gap: .25rem; font-size: .9rem; }
.admin-rubrik-form select, .admin-rubrik-form input { height: 2.5rem; padding: .4rem .6rem; border: 1px solid var(--border); border-radius: 6px; font: inherit; font-size: .9rem; min-width: 0; }
.admin-neue-rubriken, .admin-protokoll { list-style: none; padding: 0; margin: .75rem 0 0; font-size: .88rem; display: flex; flex-direction: column; gap: .3rem; }
.admin-neue-rubriken .link-btn { color: var(--accent); font-size: .82rem; }
.admin-protokoll li { color: var(--muted); }
.admin-link { color: #ffd27a !important; }
@media (max-width: 760px) {
  .admin-zeile { grid-template-columns: 72px minmax(0, 1fr); }
  .admin-bild { width: 72px; height: 72px; }
  .admin-rubrik { grid-column: 1 / -1; }
  .admin-rubrik-form { grid-template-columns: 1fr; }
  .admin-suche { margin-left: 0; width: 100%; }
  .admin-suche input { width: 100%; }
  .admin-upload { align-items: flex-start; }
}

/* ---- Bestätigungsseite nach dem Absenden (bestaetigung.html) ---- */
.bestaetigung { max-width: 760px; margin: 2rem auto 3rem; padding: 0 1rem; display: flex; flex-direction: column; gap: 1.2rem; }
.bestaetigung [hidden] { display: none !important; }
.bestaetigung section { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.6rem 1.8rem; box-shadow: var(--shadow); }
.bestaetigung-kopf { text-align: center; border-top: 4px solid #2e9e5b !important; }
.bestaetigung-kopf .haken { width: 64px; height: 64px; margin: 0 auto .8rem; border-radius: 50%; background: #2e9e5b; color: #fff; font-size: 2.2rem; line-height: 64px; font-weight: 700; }
.bestaetigung-kopf h1 { margin: 0 0 .6rem; font-size: 1.6rem; }
.bestaetigung-kopf .b-text { margin: 0 0 .9rem; font-size: 1.05rem; }
.bestaetigung-kopf .b-nr { margin: 0; font-size: 1.05rem; }
.bestaetigung-kopf .b-mail { margin: .5rem 0 0; color: var(--muted, #5f6a78); font-size: .92rem; }
.bestaetigung-details h2 { margin: 0 0 .8rem; font-size: 1.15rem; }
.bestaetigung-details .cart-items { list-style: none; margin: 0; padding: 0; }
.b-angaben { display: grid; grid-template-columns: max-content 1fr; gap: .35rem 1.2rem; margin: 1rem 0 0; font-size: .95rem; }
.b-angaben dt { font-weight: 600; }
.b-angaben dd { margin: 0; white-space: pre-line; }
.bestaetigung-weiter { text-align: center; }
.bestaetigung-weiter p { margin: 0 0 1rem; }
@media (max-width: 560px) { .b-angaben { grid-template-columns: 1fr; } .b-angaben dd { margin-bottom: .4rem; } }

/* ---- Autologout-Hinweis (js/autologout.js) ---- */
.autologout-hinweis { position: fixed; inset: 0; background: rgba(21, 41, 63, .45); display: flex; align-items: center; justify-content: center; z-index: 1000; padding: 1rem; }
.autologout-hinweis[hidden] { display: none; }
.autologout-box { background: var(--surface); border-top: 4px solid var(--accent); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.5rem 1.7rem; max-width: 420px; text-align: center; }
.autologout-box strong { font-size: 1.15rem; }
.autologout-box p { margin: .7rem 0; }
.autologout-box .klein { color: var(--muted); font-size: .9rem; }
.login-info { margin: 0; padding: .7rem .9rem; background: #eef4fb; border-left: 3px solid var(--accent); border-radius: 6px; font-size: .92rem; }

/* ---- Kundenübersicht (kunden.html) ---- */
.kunden-kacheln { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .75rem; margin-bottom: 1rem; }
.kunden-kachel { background: var(--surface); border: 1px solid var(--border); border-top: 3px solid var(--accent); border-radius: var(--radius); padding: .7rem .9rem; display: flex; flex-direction: column; }
.kunden-kachel strong { font-size: 1.35rem; color: var(--accent-dark); }
.kunden-kachel span { font-size: .82rem; color: var(--muted); }
.kunden-intern { font-size: .88rem; display: flex; align-items: center; gap: .35rem; }
.kunden-tabelle-rahmen { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.kunden-tabelle { width: 100%; border-collapse: collapse; font-size: .88rem; }
.kunden-tabelle th { position: sticky; top: 0; background: var(--surface-alt); text-align: left; padding: .55rem .7rem; font-weight: 700; cursor: pointer; white-space: nowrap; user-select: none; border-bottom: 1px solid var(--border); }
.kunden-tabelle th:hover { color: var(--accent); }
.kunden-tabelle th.sortiert { color: var(--accent-dark); }
.kunden-tabelle th[data-richtung="auf"]::after { content: " ▲"; font-size: .7em; }
.kunden-tabelle th[data-richtung="ab"]::after { content: " ▼"; font-size: .7em; }
.kunden-tabelle td { padding: .45rem .7rem; border-bottom: 1px solid var(--border); vertical-align: top; }
.kunden-tabelle tr:hover td { background: #f7f9fc; }
.kunden-tabelle .zahl { text-align: right; }
.kunden-tabelle small { display: block; color: var(--muted); font-size: .76rem; }
.kunden-tabelle a { color: var(--accent); text-decoration: none; word-break: break-all; }
.k-status { display: inline-block; padding: .05rem .5rem; border-radius: 999px; font-size: .78rem; font-weight: 600; }
.k-aktiv { background: #e3f3e8; color: #1e6b3a; }
.k-inaktiv { background: #fdf1dc; color: #7a4b00; }
.k-gesperrt { background: #eceff3; color: #5f6a78; }

/* ---- Pflichtangaben beim Hinzufügen (z. B. WARI-029: Seriennummer, Achse Z) ---- */
.angaben-dialog { position: fixed; inset: 0; background: rgba(21, 41, 63, .45); display: flex; align-items: center; justify-content: center; z-index: 1000; padding: 1rem; }
.angaben-box { background: var(--surface); border-top: 4px solid var(--accent); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.4rem 1.6rem; width: 100%; max-width: 440px; display: flex; flex-direction: column; gap: .8rem; }
.angaben-box h2 { margin: 0; font-size: 1.2rem; }
.angaben-artikel { margin: 0; color: var(--muted); font-size: .92rem; }
.angaben-felder { display: flex; flex-direction: column; gap: .8rem; }
.angaben-felder label { display: flex; flex-direction: column; gap: .25rem; font-size: .92rem; }
.angaben-felder .titel { font-weight: 600; }
.angaben-felder input { padding: .55rem .7rem; border: 1px solid var(--border); border-radius: 6px; font: inherit; }
.angaben-felder .hint { margin: 0; font-size: .8rem; }
.angaben-knoepfe { display: flex; justify-content: flex-end; gap: .6rem; }
.angaben-zeile { grid-column: 1 / -1; font-size: .8rem; background: #fff3cd; color: #6b4e00; padding: .1rem .45rem; border-radius: 4px; justify-self: start; }
.angaben-eingabe { display: flex; align-items: stretch; }
.angaben-praefix { display: flex; align-items: center; padding: 0 .65rem; background: var(--surface-alt); border: 1px solid var(--border); border-right: 0; border-radius: 6px 0 0 6px; font-weight: 700; color: var(--accent-dark); }
.angaben-praefix + input { border-radius: 0 6px 6px 0; flex: 0 0 auto; width: 8.5em; letter-spacing: .08em; }
