/* Subpages: legal texts, blog, guide, Buchdetails, Starten, Team fragen, Kinderfotos, Danke, 404.
   Styleguide 2026: dark ground, white titles, light grey italic body text, gold only for links and highlights. */

.page { max-width: 78ch; margin-inline: auto; padding: 140px clamp(16px, 4vw, 40px) clamp(72px, 9vw, 120px); }
.page.wide { max-width: var(--container); }
.page > .streifen { margin-bottom: 22px; }
.page h1 { font-size: clamp(2rem, 1.3rem + 2.4vw, 3.2rem); margin-bottom: 18px; }
.page h2 { font-size: var(--type-h2); margin: 44px 0 14px; }
.page h3 { margin: 28px 0 10px; }
/* Long German compounds must not push the page wider than a phone. The uppercase h1 splits long words
   with a hyphen at a syllable ("MANNSCHAFTS-BUCH", "FUSSBALLMANN-SCHAFT"); only words of 15 letters or more,
   which do not fit on a phone line. At least 4 letters before and after the hyphen: with 5, "-BUCH" was not
   allowed and the word broke without a hyphen ("MANNSCHAFTSBUC / H"). Measured on all topic pages at 375 px.
   h2 and h3 only break a word that is wider than the whole line. */
.page :is(h1, h2, h3) { overflow-wrap: break-word; }
.page h1 { -webkit-hyphens: auto; hyphens: auto; hyphenate-limit-chars: 15 4 4; }
.page p, .page li { color: var(--color-text); }
.page li { font-style: italic; }
.page a:not(.btn) { color: var(--color-accent-text); font-weight: 700; text-underline-offset: 3px; }
.page ul:not([class]) { list-style: none; margin: 14px 0 18px; }
.page ul:not([class]) li { padding: 4px 0 4px 22px; position: relative; }
.page ul:not([class]) li::before { content: ""; position: absolute; left: 0; top: 14px; width: 8px; height: 8px; border-radius: 50%; background: var(--dunkelrot); }
.page .lead { font-size: 1.15rem; margin-bottom: 28px; }
.page .crumb { font-weight: 700; font-style: normal; margin-bottom: 12px; }
.page .crumb a { text-decoration: none; }

/* Articles */
.article-img { width: 100%; height: auto; margin: 8px 0 36px; border-radius: var(--radius); }
.article-body p { font-size: 1.1rem; line-height: 1.75; }
.article-body h2 { margin-top: 48px; }
.article-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 44px 0 20px; }
.page .lead + .article-cta { margin-top: 0; }
.article-back a { color: var(--color-muted) !important; font-weight: 600 !important; }
.idea { background: var(--color-surface); border: 1px solid var(--color-line); border-radius: var(--radius); padding: 20px 22px; margin: 14px 0; }
.idea h3 { margin: 0 0 6px; color: var(--color-heading); }
.idea p { margin: 0; font-size: 1rem; }
.idea--flashbooks { border-color: var(--dunkelrot); background: linear-gradient(120deg, color-mix(in srgb, var(--dunkelrot) 22%, var(--color-surface)), var(--color-surface)); }

