/* Lese- und Regionalseiten (Ratgeber, /region/…, /fenster-aargau/ …, Service, Küchen/Markisen/Einbauschränke)
   Komponenten dieser Seiten im Wolken-System. Farben, Schrift, Radien und Abstände nur über --pds-* Tokens
   (definiert in assets/css/pdd-system.css). Ab Phase 2 auch auf Ratgeber- und Regionsseiten eingebunden
   (tools/prototyp/markup-design.py). */

/* Brotkrumen ausserhalb des Heros: Darstellung und Position in pdd-system.css (Abschnitt 7) */

/* Hero */
.pdd-hero { padding: clamp(40px, 6vw, 72px) 0 clamp(56px, 7vw, 96px); }
/* gleiche Kante wie .pdd-container (style.css-Breite + System-Innenabstand) */
.pdd-hero__content, .pdd-hero > .pdd-container { width: min(var(--pds-max), calc(100% - 44px)); margin: 0 auto; padding: 0 var(--pds-gutter); max-width: none; box-sizing: border-box; }
.pdd-hero .pdd-container .pdd-hero__content { width: auto; padding: 0; margin: 0; }
.pdd-hero h1 { margin: 12px 0 16px; max-width: 22ch; font-size: clamp(30px, 4vw, 52px) !important; line-height: 1.08; letter-spacing: -0.025em; text-wrap: balance; }
.pdd-hero__lead, .pdd-hero p { margin: 0 0 24px; max-width: 62ch; font-size: var(--pds-t-md); line-height: 1.65; }
.pdd-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* Buttons (BEM-Varianten) – Grundform in pdd-system.css */
.pdd-btn { display: inline-flex; align-items: center; justify-content: center; text-align: center; line-height: 1.2; }
.pdd-btn--secondary { background: var(--pds-sky); color: var(--pds-ink); border: 1px solid var(--pds-sky-2); }
.pdd-btn--secondary:hover { background: var(--pds-sky-2); }

/* Inhalt: lesefreundliche Spalte, Raster dürfen breiter werden */
.pdd-content-section, .pdd-section { padding: var(--pds-s-8) 0; color: var(--pds-ink-2); }
.pdd-section--alt { background: var(--pds-concrete); }
/* Lesespalte: linksbündig im Seitenraster (wie der Hero), Text auf ≈70 Zeichen begrenzt, Raster dürfen die volle Breite nutzen */
.pdd-content-section > .pdd-container > :not(.pdd-products-grid, .pdd-products__grid, .pdd-trust__grid, .pdd-cta__inner),
.pdd-section > .pdd-container > :is(h2, h3, h4, p, ul:not([class*="grid"]), ol, dl, details, nav, .pdd-faq, .pdd-checklist, .pdd-ratgeber-list, .pdd-table-wrapper, .pdd-internal-links) { max-width: var(--pds-read); }
.pdd-content-section h2, .pdd-section h2 { margin: var(--pds-s-7) 0 var(--pds-s-3); font-size: var(--pds-t-xl); line-height: 1.2; color: var(--pds-ink); text-wrap: balance; }
.pdd-content-section h2:first-child, .pdd-section .pdd-container > h2:first-child { margin-top: 0; }
.pdd-content-section h3, .pdd-section h3 { margin: var(--pds-s-6) 0 var(--pds-s-2); font-size: var(--pds-t-lg); line-height: 1.3; color: var(--pds-ink); }
.pdd-content-section :is(p, li), .pdd-section :is(p, li) { font-size: var(--pds-t-md); line-height: 1.7; }
.pdd-content-section p, .pdd-section p { margin: 0 0 var(--pds-s-4); }
.pdd-content-section ul:not([class]), .pdd-section ul:not([class]), .pdd-section ol:not([class]) { margin: 0 0 var(--pds-s-5); padding-left: 1.3em; }
:is(.pdd-content-section, .pdd-section) ul:not([class]) li::marker { color: var(--pds-wood); }
.pdd-content-section a:not([class]), .pdd-section p a:not([class]), .pdd-section li a:not([class]) { color: var(--pds-blue); text-decoration: underline; text-decoration-thickness: 1px; }
.pdd-section__text > * { max-width: var(--pds-read); }

/* Inhaltsverzeichnis */
.pdd-section--toc { padding: var(--pds-s-6) 0 0; }
.pdd-section--toc nav { border-top: 1px solid var(--pds-stone); padding-top: var(--pds-s-4); }
.pdd-section--toc ol { margin: 0; padding-left: 1.4em; display: grid; gap: 4px; }
.pdd-section--toc a { color: var(--pds-ink) !important; text-decoration: none !important; font-weight: 500; }
.pdd-section--toc a:hover { color: var(--pds-blue) !important; text-decoration: underline !important; }

/* Tabellen in Ratgebern: auf schmalen Bildschirmen seitlich wischbar, nie die Seite verbreitern */
.pdd-table-wrapper { overflow-x: auto; margin: var(--pds-s-5) 0; border: 1px solid var(--pds-line); border-radius: var(--pds-r-card); background: var(--pds-paper); overscroll-behavior-x: contain; }
.pdd-table { width: 100%; border-collapse: collapse; font-size: var(--pds-t-sm); font-variant-numeric: tabular-nums; }
.pdd-table :is(th, td) { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--pds-line); }
.pdd-table thead th { background: var(--pds-concrete); color: var(--pds-ink); font-weight: 600; white-space: nowrap; }
.pdd-table tbody th { color: var(--pds-ink); font-weight: 600; }
.pdd-table tr:last-child :is(td, th) { border-bottom: 0; }

