/* =====================================================================
   "Auf einen Blick" – 7 Widgets auf der Startseite
   Stil angelehnt an weiche Verlaufskarten (Bloom), in Creme & Tinte.
   Alles ist auf .aeb begrenzt und verändert den Rest der Seite nicht.
   ===================================================================== */
.aeb{ padding: clamp(56px, 8vw, 104px) 0 clamp(40px, 6vw, 72px); background: #faf6f0; }
.aeb *{ box-sizing: border-box; }

.aeb-head{ display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px 48px; align-items: end; margin-bottom: clamp(28px, 4vw, 44px); }
.aeb-eyebrow{ font: 600 .8rem/1 var(--font-body, Inter, sans-serif); letter-spacing: .16em; text-transform: uppercase; color: #b06a3f; margin: 0 0 14px; }
.aeb-head h2{ font-family: var(--font-display, "Schibsted Grotesk", sans-serif); font-weight: 600; letter-spacing: -.03em;
  font-size: clamp(1.75rem, 3.4vw, 2.6rem); line-height: 1.08; margin: 0; color: #1d1d1f; }
.aeb-head p{ margin: 0; color: #5f584f; font-size: clamp(1rem, 1.3vw, 1.15rem); line-height: 1.55; max-width: 44ch; }

.aeb-grid{ display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(14px, 1.6vw, 22px); }
.aeb-c{ position: relative; overflow: hidden; border-radius: 28px; padding: 22px 22px 20px; min-height: 236px;
  display: flex; flex-direction: column; color: #1f1a17;
  border: 1px solid rgba(46,37,33,.08);
  box-shadow: 0 1px 0 rgba(255,255,255,.9) inset, 0 14px 32px -24px rgba(70,50,30,.30);
  isolation: isolate; }
.aeb-c::before{ content: ""; position: absolute; inset: 0; z-index: -1; }
.aeb-w2{ grid-column: span 2; } .aeb-w1{ grid-column: span 1; }
.aeb-open, .aeb-loc{ grid-column: span 3; }

/* Verläufe pro Karte */
.aeb-green::before{ background: radial-gradient(80% 70% at 100% 100%, #cfe6d8 0%, rgba(255,255,255,0) 70%), linear-gradient(180deg, #fdfbf7, #f7f2ea); }
.aeb-peach::before{ background: radial-gradient(80% 70% at 100% 100%, #f1d8c4 0%, rgba(255,255,255,0) 70%), linear-gradient(180deg, #fdfbf7, #f7f2ea); }
.aeb-blue::before{ background: radial-gradient(80% 70% at 100% 100%, #d6def3 0%, rgba(255,255,255,0) 70%), linear-gradient(180deg, #fdfbf7, #f7f2ea); }
.aeb-lilac::before{ background: radial-gradient(80% 70% at 100% 100%, #dcdff3 0%, rgba(255,255,255,0) 70%), linear-gradient(180deg, #fdfbf7, #f7f2ea); }
.aeb-rose::before{ background: radial-gradient(80% 70% at 100% 100%, #efd3cc 0%, rgba(255,255,255,0) 70%), linear-gradient(180deg, #fdfbf7, #f7f2ea); }

.aeb-top{ display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 34px; }
.aeb-t{ display: inline-flex; align-items: center; gap: 9px; margin: 0; font: 500 1rem/1.2 var(--font-body, Inter, sans-serif); color: #2d2723; }
.aeb-t svg{ width: 20px; height: 20px; flex: none; }
.aeb-chip{ display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; font-size: .86rem; font-weight: 600; white-space: nowrap; }
.aeb-chip.is-open{ background: #237a55; color: #fff; }
.aeb-chip.is-closed{ background: rgba(31,26,23,.08); color: #3a332d; }
.aeb-chip i{ width: 8px; height: 8px; border-radius: 50%; background: currentColor; opacity: .9; }
.aeb-chip.is-open i{ background: #fff; box-shadow: 0 0 0 4px rgba(255,255,255,.28); }
.aeb-tag{ font-size: .82rem; font-weight: 600; padding: 5px 11px; border-radius: 999px; background: rgba(255,255,255,.6); color: #4a4239; }

.aeb-body{ margin-top: auto; }
.aeb-small{ margin: 6px 0 0; font-size: .92rem; line-height: 1.45; color: #5f584f; }
.aeb-small a{ color: inherit; }

/* Zahlen in der Website-Schrift, rollen beim ersten Sichtbarwerden ein */
.aeb-num{ font-family: var(--font-display, "Schibsted Grotesk", sans-serif); font-weight: 600; letter-spacing: -.045em;
  font-variant-numeric: tabular-nums; line-height: 1; display: inline-flex; align-items: flex-end; color: #1f1a17; }
.aeb-num .d{ display: inline-block; height: 1.04em; overflow: hidden; position: relative; }
.aeb-num .d > span{ display: block; transition: transform .9s cubic-bezier(.2,.8,.2,1); }
.aeb-num .d > span > span{ display: block; height: 1.04em; }
.aeb-num .p{ display: inline-block; margin: 0 .02em; }
.aeb-unit{ font-family: var(--font-display, sans-serif); font-weight: 600; margin-left: .12em; }

/* 1 Öffnungszeiten */
.aeb-open .aeb-row{ display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.aeb-open .aeb-num{ font-size: clamp(2.8rem, 4.4vw, 3.6rem); }
.aeb-days{ display: grid; grid-template-columns: repeat(7, 14px); gap: 7px; align-items: end; margin: 0; padding: 0; list-style: none; }
.aeb-days li{ display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: .72rem; color: #5f584f; }
.aeb-days li b{ display: block; width: 12px; height: 54px; border-radius: 6px; background: rgba(47,140,100,.35); }
.aeb-days li.off b{ background: rgba(47,140,100,.12); height: 54px; }
.aeb-days li.today{ color: #1f1a17; font-weight: 700; }
.aeb-days li.today b{ background: #2f8c64; box-shadow: 0 0 0 3px rgba(255,255,255,.7); }


/* 3 Checkliste */
.aeb-ring{ display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; color: #3a332d; white-space: nowrap; }
.aeb-ring svg{ width: 22px; height: 22px; transform: rotate(-90deg); }
.aeb-ring circle{ fill: none; stroke-width: 3; }
.aeb-ring .bg{ stroke: rgba(47,80,170,.18); }
.aeb-ring .fg{ stroke: #3d63c9; stroke-linecap: round; transition: stroke-dashoffset .5s cubic-bezier(.2,.8,.2,1); }
.aeb-list{ list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; }
.aeb-list label{ display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 1rem; line-height: 1.25; min-height: 32px; }
.aeb-list input{ appearance: none; -webkit-appearance: none; flex: none; width: 22px; height: 22px; margin: 0; border-radius: 50% !important; backdrop-filter: none;
  border: 1.6px solid rgba(31,26,23,.4) !important; background: rgba(255,255,255,.75) !important; display: grid; place-items: center; cursor: pointer;
  transition: background .2s, border-color .2s; }
.aeb-list input::after{ content: ""; width: 9px; height: 5px; border-left: 2.2px solid #fff; border-bottom: 2.2px solid #fff; transform: rotate(-45deg) translate(1px,-1px) scale(0); transition: transform .2s cubic-bezier(.2,.8,.2,1); }
.aeb-list input:checked{ background: #3d63c9 !important; border-color: #3d63c9 !important; }
.aeb-list input:checked::after{ transform: rotate(-45deg) translate(1px,-1px) scale(1); }
.aeb-list input:checked + span{ text-decoration: line-through; color: #6a6258; }
.aeb-list input:focus-visible{ outline: 3px solid #1d1d1f; outline-offset: 2px; }


/* Umschalter (Praxen, Ohne Rezept) */
.aeb-seg{ display: inline-flex; padding: 4px; border-radius: 999px; background: rgba(255,255,255,.55); border: 1px solid rgba(255,255,255,.8); gap: 2px; }
.aeb-seg button{ font: 500 .92rem/1 var(--font-body, Inter, sans-serif); border: 0; background: transparent; color: #5f584f; padding: 9px 14px; border-radius: 999px; cursor: pointer; min-height: 36px; }
.aeb-seg button[aria-selected="true"]{ background: #fff; color: #1f1a17; box-shadow: 0 2px 8px rgba(70,50,30,.12); }
.aeb-seg button:focus-visible{ outline: 3px solid #1d1d1f; outline-offset: 1px; }
.aeb-pane[hidden]{ display: none !important; }

/* 5 Praxen */
.aeb-loc h3{ font-family: var(--font-display, sans-serif); font-size: 1.55rem; letter-spacing: -.02em; margin: 14px 0 4px; font-weight: 600; }
.aeb-acc{ display: inline-flex; align-items: center; gap: 7px; font-size: .92rem; color: #2f7a57; margin: 0; }
.aeb-acc.no{ color: #8a4a3c; }
.aeb-actions{ display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.aeb-btn{ display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 18px; border-radius: 999px; font-weight: 600; font-size: .98rem; text-decoration: none; }
.aeb-btn svg{ width: 18px; height: 18px; }
.aeb-btn.ink{ background: #1f1a17; color: #fff; }
.aeb-btn.light{ background: rgba(255,255,255,.85); color: #1f1a17; border: 1px solid rgba(31,26,23,.1); }
.aeb-btn:focus-visible{ outline: 3px solid #1d1d1f; outline-offset: 2px; }
.aeb-loc .dots{ position: absolute; right: 0; top: 0; bottom: 0; width: 46%; z-index: -1; opacity: .55;
  background-image: radial-gradient(rgba(140,80,60,.35) 1.2px, transparent 1.3px); background-size: 16px 16px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 40%); mask-image: linear-gradient(90deg, transparent, #000 40%); }
.aeb-loc .pin{ position: absolute; right: 26%; top: 54%; width: 34px; height: 34px; border-radius: 50%; background: rgba(200,90,70,.18); display: grid; place-items: center; z-index: -1; }
.aeb-loc .pin::after{ content: ""; width: 12px; height: 12px; border-radius: 50%; background: #c45a46; }

/* 6 Ohne Rezept */
.aeb-price{ display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-top: 14px; }
.aeb-price h3{ font-family: var(--font-display, sans-serif); font-size: 1.3rem; letter-spacing: -.02em; margin: 0 0 6px; font-weight: 600; }
.aeb-price p{ margin: 0; font-size: .95rem; line-height: 1.45; color: #4a4239; }
.aeb-price .aeb-num{ font-size: clamp(3.2rem, 5vw, 4.2rem); color: #b8683f; }
.aeb-price .aeb-unit{ font-size: .42em; align-self: flex-start; margin-top: .1em; color: #b8683f; }
.aeb-price a{ color: inherit; }
.aeb-price h3 a{ text-decoration: none; }
.aeb-price h3 a:hover{ text-decoration: underline; }
.aeb-norx .aeb-seg{ margin-top: 14px; }

/* 7 Studio-Countdown */
.aeb-fit .aeb-row{ display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.aeb-fit .noch{ display: block; font-size: .95rem; color: #4a4239; margin-bottom: 4px; }
.aeb-fit .aeb-num{ font-size: clamp(3.4rem, 5.4vw, 4.6rem); color: #237653; }
.aeb-fit .cnt{ display: inline-flex; align-items: baseline; white-space: nowrap; }
.aeb-fit .tage{ font-family: var(--font-display, sans-serif); font-weight: 600; color: #237653; font-size: 1.2rem; margin-left: .3em; }
.aeb-fit .info{ text-align: right; font-size: .92rem; color: #4a4239; line-height: 1.45; }
.aeb-fit .info b{ display: block; font-size: 1.05rem; color: #1f1a17; }
.aeb-fit .info a{ color: #1f1a17; font-weight: 600; }

/* Einblenden */
.aeb-c{ transition: transform .7s cubic-bezier(.2,.8,.2,1), opacity .7s ease; }
.aeb.js .aeb-c{ opacity: 0; transform: translateY(18px); }
.aeb.js.in .aeb-c{ opacity: 1; transform: none; }
.aeb.js.in .aeb-c:nth-child(2){ transition-delay: .05s; } .aeb.js.in .aeb-c:nth-child(3){ transition-delay: .1s; }
.aeb.js.in .aeb-c:nth-child(4){ transition-delay: .15s; } .aeb.js.in .aeb-c:nth-child(5){ transition-delay: .2s; }
.aeb.js.in .aeb-c:nth-child(6){ transition-delay: .25s; } .aeb.js.in .aeb-c:nth-child(7){ transition-delay: .3s; }

@media (max-width: 1100px){
  .aeb-grid{ grid-template-columns: repeat(2, 1fr); }
  .aeb-open, .aeb-loc, .aeb-check, .aeb-norx{ grid-column: span 1; }
  .aeb-fit{ grid-column: span 2; }
}
@media (max-width: 760px){
  .aeb{ padding: 44px 0 36px; }
  .aeb-head{ grid-template-columns: 1fr; gap: 10px; margin-bottom: 20px; }
  .aeb-head p{ font-size: 1rem; }
  .aeb-grid{ grid-template-columns: 1fr; gap: 12px; }
  .aeb-open, .aeb-loc, .aeb-check, .aeb-norx, .aeb-fit{ grid-column: auto; }
  .aeb-c{ min-height: 0; border-radius: 22px; padding: 16px 16px 18px; }
  .aeb-top{ min-height: 30px; }
  .aeb-t{ font-size: .95rem; }
  .aeb-body{ margin-top: 12px; }
  /* Öffnungszeiten: Uhr links, Wochenbalken rechts, kompakt */
  .aeb-open .aeb-num{ font-size: 2.6rem; }
  .aeb-days{ grid-template-columns: repeat(7, 11px); gap: 6px; }
  .aeb-days li b{ width: 10px; height: 40px; }
  .aeb-days li.off b{ height: 40px; }
  /* Checkliste zweispaltig, kurze Begriffe */
  .aeb-list{ grid-template-columns: 1fr 1fr; gap: 8px 12px; margin-top: 4px; }
  .aeb-list label{ font-size: .95rem; }
  /* Praxen */
  .aeb-loc h3{ font-size: 1.3rem; margin-top: 12px; }
  .aeb-loc .dots, .aeb-loc .pin{ display: none; }
  .aeb-actions{ margin-top: 12px; }
  .aeb-actions .aeb-btn{ flex: 1; justify-content: center; }
  /* Ohne Rezept: Preis über die volle Breite unter dem Text */
  .aeb-price{ flex-direction: column; align-items: stretch; gap: 10px; margin-top: 12px; }
  .aeb-price .aeb-num{ font-size: 2.6rem; align-self: flex-start; }
  .aeb-seg button{ padding: 9px 12px; font-size: .9rem; }
  /* Studio: Zahl und Infos untereinander */
  .aeb-fit .aeb-row{ flex-direction: column; align-items: flex-start; gap: 8px; }
  .aeb-fit .aeb-num{ font-size: 3rem; }
  .aeb-fit .info{ text-align: left; }
}
@media (max-width: 440px){
  .aeb-list{ grid-template-columns: 1fr; }
  .aeb-norx .aeb-seg{ margin-top: 2px; }
}
@media (prefers-reduced-motion: reduce){
  .aeb .aeb-c, .aeb-num .d > span, .aeb-ring .fg{ transition: none !important; }
  .aeb.js .aeb-c{ opacity: 1; transform: none; }
}
/* Sehr schmale Handys: nichts abschneiden, Uhr und Wochenbalken untereinander */
.aeb-price h3 a{ text-decoration: none !important; }
@media (max-width: 400px){
  .aeb-top{ flex-wrap: wrap; row-gap: 8px; }
  .aeb-chip{ font-size: .8rem; padding: 5px 10px; }
  .aeb-open .aeb-row{ flex-direction: column; align-items: flex-start; gap: 12px; }
  .aeb-days{ grid-template-columns: repeat(7, 1fr); width: 100%; }
  .aeb-days li b, .aeb-days li.off b{ width: 100%; max-width: 22px; height: 30px; }
}
/* Reihenfolge für volle Reihen: oben Öffnungszeiten + Praxen, darunter Checkliste, Ohne Rezept, Studio */
.aeb-open{ order: 1; } .aeb-loc{ order: 2; } .aeb-check{ order: 3; } .aeb-norx{ order: 4; } .aeb-fit{ order: 5; }
/* Desktop: 2 + 2 + 1 – Studio als breite Leiste, damit keine Karte gequetscht wird */
@media (min-width: 1101px){
  .aeb-check, .aeb-norx{ grid-column: span 3; }
  .aeb-fit{ grid-column: span 6; min-height: 0; }
  .aeb-fit .aeb-row{ align-items: center; }
  .aeb-fit .info{ display: flex; align-items: baseline; gap: 6px 22px; flex-wrap: wrap; justify-content: flex-end; text-align: right; }
  .aeb-fit .info b{ display: inline; }
  .aeb-check, .aeb-norx{ min-height: 250px; }
}
.aeb-link{ font-size: .9rem; font-weight: 500; color: #3a332d; text-decoration: none; white-space: nowrap; }
.aeb-link:hover{ text-decoration: underline; text-underline-offset: 3px; }
.aeb-link:focus-visible{ outline: 3px solid #1d1d1f; outline-offset: 2px; border-radius: 6px; }
.aeb-chip[hidden]{ display: none !important; }
.aeb-uhr{ font-size: .38em; margin-left: .2em; letter-spacing: 0; }
.aeb-zu{ margin-top: 8px; }
.aeb-zu a{ color: #1f1a17; font-weight: 600; }