/* Blog overview */
.post-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 36px; }
.post-card { background: var(--color-surface); border: 1px solid var(--color-line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.post-card:first-child { grid-column: 1 / -1; display: grid; grid-template-columns: 1.2fr 1fr; }
.post-card > a { display: block; overflow: hidden; }
.post-card img { width: 100%; height: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform 500ms var(--ease); }
@media (hover: hover) and (pointer: fine) { .post-card:hover img { transform: scale(1.03); } }
.post-card-body { padding: 24px 24px 28px; }
.page .post-card h2 { font-size: 1.2rem; margin: 6px 0 10px; }
.page .post-card h2 a { color: var(--color-heading); text-decoration: none; }
.page .post-date { font-size: .88rem; font-weight: 700; font-style: normal; color: var(--color-accent-text); margin: 0; }
@media (max-width: 767px) { .post-grid { grid-template-columns: 1fr; } .post-card:first-child { display: flex; } }

/* Buchdetails */
.page ul.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 26px 0 10px; }
.facts li { background: var(--color-surface); border: 1px solid var(--color-line); border-radius: var(--radius); padding: 20px 22px 20px 58px; position: relative; color: var(--color-text); }
.facts li::before { content: ""; position: absolute; left: 20px; top: 21px; width: 22px; height: 22px; border-radius: 50%; background: var(--dunkelrot); }
.facts li::after { content: ""; position: absolute; left: 26px; top: 27px; width: 9px; height: 5px; border-left: 2px solid var(--weiss); border-bottom: 2px solid var(--weiss); transform: rotate(-45deg); }
.vt { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; margin: 72px 0; }
.vt:nth-of-type(even) .vt-media { order: 2; }
.vt-media video { width: 100%; height: auto; aspect-ratio: 16 / 9; background: var(--dunkelgrau); border-radius: var(--radius); }
.page .vt h2 { margin-top: 0; }
.vt-text p { margin-bottom: 24px; }
@media (max-width: 900px) { .page ul.facts { grid-template-columns: 1fr; } .vt { grid-template-columns: 1fr; margin: 48px 0; } .vt:nth-of-type(even) .vt-media { order: 0; } }

/* Starten (Fillout) */
.fillout-wrap { min-height: 500px; background: var(--color-surface); border-radius: var(--radius); padding: 8px; overflow: hidden; }

/* Team fragen: message to copy or share */
.message { background: var(--weiss); color: var(--dunkelgrau); border: 1px solid var(--color-line); border-radius: var(--radius); padding: 22px 24px; margin: 24px 0 16px; }
.message label { display: block; font-weight: 700; color: var(--dunkelrot); margin-bottom: 10px; }
.message textarea { width: 100%; min-height: 220px; border: 0; background: transparent; color: var(--dunkelgrau); font: inherit; font-size: 1.05rem; line-height: 1.6; resize: vertical; }
.message textarea:focus { outline: 2px solid var(--dunkelrot); outline-offset: 4px; }
.share-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 28px; }
.copy-status { font-style: normal; font-weight: 700; color: var(--color-accent-text); margin: 0; }
.howto { counter-reset: s; display: grid; gap: 14px; margin: 24px 0; }
.howto li { counter-increment: s; position: relative; padding: 16px 18px 16px 64px; background: var(--color-surface); border-radius: var(--radius); font-style: italic; }
.howto li::before { content: counter(s); position: absolute; left: 18px; top: 50%; transform: translateY(-50%); font-family: var(--font-accent); font-weight: 400; font-style: normal; font-size: 1.8rem; color: var(--color-accent-text); }

/* ---- Topic pages (docs/seo-seiten.md): blocks of the sample pages freundebuch-fussball.html,
   abschlussbuch-grundschule.html and ratgeber-abschiedsgeschenk-trainer.html ---- */

/* Note for visitors of the English version (data-i18n-foreign hidden, shown outside German) */
.page .hinweis { border-left: 4px solid var(--dunkelrot); padding-left: 14px; font-size: 1rem; }

/* Icon lists inside the text column (questions, extra pages) */
.page .icon-list { margin: 16px 0 22px; }
.page .icon-list li { padding-block: 6px; }

/* Sample spread: two pages of 1000 x 714 side by side like an open book from 768 px, stacked below.
   From 1024 px the figure is wider than the text column (centred on it). */
