/* HM-46 Entwurf – "Ihr Abo in 5 Punkten" – gemeinsame Basis (Lato, Lime #98C218; Flächen #7BA013 + weiße Schrift; Text #626262) */
.abo5 {
  --a5-fill: #7BA013;           /* grüne Fläche, Schrift darauf immer weiß */
  --a5-fill-2: #6F9410;
  --a5-acc: #7BA013;            /* Akzent für große Zahlen/Linien im Tagmodus */
  --a5-card: #ffffff;
  --a5-tint: rgba(123,160,19,.09);
  --a5-ring: rgba(123,160,19,.45);
  --a5-shadow: 0 10px 30px rgba(98,98,98,.12);
  margin: 6px 0 30px;
  font-size: 15px;
  color: var(--ink);
  font-family: "Lato", "Segoe UI", sans-serif;
}
html[data-theme="dark"] .abo5 {
  --a5-acc: #98C218;
  --a5-card: var(--mist);
  --a5-tint: rgba(152,194,24,.10);
  --a5-ring: rgba(152,194,24,.5);
  --a5-shadow: 0 12px 34px rgba(0,0,0,.45);
}
.abo5 *, .abo5 *::before, .abo5 *::after { box-sizing: border-box; }
.abo5 svg.a5-i { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.abo5 a { color: var(--a5-acc); text-decoration: underline; text-underline-offset: 2px; font-weight: 700; }
.abo5 a:hover { color: var(--a5-acc); text-decoration-thickness: 2px; }
.abo5 strong { font-weight: 800; }

/* Aufklapp-Leiste */
.abo5 > summary {
  list-style: none;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 16px 22px;
  background: linear-gradient(100deg, var(--a5-fill) 0%, var(--a5-fill-2) 100%);
  color: #fff !important;
  border-radius: 18px;
  font-size: 19px; font-weight: 900; letter-spacing: .01em;
  box-shadow: 0 8px 22px rgba(123,160,19,.28);
  transition: transform .2s ease, box-shadow .2s ease;
  user-select: none;
}
.abo5 > summary::-webkit-details-marker { display: none; }
.abo5 > summary::marker { content: ""; }
.abo5 > summary:hover, .abo5 > summary:focus-visible { color: #fff !important; transform: translateY(-1px); box-shadow: 0 12px 28px rgba(123,160,19,.38); }
.abo5 > summary:focus-visible { outline: 3px solid var(--a5-ring); outline-offset: 3px; }
.a5-sum-t { flex: 1 1 auto; }
.a5-sum-ico { display: inline-flex; gap: 8px; }
.a5-sum-ico i { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.2); display: grid; place-items: center; font-size: 18px; font-style: normal; }
.a5-chev { width: 34px; height: 34px; border-radius: 50%; background: #fff; color: var(--a5-fill); display: grid; place-items: center; font-size: 18px; transition: transform .25s ease; }
.abo5[open] > summary .a5-chev { transform: rotate(180deg); }
.a5-body { padding-top: 22px; }

/* Ziffern-/Icon-Bausteine */
.a5-ico { width: 48px; height: 48px; border-radius: 50%; background: var(--a5-fill); color: #fff; display: grid; place-items: center; font-size: 24px; flex: 0 0 auto; box-shadow: 0 6px 14px rgba(123,160,19,.3); }
.a5-label { font-size: 16px; font-weight: 900; color: var(--ink); letter-spacing: .02em; }
.a5-kv { font-size: 34px; line-height: 1.05; font-weight: 900; color: var(--a5-acc); letter-spacing: -.01em; }
.a5-kv-s { font-size: 13px; font-weight: 700; color: var(--ink); letter-spacing: .04em; text-transform: uppercase; margin-top: 4px; }
.a5-txt { margin: 0; line-height: 1.6; font-size: 14.5px; color: var(--ink); }

/* Hinweis-/Info-Blöcke */
.a5-lead { margin: 30px 0 14px; padding: 14px 18px; border-radius: 14px; background: var(--a5-tint); border-left: 5px solid var(--a5-fill); line-height: 1.55; }
.a5-note { margin: 14px 0 0; padding: 14px 18px; border-radius: 14px; background: var(--a5-tint); border-left: 5px solid var(--a5-fill); font-size: 14px; line-height: 1.6; }
.a5-note strong:first-child { color: var(--ink); }
.a5-b2b { margin: 14px 0 0; display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 8px; border-radius: 999px; border: 1px solid var(--line); background: var(--a5-card); font-size: 14px; }
.a5-b2b b { background: var(--a5-fill); color: #fff; border-radius: 999px; padding: 4px 12px; font-weight: 900; letter-spacing: .06em; font-size: 12px; }

/* Tabelle (A, B) */
.a5-tbl-wrap { overflow-x: auto; border-radius: 18px; border: 1px solid var(--line); background: var(--a5-card); box-shadow: var(--a5-shadow); }
.a5-tbl { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 760px; }
.a5-tbl caption { text-align: left; font-weight: 900; font-size: 18px; padding: 0 0 12px; color: var(--ink); caption-side: top; }
.a5-tbl thead th { background: var(--a5-fill); color: #fff; text-align: left; font-weight: 800; font-size: 13px; letter-spacing: .02em; padding: 14px 14px; vertical-align: bottom; }
.a5-tbl thead th.is-cust { background: var(--a5-fill-2); }
.a5-tbl tbody td { padding: 14px; border-top: 1px solid var(--line); vertical-align: middle; }
.a5-tbl tbody tr:nth-child(even) td { background: rgba(128,128,128,.05); }
.a5-tbl tbody tr { transition: background .2s ease; }
.a5-tbl tbody tr:hover td { background: var(--a5-tint); }
.a5-tbl td.n { white-space: nowrap; font-variant-numeric: tabular-nums; }
.a5-tbl td.is-cust { background: var(--a5-tint) !important; font-weight: 900; font-size: 16px; color: var(--a5-acc); white-space: nowrap; }
.a5-tbl td.is-cust.gross { font-size: 14px; color: var(--ink); font-weight: 800; }
.a5-name { font-weight: 900; font-size: 15px; display: block; color: var(--ink); }
.a5-sub { font-size: 12.5px; opacity: .85; }
@media (max-width: 900px) {
  .a5-tbl-wrap { border: 0; background: none; box-shadow: none; overflow: visible; }
  .a5-tbl { min-width: 0; display: block; }
  .a5-tbl caption { display: block; width: 100%; }
  .a5-tbl thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .a5-tbl tbody, .a5-tbl tr { display: block; }
  .a5-tbl tbody tr { margin: 0 0 14px; border: 1px solid var(--line); border-radius: 18px; background: var(--a5-card); box-shadow: var(--a5-shadow); overflow: hidden; }
  .a5-tbl tbody tr:nth-child(even) td { background: transparent; }
  .a5-tbl tbody td { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 10px 16px; border-top: 1px dashed var(--line); text-align: right; white-space: normal !important; }
  .a5-tbl tbody td:first-child { display: block; background: var(--a5-fill) !important; color: #fff; text-align: left; border-top: 0; padding: 14px 16px; }
  .a5-tbl tbody td:first-child .a5-name { color: #fff; font-size: 17px; }
  .a5-tbl tbody td::before { content: attr(data-label); font-weight: 700; font-size: 12.5px; text-align: left; color: var(--ink); flex: 0 0 46%; }
  .a5-tbl tbody td:first-child::before { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .abo5 *, .abo5 *::before, .abo5 *::after { animation: none !important; transition: none !important; }
}

/* ===== Entwurf C: Pricing-Karten + Icon-Leiste ===== */
.a5-strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 22px; background: var(--a5-card); box-shadow: var(--a5-shadow); overflow: hidden; }
.a5-chip { padding: 18px 16px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; border-left: 1px solid var(--line); transition: background .2s ease; }
.a5-chip:first-child { border-left: 0; }
.a5-chip:hover { background: var(--a5-tint); }
.a5-chip .a5-ico { width: 40px; height: 40px; font-size: 20px; margin-bottom: 4px; }
.a5-chip .a5-label { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
.a5-chip .a5-kv { font-size: 26px; }
.a5-chip .a5-kv-s { font-size: 11.5px; margin-top: 0; }
.a5-rows { margin: 18px 0 0; display: grid; }
.a5-row { display: grid; grid-template-columns: 190px 1fr; gap: 20px; padding: 14px 6px; border-top: 1px solid var(--line); align-items: baseline; }
.a5-row:first-child { border-top: 0; }
.a5-row-h { display: flex; align-items: center; gap: 12px; font-weight: 900; font-size: 15px; }
.a5-row-h b { width: 30px; height: 30px; border-radius: 50%; background: var(--a5-fill); color: #fff; display: grid; place-items: center; font-size: 14px; flex: 0 0 auto; }
.a5-rate { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 18px 0 0; }
.a5-rate > div { border-radius: 16px; border: 1px dashed var(--a5-ring); padding: 14px 18px; background: var(--a5-tint); }
.a5-rate > div.is-main { background: var(--a5-fill); border: 1px solid var(--a5-fill); color: #fff; }
.a5-rate > div.is-main .a5-kv { color: #fff; }
.a5-rate > div.is-main .a5-kv-s { color: #fff; }
.a5-rate .a5-kv { font-size: 28px; }
.a5-rate .a5-kv-s { text-transform: none; letter-spacing: 0; font-size: 13px; }
.a5-plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 14px; align-items: stretch; }
.a5-plans-t { margin: 30px 0 0; font-size: 20px; font-weight: 900; color: var(--ink); }
.a5-plan { --pb: var(--a5-tint); --pc: var(--ink); --pk: var(--a5-acc);
  position: relative; background: var(--a5-card); border: 1px solid var(--line); border-radius: 22px; padding: 22px 20px 20px; box-shadow: var(--a5-shadow);
  display: flex; flex-direction: column; gap: 14px; transition: transform .25s ease, border-color .25s ease; }
.a5-plan.is-hl, .a5-plan:hover, .a5-plan:focus-within { --pb: var(--a5-fill); --pc: #fff; --pk: #fff; border-color: var(--a5-fill); transform: translateY(-6px); }
.a5-plans:hover .a5-plan.is-hl:not(:hover), .a5-plans:focus-within .a5-plan.is-hl:not(:focus-within) { --pb: var(--a5-tint); --pc: var(--ink); --pk: var(--a5-acc); border-color: var(--line); transform: none; }
.a5-plan .a5-name { font-size: 20px; }
.a5-plan .a5-sub { margin-top: 2px; display: block; }
.a5-hrs { font-weight: 900; font-size: 15px; padding-bottom: 12px; border-bottom: 1px dashed var(--line); }
.a5-hrs span { display: block; font-weight: 400; font-size: 13px; margin-top: 3px; }
.a5-price { background: var(--pb); color: var(--pc); border-radius: 16px; padding: 16px 16px 14px; transition: background .25s ease, color .25s ease; }
.a5-price .l { font-size: 12.5px; font-weight: 700; letter-spacing: .02em; display: block; }
.a5-price .big { font-size: 36px; font-weight: 900; line-height: 1.1; color: var(--pk); display: block; margin: 2px 0 6px; letter-spacing: -.01em; transition: color .25s ease; }
.a5-price .gr { font-size: 13.5px; font-weight: 700; }
.a5-price .gr .l { display: inline; }
.a5-list { font-size: 13px; display: grid; gap: 6px; color: var(--ink); }
.a5-list div { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.a5-list span:first-child { font-size: 12.5px; }
.a5-list b { font-weight: 800; white-space: nowrap; }
@media (min-width: 901px) and (prefers-reduced-motion: no-preference) {
  .abo5[open] .a5-chip { animation: a5-up .5s cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(var(--i) * 70ms); }
  .abo5[open] .a5-plan { animation: a5-up .6s cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(var(--i) * 90ms + 200ms); }
}
@keyframes a5-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; } }
@media (max-width: 1100px) {
  .a5-plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .a5-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .a5-chip:nth-child(4) { border-left: 0; }
  .a5-chip:nth-child(n+4) { border-top: 1px solid var(--line); }
}
@media (max-width: 600px) {
  .abo5 > summary { font-size: 18px; padding: 14px 16px; gap: 12px; }
  .a5-sum-ico { display: none; }
  .a5-plans, .a5-rate { grid-template-columns: 1fr; }
  .a5-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .a5-chip { border-left: 0 !important; border-top: 1px solid var(--line); }
  .a5-chip:nth-child(-n+2) { border-top: 0; }
  .a5-chip:nth-child(even) { border-left: 1px solid var(--line) !important; }
  .a5-chip:last-child { grid-column: span 2; border-left: 0 !important; }
  .a5-row { grid-template-columns: 1fr; gap: 8px; }
  .a5-plan.is-hl { transform: none; }
}
