/* Sieben Fragen an dein Leben. Only what ../styles.css and ../seite.css do not give already: paper, fonts, header, menu,
   footer, pen line and the .cta button are the ones of the other pages. One question per view (sieben-fragen.js);
   without JavaScript the opening, the seven questions and the close stay one readable page. */

.sf-row { --pt: clamp(28px, 6.5vh, 80px); padding-top: var(--pt); padding-bottom: clamp(72px, 10vh, 120px); }
.sf-row .sf-photo { --t: var(--pt); }
.sf-wait #sf > .sf-view:not(#sf-start) { display: none; }

/* opening */
.sf-eyebrow { margin-bottom: .9em; }
.sf .sf-title { margin-top: 0; max-width: 14em; font: 400 clamp(2.125rem, 2.6vw + 1.2rem, 4.25rem) / 1.07 var(--serif); letter-spacing: -.014em; color: var(--text); text-wrap: balance; }
.sf .sf-lead { margin-top: .8em; }
.sf .sf-sign { margin-top: 1em; font: italic 400 clamp(1.375rem, .6vw + 1rem, 1.6875rem) / 1.3 var(--serif); color: var(--ink); }

/* one question */
.sf-q fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.sf-q legend { max-width: 100%; padding: 0; }
.sf .sf-q h2 { margin-top: .45em; font: 400 clamp(1.75rem, 1.1vw + 1.3rem, 2.625rem) / 1.16 var(--serif); letter-spacing: -.008em; }
.sf-num { margin-right: .25em; font-style: italic; color: var(--ink); }
.sf .sf-opts { margin-top: 1.3em; border-top: 1px solid var(--hair); }
.sf .sf-opts li { padding: 0; border-bottom: 1px solid var(--hair); }
.sf .sf-opts li::before, .sf .sf-ov li::before { content: none; }
.sf-opt { display: flex; align-items: center; gap: .9em; min-height: 48px; padding: .55em .4em; line-height: 1.4; cursor: pointer; -webkit-tap-highlight-color: rgba(34, 48, 73, .12); }
.sf-opt input { flex: none; width: 1.2rem; height: 1.2rem; margin: 0; accent-color: var(--ink); cursor: pointer; }
.sf-opt span { display: block; min-width: 0; }
.sf-opt span::first-letter { text-transform: uppercase; }
.sf-opt:has(input:checked) { color: var(--ink); background: rgba(34, 48, 73, .05); }
@media (hover: hover) { .sf-opt:hover { background: rgba(34, 48, 73, .04); } }
@supports selector(:has(*)) {
  .sf-opt input:focus-visible { outline: none; }
  .sf-opt:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 2px; }
}

/* Zurück · Überspringen · Weiter */
.sf-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 24px; margin-top: 1.6em; }
.sf-btn { min-height: 44px; padding: 0 2px; background: none; border: 0; border-radius: 2px; cursor: pointer; font: 500 1rem / 1.3 var(--sans); letter-spacing: .01em; color: var(--text-soft); -webkit-tap-highlight-color: rgba(34, 48, 73, .12); }
.sf-back::before { content: ""; display: inline-block; width: .95em; height: .6em; margin-right: .35em; vertical-align: -.02em; background: currentColor; -webkit-mask: var(--arrow) center / contain no-repeat; mask: var(--arrow) center / contain no-repeat; transform: scaleX(-1); }
.sf-skip { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
@media (hover: hover) { .sf-btn:hover { color: var(--text); } .sf-back:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; } }
.sf button.cta { background: none; border: 0; border-radius: 0; cursor: pointer; text-align: left; }
.sf-nav .cta { margin-left: auto; }

/* close */
.sf .sf-first .cta-row { margin-top: .5em; }
.sf-impuls { margin-top: 1.4em; }
.sf .sf-ov-box > summary { min-height: 44px; }
.sf .sf-ov { margin-top: .3em; }
.sf .sf-ov li { padding: .75em 0; border-top: 1px solid var(--hair); }
.sf .sf-ov p + p { margin-top: .2em; }
.sf-ov-q { font-style: italic; color: var(--ink); }
.sf-more { margin-top: 2.2em; }
.sf .sf-links { margin-top: .2em; }
.sf .sf-links a { display: inline-block; padding: 8px 0; }

/* restrained change between views; none in the calm view or with reduced motion */
.sf--moved .sf-view { animation: sf-in .5s cubic-bezier(.2, .7, .3, 1) both; }
@keyframes sf-in { from { opacity: 0; transform: translateY(6px); } }
.calm .sf--moved .sf-view { animation: none; }
@media (prefers-reduced-motion: reduce) { .sf--moved .sf-view { animation: none; } }

@media (max-width: 56.1875em) {
  .sf-row .portrait-col { margin: 0 0 clamp(22px, 4vh, 32px); }
  .sf-row .print { width: min(56%, 220px); }
  .sf .sf-title { font-size: clamp(1.875rem, 8vw, 3rem); }
}
@media (max-width: 18.75em) {
  .sf .sf-title, .sf .sf-q h2 { hyphens: auto; -webkit-hyphens: auto; }
}