.spread { margin: 36px 0 8px; }
.spread__pages { display: grid; gap: 12px; }
.spread__pages img { width: 100%; height: auto; aspect-ratio: 1000 / 714; object-fit: cover; background: var(--color-surface); border-radius: var(--radius-s); }
.spread figcaption { margin-top: 12px; font-size: .95rem; font-style: italic; color: var(--color-muted); }
/* In guides the first paragraph follows the figure directly: same gap as below .article-img */
.article .spread { margin-bottom: 36px; }
@media (min-width: 768px) {
  .spread__pages { grid-template-columns: 1fr 1fr; gap: 0; position: relative; border-radius: var(--radius-s); box-shadow: 0 26px 50px -26px rgba(0, 0, 0, .75); }
  .spread__pages img:first-child { border-radius: var(--radius-s) 0 0 var(--radius-s); }
  .spread__pages img:last-child { border-radius: 0 var(--radius-s) var(--radius-s) 0; }
  /* fold in the middle of the book */
  .spread__pages::after { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 56px; transform: translateX(-50%); pointer-events: none; background: linear-gradient(90deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, .16) 42%, rgba(0, 0, 0, .3) 50%, rgba(0, 0, 0, .16) 58%, rgba(0, 0, 0, 0)); }
}
@media (min-width: 1024px) {
  .spread { margin-inline: calc((min(100vw - 80px, 1080px) - 100%) / -2); }
}

/* FAQ on subpages: same details/summary with plus icon as on the start page, one column */
.page .faq__list { margin: 18px 0 8px; border-top: 1px solid var(--color-line); }
.page .faq__list details { border-bottom: 1px solid var(--color-line); }
.page .faq__list summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 18px; min-height: 44px; padding: 18px 0; font-weight: 700; font-size: 1.08rem; line-height: 1.45; color: var(--color-heading); }
.page .faq__list summary::-webkit-details-marker { display: none; }
.page .faq__list summary svg { width: 22px; height: 22px; flex-shrink: 0; color: var(--color-accent-text); transition: transform 220ms var(--ease); }
.page .faq__list details[open] summary svg { transform: rotate(45deg); }
.page .faq__a { padding-bottom: 20px; }
@media (hover: hover) and (pointer: fine) { .page .faq__list summary:hover { color: var(--color-accent-text); } }

/* Link lists: "Passt auch" and the hub lists (one link and one sentence per entry, grouped by h2 or h3) */
.page ul.linklist { display: grid; column-gap: 32px; margin: 16px 0 24px; }
@media (min-width: 768px) { .page ul.linklist { grid-template-columns: 1fr 1fr; } }
.page .linklist li { padding: 6px 0 14px; border-top: 1px solid var(--color-line); font-style: normal; }
.page .linklist a { display: inline-flex; align-items: center; min-height: 44px; font-size: 1.05rem; text-decoration-thickness: 2px; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); }
@media (hover: hover) and (pointer: fine) { .page .linklist a:hover { text-decoration-color: currentColor; } }
.page .linklist p { margin: 0; font-size: 1rem; color: var(--color-muted); }

/* Price block on product pages: the three tiers as a list, no cards */
.page dl.preise { display: grid; grid-template-columns: minmax(0, 1fr) auto; max-width: 520px; margin: 20px 0 22px; border-top: 1px solid var(--color-line); }
.preise dt, .preise dd { margin: 0; padding: 12px 0; border-bottom: 1px solid var(--color-line); display: flex; align-items: center; }
.preise dt { font-weight: 700; color: var(--color-heading); }
.preise dd { justify-content: flex-end; padding-left: 20px; font-family: var(--font-accent); font-size: 1.6rem; line-height: 1.2; letter-spacing: .01em; font-synthesis: none; color: var(--color-accent-text); }

/* Danke */
.page .form-box { background: var(--color-surface); border: 1px solid var(--color-line); border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); }
.success-eye { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.success-eline { width: 34px; height: 3px; background: var(--dunkelrot); }
.success-eye span { font-weight: 700; color: var(--color-accent-text); }
.page .success-h { font-size: 1.6rem; text-transform: none; margin: 0 0 18px; }
.success-p strong, .success-sign strong { color: var(--color-accent-text); }
.success-steps { background: var(--color-bg); border-radius: var(--radius-s); padding: 18px 20px; margin: 20px 0; }
.success-steps-lbl { font-weight: 700; color: var(--color-accent-text); margin-bottom: 8px; }
.success-step { display: flex; gap: 10px; padding-block: 4px; color: var(--color-heading); }
.success-num { color: var(--color-accent-text); font-weight: 800; }
