/* Lannertmarkt + Ille — information pages, account, auth, wishlist (lane: information-account) */

/* Nur vertikal polstern: die seitlichen Abstaende kommen aus .hi-container.
   Ein padding-Shorthand wuerde padding-inline ueberschreiben, dann kleben
   Brotkrumen und Service-Box am Bildschirmrand. */
.hp {
  padding-block: 18px 64px;
}

.hp-crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  font-size: 13px;
  color: #6b6b6b;
}

.hp-crumbs li + li::before {
  content: '\203A';
  margin-right: 6px;
  color: #b3b3b3;
}

.hp-crumbs a { color: #6b6b6b; }
.hp-crumbs li:last-child a { color: #1f1f1f; font-weight: 600; }

.hp-title {
  font-family: 'Archivo Black', 'Barlow', sans-serif;
  font-size: 34px;
  line-height: 1.15;
  margin: 0 0 6px;
  color: #1f1f1f;
}

.hp-lead {
  margin: 0 0 26px;
  font-size: 16px;
  color: #4d4d4d;
  max-width: 820px;
}

/* ---------- 2-column shell (sidebar + content) ---------- */

.hp-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.hp-single { display: block; }

.hp-aside { min-width: 0; }

/* a page whose sidebar is not available must not keep the narrow column */
.hp-layout > #content:only-child { grid-column: 1 / -1; }

.hp-side {
  background: #fff;
  border: 1px solid #e3e3e3;
  border-radius: var(--hi-radius);
  overflow: hidden;
}

.hp-side__title {
  margin: 0;
  padding: 13px 18px;
  background: var(--hi-dark);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.hp-side__list {
  list-style: none;
  margin: 0;
  padding: 6px 0;
}

.hp-side__list a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  font-size: 15px;
  color: #2b2b2b;
  border-left: 3px solid transparent;
}

.hp-side__list a i { width: 16px; text-align: center; color: #8d8d8d; font-size: 14px; }

.hp-side__list a:hover {
  background: var(--hi-light);
  opacity: 1;
}

.hp-side__list a.is-active {
  background: #fdf1f2;
  border-left-color: var(--hi-red);
  color: var(--hi-red);
  font-weight: 700;
}

.hp-side__list a.is-active i { color: var(--hi-red); }

.hp-side + .hp-side { margin-top: 20px; }

/* ---------- content card + prose ---------- */

.hp-card {
  background: #fff;
  border: 1px solid #e3e3e3;
  border-radius: var(--hi-radius);
  padding: 26px 35px;
}

.hp-card + .hp-card { margin-top: 20px; }

.hp-card__title {
  font-family: 'Archivo Black', 'Barlow', sans-serif;
  font-size: 20px;
  margin: 0 0 16px;
}

.hp-prose { font-size: 16px; line-height: 1.65; color: #2b2b2b; }
.hp-prose > :first-child { margin-top: 0; }
.hp-prose > :last-child { margin-bottom: 0; }
.hp-prose h1 { font-family: 'Archivo Black', 'Barlow', sans-serif; font-size: 28px; margin: 0 0 14px; }
.hp-prose h2 {
  font-family: 'Archivo Black', 'Barlow', sans-serif;
  font-size: 19px;
  margin: 28px 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #ececec;
}
.hp-prose h3 { font-size: 17px; font-weight: 700; margin: 22px 0 8px; }
.hp-prose p { margin: 0 0 14px; }
.hp-prose ul { margin: 0 0 16px; padding-left: 22px; list-style: disc outside; }
.hp-prose ol { margin: 0 0 16px; padding-left: 22px; list-style: decimal outside; }
.hp-prose li::marker { color: var(--hi-red); }
.hp-prose li { margin-bottom: 6px; }
.hp-prose a { color: var(--hi-red); text-decoration: none; }
.hp-prose img { max-width: 100%; height: auto; }
.hp-prose table { width: 100%; max-width: 100%; border-collapse: collapse; }
.hp-prose table td, .hp-prose table th { border: 1px solid #e3e3e3; padding: 8px 10px; }

/* ---------- buttons / alerts ---------- */

.hp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 22px;
  border: 0;
  border-radius: var(--hi-radius);
  background: var(--hi-red);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}

.hp-btn:hover { background: var(--hi-red-dark); color: #fff; opacity: 1; }

.hp-btn--ghost {
  background: #fff;
  color: #2b2b2b;
  border: 1px solid #c9c9c9;
}

.hp-btn--ghost:hover { background: var(--hi-light); color: #2b2b2b; }

.hp-btn--dark { background: var(--hi-dark); }
.hp-btn--dark:hover { background: #111; }
.hp-btn--block { width: 100%; }
.hp-btn--sm { min-height: 36px; padding: 0 14px; font-size: 14px; }

.hp-btn i { line-height: 1; }

.hp-alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border-radius: var(--hi-radius);
  padding: 13px 16px;
  margin: 0 0 18px;
  font-size: 15px;
}

.hp-alert--ok { background: #e9f8ee; border: 1px solid #b6e6c6; color: #1c6b34; }
.hp-alert--err { background: #fdecee; border: 1px solid #f3c2c7; color: #a00d17; }
.hp-alert a { text-decoration: none; color: inherit; }

/* ---------- forms ---------- */

.hp-form { display: block; }

.hp-fieldset { border: 0; margin: 0 0 26px; padding: 0; }
.hp-fieldset:last-of-type { margin-bottom: 0; }

.hp-legend {
  display: block;
  width: 100%;
  font-family: 'Archivo Black', 'Barlow', sans-serif;
  font-size: 17px;
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid #ececec;
}

.hp-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }

.hp-field { margin-bottom: 16px; }

.hp-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #2b2b2b;
  margin-bottom: 6px;
}

.hp-field--required .hp-label::after { content: ' *'; color: var(--hi-red); }

.hp-input,
.hp-select,
.hp-textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  background: #fff;
  border: 1px solid #c9c9c9;
  border-radius: var(--hi-radius);
  font-size: 15px;
  color: #1f1f1f;
}

.hp-textarea { min-height: 130px; resize: vertical; }
.hp-input:focus, .hp-select:focus, .hp-textarea:focus { border-color: var(--hi-red); }
.hp-input::placeholder, .hp-textarea::placeholder { color: #9a9a9a; }

.hp-help { display: block; font-size: 13px; color: #6b6b6b; margin-top: 6px; }
.hp-help a { color: var(--hi-red); text-decoration: none; }

.hp-err {
  display: none;
  font-size: 13px;
  color: var(--hi-red);
  margin-top: 5px;
}

.hp-err.invalid-feedback { display: none; }
.hp-err.invalid-feedback.d-block,
.hp-err.is-shown { display: block; }

/* inline checkbox row — label on one line with the box */
.hp-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.45;
  color: #2b2b2b;
  margin-bottom: 14px;
}

.hp-check input[type="checkbox"] {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  background: #fff;
  border: 1px solid #c9c9c9;
  accent-color: var(--hi-red);
  cursor: pointer;
}

.hp-check span { flex: 1 1 auto; }
.hp-check a { color: var(--hi-red); text-decoration: none; }

.hp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 20px;
}

.hp-actions--split { justify-content: space-between; }

/* ---------- auth (login / register) ---------- */

.hp-auth {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
  max-width: 1000px;
  margin: 0 auto;
}

.hp-auth .hp-card { display: flex; flex-direction: column; height: 100%; }
/* im Grid darf die zweite Karte keinen Geschwister-Abstand bekommen,
   sonst startet sie 20px tiefer als die erste */
.hp-auth .hp-card + .hp-card { margin-top: 0; }
.hp-auth .hp-actions { margin-top: auto; }

.hp-auth__list { list-style: none; margin: 0 0 18px; padding: 0; font-size: 15px; }
.hp-auth__list li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 8px; }
.hp-auth__list i { color: var(--hi-red); margin-top: 3px; }

.hp-narrow { max-width: 720px; margin: 0 auto; }

/* ---------- account dashboard ---------- */

.hp-tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.hp-tile {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: #fff;
  border: 1px solid #e3e3e3;
  border-radius: var(--hi-radius);
  padding: 20px;
  color: #1f1f1f;
}

.hp-tile:hover { border-color: var(--hi-red); opacity: 1; box-shadow: 0 6px 18px rgba(22, 24, 29, .07); }
.hp-tile__icon {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fdf1f2;
  color: var(--hi-red);
  font-size: 17px;
  margin-bottom: 6px;
}
.hp-tile__name { font-size: 16px; font-weight: 700; }
.hp-tile__text { font-size: 14px; color: #6b6b6b; }

.hp-hello {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: var(--hi-light);
  border-radius: var(--hi-radius);
  padding: 18px 22px;
  margin-bottom: 22px;
}

.hp-hello strong { font-size: 17px; }
.hp-hello p { margin: 2px 0 0; font-size: 14px; color: #4d4d4d; }

/* ---------- tables ---------- */

.hp-tablewrap { width: 100%; overflow-x: auto; }

.hp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.hp-table th {
  text-align: left;
  background: var(--hi-light);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .03em;
  padding: 11px 12px;
  border-bottom: 1px solid #e3e3e3;
  white-space: nowrap;
}

.hp-table td { padding: 12px; border-bottom: 1px solid #ececec; vertical-align: middle; }
.hp-table tr:last-child td { border-bottom: 0; }
.hp-table .hp-num { text-align: right; white-space: nowrap; }
.hp-table img { border-radius: 4px; }

/* ---------- empty state ---------- */

.hp-empty {
  text-align: center;
  padding: 44px 20px;
  color: #6b6b6b;
}

.hp-empty i { font-size: 34px; color: #c9c9c9; display: block; margin-bottom: 12px; }
.hp-empty h3 { font-family: 'Archivo Black', 'Barlow', sans-serif; font-size: 19px; margin: 0 0 8px; color: #1f1f1f; }
.hp-empty p { margin: 0 0 18px; }

/* ---------- wishlist grid ---------- */

.hp-wgrid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.hp-wcard {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e3e3e3;
  border-radius: var(--hi-radius);
  padding: 14px;
}

.hp-wcard:hover { box-shadow: 0 6px 18px rgba(22, 24, 29, .07); }

.hp-wcard__img {
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  margin-bottom: 12px;
}

.hp-wcard__img img { width: 100%; height: 100%; object-fit: contain; image-rendering: auto; }

.hp-wcard__name {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  color: #1f1f1f;
  min-height: 38px;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hp-wcard__meta { font-size: 13px; color: #6b6b6b; margin-bottom: 8px; }
.hp-wcard__meta span + span::before { content: " \00b7 "; }

.hp-wcard__price {
  font-size: 17px;
  font-weight: 700;
  color: #1f1f1f;
  white-space: nowrap;
  margin-bottom: 12px;
}

.hp-wcard__price s { color: #8d8d8d; font-weight: 400; font-size: 14px; margin-left: 6px; }

.hp-wcard__actions { display: flex; gap: 8px; margin-top: auto; }
.hp-wcard__actions .hp-btn { flex: 1 1 auto; }

.hp-wcard__del {
  flex: 0 0 44px;
  width: 44px;
  min-height: 44px;
  border: 1px solid #c9c9c9;
  border-radius: var(--hi-radius);
  background: #fff;
  color: var(--hi-red);
  cursor: pointer;
}

.hp-wcard__del:hover { background: #fdf1f2; }

/* ---------- contact page ---------- */

.hp-contact {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.hp-store { font-size: 15px; line-height: 1.6; }
.hp-store + .hp-store { margin-top: 18px; padding-top: 18px; border-top: 1px solid #ececec; }
.hp-store h3 { font-family: 'Archivo Black', 'Barlow', sans-serif; font-size: 17px; margin: 0 0 6px; }
.hp-store a { color: var(--hi-red); text-decoration: none; }
.hp-store__row { display: flex; gap: 10px; margin-bottom: 4px; }
.hp-store__row i { width: 18px; color: #8d8d8d; margin-top: 4px; }

/* ---------- success page ---------- */

.hp-success {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  background: #fff;
  border: 1px solid #e3e3e3;
  border-radius: var(--hi-radius);
  padding: 46px 32px;
}

.hp-success__icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #e9f8ee;
  color: #1c6b34;
  font-size: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.hp-success h1 { font-family: 'Archivo Black', 'Barlow', sans-serif; font-size: 27px; margin: 0 0 12px; }
.hp-success p { margin: 0 0 10px; color: #4d4d4d; }
.hp-success .hp-actions { justify-content: center; }

/* ---------- bridge: stock (bootstrap) account markup inside the shell ---------- */

.hp-auto #content {
  background: #fff;
  border: 1px solid #e3e3e3;
  border-radius: var(--hi-radius);
  padding: 26px 30px;
  font-size: 15px;
}

.hp-auto #content > h1,
.hp-auto #content h1 {
  font-family: 'Archivo Black', 'Barlow', sans-serif;
  font-size: 27px;
  margin: 0 0 16px;
}

.hp-auto #content h2 { font-family: 'Archivo Black', 'Barlow', sans-serif; font-size: 19px; margin: 24px 0 12px; }
.hp-auto #content h3 { font-size: 17px; font-weight: 700; margin: 20px 0 10px; }
.hp-auto #content p { margin: 0 0 14px; line-height: 1.6; }
.hp-auto #content a { color: var(--hi-red); }
.hp-auto #content ul { line-height: 1.7; }
.hp-auto #content #content ul,
.hp-auto #content ul:not(.pagination):not(.hp-side__list) { list-style: disc outside; padding-left: 22px; }
.hp-auto #content .list-unstyled { list-style: none; padding-left: 0; }

.hp-auto #content fieldset { border: 0; margin: 0 0 24px; padding: 0; }

.hp-auto #content legend {
  display: block;
  width: 100%;
  float: none;
  font-family: 'Archivo Black', 'Barlow', sans-serif;
  font-size: 17px;
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid #ececec;
}

.hp-auto #content .row { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 4px 0; margin: 0 0 14px; }
.hp-auto #content .row.mb-3 { margin-bottom: 14px; }
.hp-auto #content .col-sm-2,
.hp-auto #content .col-form-label {
  flex: 0 0 220px;
  max-width: 220px;
  font-size: 14px;
  font-weight: 600;
  padding-top: 11px;
}

.hp-auto #content .col-sm-10 { flex: 1 1 320px; min-width: 0; }
.hp-auto #content .col-sm-6 { flex: 1 1 300px; min-width: 0; padding-right: 20px; }
.hp-auto #content .col-sm-4 { flex: 1 1 220px; min-width: 0; padding-right: 20px; }
.hp-auto #content .col-sm-3 { flex: 1 1 200px; min-width: 0; padding-right: 20px; }
.hp-auto #content .col { flex: 1 1 260px; min-width: 0; }

.hp-auto #content .required > .col-form-label::after,
.hp-auto #content .required > label::after { content: ' *'; color: var(--hi-red); }

.hp-auto #content .form-control,
.hp-auto #content .form-select,
.hp-auto #content input[type="text"],
.hp-auto #content input[type="email"],
.hp-auto #content input[type="tel"],
.hp-auto #content input[type="password"],
.hp-auto #content select,
.hp-auto #content textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  background: #fff;
  border: 1px solid #c9c9c9;
  border-radius: var(--hi-radius);
  font-size: 15px;
  color: #1f1f1f;
}

.hp-auto #content textarea { min-height: 120px; }
.hp-auto #content .form-control:focus,
.hp-auto #content .form-select:focus { border-color: var(--hi-red); }
.hp-auto #content .is-invalid { border-color: var(--hi-red) !important; }
.hp-auto #content .invalid-feedback { display: none; font-size: 13px; color: var(--hi-red); margin-top: 5px; }
.hp-auto #content .invalid-feedback.d-block { display: block; }

.hp-auto #content .form-check,
.hp-auto #content .form-switch {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 28px;
  padding: 0;
  margin: 0 0 8px;
}

.hp-auto #content .form-check-input {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin: 0;
  background: #fff;
  border: 1px solid #c9c9c9;
  accent-color: var(--hi-red);
}

.hp-auto #content .form-check-label,
.hp-auto #content .form-check-reverse .form-check-label { margin: 0; font-size: 14px; line-height: 1.45; }
.hp-auto #content .form-check-reverse { flex-direction: row-reverse; justify-content: flex-end; }
.hp-auto #content .form-check-inline { display: inline-flex; margin-right: 14px; }

.hp-auto #content .btn,
.hp-auto #content button[type="submit"],
.hp-auto #content .btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 22px;
  border: 0;
  border-radius: var(--hi-radius);
  background: var(--hi-red);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
}

.hp-auto #content .btn:hover { background: var(--hi-red-dark); color: #fff; }
.hp-auto #content .btn-light,
.hp-auto #content .btn-secondary,
.hp-auto #content .btn-info,
.hp-auto #content .btn-outline-primary {
  background: #fff;
  color: #2b2b2b;
  border: 1px solid #c9c9c9;
}

.hp-auto #content .btn-light:hover,
.hp-auto #content .btn-secondary:hover,
.hp-auto #content .btn-info:hover { background: var(--hi-light); color: #2b2b2b; }
.hp-auto #content .btn-danger { background: var(--hi-dark); color: #fff; }
.hp-auto #content .btn-danger:hover { background: #111; }
.hp-auto #content .btn-sm { min-height: 36px; padding: 0 14px; font-size: 14px; }
.hp-auto #content .btn i { line-height: 1; }
.hp-auto #content .text-end { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; align-items: center; }

.hp-auto #content .table-responsive { width: 100%; overflow-x: auto; }
.hp-auto #content .table { width: 100%; border-collapse: collapse; font-size: 15px; margin-bottom: 16px; }
.hp-auto #content .table td,
.hp-auto #content .table th { padding: 11px 12px; border-bottom: 1px solid #ececec; vertical-align: middle; }
.hp-auto #content .table thead td,
.hp-auto #content .table thead th {
  background: var(--hi-light);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .03em;
  white-space: nowrap;
  border-bottom: 1px solid #e3e3e3;
}
.hp-auto #content .table img { max-width: 70px; height: auto; border-radius: 4px; }
.hp-auto #content .table .btn { min-height: 36px; padding: 0 12px; }

.hp-auto #content .card,
.hp-auto #content .border {
  border: 1px solid #e3e3e3 !important;
  border-radius: var(--hi-radius);
  background: #fff;
}
.hp-auto #content .card-body { padding: 18px; }
.hp-auto #content .card-header { padding: 12px 18px; background: var(--hi-light); border-bottom: 1px solid #e3e3e3; }

.hp-auto #content .alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border-radius: var(--hi-radius);
  padding: 13px 16px;
  margin: 0 0 18px;
  font-size: 15px;
  background: #e9f8ee;
  border: 1px solid #b6e6c6;
  color: #1c6b34;
}
.hp-auto #content .alert-danger,
.hp-auto #content .alert-warning { background: #fdecee; border-color: #f3c2c7; color: #a00d17; }
.hp-auto #content .alert .btn-close { margin-left: auto; background: none; border: 0; color: inherit; min-height: 0; padding: 0; }
.hp-auto #content .alert .btn-close::before { content: '\00d7'; font-size: 20px; line-height: 1; }

.hp-auto #content .pagination { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 18px 0 0; }
.hp-auto #content .pagination li > a,
.hp-auto #content .pagination li > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  border: 1px solid #e3e3e3;
  border-radius: var(--hi-radius);
  color: #2b2b2b;
  font-size: 14px;
}
.hp-auto #content .pagination li.active > a,
.hp-auto #content .pagination li.active > span { background: var(--hi-red); border-color: var(--hi-red); color: #fff; }

.hp-auto #content address { font-style: normal; line-height: 1.6; }
.hp-auto #content .input-group { display: flex; }
.hp-auto #content .input-group-text {
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid #c9c9c9;
  border-left: 0;
  border-radius: 0 var(--hi-radius) var(--hi-radius) 0;
  background: var(--hi-light);
}

/* ---------- responsive ---------- */

@media (max-width: 1100px) {
  .hp-wgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hp-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  /* content first, service / account navigation below it */
  .hp-layout { display: flex; flex-direction: column; align-items: stretch; gap: 20px; }
  .hp-layout > #content { order: -1; }
  .hp-contact { grid-template-columns: minmax(0, 1fr); }
  .hp-auth { grid-template-columns: minmax(0, 1fr); }
  .hp-card { padding: 20px; }
  .hp-title { font-size: 26px; }
}

@media (max-width: 900px) {
  .hp-auto #content { padding: 20px; }
}

@media (max-width: 640px) {
  .hp { padding-block: 12px 44px; }
  .hp-auto #content { padding: 16px; }
  .hp-auto #content > h1, .hp-auto #content h1 { font-size: 23px; }
  .hp-auto #content .col-sm-2,
  .hp-auto #content .col-form-label { flex: 1 1 100%; max-width: 100%; padding-top: 0; margin-bottom: 6px; }
  .hp-auto #content .col-sm-3,
  .hp-auto #content .col-sm-4,
  .hp-auto #content .col-sm-6 { flex: 1 1 100%; padding-right: 0; }
  .hp-auto #content .text-end { justify-content: stretch; }
  .hp-auto #content .text-end .btn { flex: 1 1 100%; }
  .hp-auto #content .table td,
  .hp-auto #content .table th { padding: 9px 8px; font-size: 14px; }
  .hp-tiles { grid-template-columns: minmax(0, 1fr); }
  .hp-grid2 { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .hp-card { padding: 16px; }
  .hp-title { font-size: 23px; }
  .hp-prose h2 { font-size: 17px; }
  .hp-side__title { font-size: 14px; }
  .hp-actions .hp-btn { width: 100%; }
  .hp-table th, .hp-table td { padding: 9px 8px; font-size: 14px; }
  .hp-success { padding: 30px 18px; }
}

/* Merkzettel auf dem Handy: eine Karte pro Zeile - Bild links, Titel /
   Artikelnummer / Lagerstatus / Preis rechts, darunter "In den Warenkorb"
   ueber die volle Breite plus quadratischer Loeschen-Button. Zwei Spalten
   waren zu eng (Button + 44px-Button nebeneinander, scrollWidth 427/390). */
@media (max-width: 640px) {
  .hp-wgrid { grid-template-columns: minmax(0, 1fr); gap: 12px; }

  .hp-wcard {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr);
    grid-template-rows: auto auto auto auto;
    column-gap: 12px;
    min-width: 0;
    padding: 12px;
  }

  .hp-wcard__img {
    grid-column: 1;
    grid-row: 1 / span 3;
    align-self: start;
    width: 86px;
    height: 86px;
    margin: 0;
    padding: 5px;
    border: 1px solid #e3e3e3;
    border-radius: var(--hi-radius);
    background: #fff;
  }

  .hp-wcard__name {
    grid-column: 2;
    grid-row: 1;
    font-size: 15px;
    min-height: 0;
    margin-bottom: 6px;
    -webkit-line-clamp: 3;
  }

  .hp-wcard__meta {
    grid-column: 2;
    grid-row: 2;
    margin-bottom: 4px;
    font-size: 13px;
  }

  .hp-wcard__meta span { display: block; }
  .hp-wcard__meta span + span::before { content: none; }

  .hp-wcard__price {
    grid-column: 2;
    grid-row: 3;
    margin-bottom: 0;
    font-size: 20px;
    color: var(--hi-red);
    white-space: normal;
  }

  .hp-wcard__price s { font-size: 13px; }

  .hp-wcard__actions {
    grid-column: 1 / -1;
    grid-row: 4;
    display: flex;
    gap: 8px;
    margin-top: 12px;
  }

  .hp-wcard__actions .hp-btn {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
    padding: 0 10px;
    font-size: 14px;
  }

  .hp-wcard__actions .hp-btn span { white-space: normal; text-align: center; }

  .hp-wcard__del {
    position: static;
    flex: 0 0 46px;
    width: 46px;
    min-height: 46px;
    color: #4a4a4a;
    font-size: 16px;
  }
}

/* Merkzettel mobil: die Service-Spalte (Infoseiten) wird ausgeblendet,
   display:contents am Wrapper verhindert eine leere Luecke. */
@media (max-width: 900px) {
  #account-wishlist .hp-aside { display: contents; }
  #account-wishlist [data-source-block="service_nav"] { display: none; }
}

/* ---------- Markenuebersicht (route product/manufacturer) ---------- */

.hb-index {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0 0 26px;
  padding: 12px 16px;
  background: #fff;
  border: 1px solid #e3e3e3;
  border-radius: 9px;
}

.hb-index__label {
  margin-right: 6px;
  font-weight: 700;
  color: #1f1f1f;
}

.hb-index a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 30px;
  padding: 0 7px;
  border-radius: 6px;
  background: #f6f7f9;
  color: #2b2b2b;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
}

.hb-index a:hover { background: #c31722; color: #fff; }

.hb-group { scroll-margin-top: 120px; margin: 0 0 30px; }

.hb-group__title {
  font-family: 'Archivo Black', 'Barlow', sans-serif;
  font-size: 20px;
  margin: 0 0 12px;
  padding-bottom: 6px;
  border-bottom: 2px solid #c31722;
  color: #1f1f1f;
}

.hb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.hb-card { min-width: 0; }

.hb-card__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  padding: 14px;
  background: #fff;
  border: 1px solid #e3e3e3;
  border-radius: 9px;
  color: #1f1f1f;
  text-decoration: none;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}

.hb-card__link:hover {
  border-color: #c31722;
  box-shadow: 0 6px 18px rgba(22, 24, 29, .10);
  transform: translateY(-2px);
}

.hb-card__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 84px;
  margin-bottom: 10px;
  overflow: hidden;
}

.hb-card__logo img {
  max-width: 100%;
  max-height: 84px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.hb-card__initial {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #f6f7f9;
  font-weight: 700;
  font-size: 22px;
  text-transform: uppercase;
}

/* the SVG wordmark already shows the name; keep the text for screen readers */
.hb-card__name {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.hb-card__total {
  margin-top: 4px;
  font-size: 12px;
  color: #6b6b6b;
}

@media (max-width: 560px) {
  .hb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .hb-card__logo { height: 64px; }
  .hb-card__logo img { max-height: 64px; }
}

/* Schreiblinien im Muster-Widerrufsformular (statt Unterstrich-Ketten) */
.hp-prose .hp-fill {
  height: 0;
  margin: 0 0 16px;
  border-bottom: 1px solid #b3b3b3;
}

.hp-prose { overflow-wrap: anywhere; }

/* CTA-Buttons auf /ueber-uns: eine Reihe, gleich hoch und gleich breit */
.hp-prose .hi-ab__cta > div:last-child {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 10px;
}
.hp-prose .hi-ab__cta > div:last-child > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 0;
  min-width: 0;
  min-height: 44px;
  margin: 0;
  padding: 11px 16px;
  text-align: center;
  line-height: 1.2;
  white-space: nowrap;
  border: 1px solid transparent;
}
.hp-prose .hi-ab__cta > div:last-child > a + a {
  margin-left: 0;
  border-color: rgba(255, 255, 255, .5);
}

@media (max-width: 767px) {
  .hp-prose .hi-ab__cta { padding: 20px 16px; }
  .hp-prose .hi-ab__cta > div:last-child { width: 100%; }
  .hp-prose .hi-ab__cta > div:last-child > a {
    padding: 11px 8px;
    font-size: 14px;
  }
}

@media (max-width: 420px) {
  .hp-prose .hi-ab__cta > div:last-child > a { font-size: 13px; }
}
