/* ============================================================
   FLORIN+ Blog v8 — Apple-pure Article Stylesheet (Refresh v2)
   ============================================================ */

:root {
  --ap-ink: #1d1d1f;
  --ap-mid: #515154;
  --ap-muted: #8e8e93;
  --ap-line: #d2d2d7;
  --ap-bg: #f5f5f7;
  --ap-white: #fff;
  --ap-teal: #00afa3;
  --ap-teal-dark: #008f86;
  --ap-amber: #f59e0b;
  --ap-r: 10px;
  --ap-rl: 16px;
  --ap-shadow: 0 1px 0 rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.04);
}

html { -webkit-font-smoothing: antialiased; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  background: var(--ap-bg);
  color: var(--ap-ink);
  font-family: system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  margin: 0;
  line-height: 1.6;
}

.ap-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--ap-teal), var(--ap-teal-dark));
  z-index: 9999; transition: width .1s linear;
}

.ap-skip { position: absolute; left: -999px; }
.ap-skip:focus { left: 12px; top: 12px; width: auto; padding: 10px 16px; background: var(--ap-ink); color: #fff; border-radius: 8px; z-index: 9999; }

/* === Nav === */
.ap-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: .5px solid var(--ap-line);
}
.ap-nav-inner { display: flex; align-items: center; justify-content: space-between; height: 52px; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.ap-nav-logo img { display: block; height: 28px; }
.ap-nav-links { display: flex; gap: 24px; }
.ap-nav-links a { color: var(--ap-ink); text-decoration: none; font-size: .88rem; font-weight: 500; transition: color .15s; }
.ap-nav-links a:hover { color: var(--ap-teal); }
.ap-nav-cta a { background: var(--ap-teal); color: #fff; padding: 8px 16px; border-radius: 980px; font-size: .82rem; font-weight: 600; text-decoration: none; }
.ap-nav-cta a:hover { background: var(--ap-teal-dark); }
@media (max-width: 720px) { .ap-nav-links { display: none; } }

.ap-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* === Hero (grid layout with optional stats panel) === */
.ap-hero { background: var(--ap-white); padding: 56px 0 44px; border-bottom: .5px solid var(--ap-line); }
.ap-hero-grid {
  display: grid; gap: 48px; align-items: center;
  grid-template-columns: minmax(0, 1fr) auto;
}
.ap-hero-grid:not(:has(.ap-hero-stats)) { grid-template-columns: 1fr; }
.ap-hero-inner { max-width: 700px; }
.ap-breadcrumb { font-size: 12px; color: var(--ap-muted); margin-bottom: 16px; }
.ap-breadcrumb a { color: var(--ap-muted); text-decoration: none; }
.ap-breadcrumb a:hover { color: var(--ap-ink); }
.ap-cat-label { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ap-teal); margin-bottom: 14px; }
.ap-hero h1 {
  font-size: clamp(2rem, 5.5vw, 3.2rem);
  font-weight: 800; color: var(--ap-ink);
  line-height: 1.08; letter-spacing: -.035em;
  margin: 0 0 18px;
}
.ap-hero-lead { font-size: 1.2rem; line-height: 1.5; color: var(--ap-mid); margin: 0 0 28px; max-width: 640px; }
.ap-hero-meta {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  font-size: .85rem; color: var(--ap-muted);
  padding-top: 22px; border-top: .5px solid var(--ap-line);
}
.ap-hero-meta-author { display: flex; align-items: center; gap: 8px; color: var(--ap-ink); font-weight: 600; }
.ap-hero-meta-sep { color: var(--ap-line); }
.ap-hero-share { display: flex; gap: 6px; margin-left: auto; }
.ap-hero-share button {
  width: 36px; height: 36px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--ap-bg); border: none; color: var(--ap-mid); cursor: pointer;
  transition: all .15s;
}
.ap-hero-share button:hover { background: var(--ap-ink); color: #fff; }

/* === Author Avatar (Apple-Style) === */
.ap-avatar-circle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, #00afa3, #006c66);
  color: #fff; font-weight: 700; font-size: 11px; letter-spacing: .02em;
  flex-shrink: 0; overflow: hidden;
}
.ap-avatar-photo { background: var(--ap-bg); padding: 0; }
.ap-avatar-photo img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}