/* Checkliste: gezeichnetes Häkchen statt Schriftzeichen */
.pdd-checklist { margin: var(--pds-s-5) 0 var(--pds-s-6); padding: 0; list-style: none; display: grid; gap: 10px; }
.pdd-checklist li { position: relative; padding-left: 30px; }
.pdd-checklist li::before { content: ""; position: absolute; left: 2px; top: .4em; width: 13px; height: 7px; border-left: 2px solid var(--pds-wood); border-bottom: 2px solid var(--pds-wood); transform: rotate(-45deg); }

/* Ratgeber-Liste */
.pdd-ratgeber-list { list-style: none !important; margin: var(--pds-s-4) 0 0 !important; padding: 0 !important; border-top: 1px solid var(--pds-stone); }
.pdd-ratgeber-list li { border-bottom: 1px solid var(--pds-line); margin: 0; }
.pdd-ratgeber-list li::marker { content: none; }
.pdd-ratgeber-list a { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 16px 0; font-weight: 600; color: var(--pds-ink) !important; text-decoration: none !important; }
.pdd-ratgeber-list a::after { content: ""; flex: none; width: 7px; height: 7px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(45deg); color: var(--pds-ink-3); transition: transform var(--pds-dur-2) var(--pds-ease-out); }
.pdd-ratgeber-list a:hover { color: var(--pds-blue) !important; }
.pdd-ratgeber-list a:hover::after { transform: translateX(3px) rotate(45deg); color: var(--pds-blue); }

/* Orte und Produkte in der Region */
.pdd-city-list, .pdd-cities-list { display: flex; flex-wrap: wrap; gap: 8px; margin: var(--pds-s-3) 0 var(--pds-s-5) !important; padding: 0 !important; list-style: none; }
.pdd-city-list li, .pdd-cities-list li { padding: 6px 14px; border-radius: var(--pds-r-pill); background: var(--pds-paper); border: 1px solid var(--pds-line); color: var(--pds-ink-2); font-size: var(--pds-t-sm) !important; font-weight: 500; line-height: 1.4 !important; }
.pdd-cities-list li::marker { content: none; }
.pdd-products-grid, .pdd-products__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: var(--pds-s-4); margin: var(--pds-s-4) 0 var(--pds-s-6); }
.pdd-product-card { display: flex; flex-direction: column; gap: 10px; padding: 22px !important; }
.pdd-product-card h3 { margin: 0 !important; }
.pdd-product-card p { margin: 0; flex: 1; font-size: var(--pds-t-sm) !important; }
.pdd-product-card .pdd-btn { align-self: flex-start; }

/* Interne Verweise und Leistungen in der Region */
.pdd-internal-links, .pdd-region-links { margin: var(--pds-s-7) 0; padding: var(--pds-s-5) var(--pds-s-6); background: var(--pds-paper); border: 1px solid var(--pds-line); border-radius: var(--pds-r-card); }
.pdd-region-links { width: min(var(--pds-max), calc(100% - 2 * var(--pds-gutter))); margin-inline: auto; }
.pdd-internal-links h2, .pdd-region-links h2 { margin-top: 0; font-size: var(--pds-t-lg); }
.pdd-internal-links ul, .pdd-region-links ul { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.pdd-internal-links a, .pdd-region-links a { font-weight: 600; color: var(--pds-blue) !important; }

/* FAQ ohne BEM-Klassen – Linienstil wie überall */
.pdd-content-section details { margin: 0; border-bottom: 1px solid var(--pds-line); }
.pdd-content-section summary { cursor: pointer; padding: 18px 0; font-weight: 600; color: var(--pds-ink); }
.pdd-content-section details > p, .pdd-faq__answer { padding: 0 0 18px; }
.pdd-faq__answer p:last-child { margin-bottom: 0; }

/* Vertrauens-Leiste (partials/eeat-trust.html) */
.pdd-trust__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 24px; border-top: 1px solid var(--pds-stone); }
.pdd-trust__item { display: flex; flex-direction: column; gap: 4px; padding-top: 18px; }
.pdd-trust__item strong { color: var(--pds-ink); font-size: var(--pds-t-md); font-weight: 600; }
.pdd-trust__item span { color: var(--pds-ink-2); font-size: var(--pds-t-sm); line-height: 1.5; }

/* Abschluss-CTA (Abschnitt, nicht der alte Pill-Stil .pdd-cta aus style.css) */
section.pdd-cta { display: block; margin: 0; padding: clamp(48px, 7vw, 88px) 0; border-radius: 0; background: linear-gradient(180deg, var(--pds-ivory) 0%, var(--pds-sky) 100%); color: var(--pds-ink-2); font-size: inherit; font-weight: inherit; box-shadow: none; width: auto; min-height: 0; }
.pdd-cta__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--pds-s-5); }
.pdd-cta__text { flex: 1 1 420px; }
.pdd-cta__text h2, section.pdd-cta h2 { margin: 0 0 8px; font-size: var(--pds-t-xl); color: var(--pds-ink); text-wrap: balance; }
.pdd-cta__text p, section.pdd-cta p { margin: 0; color: var(--pds-ink-2); line-height: 1.6; max-width: 60ch; }
.pdd-cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.pdd-cta-block { margin: var(--pds-s-7) 0 0; padding: var(--pds-s-6); border-radius: var(--pds-r-card); background: linear-gradient(160deg, var(--pds-sky) 0%, var(--pds-paper) 100%); border: 1px solid var(--pds-line); color: var(--pds-ink-2); }
.pdd-cta-block h2 { margin: 0 0 8px; color: var(--pds-ink); }
.pdd-cta-block p { color: var(--pds-ink-2); }

@media (max-width: 600px) {
  .pdd-cta__actions { width: 100%; }
  .pdd-cta__actions :is(.pdd-btn, a) { flex: 1 1 100%; }
  .pdd-internal-links, .pdd-region-links { padding: var(--pds-s-4); }
}
