/* Alfreed: Inhaltsseiten (Blog, Vergleiche, Hilfe, Mac, Presse ...). Erzeugt von tools/site_pages.py, gestaltet hier.
   Baut auf /site.css auf (Kopf- und Fußzeile, Buttons). Nur heller Modus, keine Fremd-Schriften. */
@font-face { font-family: "EB Garamond"; src: url("/fonts/eb-garamond-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/inter-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/inter-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/inter-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

.pg {
  color-scheme: light;
  --pg-ink: #0b0d12; --pg-ink2: #262c3a; --pg-muted: #586072; --pg-faint: #6b7385; --pg-line: #e5e8ef; --pg-soft: #f4f7fb;
  --pg-blue: #2563eb; --pg-blue-l: #4f8dff; --pg-sky: #3f97e0;
  --pg-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  --pg-serif: "EB Garamond", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --pg-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  margin: 0; color: var(--pg-ink); font-family: var(--pg-sans); font-size: 16px; line-height: 1.55;
  background: linear-gradient(180deg, #e4f0fd 0, #f1f7fe 300px, #ffffff 620px) no-repeat, #ffffff;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
.pg *, .pg *::before, .pg *::after { box-sizing: border-box; }
.pg .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pg-skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: #fff; color: var(--pg-ink); padding: 10px 14px; border-radius: 10px; box-shadow: 0 6px 20px rgba(11,13,18,.15); }
.pg-skip:focus { top: 12px; }

/* Rahmen */
.pg-main { padding: 48px 0 72px; }
.pg-wrap { max-width: calc(720px + 2 * 16px); margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.pg-wide .pg-wrap { max-width: calc(860px + 2 * 16px); }
@media (max-width: 600px) { .pg-main { padding-top: 30px; } }

/* Kopf der Seite */
.pg-crumbs { font-size: 14px; color: var(--pg-faint); margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 6px; }
.pg-crumbs a { color: var(--pg-muted); text-decoration: none; }
.pg-crumbs a:hover { color: var(--pg-ink); }
.pg-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: #1f5fd6; font-weight: 600; margin: 0 0 14px; }
.pg-badge { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--pg-blue); color: #fff; font-size: 12px; font-weight: 600; letter-spacing: 0; text-transform: none; line-height: 1.4; box-shadow: inset 0 1px 0 rgba(255,255,255,.35); }
.pg h1 { font-family: var(--pg-serif); font-weight: 500; font-size: clamp(36px, 6.2vw, 58px); line-height: 1.06; letter-spacing: -0.012em; margin: 0; color: var(--pg-ink); text-wrap: balance; overflow-wrap: break-word; hyphens: auto; }
.pg-lead { margin: 18px 0 0; font-size: 19px; line-height: 1.55; color: var(--pg-muted); letter-spacing: -0.011em; max-width: 60ch; }
.pg-meta { margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 14px; color: var(--pg-faint); }
.pg-meta span + span::before { content: "·"; margin-right: 14px; color: #b3bac8; }
.pg-head { margin-bottom: 34px; }
.pg-center .pg-head { text-align: center; }
.pg-center .pg-head .pg-lead { margin-left: auto; margin-right: auto; }
.pg-center .pg-crumbs { justify-content: center; }

/* Fließtext */
.pg-article { font-size: 17px; line-height: 1.72; color: var(--pg-ink2); overflow-wrap: break-word; }
.pg-article > :first-child { margin-top: 0; }
.pg-article h2 { font-family: var(--pg-sans); font-size: clamp(23px, 3.4vw, 28px); line-height: 1.22; font-weight: 600; letter-spacing: -0.024em; color: var(--pg-ink); margin: 52px 0 14px; text-wrap: balance; scroll-margin-top: 84px; }
.pg-article h3 { font-size: 19px; line-height: 1.35; font-weight: 600; letter-spacing: -0.016em; color: var(--pg-ink); margin: 34px 0 8px; scroll-margin-top: 84px; }
.pg-article h4 { font-size: 16px; font-weight: 600; color: var(--pg-ink); margin: 24px 0 6px; }
.pg-article p { margin: 0 0 18px; }
.pg-article ul, .pg-article ol { margin: 0 0 20px; padding-left: 24px; }
.pg-article li { margin: 7px 0; padding-left: 2px; }
.pg-article li::marker { color: #7c8aa5; }
.pg-article strong { color: var(--pg-ink); font-weight: 600; }
.pg-article a { color: var(--pg-blue); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: rgba(37,99,235,.35); }
.pg-article a:hover { text-decoration-color: var(--pg-blue); }
.pg-article hr { border: 0; height: 1px; background: var(--pg-line); margin: 40px 0; }
.pg-article blockquote { margin: 18px 0 22px; padding: 14px 18px; border-left: 3px solid var(--pg-blue-l); background: #f3f7ff; border-radius: 0 14px 14px 0; color: var(--pg-ink); }
.pg-article blockquote p:last-child { margin-bottom: 0; }
.pg-article code { font-family: var(--pg-mono); font-size: .88em; background: #eef2f8; border: 1px solid #e1e7f0; border-radius: 6px; padding: 1px 6px; color: #1e293b; overflow-wrap: anywhere; }
.pg-article pre { margin: 16px 0 22px; padding: 16px 18px; background: #f7f9fc; border: 1px solid var(--pg-line); border-radius: 14px; font: 14.5px/1.6 var(--pg-mono); color: #1e293b; white-space: pre-wrap; overflow-wrap: anywhere; }
.pg-article pre code { background: none; border: 0; padding: 0; font-size: inherit; }
.pg-article pre.mail { font-family: var(--pg-sans); font-size: 15.5px; background: #fff; box-shadow: 0 1px 2px rgba(11,13,18,.04); }
.pg kbd { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 7px; border-radius: 7px; background: #fff; border: 1px solid #d9dfea; box-shadow: 0 1px 0 #d9dfea; font: 600 13px/1 var(--pg-sans); color: var(--pg-ink2); vertical-align: 1px; margin: 0 1px; }

/* Kästen */
.pg-summary { margin: 0 0 34px; padding: 20px 22px 6px; border-radius: 18px; background: linear-gradient(180deg, #eef4ff 0%, #f7faff 100%); border: 1px solid #d9e5fd; }
.pg-summary .pg-box-t, .pg-note .pg-box-t { display: block; font-size: 12.5px; letter-spacing: .13em; text-transform: uppercase; font-weight: 600; color: #1f5fd6; margin: 0 0 8px; }
.pg-summary ul { padding-left: 20px; }
.pg-note { margin: 0 0 30px; padding: 16px 20px 4px; border-radius: 16px; background: #fff7e8; border: 1px solid #f6dfae; color: #5b3b00; font-size: 16px; }
.pg-note .pg-box-t { color: #8a5a00; }
.pg-note a { color: #7a4b00; }
.pg-tip { margin: 22px 0; padding: 16px 20px 4px; border-radius: 16px; background: var(--pg-soft); border: 1px solid var(--pg-line); font-size: 16px; }
.todo { background: #fff1c2; border-radius: 6px; padding: 0 5px; color: #6b4a00; }

/* Tabellen */
.pg-article .tw { margin: 20px 0 26px; border: 1px solid var(--pg-line); border-radius: 16px; overflow: hidden; background: #fff; }
.pg-article table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.pg-article th, .pg-article td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--pg-line); }
.pg-article tr:last-child td { border-bottom: 0; }
.pg-article th { background: var(--pg-soft); font-size: 13.5px; font-weight: 600; color: var(--pg-ink); }
.pg-article td:first-child { font-weight: 500; color: var(--pg-ink); }
@media (max-width: 640px) {
  .pg-article .tw { border: 0; border-radius: 0; background: none; overflow: visible; }
  .pg-article table, .pg-article tbody, .pg-article tr, .pg-article td { display: block; width: 100%; }
  .pg-article thead { display: none; }
  .pg-article tr { border: 1px solid var(--pg-line); border-radius: 14px; padding: 10px 14px; margin: 0 0 10px; background: #fff; }
  .pg-article td { border: 0; padding: 5px 0; }
  .pg-article td:first-child { font-weight: 600; font-size: 16px; padding-bottom: 4px; }
  .pg-article td[data-l]:not(:first-child)::before { content: attr(data-l); display: block; font-size: 12px; font-weight: 600; letter-spacing: .02em; color: var(--pg-faint); margin-bottom: 1px; }
}

/* Fragen */
.pg-faq { margin: 8px 0 28px; border-top: 1px solid var(--pg-line); }
.pg-faq details { border-bottom: 1px solid var(--pg-line); }
.pg-faq summary { list-style: none; cursor: pointer; padding: 17px 36px 17px 0; position: relative; font-size: 17px; font-weight: 600; letter-spacing: -0.012em; color: var(--pg-ink); line-height: 1.4; }
.pg-faq summary::-webkit-details-marker { display: none; }
.pg-faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; margin-top: -7px; border-right: 2px solid #8a94a8; border-bottom: 2px solid #8a94a8; transform: rotate(45deg); transition: transform .2s ease; }
.pg-faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.pg-faq .a { padding: 0 0 8px; color: var(--pg-ink2); }
.pg-faq .a p { margin: 0 0 14px; }
.pg-faq-group { margin-top: 46px; }

/* Buttons (gleicher Glanz wie auf der Startseite) */
.pg-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border-radius: 14px; padding: 14px 26px; font: 500 17px/1.2 var(--pg-sans); letter-spacing: -0.012em; text-decoration: none !important; border: 1px solid transparent; cursor: pointer; white-space: nowrap; transition: transform .15s ease, box-shadow .15s ease, filter .15s ease; max-width: 100%; }
.pg-btn svg { width: 18px; height: 18px; flex: none; }
.pg-btn-primary, .pg-article a.pg-btn-primary { color: #fff; background: linear-gradient(180deg, #4f8dff 0%, #2563eb 100%); border-color: rgba(255,255,255,.35); box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 10px 30px -8px rgba(37,99,235,.65); text-shadow: 0 1px 1px rgba(10,40,120,.18); }
.pg-btn-primary:hover { filter: brightness(1.06); transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 14px 34px -8px rgba(37,99,235,.7); }
.pg-btn-white, .pg-article a.pg-btn-white { color: var(--pg-ink); background: #fff; border-color: rgba(11,13,18,.1); box-shadow: 0 1px 2px rgba(11,13,18,.05), 0 10px 24px -16px rgba(11,13,18,.35); }
.pg-btn-white:hover { transform: translateY(-1px); }
.pg-btn-xl { padding: 20px 38px; font-size: 20px; gap: 12px; box-shadow: inset 0 1px 0 rgba(255,255,255,.5), inset 0 -2px 0 rgba(10,40,140,.18), 0 18px 46px -10px rgba(37,99,235,.7), 0 0 0 6px rgba(79,141,255,.12); }
.pg-btn-xl svg { width: 22px; height: 22px; margin-top: -3px; }
.pg-btns { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 8px; }
.pg-center .pg-btns { justify-content: center; }
@media (max-width: 480px) { .pg-btns { flex-direction: column; align-items: stretch; } .pg-btn { white-space: normal; text-align: center; } .pg-btn-xl { padding: 18px 22px; } }

/* Abschluss-Kasten */
.pg-cta { margin: 56px 0 0; padding: 40px 28px 42px; border-radius: 24px; color: #fff; text-align: center; background: linear-gradient(180deg, #3f97e0 0%, #4a9fe4 60%, #7cbcec 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,.3); }
.pg-cta h2 { font-family: var(--pg-serif); font-weight: 500; font-size: clamp(28px, 4.6vw, 38px); line-height: 1.1; letter-spacing: -0.01em; margin: 0; color: #fff; text-shadow: 0 2px 20px rgba(14,62,140,.2); }
.pg-cta p { margin: 12px auto 0; max-width: 46ch; color: rgba(255,255,255,.95); font-size: 17px; text-shadow: 0 1px 10px rgba(14,62,140,.25); }
.pg-cta .pg-btns { justify-content: center; margin-top: 22px; }
.pg-cta .pg-btn-white { color: #12306f; }

/* Blog-Liste */
.pg-posts { display: grid; gap: 14px; margin: 8px 0 0; padding: 0; list-style: none; }
.pg-post { display: block; padding: 22px 24px; border: 1px solid var(--pg-line); border-radius: 18px; background: #fff; text-decoration: none; color: inherit; transition: box-shadow .15s ease, transform .15s ease, border-color .15s ease; }
.pg-post:hover { border-color: #cfdcf5; box-shadow: 0 14px 34px -22px rgba(31,79,224,.45); transform: translateY(-1px); }
.pg-post h2, .pg-post h3 { margin: 0; font-size: 20px; line-height: 1.3; font-weight: 600; letter-spacing: -0.02em; color: var(--pg-ink); }
.pg-post p { margin: 8px 0 0; color: var(--pg-muted); font-size: 15.5px; line-height: 1.55; }
.pg-post .pg-meta { margin-top: 12px; font-size: 13.5px; }
.pg-related { margin-top: 52px; }
.pg-related > h2 { font-size: 15px !important; letter-spacing: .12em !important; text-transform: uppercase; color: var(--pg-faint) !important; margin: 0 0 14px !important; }
.pg-related .pg-post { padding: 18px 20px; }
.pg-related .pg-post h3 { font-size: 17px; }

/* Schritte (Installation) */
.pg-article ol.pg-steps { list-style: none; padding: 0; counter-reset: s; margin: 18px 0 26px; }
.pg-article ol.pg-steps > li { counter-increment: s; position: relative; padding: 2px 0 14px 50px; margin: 0; }
.pg-article ol.pg-steps > li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; font: 600 15px/1 var(--pg-sans); color: #fff; background: linear-gradient(180deg, #4f8dff, #2563eb); box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 6px 14px -6px rgba(37,99,235,.6); }

/* Mac-Seite */
.pg-dl { display: grid; justify-items: center; gap: 14px; margin: 30px 0 10px; }
.pg-dl-note { font-size: 14px; color: var(--pg-faint); text-align: center; }
.pg-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 20px 0 26px; }
@media (max-width: 680px) { .pg-cards { grid-template-columns: minmax(0, 1fr); } }
.pg-card { padding: 18px 18px 6px; border: 1px solid var(--pg-line); border-radius: 16px; background: #fff; font-size: 15.5px; line-height: 1.55; }
.pg-card b { display: block; color: var(--pg-ink); font-size: 16px; margin-bottom: 4px; }
.pg-card p { margin: 0 0 12px; }

/* Bildschirm-Skizze (Unsichtbar-Seite) */
.pg-screens { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 22px 0 28px; }
@media (max-width: 600px) { .pg-screens { grid-template-columns: minmax(0, 1fr); } }
.pg-screen { margin: 0; }
.pg-screen .s { position: relative; aspect-ratio: 16 / 10; border-radius: 14px; background: linear-gradient(160deg, #2d3446, #1b2030); border: 1px solid #cfd6e4; overflow: hidden; box-shadow: 0 16px 34px -24px rgba(11,13,18,.6); }
.pg-screen .s i { position: absolute; border-radius: 8px; background: rgba(255,255,255,.1); }
.pg-screen .s .v1 { left: 8%; top: 12%; width: 40%; height: 60%; }
.pg-screen .s .v2 { left: 52%; top: 12%; width: 40%; height: 60%; }
.pg-screen .s .bar { left: 30%; bottom: 8%; width: 40%; height: 9%; border-radius: 999px; background: rgba(255,255,255,.16); }
.pg-screen .s .al { left: 58%; top: 18%; width: 36%; height: 46%; background: rgba(255,255,255,.88); border: 1px solid #fff; box-shadow: 0 10px 24px rgba(0,0,0,.35); }
.pg-screen .s .al::before { content: "Alfreed"; position: absolute; left: 10px; top: 8px; font: 600 11px/1 var(--pg-sans); color: #1f4fe0; }
.pg-screen .s .al::after { content: ""; position: absolute; left: 10px; right: 10px; top: 26px; height: 34%; border-radius: 6px; background: #e8f0ff; }
.pg-screen figcaption { margin-top: 8px; font-size: 14px; color: var(--pg-muted); text-align: center; }

/* Fallback-Kopf/Fuß, falls index.html noch keine Marker hat: nutzt die Klassen aus site.css */
.pg .site-header .nav-menu { display: none; position: relative; margin-left: auto; }
.pg .site-header .nav-menu summary { list-style: none; cursor: pointer; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--pg-line); background: #fff; font-size: 14px; font-weight: 500; }
.pg .site-header .nav-menu summary::-webkit-details-marker { display: none; }
.pg .site-header .nav-menu div { position: absolute; right: 0; top: 44px; width: 240px; padding: 8px; background: #fff; border: 1px solid var(--pg-line); border-radius: 14px; box-shadow: 0 20px 40px -20px rgba(11,13,18,.35); display: grid; }
.pg .site-header .nav-menu div a { padding: 9px 10px; border-radius: 8px; text-decoration: none; color: var(--pg-ink2); font-size: 15px; }
.pg .site-header .nav-menu div a:hover { background: var(--pg-soft); }
@media (max-width: 860px) { .pg .site-header .nav-menu { display: block; } .pg .site-header .nav-menu + .nav-right { margin-left: 0; } }
@media (max-width: 400px) { .pg .site-header .nav { gap: 12px; } .pg .site-header .nav-right .btn { padding: 8px 12px; font-size: 14px; } }

/* Preise */
.pg-price { font: 600 30px/1.1 var(--pg-sans); letter-spacing: -0.03em; color: var(--pg-ink); margin: 6px 0 4px !important; }
.pg-price small { display: block; font-size: 13.5px; font-weight: 500; letter-spacing: 0; color: var(--pg-muted); margin-top: 4px; }
.pg-permin { display: inline-block; padding: 4px 10px; border-radius: 10px; background: #e8f0ff; color: #1d4ed8; font-weight: 600; font-size: 14.5px; }
.pg-preise .pg-card .pg-btn { width: 100%; }