/* === Hero Stat Tiles (right side of hero) === */
.ap-hero-stats {
  display: grid; grid-template-columns: 1fr; gap: 12px;
  width: 260px; flex-shrink: 0;
}
.ap-stat-tile {
  background: var(--ap-bg); border-radius: var(--ap-rl);
  padding: 18px 20px;
  border: .5px solid var(--ap-line);
}
.ap-stat-num {
  font-size: 1.6rem; font-weight: 800; color: var(--ap-teal);
  letter-spacing: -.02em; line-height: 1.1;
}
.ap-stat-label {
  font-size: .8rem; color: var(--ap-mid); margin-top: 4px;
  line-height: 1.3;
}
@media(max-width:960px) {
  .ap-hero-grid { grid-template-columns: 1fr !important; }
  .ap-hero-stats { width: 100%; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
}

/* === Body Layout === */
.ap-body { padding: 56px 0 80px; background: var(--ap-bg); }
.ap-layout { display: grid; grid-template-columns: minmax(0,1fr) 260px; gap: 60px; max-width: 1140px; margin: 0 auto; align-items: start; }
.ap-article { min-width: 0; max-width: 720px; }
.ap-sidebar { position: sticky; top: 72px; display: flex; flex-direction: column; gap: 20px; }
@media(max-width:960px) {
  .ap-layout { grid-template-columns: 1fr; gap: 32px; max-width: 720px; }
  .ap-sidebar { position: static; }
}

/* === Sticky TOC === */
.ap-toc { background: var(--ap-white); border: .5px solid var(--ap-line); border-radius: var(--ap-rl); padding: 22px 24px; font-size: .88rem; }
.ap-toc-title { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ap-muted); margin: 0 0 14px; }
.ap-toc-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 2px; }
.ap-toc-list a { display: block; padding: 8px 12px; border-radius: 6px; color: var(--ap-mid); text-decoration: none; line-height: 1.4; border-left: 2px solid transparent; transition: color .15s, border-color .15s, background .15s; }
.ap-toc-list a:hover { color: var(--ap-ink); background: var(--ap-bg); }
.ap-toc-list a.active { color: var(--ap-teal); font-weight: 600; border-left-color: var(--ap-teal); background: rgba(0,175,163,.04); }

.ap-toc-mobile { display: none; background: var(--ap-white); border: .5px solid var(--ap-line); border-radius: var(--ap-rl); margin-bottom: 32px; overflow: hidden; }
.ap-toc-mobile summary { list-style: none; padding: 14px 18px; cursor: pointer; display: flex; align-items: center; justify-content: space-between; font-weight: 600; font-size: .9rem; color: var(--ap-ink); }
.ap-toc-mobile summary::-webkit-details-marker { display: none; }
.ap-toc-mobile summary::after { content: '+'; font-size: 1.2rem; color: var(--ap-mid); }
.ap-toc-mobile[open] summary::after { content: '−'; }
.ap-toc-mobile .ap-toc-list { padding: 0 14px 14px; }
@media(max-width:960px) { .ap-toc-mobile { display: block; } }

