/* Heimatblick: the site's own rules, on the look's kit (look.css). Swiss: one grotesque, black on white, the
   Messtischblatt's sepia only inside the product's own screens, the accent as the one mark per screen. */
:root {
  --paper: #f6eede;
  --sepia: #342214;
  --sat: #2f3b2a;
  --t-size: 1.0625rem;
  --h1: clamp(2.6rem, 7.4vw, 6.2rem);
}
::selection { background: var(--accent); color: #fff; }
html { scroll-padding-top: 80px; }
body { caret-color: var(--accent); }
.num, .tab { font-family: var(--text); font-variant-numeric: tabular-nums; }

/* the top bar */
.top-wrap { position: sticky; top: 0; z-index: 20; background: #fff; }
.top { min-height: 64px; }
.top .brand img { width: 36px; height: 36px; border-radius: 0; }
.top nav, .top .acts { display: flex; align-items: center; gap: .5rem; }
.top .btn { min-height: 44px; padding: 0 1rem; font-size: .95rem; }
.top .link { color: var(--ink); text-decoration: none; font-weight: 600; padding: .6rem .7rem; min-height: 44px; display: inline-flex; align-items: center; }
.top .link:hover { text-decoration: underline; }
.top .link[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 3px; }

/* the hero: a compact centred headline over the product's full-width screen */
.hero { padding-block: clamp(1.4rem, 4vw, 3rem) 0; }
.hero-head { text-align: center; max-width: 60rem; margin: 0 auto clamp(1.2rem, 3vw, 2rem); }
.hero h1 { margin-bottom: .25em; }
.hero .sub { font-size: clamp(1.02rem, 1.6vw, 1.22rem); max-width: 46rem; margin: 0 auto 1.2rem; color: var(--ink); }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .6rem 1.1rem; }
.cta-row .note { font-size: .95rem; color: var(--ink-2); }
.hero h1 { font-size: clamp(2.4rem, 5.4vw, 4.4rem); }
.hero .panel { max-height: min(600px, max(420px, calc(100svh - 330px))); position: relative; border: 2px solid var(--ink); }
.hero .panel.fade { -webkit-mask-image: linear-gradient(#000 78%, transparent); mask-image: linear-gradient(#000 78%, transparent); }

/* the product's screens */
.panel > .bar { font-family: var(--text); color: var(--ink); gap: .5rem; flex-wrap: wrap; background: #fff; }
.qform { display: grid; grid-template-columns: 1fr; gap: .5rem; width: 100%; }
.qform label { font-size: .85rem; margin: 0 0 .2rem; }
.qform .go { align-self: end; }
@media (min-width: 720px) { .qform { grid-template-columns: 1.4fr 1fr auto; align-items: end; } }
.result { display: grid; gap: var(--gap); grid-template-columns: 1fr; }
@media (min-width: 900px) { .result { grid-template-columns: 5fr 7fr; } }
.match .was { font-size: .95rem; color: var(--ink-2); margin: 0 0 .2rem; }
.match .now { font: 700 clamp(2.2rem, 5vw, 3.6rem)/.95 var(--display); letter-spacing: -0.04em; margin: 0 0 .5rem; }
.match .where { margin: 0 0 .8rem; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: .35rem 1rem; margin: 0; font-size: .95rem; }
.facts dt { color: var(--ink-2); }
.facts dd { margin: 0; font-weight: 600; }
.mark { color: var(--accent); }

/* the then-and-now figure (drawn) and the live slider */
.swipe-fig { position: relative; margin: 0; background: var(--paper); aspect-ratio: 16 / 10; overflow: hidden; }
.swipe-fig svg { width: 100%; height: 100%; }
.tag { position: absolute; top: .7rem; padding: .3rem .6rem; background: #fff; color: var(--ink); font: 700 .85rem/1 var(--text); z-index: 3; }
.tag.l { left: .7rem; }
.tag.r { right: .7rem; }
.swipe { position: relative; height: clamp(360px, 62vh, 640px); background: var(--paper); overflow: hidden; user-select: none; touch-action: pan-y; }
.swipe .map { position: absolute; inset: 0; }
.swipe .then { z-index: 1; }
.swipe .handle { position: absolute; top: 0; bottom: 0; width: 44px; margin-left: -22px; z-index: 4; cursor: ew-resize; display: flex; justify-content: center; touch-action: none; }
.swipe .handle::before { content: ""; width: 3px; background: #fff; box-shadow: 0 0 0 1px rgb(0 0 0 / .35); }
.swipe .handle span { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 700; box-shadow: 0 2px 10px rgb(0 0 0 / .3); }
.swipe .handle:focus-visible span { outline: 3px solid #fff; outline-offset: 2px; }
.swipe .wait { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 2rem; z-index: 5; background: var(--paper); color: var(--sepia); }
.pin { width: 22px; height: 22px; border-radius: 50%; background: var(--accent); border: 3px solid #fff; box-shadow: 0 1px 6px rgb(0 0 0 / .45); }
.swipe .maplibregl-ctrl-attrib, .minimap .maplibregl-ctrl-attrib { font-size: 12.5px; }
.swipe .maplibregl-ctrl-group button, .minimap .maplibregl-ctrl-group button { width: 44px; height: 44px; }
.swipe .maplibregl-ctrl-attrib-button, .minimap .maplibregl-ctrl-attrib-button { width: 44px; height: 44px; }
#page { min-height: calc(100vh - 140px); }
.chron sup a { display: inline-block; min-width: 1.4em; text-align: center; }
.minimap { height: 300px; background: #dfe3d8; }

/* sections */
.sec-head { max-width: 46rem; margin-bottom: clamp(1.5rem, 4vw, 2.6rem); }
.sec-head p { font-size: 1.1rem; }
.bg2 { background: var(--bg-2); }

/* #what: the five Olbersdorfs */
.dups { display: grid; gap: var(--gap); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .dups { grid-template-columns: 5fr 7fr; } }
.dups .big-num { color: var(--accent); }
.duplist { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.duplist li { display: grid; grid-template-columns: 1fr auto; gap: .2rem 1rem; padding: .9rem 0; border-bottom: 1px solid #cfcfcf; }
.duplist .n { font: 700 1.35rem/1.1 var(--display); letter-spacing: -0.02em; }
.duplist .k { color: var(--ink-2); font-size: .95rem; grid-column: 1; }
.duplist .c { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-weight: 600; font-size: .95rem; }
.duplist li.pick { background: var(--tint); margin-inline: -.6rem; padding-inline: .6rem; }

/* #how */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--gap); grid-template-columns: 1fr; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { border-top: 2px solid var(--ink); padding-top: 1.1rem; }
.steps h3 { font-size: 1.45rem; margin: .9rem 0 .4rem; }
.steps p { margin: 0; }

/* #price with #faq */
.price-grid { display: grid; gap: clamp(2rem, 5vw, 4rem); grid-template-columns: 1fr; }
@media (min-width: 900px) { .price-grid { grid-template-columns: 5fr 7fr; } }
.plan { border-top: 6px solid var(--accent); padding-top: 1.2rem; }
.plan .amount { font: 700 clamp(4.5rem, 11vw, 8rem)/.85 var(--display); letter-spacing: -0.06em; margin: 0; }
.plan .per { font-size: 1.2rem; font-weight: 600; margin: .5rem 0 1rem; }
.plan ul { list-style: none; padding: 0; margin: 0 0 1.4rem; display: grid; gap: .5rem; }
.plan li { display: flex; gap: .55rem; align-items: flex-start; }
.plan li .i { color: var(--accent); margin-top: .15em; }
.faq details { border-top: 1px solid var(--ink); padding: .2rem 0; }
.faq details:last-of-type { border-bottom: 1px solid var(--ink); }
.faq summary { cursor: pointer; font-weight: 700; font-size: 1.1rem; padding: .85rem 2rem .85rem 0; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .2rem; top: .7rem; font-size: 1.4rem; font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 1rem; }
.faq .more { display: inline-block; margin-top: 1rem; font-weight: 700; }

/* the band */
.band { background: var(--ink); color: #fff; padding-block: clamp(3rem, 8vw, 5.5rem); }
.band h2 { color: #fff; margin: 0 0 1.2rem; max-width: 18ch; }
.band .row { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1.2rem; }

/* the footer */
footer .foot { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; }
footer .name { font: 700 1.3rem/1 var(--display); color: var(--ink); letter-spacing: -0.02em; display: flex; align-items: center; gap: .5rem; }
footer .name img { width: 28px; height: 28px; }
footer a { color: var(--ink); }
.syng-legal-links a { color: var(--ink); }

/* questions page */
.qa { display: grid; gap: clamp(2rem, 5vw, 4rem); grid-template-columns: 1fr; }
@media (min-width: 900px) { .qa { grid-template-columns: 4fr 8fr; } }
.prose h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-top: 2.2rem; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .4rem; max-width: 68ch; }

/* app pages */
.app-main { padding-block: clamp(1.5rem, 4vw, 3rem) 4rem; min-height: 60vh; }
.app-main h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
.auth { width: min(100% - 2 * var(--gutter), 460px); margin: clamp(2rem, 6vw, 4rem) auto; }
.auth h1 { font-size: clamp(2rem, 5vw, 3rem); }
.auth .btn { width: 100%; }
.auth .alt { margin-top: 1.2rem; }
.msg { padding: .8rem 1rem; background: var(--tint); margin: 0 0 1rem; }
.msg.bad { background: #fbe9e7; color: var(--bad); font-weight: 600; }
.msg.good { background: #e6f2ec; color: var(--good); font-weight: 600; }
.hint { font-size: .92rem; color: var(--ink-2); }
.results { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.results > li { padding: 1.1rem 0; border-bottom: 1px solid #cfcfcf; display: grid; gap: .6rem 1.2rem; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 720px) { .results > li { grid-template-columns: 1fr auto; } }
.results .now { font: 700 1.7rem/1.05 var(--display); letter-spacing: -0.03em; margin: 0; }
.results .was, .results .adm { margin: 0; }
.results .adm { color: var(--ink-2); font-size: .95rem; }
.results li.on { background: var(--tint); margin-inline: -.75rem; padding-inline: .75rem; }
.chosen { display: grid; gap: var(--gap); grid-template-columns: 1fr; margin-top: 1.5rem; }
@media (min-width: 900px) { .chosen { grid-template-columns: 7fr 5fr; } }
.two { display: grid; gap: var(--gap); grid-template-columns: 1fr; }
@media (min-width: 900px) { .two { grid-template-columns: 8fr 4fr; } }
.mypages { list-style: none; padding: 0; margin: 0; border-top: 2px solid var(--ink); }
.mypages li { border-bottom: 1px solid #cfcfcf; }
.mypages a { display: flex; justify-content: space-between; gap: 1rem; padding: .9rem 0; color: var(--ink); text-decoration: none; }
.mypages a:hover strong { text-decoration: underline; }
.mypages small { color: var(--ink-2); }
.empty { padding: 1.4rem 0; color: var(--ink-2); display: flex; gap: .6rem; align-items: center; }

/* the family page */
.fam-head { display: grid; gap: 1rem var(--gap); grid-template-columns: 1fr; align-items: end; margin-bottom: 1.4rem; }
@media (min-width: 900px) { .fam-head { grid-template-columns: 7fr 5fr; } }
.fam-head h1 { margin: 0; }
.fam-head .today { font-size: clamp(1.3rem, 2.6vw, 1.8rem); font-weight: 600; margin: .3rem 0 0; }
.tools { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0 0; }
.tools .btn { min-height: 44px; font-size: .95rem; }
.chron p { font-size: 1.12rem; line-height: 1.65; }
.chron sup a { text-decoration: none; font-weight: 700; padding: 0 .1em; }
.notes { font-size: .9rem; color: var(--ink-2); padding-left: 1.3rem; }
.notes li { margin-bottom: .3rem; }
.memories { list-style: none; padding: 0; margin: 0 0 1.5rem; border-top: 2px solid var(--ink); }
.memories li { padding: 1rem 0; border-bottom: 1px solid #cfcfcf; }
.memories .who { font-weight: 700; margin: 0 0 .3rem; }
.memories .who small { font-weight: 400; color: var(--ink-2); }
.memories img { max-width: min(100%, 420px); height: auto; margin-top: .6rem; }
.memories p { white-space: pre-wrap; margin: 0; }
.edsel { display: flex; gap: .5rem; align-items: end; flex-wrap: wrap; margin-top: 1rem; }
.edsel select { width: auto; min-width: 12rem; }
.account dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .5rem 1.4rem; }
.account dt { color: var(--ink-2); }
.account dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; min-width: 0; }
.facts dd { overflow-wrap: anywhere; min-width: 0; }
.account section { padding-block: 1.6rem; border-top: 2px solid var(--ink); }
.account h2 { font-size: 1.5rem; }
.row-btns { display: flex; flex-wrap: wrap; gap: .6rem; }
.btn.danger { background: var(--bad); }
.btn.small { min-height: 40px; padding: 0 .9rem; font-size: .92rem; }
.arrive > * { animation: arrive .55s cubic-bezier(.22, 1, .36, 1) both; }
.arrive > *:nth-child(2) { animation-delay: .06s; } .arrive > *:nth-child(3) { animation-delay: .12s; }
.arrive > *:nth-child(4) { animation-delay: .18s; } .arrive > *:nth-child(5) { animation-delay: .24s; }
.arrive > *:nth-child(n+6) { animation-delay: .3s; }
@keyframes arrive { from { opacity: 0; transform: translateY(16px); } }
.regions { padding-block: 1.1rem; font-weight: 600; font-size: 1.05rem; }
.regions > div > span { white-space: nowrap; }
.regions > div > span::after { content: "·"; margin-left: var(--gap); color: var(--accent); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
p, li, dd { text-wrap: pretty; }
.top .brand { min-height: 44px; }
footer a, .faq .more, .alt a, .hint a { display: inline-block; padding-block: .7rem; }
.big-num { margin: 0 0 .15em; }
.steps h3 { display: flex; align-items: center; gap: .6rem; }
.steps h3 .i { color: var(--accent); width: 1.5rem; height: 1.5rem; }
@media (max-width: 560px) {
  .top .hide-s { display: none; }
  .hero .cta-row .btn { width: 100%; }
  .top { gap: .4rem; }
  .top .brand { font-size: 1.02rem; gap: .4em; }
  .top .brand img { width: 30px; height: 30px; }
  .top .acts { gap: .2rem; }
  .top .link { padding: .5rem .45rem; font-size: .95rem; }
  .top .btn { padding: 0 .75rem; font-size: .9rem; }
}
@media print {
  .top-wrap, footer, .tools, .no-print { display: none !important; }
}