/* === Sidebar Cards === */
.ap-side-card { background: var(--ap-white); border: .5px solid var(--ap-line); border-radius: var(--ap-rl); padding: 22px; }
.ap-side-card-cta { background: linear-gradient(135deg, #001a18, #003330); color: #fff; border: none; }
.ap-side-card h3, .ap-side-card h4 { font-size: .95rem; font-weight: 700; margin: 0 0 8px; letter-spacing: -.005em; }
.ap-side-card-cta h3 { color: #fff; }
.ap-side-card p { font-size: .85rem; line-height: 1.5; color: var(--ap-mid); margin: 0 0 16px; }
.ap-side-card-cta p { color: rgba(255,255,255,.75); }
.ap-side-card-cta a.primary { display: block; text-align: center; background: var(--ap-teal); color: #fff; padding: 11px; border-radius: 980px; font-weight: 600; font-size: .85rem; text-decoration: none; margin-bottom: 10px; transition: background .15s; }
.ap-side-card-cta a.primary:hover { background: var(--ap-teal-dark); }
.ap-side-card-cta a.secondary { display: block; text-align: center; color: rgba(255,255,255,.8); padding: 4px; font-size: .8rem; text-decoration: none; }
.ap-side-card-cta a.secondary:hover { color: #fff; }
.ap-side-card ul { list-style: none; padding: 0; margin: 0; }
.ap-side-card li a { display: block; padding: 9px 0; font-size: .88rem; color: var(--ap-ink); text-decoration: none; border-bottom: .5px solid var(--ap-line); }
.ap-side-card li:last-child a { border-bottom: none; }
.ap-side-card li a:hover { color: var(--ap-teal); }

/* === Article Typography (3-stufige Hierarchie verstärkt) === */
.ap-article h2 {
  font-size: 1.75rem; font-weight: 800; color: var(--ap-ink);
  line-height: 1.2; letter-spacing: -.025em;
  margin: 56px 0 18px; padding-top: 32px;
  border-top: .5px solid var(--ap-line);
  scroll-margin-top: 80px;
}
.ap-article h2:first-child, .ap-article > div:first-child + h2, .ap-article > details + h2 { margin-top: 32px; padding-top: 0; border-top: none; }
.ap-article h3 {
  font-size: 1.25rem; font-weight: 700; color: var(--ap-ink);
  line-height: 1.3; letter-spacing: -.01em;
  margin: 32px 0 12px;
  scroll-margin-top: 80px;
}
.ap-article p { font-size: 1.05rem; line-height: 1.72; color: var(--ap-ink); margin: 0 0 18px; }
.ap-article ul, .ap-article ol { font-size: 1.05rem; line-height: 1.72; color: var(--ap-ink); padding-left: 24px; margin: 0 0 18px; }
.ap-article li { margin-bottom: 10px; }
.ap-article strong { font-weight: 700; }
.ap-article em { font-style: italic; color: var(--ap-mid); }
.ap-article a:not(.ap-rcalc):not(.ap-pull-cta):not(.ap-anchor) {
  color: var(--ap-teal); text-decoration: none; font-weight: 500;
  border-bottom: 1px solid rgba(0,175,163,.3);
  transition: border-color .15s;
}
.ap-article a:not(.ap-rcalc):not(.ap-pull-cta):not(.ap-anchor):hover { border-bottom-color: var(--ap-teal); }

.ap-article h2 .ap-anchor, .ap-article h3 .ap-anchor { opacity: 0; margin-left: 8px; color: var(--ap-muted); text-decoration: none; font-weight: 400; transition: opacity .15s; }
.ap-article h2:hover .ap-anchor, .ap-article h3:hover .ap-anchor { opacity: 1; }

/* === "Das Wesentliche in 30 Sekunden" — Apple TLDR Box === */
.ap-tldr {
  background: var(--ap-white);
  border: .5px solid var(--ap-line);
  border-radius: var(--ap-rl);
  padding: 40px 44px 36px;
  margin: 40px 0 48px;
  position: relative;
}
.ap-tldr::before {
  content: '';
  position: absolute; left: 0; top: 32px; bottom: 32px;
  width: 4px; border-radius: 0 4px 4px 0;
  background: linear-gradient(180deg, var(--ap-teal), var(--ap-teal-dark));
}
.ap-tldr-head {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: .5px solid var(--ap-line);
}
.ap-tldr-badge {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--ap-teal); color: #fff;
  font-size: .72rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 1px 2px rgba(0,175,163,.25);
}
.ap-tldr-title {
  font-size: 1.05rem !important; font-weight: 800 !important; color: var(--ap-ink) !important;
  letter-spacing: -.015em !important; margin: 0 !important; padding: 0 !important;
  border: none !important; line-height: 1.25 !important;
}
.ap-tldr-sub {
  font-size: .78rem; color: var(--ap-muted);
  letter-spacing: .02em; margin-top: 2px;
}
.ap-tldr-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 14px;
}
.ap-tldr-list li {
  display: block; position: relative;
  padding-left: 26px;
  font-size: 1rem; line-height: 1.6; color: var(--ap-mid);
  margin: 0;
}
.ap-tldr-list li::before {
  content: ''; position: absolute;
  left: 0; top: 9px;
  width: 8px; height: 8px;
  border-radius: 50%; background: var(--ap-teal);
  box-shadow: 0 0 0 3px rgba(0,175,163,.15);
}
.ap-tldr-list li strong {
  color: var(--ap-ink); font-weight: 700;
  display: inline; letter-spacing: -.005em;
}
@media(max-width:640px) {
  .ap-tldr { padding: 28px 26px 24px; margin: 28px 0 36px; }
  .ap-tldr-badge { padding: 6px 12px; font-size: .68rem; }
  .ap-tldr-title { font-size: .98rem !important; }
}

/* === Author Box (Apple-Specs-Style mit Focus-Chips) === */
.ap-author {
  display: flex; gap: 22px; align-items: flex-start;
  background: var(--ap-white); border: .5px solid var(--ap-line);
  border-radius: var(--ap-rl);
  padding: 32px 36px;
  margin: 56px 0 0;
}
.ap-author-body { flex: 1; min-width: 0; }
.ap-author-label {
  display: block; font-size: 10px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--ap-muted); margin-bottom: 6px;
}
.ap-author-name { font-size: 1.15rem; font-weight: 800; color: var(--ap-ink); letter-spacing: -.015em; }
.ap-author-role { font-size: .9rem; font-weight: 600; color: var(--ap-teal); margin: 2px 0 12px; letter-spacing: -.005em; }
.ap-author-bio { font-size: .95rem; line-height: 1.6; color: var(--ap-mid); margin: 0; }
.ap-author-focus { margin-top: 18px; padding-top: 18px; border-top: .5px solid var(--ap-line); }
.ap-author-focus-label {
  display: block; font-size: 10px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--ap-muted); margin-bottom: 10px;
}
.ap-author-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ap-author-chip {
  display: inline-block; padding: 5px 11px;
  background: var(--ap-bg); border-radius: 980px;
  font-size: .78rem; color: var(--ap-mid); font-weight: 500;
}
@media(max-width:640px) {
  .ap-author { padding: 24px 22px; gap: 16px; margin-top: 40px; }
  .ap-author-name { font-size: 1.05rem; }
}

/* === Mehr zum Thema (enriched Related) === */
.ap-related {
  max-width: 1140px; margin: 80px auto 0; padding: 64px 24px 72px;
  border-top: .5px solid var(--ap-line);
}
.ap-related-head { margin-bottom: 32px; }
.ap-related-sub {
  font-size: .95rem; color: var(--ap-mid);
  margin: 6px 0 0; max-width: 640px; line-height: 1.55;
}
@media(max-width:640px) {
  .ap-related { margin-top: 56px; padding: 48px 20px 56px; }
  .ap-related-head { margin-bottom: 24px; }
}

/* === KF Stat Grid (Apple-Style Multi-Card) === */
.ap-kf-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
  margin: 0 0 36px;
}
.ap-kf-card {
  background: var(--ap-white); border: .5px solid var(--ap-line); border-radius: var(--ap-rl);
  padding: 18px 22px;
  font-size: .95rem; line-height: 1.5; color: var(--ap-ink);
  position: relative;
}
.ap-kf-card::before {
  content: ''; position: absolute; left: 0; top: 18px; bottom: 18px;
  width: 3px; border-radius: 0 3px 3px 0; background: var(--ap-teal);
}
.ap-kf-card strong { color: var(--ap-ink); font-weight: 700; }
@media(max-width:640px) { .ap-kf-grid { grid-template-columns: 1fr; } }

/* === Fallback: long KF stacked list === */
.ap-kf { background: var(--ap-white); border: .5px solid var(--ap-line); border-radius: var(--ap-rl); padding: 22px 26px; margin: 0 0 36px; }
.ap-kf h3 { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ap-teal); margin: 0 0 14px; }
.ap-kf ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.ap-kf li { display: flex; align-items: flex-start; gap: 12px; font-size: .98rem; line-height: 1.55; color: var(--ap-ink); margin: 0; padding: 0; }
.ap-kf li::before { content: ''; flex: 0 0 6px; width: 6px; height: 6px; border-radius: 50%; background: var(--ap-teal); margin-top: 9px; }

/* === Apple Steps (numbered circles, Apple-Style) === */
.ap-steps {
  display: flex; flex-direction: column; gap: 20px;
  margin: 32px 0;
  counter-reset: step;
}
.ap-step {
  display: grid; grid-template-columns: 52px 1fr; gap: 20px;
  align-items: start;
}
.ap-step-num {
  width: 48px; height: 48px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.3rem; font-weight: 800; color: var(--ap-teal);
  background: rgba(0,175,163,.08);
  border: 2px solid var(--ap-teal);
  letter-spacing: -.02em;
}
.ap-step-body { padding-top: 6px; }
.ap-step-head { font-size: 1.05rem; font-weight: 700; color: var(--ap-ink); margin-bottom: 4px; letter-spacing: -.01em; }
.ap-step-body p { font-size: .98rem; line-height: 1.6; color: var(--ap-mid); margin: 0; }

/* === Callouts === */
.ap-callout { display: flex; gap: 14px; padding: 20px 24px; margin: 32px 0; border-radius: var(--ap-rl); border: .5px solid var(--ap-line); background: var(--ap-white); }
.ap-callout-icon { flex: 0 0 28px; width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: .85rem; font-weight: 700; background: var(--ap-bg); color: var(--ap-mid); }
.ap-callout-body { flex: 1; min-width: 0; }
.ap-callout-body p:last-child { margin-bottom: 0; }
.ap-callout-body strong:first-child { display: block; margin-bottom: 4px; font-size: .95rem; }
.ap-callout--tip { background: rgba(0,175,163,.04); border-color: rgba(0,175,163,.25); }
.ap-callout--tip .ap-callout-icon { background: var(--ap-teal); color: #fff; }
.ap-callout--warn { background: rgba(245,158,11,.05); border-color: rgba(245,158,11,.3); }
.ap-callout--warn .ap-callout-icon { background: var(--ap-amber); color: #fff; }
.ap-callout--info { background: var(--ap-bg); }

/* === Pull Quote === */
.ap-article blockquote { margin: 40px 0; padding: 0 0 0 28px; border-left: 3px solid var(--ap-teal); }
.ap-article blockquote p { font-size: 1.4rem; line-height: 1.4; color: var(--ap-ink); font-weight: 600; letter-spacing: -.015em; margin: 0; }

/* === Tables (more whitespace, Apple-pure) === */
.ap-article table { width: 100%; border-collapse: collapse; font-size: .95rem; margin: 32px 0 28px; background: var(--ap-white); border-radius: var(--ap-rl); overflow: hidden; border: .5px solid var(--ap-line); }
.ap-article table caption { display: none; }
.ap-article thead { background: var(--ap-bg); }
.ap-article th, .ap-article td { padding: 16px 22px; text-align: left; border-bottom: .5px solid var(--ap-line); vertical-align: top; font-size: .98rem; }
.ap-article th { font-weight: 700; font-size: .8rem; letter-spacing: .04em; color: var(--ap-mid); text-transform: uppercase; }
.ap-article tr:last-child td { border-bottom: none; }
.ap-article tr:hover td { background: rgba(0,175,163,.02); }
.ap-table-wrap { overflow-x: auto; margin: 32px 0 28px; -webkit-overflow-scrolling: touch; }
.ap-table-wrap table { margin: 0; }

/* Generic card wrapper (former ap-kf in stubs, used for tables) */
.ap-card-wrap { background: var(--ap-white); border: .5px solid var(--ap-line); border-radius: var(--ap-rl); padding: 8px; margin: 32px 0 28px; overflow-x: auto; }
.ap-card-wrap table { background: transparent; border: none; margin: 0; border-radius: 0; }
.ap-card-wrap .ap-kf-title { display: none; }

/* === Apple Criterion-Card (Steve-Jobs-Niveau) === */
.ap-crit-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px; margin: 36px 0;
}
.ap-crit-card {
  background: var(--ap-white);
  border: .5px solid var(--ap-line);
  border-radius: var(--ap-rl);
  padding: 26px 28px;
  transition: border-color .2s, transform .2s, box-shadow .2s;
  display: flex; flex-direction: column; gap: 18px;
}
.ap-crit-card:hover { border-color: var(--ap-teal); transform: translateY(-2px); box-shadow: var(--ap-shadow); }
.ap-crit-head { display: flex; gap: 16px; align-items: center; }
.ap-crit-icon {
  flex: 0 0 52px; width: 52px; height: 52px; border-radius: 14px;
  background: linear-gradient(135deg, rgba(0,175,163,.12), rgba(0,143,134,.08));
  border: 1px solid rgba(0,175,163,.2);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
}
.ap-crit-meta { flex: 1; min-width: 0; }
.ap-crit-name {
  font-size: 1.1rem; font-weight: 700; color: var(--ap-ink);
  letter-spacing: -.015em; line-height: 1.25;
}
.ap-crit-num {
  font-size: .76rem; color: var(--ap-muted); font-weight: 600;
  letter-spacing: .04em; margin-top: 4px;
  font-variant-numeric: tabular-nums;
}
.ap-crit-signals { display: flex; flex-direction: column; gap: 10px; }
.ap-sig-group {
  border-radius: var(--ap-r); padding: 12px 16px;
}
.ap-sig-group--pos { background: rgba(0,175,163,.06); }
.ap-sig-group--neg { background: rgba(245,158,11,.06); }
.ap-sig-label {
  font-size: 10px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; margin-bottom: 6px;
  display: inline-flex; align-items: center; gap: 6px;
}
.ap-sig-label::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
}
.ap-sig-group--pos .ap-sig-label { color: var(--ap-teal-dark); }
.ap-sig-group--pos .ap-sig-label::before { background: var(--ap-teal); }
.ap-sig-group--neg .ap-sig-label { color: #b45309; }
.ap-sig-group--neg .ap-sig-label::before { background: var(--ap-amber); }
.ap-sig-group ul { list-style: none; padding: 0; margin: 0; }
.ap-sig-group li {
  font-size: .9rem; line-height: 1.55; color: var(--ap-ink);
  padding-left: 16px; position: relative; margin-bottom: 6px;
}
.ap-sig-group li:last-child { margin-bottom: 0; }
.ap-sig-group li::before {
  content: '–'; position: absolute; left: 0; top: 0;
  font-weight: 700;
}
.ap-sig-group--pos li::before { color: var(--ap-teal); }
.ap-sig-group--neg li::before { color: var(--ap-amber); }

.ap-crit-tip {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: .88rem; color: var(--ap-mid); line-height: 1.5;
  padding: 12px 14px;
  background: rgba(0,175,163,.04);
  border-left: 3px solid var(--ap-teal);
  border-radius: 0 var(--ap-r) var(--ap-r) 0;
}
.ap-crit-tip-icon {
  flex-shrink: 0; color: var(--ap-teal); margin-top: 3px;
}
.ap-crit-tip strong { color: var(--ap-teal-dark); margin-right: 4px; }

/* === Apple Myth-Card (Mythos vs Wahrheit) === */
.ap-myth-card {
  background: var(--ap-white);
  border: .5px solid var(--ap-line);
  border-radius: var(--ap-rl);
  padding: 22px 24px; margin: 20px 0;
  display: flex; flex-direction: column; gap: 14px;
}
.ap-myth-row { display: flex; gap: 12px; align-items: flex-start; }
.ap-myth-tag {
  flex: 0 0 76px; font-size: 10px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 980px;
  text-align: center; line-height: 1.5;
}
.ap-myth-row--myth .ap-myth-tag { background: rgba(245,158,11,.12); color: #92400e; }
.ap-myth-row--truth .ap-myth-tag { background: rgba(0,175,163,.12); color: var(--ap-teal-dark); }
.ap-myth-text { flex: 1; min-width: 0; font-size: .95rem; line-height: 1.55; color: var(--ap-ink); }

/* === Apple Score-Band: Hero-Bar mit kontinuierlichen Segmenten === */
.ap-scoreband {
  background: var(--ap-white);
  border: .5px solid var(--ap-line);
  border-radius: var(--ap-rl);
  padding: 32px 32px 28px;
  margin: 36px 0;
}
.ap-sr-bar-vis {
  display: flex; gap: 0;
  height: 14px;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 28px;
  box-shadow: inset 0 1px 2px rgba(0,0,0,.06);
}
.ap-sr-seg { flex: 1; transition: filter .2s; }
.ap-sr-seg--red { background: linear-gradient(90deg, #dc2626, #ef4444); }
.ap-sr-seg--amber { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.ap-sr-seg--lime { background: linear-gradient(90deg, #84cc16, #a3e635); }
.ap-sr-seg--emerald { background: linear-gradient(90deg, #10b981, #34d399); }
.ap-sr-markers {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 22px;
}
.ap-sr-marker {
  position: relative;
  padding-left: 14px;
}
.ap-sr-marker::before {
  content: '';
  position: absolute; left: 0; top: 4px; bottom: 4px;
  width: 4px; border-radius: 2px;
}
.ap-sr-marker--red::before { background: #dc2626; }
.ap-sr-marker--amber::before { background: #f59e0b; }
.ap-sr-marker--lime::before { background: #84cc16; }
.ap-sr-marker--emerald::before { background: #10b981; }
.ap-sr-marker-range {
  font-size: 1.4rem; font-weight: 800; color: var(--ap-ink);
  letter-spacing: -.02em; line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.ap-sr-marker-label {
  font-size: 10px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; margin: 6px 0 6px;
}
.ap-sr-marker--red .ap-sr-marker-label { color: #b91c1c; }
.ap-sr-marker--amber .ap-sr-marker-label { color: #b45309; }
.ap-sr-marker--lime .ap-sr-marker-label { color: #4d7c0f; }
.ap-sr-marker--emerald .ap-sr-marker-label { color: #047857; }
.ap-sr-marker-desc {
  font-size: .8rem; color: var(--ap-mid); line-height: 1.5;
}

@media(max-width: 640px) {
  .ap-scoreband { padding: 22px 22px 20px; }
  .ap-sr-bar-vis { height: 12px; margin-bottom: 22px; }
  .ap-sr-markers { grid-template-columns: 1fr 1fr; gap: 16px; }
  .ap-sr-marker-range { font-size: 1.2rem; }
}
@media(max-width: 420px) {
  .ap-sr-markers { grid-template-columns: 1fr; gap: 14px; }
}

/* === Stores-Compare (yes/no) === */
.ap-stores-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 24px 0; }
.ap-compare-col {
  background: var(--ap-white); border: .5px solid var(--ap-line);
  border-radius: var(--ap-rl); padding: 18px 20px;
}
.ap-compare-col--yes { border-top: 3px solid var(--ap-teal); }
.ap-compare-col--no { border-top: 3px solid var(--ap-amber); }

@media(max-width: 720px) {
  .ap-crit-grid, .ap-stores-compare { grid-template-columns: 1fr; gap: 14px; }
  .ap-crit-card { padding: 22px 22px; }
  .ap-crit-icon { width: 44px; height: 44px; font-size: 1.3rem; flex-basis: 44px; }
  .ap-crit-name { font-size: 1.05rem; }
  .ap-compare-col { padding: 18px 20px; }
  .ap-myth-card { padding: 20px 22px; gap: 14px; }
  .ap-myth-tag { flex-basis: 70px; }
}
@media(max-width: 480px) {
  .ap-myth-row { flex-direction: column; align-items: flex-start; gap: 6px; }
  .ap-myth-tag { flex-basis: auto; }
}

/* === Apple Definition-Card (Single-Slot ohne Combo-Result) === */
.ap-defcard-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px; margin: 32px 0;
}
.ap-defcard {
  background: var(--ap-white);
  border: .5px solid var(--ap-line);
  border-radius: var(--ap-rl);
  padding: 24px 26px;
  display: flex; gap: 18px; align-items: flex-start;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.ap-defcard:hover { border-color: var(--ap-teal); transform: translateY(-2px); box-shadow: var(--ap-shadow); }
.ap-defcard-letter {
  flex: 0 0 38px; width: 38px; height: 38px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1rem; font-weight: 700; color: var(--ap-teal);
  background: rgba(0,175,163,.1);
  border: 1.5px solid var(--ap-teal);
}
.ap-defcard-body { flex: 1; min-width: 0; }
.ap-defcard-title {
  font-size: 1.05rem; font-weight: 700; color: var(--ap-ink);
  margin: 4px 0 8px;
  letter-spacing: -.01em; line-height: 1.3;
}
.ap-defcard-text { font-size: .95rem; line-height: 1.6; color: var(--ap-mid); }
.ap-defcard-text p { margin: 0 0 10px; font-size: .95rem; line-height: 1.6; }
.ap-defcard-text p:last-child { margin-bottom: 0; }
.ap-defcard-text strong { color: var(--ap-ink); font-weight: 700; }

@media(max-width: 720px) {
  .ap-defcard-grid { grid-template-columns: 1fr; gap: 12px; }
  .ap-defcard { padding: 20px 22px; gap: 14px; }
  .ap-defcard-letter { flex-basis: 34px; width: 34px; height: 34px; font-size: .92rem; }
}

/* === Apple Combo-Card ("A + B = E
/* === Footer (Apple-style dark 4-col) === */
.ap-footer { background: #0d1420; color: rgba(255,255,255,.85); padding: 60px 24px 32px; margin-top: 80px; }
.ap-footer-grid { max-width: 1140px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,.08); }
.ap-footer-col h4 { color: #fff; font-size: .92rem; font-weight: 600; margin: 0 0 14px; letter-spacing: -.005em; }
.ap-footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.ap-footer-col ul li a { font-size: .88rem; color: rgba(255,255,255,.7); text-decoration: none; transition: color .2s; }
.ap-footer-col ul li a:hover { color: var(--ap-teal, #00afa3); }
.ap-footer-bottom { max-width: 1140px; margin: 24px auto 0; display: flex; justify-content: space-between; gap: 16px; font-size: .78rem; color: rgba(255,255,255,.5); padding-top: 8px; }
@media(max-width:768px){ .ap-footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } .ap-footer-bottom { flex-direction: column; gap: 6px; } }
@media(max-width:480px){ .ap-footer-grid { grid-template-columns: 1fr; gap: 24px; } }

/* === TLDR Badge (Pill with clock icon) === */
.ap-tldr-badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; background: rgba(0,175,163,.12); color: var(--ap-teal, #00afa3); border-radius: 999px; font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; line-height: 1; align-self: flex-start; }
.ap-tldr-badge svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; }

/* === ap-nav override — wins over legacy .nav rules === */
nav.ap-nav { display: block !important; margin: 0 !important; gap: 0 !important; position: sticky !important; top: 0 !important; z-index: 100 !important; background: rgba(255,255,255,.85) !important; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: .5px solid #d2d2d7 !important; padding: 0 !important; }
nav.ap-nav .ap-nav-inner { display: flex !important; align-items: center !important; justify-content: space-between !important; height: 52px !important; max-width: 1200px !important; margin: 0 auto !important; padding: 0 24px !important; }
nav.ap-nav .ap-nav-logo img { display: block !important; height: 28px !important; width: auto !important; }
nav.ap-nav .ap-nav-links { display: flex !important; gap: 24px !important; flex-direction: row !important; margin: 0 !important; }
nav.ap-nav .ap-nav-links a { color: #1d1d1f !important; text-decoration: none !important; font-size: .88rem !important; font-weight: 500 !important; }
nav.ap-nav .ap-nav-links a:hover { color: #00afa3 !important; }
nav.ap-nav .ap-nav-cta a { background: #00afa3 !important; color: #fff !important; padding: 8px 16px !important; border-radius: 980px !important; font-size: .82rem !important; font-weight: 600 !important; text-decoration: none !important; }
nav.ap-nav .ap-nav-cta a:hover { background: #008a82 !important; }

/* Anchor # hidden until hover */
h2 .ap-anchor, h3 .ap-anchor { opacity: 0 !important; margin-left: 8px; color: #86868b; text-decoration: none; font-weight: 400; transition: opacity .15s; }
h2:hover .ap-anchor, h3:hover .ap-anchor { opacity: .5 !important; }

/* Mobile: hide nav-links (replaced with hamburger if any) */
@media(max-width:768px){ nav.ap-nav .ap-nav-links { display: none !important; } }

/* === Apple Style — Missing Component CSS === */

/* FAQ — Apple Disclosure Pattern */
.ap-faq { margin: 32px 0; }
.ap-faq-item { background: var(--ap-white, #fff); border: .5px solid var(--ap-line, #d2d2d7); border-radius: 14px; margin-bottom: 10px; overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.ap-faq-item[open] { border-color: rgba(0,175,163,.3); box-shadow: 0 4px 16px rgba(0,0,0,.04); }
.ap-faq-item summary { cursor: pointer; padding: 18px 56px 18px 24px; font-size: 1.02rem; font-weight: 600; color: var(--ap-ink, #1d1d1f); letter-spacing: -.012em; line-height: 1.4; position: relative; list-style: none; transition: background .15s; }
.ap-faq-item summary::-webkit-details-marker { display: none; }
.ap-faq-item summary::marker { display: none; }
.ap-faq-item summary:hover { background: rgba(0,0,0,.02); }
.ap-faq-item summary::after { content: ''; position: absolute; right: 24px; top: 50%; width: 14px; height: 14px; transform: translateY(-50%) rotate(0deg); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 6l5 5 5-5' fill='none' stroke='%2386868b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: center; transition: transform .25s; }
.ap-faq-item[open] summary::after { transform: translateY(-50%) rotate(180deg); }
.ap-faq-body { padding: 0 24px 22px; font-size: .96rem; line-height: 1.6; color: var(--ap-mid, #515154); }
.ap-faq-body p { margin: 0 0 12px; }
.ap-faq-body p:last-child { margin-bottom: 0; }

/* Related Articles Grid + Cards — Apple Apple-Style */
.ap-related-head { margin-bottom: 36px; }
.ap-related-head h2 { font-size: 2rem; font-weight: 800; letter-spacing: -.022em; color: var(--ap-ink, #1d1d1f); margin: 0 0 8px; }
.ap-related-sub { font-size: 1rem; color: var(--ap-mid, #515154); margin: 0; line-height: 1.55; }
.ap-related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.ap-related-card { display: flex !important; flex-direction: column; background: var(--ap-white, #fff); border: .5px solid var(--ap-line, #d2d2d7); border-radius: 18px; padding: 24px 26px 22px; text-decoration: none !important; color: var(--ap-ink, #1d1d1f) !important; transition: border-color .25s, transform .25s, box-shadow .25s; }
.ap-related-card:hover { border-color: var(--ap-teal, #00afa3); transform: translateY(-3px); box-shadow: 0 12px 32px rgba(0,0,0,.06); }
.ap-related-card-cat { font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ap-teal, #00afa3); margin: 0 0 12px; display: block; }
.ap-related-card-title { font-size: 1.08rem; font-weight: 700; line-height: 1.32; letter-spacing: -.012em; color: var(--ap-ink, #1d1d1f); margin: 0 0 10px; }
.ap-related-card-desc { font-size: .92rem; line-height: 1.55; color: var(--ap-mid, #515154); margin: 0 0 18px; flex: 1; }
.ap-related-card-arrow { font-size: .88rem; font-weight: 600; color: var(--ap-ink, #1d1d1f); display: inline-flex; align-items: center; gap: 4px; margin-top: auto; transition: color .2s, gap .2s; }
.ap-related-card:hover .ap-related-card-arrow { color: var(--ap-teal, #00afa3); gap: 6px; }
.ap-related-card-arrow span { display: inline-block; transition: transform .2s; }
.ap-related-card:hover .ap-related-card-arrow span { transform: translateX(2px); }
@media(max-width:640px) {
  .ap-related-grid { grid-template-columns: 1fr; gap: 14px; }
  .ap-related-head h2 { font-size: 1.6rem; }
}

/* Inline rechner-card pattern (when blog mentions a rechner) — Apple call-out */
.ap-rcard, .ap-inline-rechner { display: flex; align-items: center; gap: 16px; padding: 20px 22px; background: linear-gradient(135deg, #f4fbfa, #ffffff); border: .5px solid rgba(0,175,163,.18); border-radius: 16px; margin: 24px 0; text-decoration: none !important; color: var(--ap-ink, #1d1d1f) !important; transition: border-color .2s, transform .2s; }
.ap-rcard:hover, .ap-inline-rechner:hover { border-color: var(--ap-teal, #00afa3); transform: translateY(-1px); }
.ap-rcard-icon { width: 40px; height: 40px; background: rgba(0,175,163,.12); color: var(--ap-teal, #00afa3); border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-weight: 700; }
.ap-rcard-body { flex: 1; }
.ap-rcard-title { font-size: 1rem; font-weight: 700; letter-spacing: -.01em; color: var(--ap-ink, #1d1d1f); margin: 0 0 2px; }
.ap-rcard-desc { font-size: .88rem; color: var(--ap-mid, #515154); margin: 0; }
.ap-rcard-arrow { font-size: .88rem; font-weight: 600; color: var(--ap-teal, #00afa3); }

/* Generic article-body anchor styling — make non-card links look refined */
.ap-article a:not(.ap-related-card):not(.ap-rcard):not(.ap-tldr-list a):not(.ap-side-card a):not(.ap-card):not(.ap-anchor):not(.ap-author a) {
  color: var(--ap-ink, #1d1d1f);
  text-decoration: underline;
  text-decoration-color: rgba(0,175,163,.4);
  text-underline-offset: 3px;
  transition: text-decoration-color .15s, color .15s;
}
.ap-article a:not(.ap-related-card):not(.ap-rcard):not(.ap-card):not(.ap-anchor):not(.ap-author a):hover {
  color: var(--ap-teal, #00afa3);
  text-decoration-color: var(--ap-teal, #00afa3);
}

/* === ap-sticky-cta: hidden by default, conditional via JS+mobile === */
.ap-sticky-cta { display: none !important; }
@media (max-width: 720px) {
  .ap-sticky-cta.visible { display: flex !important; position: fixed; bottom: 12px; left: 12px; right: 12px; z-index: 90; background: var(--ap-ink, #1d1d1f); color: #fff; padding: 12px 14px; border-radius: 14px; align-items: center; gap: 12px; box-shadow: 0 12px 30px rgba(0,0,0,.25); }
  .ap-sticky-cta.visible p { margin: 0; flex: 1; font-size: .88rem; }
  .ap-sticky-cta.visible a { background: var(--ap-teal, #00afa3); color: #fff; padding: 8px 14px; border-radius: 999px; text-decoration: none; font-size: .82rem; font-weight: 600; }
  .ap-sticky-cta.visible button { background: transparent; border: 0; color: rgba(255,255,255,.6); width: 28px; height: 28px; border-radius: 50%; cursor: pointer; font-size: 1rem; }
}

/* === ap-related spacing override (Apple-tight) === */
.ap-related { margin-top: 40px !important; padding: 40px 24px 56px !important; }
.ap-author { margin-top: 32px !important; }
.ap-anwendung { padding: 40px 0 32px !important; }
@media(max-width:640px) {
  .ap-related { margin-top: 28px !important; padding: 28px 20px 40px !important; }
  .ap-author { margin-top: 24px !important; padding: 22px 22px !important; }
}

/* === FAQ Apple-Style (hairline list, +/- icon) === */
.ap-faq { margin: 32px 0; border-top: .5px solid var(--ap-line, #d2d2d7); }
.ap-faq-item { background: transparent !important; border: none !important; border-bottom: .5px solid var(--ap-line, #d2d2d7) !important; border-radius: 0 !important; margin: 0 !important; overflow: visible !important; transition: none !important; box-shadow: none !important; }
.ap-faq-item summary { cursor: pointer; padding: 22px 56px 22px 0 !important; font-size: 1.02rem; font-weight: 600; color: var(--ap-ink, #1d1d1f); letter-spacing: -.012em; line-height: 1.4; position: relative; list-style: none !important; transition: color .15s; background: transparent !important; }
.ap-faq-item summary::-webkit-details-marker { display: none !important; }
.ap-faq-item summary::marker { display: none !important; content: "" !important; }
.ap-faq-item summary:hover { background: transparent !important; color: var(--ap-teal, #00afa3); }
.ap-faq-item summary::before { display: none !important; content: "" !important; background: none !important; }
.ap-faq-item summary::after {
  display: block !important; content: "+" !important;
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; font-size: 1.4rem; font-weight: 300;
  color: var(--ap-muted, #86868b); line-height: 1; text-align: center;
  transition: transform .25s, color .15s;
  background: none !important;
}
.ap-faq-item[open] summary::after { content: "\2212" !important; color: var(--ap-teal, #00afa3); transform: translateY(-50%); }
.ap-faq-item summary:hover::after { color: var(--ap-teal, #00afa3); }
.ap-faq-item[open] summary { color: var(--ap-ink, #1d1d1f); }
.ap-faq-body { padding: 0 56px 22px 0 !important; font-size: .96rem; line-height: 1.6; color: var(--ap-mid, #515154); border-top: none !important; }
.ap-faq-body p { margin: 0 0 12px; }
.ap-faq-body p:last-child { margin-bottom: 0; }

/* same treatment for general details-summary elements */
details.faq-item, details[class*="faq"] {
  background: transparent !important; border: none !important;
  border-bottom: .5px solid var(--ap-line, #d2d2d7) !important;
  border-radius: 0 !important; margin: 0 !important; padding: 0 !important;
}
