/* Wielervrienden – stijl voor alle pagina's.
   Bouwt voort op de huidige site: geel, donkerblauw en lichtblauw, Open Sans,
   een profielkolom links en tabellen met een blauwe kop en crèmekleurige rijen. */

:root {
    box-sizing: border-box;
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    --yellow: #F6B414;
    --blue: #1F7EA3; /* donkere balk, tabelkoppen */
    --blue-light: #6DBDE0; /* tabbalk */
    --link: #1B7299;
    --cream: #FCF2DA; /* gestreepte rijen */
    --ink: #222;
    --muted: #6B6B6B;
    --line: #DCDCDC;
    --bg: #FFFFFF;
    --surface: #FFFFFF;
    --soft: #F4F7F9;
    --ok: #2E9E4F;
    --sea: #D3E6EF;
    --unridden: #ECEFF1;
    --yellow-soft: #FFF4D6;
    --blue-tint: #E7F3F8;
    --blue-mid: #1F7EA3;
    --font: "Open Sans", "Segoe UI", Arial, sans-serif;
    --head: var(--font);
    --body: var(--font);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --blue: #1A6585;
        --blue-light: #2D7FA3;
        --link: #7CC4E4;
        --cream: #2A2618;
        --ink: #E6E6E6;
        --muted: #A3A3A3;
        --line: #3A3F44;
        --bg: #16191C;
        --surface: #1E2226;
        --soft: #23282D;
        --sea: #12303D;
        --unridden: #2C3237;
        --yellow-soft: #3A3115;
        --blue-tint: #1D3340;
        --blue-mid: #4FA3C8;
    }
}

:root[data-theme="dark"] {
    --blue: #1A6585;
    --blue-light: #2D7FA3;
    --link: #7CC4E4;
    --cream: #2A2618;
    --ink: #E6E6E6;
    --muted: #A3A3A3;
    --line: #3A3F44;
    --bg: #16191C;
    --surface: #1E2226;
    --soft: #23282D;
    --sea: #12303D;
    --unridden: #2C3237;
    --yellow-soft: #3A3115;
    --blue-tint: #1D3340;
    --blue-mid: #4FA3C8;
}

*, *::before, *::after {
    box-sizing: inherit
}

html {
    scroll-padding-top: env(safe-area-inset-top, 0px)
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font: 15px/1.6 var(--font)
}

a {
    color: var(--link)
}

:focus-visible {
    outline: 2px solid var(--yellow);
    outline-offset: 2px
}

.sr {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0)
}

h2 {
    font-size: 22px;
    line-height: 1.3;
    margin: 0 0 4px;
    font-weight: 700
}

h3 {
    font-size: 17px;
    margin: 0 0 6px;
    font-weight: 700
}

.lead {
    margin: 0 0 20px;
    color: var(--ink)
}

.sub {
    color: var(--muted);
    font-size: 14px;
    margin: 0
}

.demo {
    font-size: 13px;
    color: var(--muted);
    margin-top: 22px
}

body.locked {
    overflow: hidden
}

/* ---------- Gele balk (alleen gratis) ---------- */
.probar {
    background: var(--yellow);
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    padding: 9px 12px
}

.probar a {
    color: #222;
    text-decoration: none
}

.probar u {
    text-underline-offset: 2px
}

/* ---------- Kop ---------- */
.top {
    position: sticky;
    top: env(safe-area-inset-top, 0px);
    z-index: 10
}

.top-inner {
    background: var(--blue);
    color: #fff;
    display: grid;
    grid-template-columns:1fr auto 1fr;
    align-items: center;
    height: 48px;
    padding: 0 12px
}

.rides-link {
    color: #fff;
    font-size: 12px;
    justify-self: start
}

.brand {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px
}

.brand span {
    display: none
}

.burger {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 10px;
    background: none;
    border: 0;
    color: #fff;
    font: 700 13px var(--font);
    cursor: pointer;
    padding: 6px 4px
}

.burger-box {
    width: 20px;
    height: 14px;
    position: relative;
    display: block
}

.burger-box i {
    position: absolute;
    left: 0;
    width: 20px;
    height: 2px;
    background: currentColor;
    transition: transform .2s, opacity .2s
}

.burger-box i:nth-child(1) {
    top: 0
}

.burger-box i:nth-child(2) {
    top: 6px
}

.burger-box i:nth-child(3) {
    top: 12px
}

.burger[aria-expanded="true"] .burger-box i:nth-child(1) {
    transform: translateY(6px) rotate(45deg)
}

.burger[aria-expanded="true"] .burger-box i:nth-child(2) {
    opacity: 0
}

.burger[aria-expanded="true"] .burger-box i:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg)
}

nav.main {
    background: var(--blue-light)
}

.main-inner {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none
}

.main-inner::-webkit-scrollbar {
    display: none
}

nav.main a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    padding: 10px 12px;
    white-space: nowrap
}

nav.main a:hover {
    background: rgba(0, 0, 0, .06)
}

nav.main a[aria-current="page"] {
    background: var(--blue)
}

.protag {
    display: inline-block;
    background: var(--yellow);
    color: #222;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    padding: 3px 5px;
    border-radius: 3px;
    margin-left: 6px;
    vertical-align: 2px;
    text-transform: uppercase;
    letter-spacing: .03em
}

/* ---------- Pagina met profielkolom ---------- */
.page {
    display: grid;
    grid-template-columns:240px minmax(0, 1fr);
    min-height: 70vh
}

.profile {
    border-right: 1px solid var(--line);
    padding: 16px 14px 30px
}

main {
    padding: 22px 24px 50px;
    min-width: 0;
    max-width: 1240px
}

.view {
    display: none
}

.view.active {
    display: block
}

.who-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px
}

.avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #C8D7DE;
    color: #1F4E63;
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 18px;
    flex: none;
    position: relative
}

html[data-plan="pro"] .profile .avatar {
    box-shadow: 0 0 0 3px var(--yellow)
}

.pname {
    display: block;
    font-size: 20px;
    line-height: 1.2
}

.pmeta {
    font-size: 13px;
    color: var(--muted)
}

.sub-box {
    border-radius: 4px;
    padding: 10px 12px;
    margin-bottom: 18px;
    font-size: 14px
}

.sub-box p {
    margin: 0 0 4px
}

.sub-title {
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px
}

.sub-title svg {
    width: 15px;
    height: 15px;
    fill: #C98A00
}

.sub-box.is-pro {
    background: var(--yellow-soft);
    border-left: 4px solid var(--yellow)
}

.sub-box.is-pro a {
    font-weight: 700;
    font-size: 13px
}

.sub-box.is-free {
    background: var(--soft);
    border-left: 4px solid #A9B3B8
}

.btn, .sub-box .btn {
    display: inline-block;
    margin-top: 6px;
    background: var(--yellow);
    color: #222;
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    padding: 7px 12px;
    border-radius: 4px
}

.ptitle {
    font-weight: 700;
    font-size: 14px;
    margin: 0
}

.pval {
    margin: 0 0 14px;
    font-weight: 700
}

.pval a {
    text-decoration: none
}

.pstatus {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0 0 18px;
    font-size: 14px
}

.pstatus svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: var(--ok);
    stroke-width: 2.5
}

.plinks {
    list-style: none;
    margin: 0;
    padding: 0
}

.plinks li {
    margin: 0 0 7px
}

.plinks a, .linkbtn {
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    color: var(--link);
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 5px
}

.plinks a:hover, .linkbtn:hover {
    text-decoration: underline
}

/* ---------- Knoppen en velden ---------- */
.primary {
    background: var(--blue);
    color: #fff;
    border: 0;
    border-radius: 4px;
    font: 600 14px var(--font);
    padding: 9px 14px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block
}

.primary:hover {
    background: #196A8A
}

.primary.wide {
    width: 100%
}

.ghost {
    background: var(--surface);
    color: var(--ink);
    border: 1px solid #BFC5C8;
    border-radius: 4px;
    font: 600 13px var(--font);
    padding: 7px 12px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block
}

.ghost:hover {
    border-color: var(--blue)
}

.ghost.red {
    color: #B3261E;
    border-color: #E2B5B1
}

.link {
    background: none;
    border: 0;
    padding: 0;
    color: var(--link);
    font: 600 14px var(--font);
    cursor: pointer;
    text-decoration: underline
}

input[type=search], input[type=text], select {
    font: inherit;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid #BFC5C8;
    border-radius: 4px;
    padding: 7px 10px
}

.check {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 14px;
    cursor: pointer
}

.check input {
    width: 16px;
    height: 16px;
    accent-color: var(--blue)
}

/* Landkeuze, zoals op de huidige site */
.seg {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px
}

.seg button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: 3px;
    padding: 6px 12px;
    font: 600 14px var(--font);
    color: var(--ink);
    cursor: pointer
}

.seg a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: 3px;
    padding: 6px 12px;
    font: 600 14px var(--font);
    color: var(--ink);
    cursor: pointer
}

.seg button[aria-pressed="true"] {
    background: var(--blue);
    border-color: var(--blue);
    color: #fff
}

.seg a[aria-pressed="true"] {
    background: var(--blue);
    border-color: var(--blue);
    color: #fff
}

.flag {
    width: 18px;
    height: 12px;
    display: inline-block;
    border: 1px solid rgba(0, 0, 0, .1)
}

.f-nl {
    background: linear-gradient(#AE1C28 33%, #fff 33% 66%, #21468B 66%)
}

.f-be {
    background: linear-gradient(90deg, #111 33%, #FDDA24 33% 66%, #EF3340 66%)
}

.f-lu {
    background: linear-gradient(#EF3340 33%, #fff 33% 66%, #00A3E0 66%)
}

.lock {
    display: none;
    width: 12px;
    height: 12px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6
}

html[data-plan="free"] .needs-pro {
    opacity: .6
}

html[data-plan="free"] .needs-pro .lock {
    display: inline-block
}

/* ---------- Tabellen ---------- */
.table-wrap {
    overflow-x: auto;
    margin-top: 24px
}

table {
    border-collapse: collapse;
    width: 100%;
    min-width: 560px;
    font-variant-numeric: tabular-nums
}

th {
    background: var(--blue);
    color: #fff;
    text-align: left;
    font-weight: 700;
    font-size: 14px;
    padding: 5px 8px;
    border: 2px solid var(--bg)
}

td {
    padding: 5px 8px;
    border: 2px solid var(--bg)
}

tbody tr:nth-child(even) td {
    background: var(--cream)
}

td mark {
    background: none;
    color: inherit;
    font-weight: 700
}

.legend {
    font-size: 13px;
    color: var(--muted)
}

.legend mark {
    background: none;
    color: inherit;
    font-weight: 700
}

/* ---------- Kaart ---------- */
.map-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px
}

.intro {
    margin: 0 0 6px;
    font-size: 15px
}

.trophy {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: #D9A000;
    stroke-width: 2;
    vertical-align: -2px
}

.progress {
    height: 6px;
    background: var(--unridden);
    border-radius: 3px;
    overflow: hidden;
    max-width: 420px;
    margin: 6px 0
}

.progress i {
    display: block;
    height: 100%;
    background: var(--yellow);
    width: 0;
    transition: width .4s
}

.map-layout {
    display: grid;
    grid-template-columns:minmax(0, 1fr) 260px;
    gap: 20px;
    align-items: start
}

.mapbox {
    position: relative;
    background: var(--sea);
    border: 1px solid var(--line);
    touch-action: none;
    aspect-ratio: 5/5.4;
    max-height: 76vh;
    width: 100%;
    overflow: hidden
}

/* .mapbox svg{display:block;width:100%;height:100%;cursor:grab} */
.mapbox svg.drag {
    cursor: grabbing
}

.mapbox path {
    stroke: var(--muted);
    stroke-width: .8;
    vector-effect: non-scaling-stroke;
    stroke-linejoin: round;
    transition: fill .3s
}

.mapbox path:hover {
    filter: brightness(1.1)
}

.mapbox path.sel {
    stroke: #000;
    stroke-width: 2
}

.zoom {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-direction: column;
    border: 2px solid rgba(0, 0, 0, .2);
    border-radius: 4px;
    overflow: hidden
}

.zoom button {
    width: 30px;
    height: 30px;
    border: 0;
    background: #fff;
    color: #333;
    font: 700 18px var(--font);
    cursor: pointer;
    line-height: 1
}

.zoom button + button {
    border-top: 1px solid #ccc
}

.tip {
    position: absolute;
    pointer-events: none;
    background: #fff;
    color: #222;
    border: 1px solid #bbb;
    padding: 4px 8px;
    font-size: 13px;
    white-space: nowrap;
    transform: translate(-50%, calc(-100% - 10px));
    opacity: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .2)
}

.tip b {
    display: block
}

.timeline {
    margin-top: 12px;
    display: flex;
    gap: 12px;
    align-items: flex-end
}

.play {
    flex: none;
    width: 34px;
    height: 34px;
    border-radius: 4px;
    border: 0;
    background: var(--blue);
    color: #fff;
    cursor: pointer;
    display: grid;
    place-items: center
}

.play svg {
    width: 12px
}

.years {
    flex: 1;
    display: grid;
    grid-template-columns:repeat(10, 1fr);
    gap: 3px;
    align-items: end;
    height: 80px
}

.yr {
    border: 0;
    padding: 0;
    background: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
    font: inherit;
    color: var(--muted)
}

.yr i {
    display: block;
    min-height: 3px
}

.yr.off i {
    opacity: .25
}

.yr span {
    font-size: 12px;
    margin-top: 3px
}

.yr em {
    font-size: 12px;
    font-style: normal;
    color: var(--ink)
}

.yr[aria-pressed="true"] span {
    color: var(--ink);
    font-weight: 700
}

.side {
    display: flex;
    flex-direction: column;
    gap: 16px
}

.side input {
    width: 100%
}

.card {
    border: 1px solid var(--line);
    padding: 12px 14px;
    background: var(--surface)
}

.card h3 {
    margin: 0
}

.when {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 14px;
    color: var(--muted);
    margin: 4px 0 0
}

.dot {
    width: 11px;
    height: 11px;
    flex: none;
    display: inline-block
}

.card dl {
    display: grid;
    grid-template-columns:1fr 1fr;
    gap: 8px;
    margin: 10px 0 0
}

.card dt {
    font-size: 12px;
    color: var(--muted)
}

.card dd {
    margin: 0;
    font-weight: 700
}

.recent h4 {
    font-size: 14px;
    margin: 0 0 4px
}

.recent ul {
    list-style: none;
    margin: 0;
    padding: 0
}

.recent li {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    padding: 3px 0;
    font-size: 14px
}

.recent li button {
    background: none;
    border: 0;
    padding: 0;
    font: inherit;
    color: var(--link);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 7px
}

.recent time {
    color: var(--muted);
    font-size: 13px
}

/* ---------- Gemeenten ---------- */
.list-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-bottom: 16px
}

.list-tools input[type=search] {
    flex: 0 1 280px
}

.year-block {
    margin-bottom: 20px
}

.year-block h3 {
    display: flex;
    align-items: baseline;
    gap: 8px;
    background: var(--blue);
    color: #fff;
    padding: 4px 8px;
    font-size: 15px;
    margin: 0 0 2px
}

.year-block h3 small {
    font-weight: 400;
    font-size: 13px;
    opacity: .9
}

.gm {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns:repeat(auto-fill, minmax(220px, 1fr))
}

.gm li {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    padding: 4px 8px
}

.gm li {
    border-bottom: 1px solid var(--line)
}

.gm time {
    color: var(--muted);
    font-size: 13px
}

.gm li.first, .gm li.last {
    font-weight: 700
}

.tag {
    font-size: 11px;
    background: var(--yellow);
    color: #222;
    padding: 0 5px;
    border-radius: 3px;
    margin-left: 6px;
    font-weight: 700
}

.empty {
    padding: 20px;
    color: var(--muted);
    border: 1px dashed var(--line)
}

/* ---------- Statistieken ---------- */
.records {
    display: grid;
    grid-template-columns:repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin: 0 0 20px
}

.rec {
    background: var(--soft);
    padding: 10px 12px;
    border-radius: 4px
}

.rec dt {
    font-size: 13px;
    color: var(--muted)
}

.rec dd {
    margin: 0;
    font-size: 22px;
    font-weight: 700
}

.rec dd em {
    font-style: normal;
    font-size: 13px;
    font-weight: 400;
    color: var(--muted);
    margin-left: 3px
}

.profile-card {
    max-width: 760px
}

.profile-top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 10px
}

.profile-top h3 {
    font-size: 14px;
    color: #555;
    margin: 0
}

.chips {
    display: inline-flex;
    gap: 4px;
    flex-wrap: wrap
}

.chips button {
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: 3px;
    font: 600 13px var(--font);
    padding: 4px 10px;
    cursor: pointer;
    color: var(--ink)
}

.chips button[aria-pressed="true"] {
    background: var(--blue);
    border-color: var(--blue);
    color: #fff
}

.chart svg {
    display: block;
    width: 100%;
    height: auto;
    min-width: 560px
}

.chart {
    overflow-x: auto
}

.chart path[fill^="url"] {
    fill: none
}

.chart path[fill="none"] {
    stroke: var(--blue);
    stroke-width: 2.5
}

.chart line[stroke-dasharray] {
    stroke: #ccc;
    stroke-opacity: 1;
    stroke-dasharray: none;
    stroke-width: 1
}

.chart circle {
    fill: var(--surface);
    stroke: var(--blue);
    r: 4
}

.chart .axis {
    font: 12px var(--font);
    fill: #666
}

.chart .val {
    font: 600 12px var(--font);
    fill: var(--ink)
}

.chart .best {
    fill: var(--ink);
    font-weight: 700
}

/* ---------- Eddington ---------- */
.edd {
    display: grid;
    grid-template-columns:minmax(0, 1fr) minmax(0, 1fr);
    gap: 30px;
    align-items: center
}

.edd .score {
    font-size: 72px;
    font-weight: 700;
    line-height: 1;
    margin: 6px 0 10px;
    color: var(--blue)
}

.next {
    background: var(--soft);
    padding: 12px 14px;
    border-radius: 4px;
    max-width: 440px
}

.next-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px
}

.ladder {
    height: 260px;
    position: relative
}

.ladder .bars {
    position: absolute;
    inset: 6px 0 26px;
    display: flex;
    align-items: flex-end;
    gap: 3px;
    border-bottom: 1px solid #999
}

.ladder .rung {
    flex: 1;
    background: #A8CFE0;
    position: relative
}

.ladder .rung.met {
    background: var(--blue)
}

.ladder .rung span {
    position: absolute;
    bottom: -22px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    color: var(--muted)
}

.ladder .rung.cur span {
    color: var(--ink);
    font-weight: 700
}

.ladder .goal {
    position: absolute;
    left: 0;
    right: 0;
    border-top: 1px dashed #333;
    font-size: 12px
}

.ladder .goal em {
    position: absolute;
    right: 0;
    top: -18px;
    font-style: normal
}

/* ---------- Challenges ---------- */
.ch-grid {
    display: grid;
    grid-template-columns:repeat(auto-fill, minmax(250px, 1fr));
    gap: 14px
}

.ch {
    border: 1px solid var(--line);
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px
}

.ch.done {
    background: var(--yellow-soft);
    border-color: #EED79A
}

.ch h3 {
    margin: 0;
    font-size: 16px
}

.ch p {
    margin: 0;
    color: var(--muted);
    font-size: 14px
}

.ch .meta {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    margin-top: auto
}

.ch .progress {
    margin: 4px 0 0;
    max-width: none
}

.ch .progress i {
    width: var(--w);
    transition: none
}

.badge {
    font-weight: 700
}

/* ---------- Ritten ---------- */
.row-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px
}

.rides th:nth-child(n+3), .rides td:nth-child(n+3) {
    text-align: right
}

.newcount {
    font-weight: 700;
    color: var(--ok)
}

.zero {
    color: var(--muted)
}

/* ---------- Routes ---------- */
#route-seg {
    margin-bottom: 16px
}

.route-grid {
    display: grid;
    grid-template-columns:minmax(0, 1fr) minmax(0, 1.2fr);
    gap: 20px;
    align-items: start
}

.route-grid[hidden] {
    display: none
}

.drop {
    border: 2px dashed #B9C4C9;
    padding: 36px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-align: center;
    cursor: pointer;
    color: var(--muted);
    background: var(--soft)
}

.drop svg {
    width: 32px;
    height: 32px
}

.drop b {
    color: var(--ink)
}

.result, .planner {
    border: 1px solid var(--line);
    padding: 14px 16px
}

.split {
    display: flex;
    gap: 24px;
    margin: 10px 0
}

.split b {
    display: block;
    font-size: 28px;
    line-height: 1.1
}

.split span {
    font-size: 13px;
    color: var(--muted)
}

.tags {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 5px
}

.tags li {
    font-size: 13px;
    padding: 2px 8px;
    background: var(--soft);
    border-radius: 3px;
    color: var(--muted)
}

.tags li.new {
    background: #DDEFD9;
    color: #1E5E2E;
    font-weight: 600
}

.planner {
    display: flex;
    flex-direction: column;
    gap: 12px
}

.planner > label:not(.check), .poster-opts > label:not(.check) {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-weight: 600;
    font-size: 14px
}

.range {
    display: flex;
    align-items: center;
    gap: 10px
}

.range input {
    flex: 1;
    accent-color: var(--blue)
}

.empty-state {
    color: var(--muted)
}

.gate {
    position: relative
}

html[data-plan="free"] .gate-body {
    filter: grayscale(1);
    opacity: .35;
    pointer-events: none;
    user-select: none
}

.gate-msg {
    position: absolute;
    z-index: 2;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: min(440px, 92%);
    background: var(--surface);
    border: 1px solid var(--line);
    border-top: 4px solid var(--yellow);
    padding: 16px 18px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .12)
}

.gate-msg p {
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 14px
}

/* ---------- Poster ---------- */
.poster-grid {
    display: grid;
    grid-template-columns:minmax(0, 1fr) minmax(0, .9fr);
    gap: 30px;
    align-items: start
}

.poster {
    --pbg: #135B7A;
    --pfg: #F6B60F;
    margin: 0;
    aspect-ratio: 5/7;
    background: var(--pbg);
    padding: 8% 8% 7%;
    display: flex;
    flex-direction: column;
    max-width: 440px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .25)
}

.poster-map {
    flex: 1;
    min-height: 0
}

.poster-map svg {
    width: 100%;
    height: 100%;
    display: block
}

.poster-map path {
    fill: var(--pfg);
    stroke: var(--pbg);
    stroke-width: 3;
    stroke-linejoin: round
}

.poster figcaption {
    margin-top: 6%;
    color: var(--pfg);
    display: flex;
    flex-direction: column
}

.poster figcaption b {
    font-size: clamp(18px, 2.6vw, 26px);
    line-height: 1.15
}

.poster figcaption span {
    font-size: 13px;
    opacity: .85
}

.poster-opts {
    display: flex;
    flex-direction: column;
    gap: 16px
}

fieldset {
    border: 0;
    padding: 0;
    margin: 0
}

legend {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 5px;
    padding: 0
}

.swatches {
    display: flex;
    gap: 8px
}

.swatches button {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #999;
    cursor: pointer;
    background: linear-gradient(135deg, var(--a) 50%, var(--b) 50%)
}

.swatches button[aria-pressed="true"] {
    box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--blue)
}

/* ---------- Instellingen ---------- */
.settings {
    max-width: 760px;
    display: flex;
    flex-direction: column;
    gap: 22px;
    margin-top: 16px
}

.set h3 {
    font-size: 15px;
    background: var(--blue);
    color: #fff;
    padding: 5px 8px;
    margin: 0
}

.set-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    padding: 10px 8px;
    border-bottom: 1px solid var(--line)
}

.set-row:nth-child(odd) {
    background: var(--cream)
}

.set-row div:first-child {
    display: flex;
    flex-direction: column
}

.set-row span {
    color: var(--muted);
    font-size: 13px
}

.danger h3 {
    background: #B3261E
}

.switch {
    position: relative;
    flex: none;
    cursor: pointer
}

.switch input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px
}

.switch span {
    display: block;
    width: 40px;
    height: 22px;
    border-radius: 11px;
    background: #C4CBCF;
    transition: background .2s
}

.switch span::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    transition: transform .2s
}

.switch input:checked + span {
    background: var(--blue)
}

.switch input:checked + span::after {
    transform: translateX(18px)
}

.switch input:focus-visible + span {
    outline: 2px solid var(--yellow);
    outline-offset: 2px
}

/* ---------- Pro-pagina ---------- */
.pro-hero {
    margin-bottom: 20px;
    padding: 14px 16px;
    border-left: 4px solid var(--yellow);
    background: var(--yellow-soft)
}

.pro-hero.only-free {
    border-left-color: #A9B3B8;
    background: var(--soft)
}

.pro-hero .lead {
    margin: 4px 0 12px
}

.pro-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center
}

html[data-plan="free"] .pro-actions .primary {
    background: var(--yellow);
    color: #222
}

.compare {
    max-width: 760px;
    min-width: 480px
}

.compare th[scope=row] {
    background: none;
    color: var(--ink);
    font-weight: 400
}

.compare tbody tr:nth-child(even) th {
    background: var(--cream)
}

.compare thead th {
    text-align: center
}

.compare thead th:first-child {
    background: none
}

.compare td {
    text-align: center;
    width: 130px
}

.compare .you {
    display: block;
    font-size: 11px;
    font-weight: 600;
    background: var(--yellow);
    color: #222;
    border-radius: 3px;
    margin: 3px auto 0;
    width: max-content;
    padding: 0 5px
}

html[data-plan="pro"] .compare td.c-pro, html[data-plan="free"] .compare td.c-free {
    font-weight: 700
}

.yes {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: var(--ok);
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round
}

.no {
    color: #AAA
}

/* ---------- Menu ---------- */
.scrim {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .4);
    z-index: 40;
    opacity: 0;
    transition: opacity .2s
}

.scrim.open {
    opacity: 1
}

.drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(320px, 86vw);
    background: var(--surface);
    z-index: 50;
    display: flex;
    flex-direction: column;
    padding: env(safe-area-inset-top, 0px) 0 env(safe-area-inset-bottom, 0px);
    box-shadow: -2px 0 12px rgba(0, 0, 0, .2);
    transform: translateX(100%);
    transition: transform .25s ease-out;
    overflow-y: auto;
    overscroll-behavior: contain
}

.drawer.open {
    transform: none
}

.drawer[hidden], .scrim[hidden] {
    display: none
}

.drawer-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px 10px 16px;
    background: var(--blue);
    color: #fff
}

.who {
    display: flex;
    align-items: center;
    gap: 10px
}

.who .avatar {
    width: 36px;
    height: 36px;
    font-size: 15px
}

html[data-plan="pro"] .who .avatar {
    box-shadow: 0 0 0 2px var(--yellow)
}

.who b {
    display: block;
    font-size: 15px;
    line-height: 1.2
}

.who span {
    font-size: 12px;
    opacity: .9
}

.close {
    width: 34px;
    height: 34px;
    border: 0;
    background: none;
    color: #fff;
    cursor: pointer;
    display: grid;
    place-items: center
}

.drawer-nav {
    padding: 4px 0 10px;
    flex: 1
}

.drawer .group {
    font-size: 12px;
    font-weight: 700;
    color: var(--muted);
    margin: 14px 16px 2px
}

.drawer-nav ul {
    list-style: none;
    margin: 0;
    padding: 0
}

.drawer-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 3px 16px;
    text-decoration: none;
    color: var(--link);
    font-weight: 700;
    font-size: 15px
}

.drawer-nav a:hover {
    background: var(--soft)
}

.drawer-nav a[aria-current="page"] {
    background: var(--blue-tint);
    color: var(--ink)
}

.drawer-nav svg {
    width: 18px;
    height: 18px;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round
}

.drawer-nav .count {
    margin-left: auto;
    font-size: 12px;
    color: var(--muted);
    font-weight: 400
}

.drawer-nav .ext {
    margin-left: auto;
    color: var(--muted);
    font-weight: 400
}

.drawer-nav .protag {
    margin-left: auto
}

html[data-plan="pro"] .drawer-nav .protag {
    display: none
}

.drawer-foot {
    padding: 6px 16px 18px;
    border-top: 1px solid var(--line)
}

.drawer-foot .group {
    margin-left: 0
}

.socials {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 4px 0 14px;
    font-size: 14px
}

.logout {
    background: none;
    border: 0;
    padding: 0;
    font: 600 14px var(--font);
    color: var(--muted);
    cursor: pointer;
    text-decoration: underline
}

/* ---------- Voet ---------- */
footer {
    background: var(--yellow);
    color: #333
}

.foot {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px 60px;
    padding: 12px 16px;
    font-size: 12px
}

.foot b {
    color: #FC4C02;
    font-size: 14px;
    letter-spacing: -.02em
}

/* ---------- Pro/gratis ---------- */
html[data-plan="pro"] .only-free, html[data-plan="free"] .only-pro {
    display: none !important
}

/* Ontwerpweergave (alleen voor het ontwerp, niet overnemen) */
.design-toggle {
    position: fixed;
    left: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    z-index: 30;
    display: flex;
    align-items: center;
    gap: 4px;
    background: #333;
    color: #fff;
    padding: 4px 6px;
    font-size: 12px;
    border-radius: 4px;
    opacity: .9
}

.design-toggle span {
    padding: 0 4px;
    color: #bbb
}

.design-toggle button {
    border: 0;
    background: none;
    color: #fff;
    font: 600 12px var(--font);
    padding: 4px 8px;
    border-radius: 3px;
    cursor: pointer
}

.design-toggle button[aria-pressed="true"] {
    background: var(--yellow);
    color: #222
}

/* ---------- Responsief ---------- */
@media (max-width: 1000px) {
    .map-layout {
        grid-template-columns:1fr
    }
}

@media (max-width: 820px) {
    .page {
        grid-template-columns:1fr
    }

    .profile {
        border-right: 0;
        border-bottom: 1px solid var(--line);
        padding: 12px 16px;
        display: grid;
        grid-template-columns:auto 1fr;
        gap: 8px 14px;
        align-items: center
    }

    .profile .who-row {
        margin: 0
    }

    .profile .sub-box {
        margin: 0;
        grid-column: 2;
        grid-row: 1
    }

    .profile .ptitle, .profile .pval, .profile .pstatus, .profile .plinks {
        display: none
    }

    main {
        padding: 16px 16px 40px
    }

    .records {
        grid-template-columns:repeat(2, 1fr)
    }

    .edd, .route-grid, .poster-grid {
        grid-template-columns:1fr
    }

    .rides-link {
        font-size: 11px
    }
}

@media (max-width: 520px) {
    .profile {
        grid-template-columns:1fr
    }

    .profile .sub-box {
        grid-column: 1;
        grid-row: auto
    }

    .burger-label {
        display: none
    }

    .years {
        height: 64px
    }

    .yr em, .yr span {
        font-size: 10px
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important
    }
}

/* ============================================================
   Mix: de opbouw van de huidige site, met het karakter van het nieuwe ontwerp.
   Smalle, vette koppen en getallen (Open Sans condensed), het gele
   etappeprofiel, grote jaartallen en een geel accent onder de menubalk.
   ============================================================ */
:root {
    --cond: 75%
}

h2 {
    font-size: 30px;
    font-weight: 800;
    font-stretch: var(--cond);
    letter-spacing: -.01em;
    line-height: 1.1;
    margin-bottom: 6px
}

.lead {
    color: var(--muted)
}

nav.main {
    border-bottom: 4px solid var(--yellow)
}

nav.main a {
    font-weight: 600
}

nav.main a[aria-current="page"] {
    background: var(--blue)
}

/* Pro-label naast het logo */
.brand-pro {
    font-style: normal;
    background: var(--yellow);
    color: #222;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 2px
}

/* Kaart */
.bigcount {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    font-stretch: var(--cond);
    line-height: 1
}

.bigcount b {
    font-size: 64px;
    font-weight: 800;
    letter-spacing: -.02em;
    color: var(--blue);
    margin-right: 4px;
    font-variant-numeric: tabular-nums
}

.intro {
    margin-top: 6px
}

.card {
    border: 0;
    border-top: 3px solid var(--blue);
    padding: 10px 0 0;
    background: none
}

.card h3 {
    font-size: 22px;
    font-weight: 800;
    font-stretch: var(--cond)
}

.recent h4 {
    border-top: 3px solid var(--blue);
    padding-top: 8px
}

/* Statistieken: geel etappeprofiel terug */
.records {
    gap: 0;
    border-top: 3px solid var(--blue);
    border-bottom: 1px solid var(--line)
}

.rec {
    background: none;
    border-radius: 0;
    padding: 10px 14px 12px 0
}

.rec + .rec {
    padding-left: 14px;
    border-left: 1px solid var(--line)
}

.rec dd {
    font-size: 34px;
    font-weight: 800;
    font-stretch: var(--cond);
    line-height: 1.1
}

.profile-top h3 {
    font-size: 22px;
    font-weight: 800;
    font-stretch: var(--cond);
    color: var(--ink)
}

.chart path[fill^="url"] {
    fill: url(#hatch)
}

.chart path[fill="none"] {
    stroke: #222;
    stroke-width: 2.5
}

.chart line[stroke-dasharray] {
    stroke: #222;
    stroke-opacity: .2;
    stroke-dasharray: 3 4
}

.chart circle {
    fill: #fff;
    stroke: #222
}

.chart .val {
    font-size: 13px;
    font-weight: 700
}

.chart .best {
    fill: var(--blue)
}

.profile-card {
    max-width: none
}

:root[data-theme="dark"] .chart path[fill="none"] {
    stroke: #eee
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .chart path[fill="none"] {
        stroke: #eee
    }
}

/* Gemeenten: grote jaartallen in plaats van blauwe balken */
.year-block h3 {
    background: none;
    color: var(--ink);
    padding: 0 0 4px;
    font-size: 34px;
    font-weight: 800;
    font-stretch: var(--cond);
    border-bottom: 3px solid var(--blue);
    margin-bottom: 0
}

.year-block h3 small {
    font-size: 14px;
    color: var(--muted);
    font-stretch: 100%
}

/* Eddington en challenges */
.edd .score {
    font-size: 140px;
    font-weight: 800;
    font-stretch: var(--cond);
    letter-spacing: -.03em
}

.ch {
    border: 0;
    border-top: 3px solid var(--blue);
    padding: 10px 0 4px
}

.ch.done {
    background: none;
    border-top-color: var(--yellow)
}

.ch h3 {
    font-size: 20px;
    font-weight: 800;
    font-stretch: var(--cond)
}

/* Routes, poster, pro */
.result h3, .gate-msg h3 {
    font-size: 22px;
    font-weight: 800;
    font-stretch: var(--cond)
}

.split b {
    font-size: 40px;
    font-weight: 800;
    font-stretch: var(--cond)
}

.split div:first-child b {
    color: var(--blue)
}

.poster figcaption b {
    font-weight: 800;
    font-stretch: var(--cond);
    font-size: clamp(22px, 3.2vw, 32px)
}

.pname {
    font-weight: 800;
    font-stretch: var(--cond);
    font-size: 24px
}

.pval {
    font-size: 22px;
    font-weight: 800;
    font-stretch: var(--cond);
    line-height: 1.2
}

@media (max-width: 820px) {
    .bigcount b {
        font-size: 52px
    }

    .edd .score {
        font-size: 110px
    }

    h2 {
        font-size: 26px
    }
}

/* ============================================================
   Challenge-detail, postcode, Pro, inloggen en activeren
   ============================================================ */
.crumb {
    font-size: 13px;
    color: var(--muted);
    margin: 0 0 6px
}

.crumb a {
    text-decoration: none
}

.ch-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px
}

.ghost.small, .primary.small {
    font-size: 12px;
    padding: 5px 10px
}

.primary.big {
    font-size: 16px;
    padding: 12px 20px
}

.ch h3 a {
    color: inherit;
    text-decoration: none
}

.ch h3 a:hover {
    color: var(--link);
    text-decoration: underline
}

.ch.open {
    border-top-color: #A9B3B8
}

/* Status: berekenen of klaar */
html:not([data-cstate="calc"]) .only-calc {
    display: none !important
}

html[data-cstate="calc"] .only-done {
    display: none !important
}

.calc {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    background: var(--yellow-soft);
    border-left: 4px solid var(--yellow);
    padding: 12px 16px;
    margin: 6px 0 18px;
    max-width: 760px
}

.calc p {
    margin: 2px 0 0;
    font-size: 14px
}

.spinner {
    flex: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 3px solid rgba(0, 0, 0, .12);
    border-top-color: var(--blue);
    animation: spin 1s linear infinite;
    margin-top: 2px
}

@keyframes spin {
    to {
        transform: rotate(360deg)
    }
}

.ch-score {
    margin: 6px 0 18px
}

.stad-layout {
    display: grid;
    grid-template-columns:minmax(0, 1fr) minmax(0, 1fr);
    gap: 20px;
    align-items: start
}


.stad-map {
    aspect-ratio: 5/5.6
}

.stad-map .muni {
    fill: var(--unridden);
    stroke: #fff;
    stroke-width: .6;
    vector-effect: non-scaling-stroke
}

.pin circle {
    fill: #fff;
    stroke: var(--blue);
    stroke-width: 12
}

.pin.done circle {
    fill: var(--blue)
}

.mapbox .pin path {
    fill: none;
    stroke: #fff;
    stroke-width: 11;
    stroke-linecap: round;
    stroke-linejoin: round;
    vector-effect: none
}

.stad-table td:last-child {
    white-space: nowrap
}

.stad-table td, .stad-table th {
    font-size: 14px
}

.pin {
    cursor: pointer
}

.pin.hl circle {
    stroke: var(--yellow);
    stroke-width: 14
}

html[data-cstate="calc"] .pin circle {
    fill: #fff;
    stroke: #7A8A92
}

.stad-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    align-items: center;
    justify-content: space-between
}

.stad-table {
    margin-top: 10px;
    max-height: 62vh;
    overflow: auto
}

.stad-table table {
    min-width: 0
}

.stad-table th {
    position: sticky;
    top: 0
}

.stad-table tr.hl td {
    background: var(--yellow-soft)
}

.okdate {
    color: var(--ok);
    font-weight: 600
}

.pin-key {
    display: inline-block;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    border: 2px solid var(--blue);
    background: #fff;
    vertical-align: -1px;
    margin: 0 3px 0 10px
}

.pin-key.done {
    background: var(--blue);
    margin-left: 0
}

/* Postcode */
.pc-head {
    display: flex;
    gap: 18px;
    align-items: center;
    margin: 4px 0 18px
}

.pc-icon {
    width: 84px;
    height: 84px;
    flex: none
}

.pc-icon circle {
    fill: #FFF1EB;
    stroke: #E8572A;
    stroke-width: 2.5
}

.pc-icon rect {
    fill: #E8572A
}

.pc-icon path {
    stroke: #555;
    stroke-width: 2.5;
    fill: none;
    stroke-linecap: round
}

.pc-icon rect + path {
    stroke: #fff
}

.pc-grid {
    display: grid;
    grid-template-columns:minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 30px;
    align-items: start;
    max-width: 1000px
}

.steps {
    counter-reset: s;
    list-style: none;
    padding: 0;
    margin: 8px 0 22px
}

.steps li {
    counter-increment: s;
    position: relative;
    padding: 0 0 14px 40px
}

.steps li::before {
    content: counter(s);
    position: absolute;
    left: 0;
    top: 0;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--blue);
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    display: grid;
    place-items: center
}

.steps li:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 12px;
    top: 28px;
    bottom: 2px;
    width: 2px;
    background: var(--line)
}

.pc-note {
    margin-top: 10px;
    max-width: 460px
}

.joined {
    background: #E3F4E6;
    border-left: 4px solid var(--ok);
    padding: 10px 14px;
    max-width: 460px
}

.pc-facts {
    border-top: 3px solid var(--blue);
    padding-top: 10px
}

.pc-facts dl {
    margin: 0 0 12px;
    display: grid;
    gap: 8px
}

.pc-facts dt {
    font-size: 13px;
    color: var(--muted)
}

.pc-facts dd {
    margin: 0;
    font-size: 28px;
    font-weight: 800;
    font-stretch: var(--cond);
    line-height: 1.1
}

/* Pro-pagina */
.pro-top {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: flex-start;
    max-width: 1000px;
    margin-bottom: 22px
}

.pro-top .lead {
    color: var(--ink);
    margin-bottom: 8px
}

.pro-top p {
    margin: 0 0 8px
}

.price-tag {
    flex: none;
    width: 150px;
    text-align: center;
    background: var(--yellow);
    color: #222;
    padding: 14px 10px 12px;
    border-radius: 4px;
    display: flex;
    flex-direction: column
}

.price-tag b {
    font-size: 40px;
    font-weight: 800;
    font-stretch: var(--cond);
    line-height: 1
}

.price-tag span {
    font-size: 13px
}

.pt-label {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    font-size: 11px !important;
    margin-bottom: 4px
}

html[data-plan="pro"] .price-tag {
    box-shadow: inset 0 0 0 3px #222
}

.pro-grid {
    display: grid;
    grid-template-columns:minmax(0, 1.2fr) minmax(0, .9fr);
    gap: 30px;
    align-items: start;
    max-width: 1000px
}

.pro-grid h3, .partners-title {
    font-size: 20px;
    font-weight: 800;
    font-stretch: var(--cond);
    margin: 0 0 8px;
    color: var(--ink)
}

.benefits, .deals {
    list-style: none;
    margin: 0 0 20px;
    padding: 0
}

.benefits li {
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 3px 0
}

.deals li {
    padding: 5px 0;
    border-bottom: 1px solid var(--line);
    font-size: 14px
}

.deals b {
    display: inline-block;
    min-width: 62px
}

.pro-form {
    border-top: 3px solid var(--yellow);
    background: var(--soft);
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: sticky;
    top: 110px
}

.pro-form label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-weight: 600;
    font-size: 14px
}

.cta {
    background: #3E8A3E;
    font-size: 15px;
    padding: 12px
}

.cta:hover {
    background: #2F732F
}

.partners-title {
    margin-top: 28px !important
}

.partners {
    display: grid;
    grid-template-columns:repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
    max-width: 1000px
}

.partner {
    display: flex;
    gap: 14px;
    border-top: 1px solid var(--line);
    padding-top: 12px
}

.plogo {
    flex: none;
    width: 86px;
    height: 86px;
    border: 1px solid var(--line);
    display: grid;
    place-items: center;
    text-align: center;
    font-weight: 800;
    font-stretch: var(--cond);
    font-size: 14px;
    line-height: 1.1;
    padding: 6px;
    color: #444;
    background: #fff
}

.partner h4 {
    margin: 0;
    font-size: 16px
}

.partner p {
    margin: 2px 0;
    font-size: 14px
}

.partner .deal {
    font-weight: 600;
    color: var(--blue)
}

.partner code {
    background: var(--yellow-soft);
    padding: 1px 6px;
    font-weight: 700
}

:target {
    scroll-margin-top: 120px
}

.partner:target {
    background: var(--yellow-soft)
}

/* Uitgelogd */
body.out .top-inner {
    height: 54px
}

.top-link {
    justify-self: end;
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    text-decoration: none
}

body.out .brand span {
    display: inline
}

.out-main {
    max-width: 1060px;
    margin: 0 auto;
    padding: 36px 20px 60px;
    min-height: 70vh
}

.auth-grid {
    display: grid;
    grid-template-columns:minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 28px;
    align-items: start
}

.auth-card {
    border: 1px solid var(--line);
    border-top: 4px solid var(--yellow);
    padding: 22px 24px;
    position: sticky;
    top: 80px
}

.auth-card h2 {
    margin-bottom: 8px
}

.strava-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #FC4C02;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    padding: 12px 20px;
    border-radius: 4px;
    margin: 10px 0
}

.strava-btn:hover {
    background: #E04402
}

.strava-btn svg {
    width: 20px;
    height: 20px;
    fill: #fff
}

.auth-card hr {
    border: 0;
    border-top: 1px solid var(--line);
    margin: 18px 0 12px
}

.about-top {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 10px
}

.logo-big {
    width: 110px;
    flex: none
}

.wordmark {
    margin: 0;
    font-weight: 800;
    font-size: 22px;
    letter-spacing: .04em;
    color: #14324A;
    line-height: 1.1
}

.wordmark small {
    display: block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .06em;
    color: var(--blue)
}

:root[data-theme="dark"] .wordmark {
    color: var(--ink)
}

.about-lead {
    font-size: 17px;
    margin: 0 0 14px
}

.about-map {
    margin: 0 0 18px;
    max-width: 380px
}

.about-map svg {
    width: 100%;
    height: auto;
    display: block
}

.about-map path {
    stroke: var(--bg);
    stroke-width: 3
}

.about-map figcaption {
    font-size: 13px;
    color: var(--muted);
    margin-top: 4px
}

.about h3 {
    font-size: 18px;
    font-weight: 800;
    font-stretch: var(--cond)
}

/* Activeren */
.act {
    max-width: 620px;
    margin: 0 auto
}

.act-steps {
    list-style: none;
    display: flex;
    gap: 24px;
    padding: 0;
    margin: 0 0 22px;
    font-size: 13px;
    color: var(--muted)
}

.act-steps li {
    display: flex;
    align-items: center;
    gap: 7px
}

.act-steps span {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 12px;
    background: var(--soft);
    border: 1px solid var(--line)
}

.act-steps .done span {
    background: var(--ok);
    border-color: var(--ok);
    color: #fff;
    font-size: 0
}

.act-steps .done span::before {
    content: "✓";
    font-size: 12px
}

.act-steps .cur {
    color: var(--ink);
    font-weight: 700
}

.act-steps .cur span {
    background: var(--blue);
    border-color: var(--blue);
    color: #fff
}

.act-head {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 20px
}

.act-head .avatar {
    width: 56px;
    height: 56px;
    font-size: 22px
}

.act-form {
    display: flex;
    flex-direction: column;
    gap: 22px
}

.field label {
    display: block;
    font-weight: 700;
    margin-bottom: 5px
}

.field input {
    width: 100%;
    font-size: 16px;
    padding: 10px 12px
}

.field .err {
    display: none;
    margin: 6px 0 0;
    font-size: 14px;
    color: #B3261E
}

.field.has-err input {
    border-color: #B3261E;
    border-width: 2px;
    background: #FFF6F5
}

.field.has-err .err {
    display: block
}

.prefs {
    border-top: 3px solid var(--blue);
    padding-top: 8px
}

.prefs legend {
    font-weight: 800;
    font-stretch: var(--cond);
    font-size: 20px;
    padding: 0;
    margin-bottom: 6px;
    float: left;
    width: 100%
}

.pref {
    clear: both;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px solid var(--line)
}

.pref div {
    display: flex;
    flex-direction: column
}

.pref span {
    font-size: 14px;
    color: var(--muted)
}

.prefs .sub {
    margin-top: 8px
}

.act-form .primary {
    align-self: flex-start
}

@media (max-width: 900px) {
    .stad-layout, .pc-grid, .pro-grid, .auth-grid {
        grid-template-columns:1fr
    }

    .pro-form, .auth-card {
        position: static
    }

    .pro-top {
        flex-direction: column
    }
}

@media (prefers-reduced-motion: reduce) {
    .spinner {
        animation: none
    }
}

.price-tag b {
    white-space: nowrap;
    font-size: 34px
}

.probar a {
    text-decoration: underline;
    text-underline-offset: 2px;
    font-weight: 700
}

.pstatus.only-free {
    display: block;
    color: var(--muted)
}

.pstatus.only-free a {
    font-weight: 700
}

/* Gele footer altijd onderaan, ook als de pagina korter is dan het scherm */
body {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column
}

body > * {
    flex-shrink: 0
}

.page {
    flex: 1 0 auto;
    width: 100%
}

.out-main {
    flex: 1 0 auto;
    width: 100%
}

footer {
    margin-top: auto
}

/* Logo */
.top-inner {
    height: 54px
}

.brand {
    gap: 12px
}

.brand-mark {
    height: 36px;
    width: auto;
    display: block
}

.brand-word {
    height: 13px;
    width: auto;
    display: block;
    margin-top: 3px
}

/*.brand:hover .brand-mark{transform:translateX(2px);transition:transform .2s}*/
.foot-made {
    display: inline-flex;
    align-items: center;
    gap: 8px
}

.foot-made img {
    height: 20px;
    width: auto
}

.logo-full {
    display: block;
    width: 230px;
    height: auto
}

.about-top {
    margin-bottom: 16px
}

:root[data-theme="dark"] .logo-full {
    background: #fff;
    padding: 10px 14px;
    border-radius: 6px
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .logo-full {
        background: #fff;
        padding: 10px 14px;
        border-radius: 6px
    }
}

@media (max-width: 440px) {
    .brand-word {
        display: none
    }

    .brand-mark {
        height: 32px
    }
}

/* Social media-menu op uitgelogde pagina's */
.social {
    justify-self: end;
    position: relative;
    color: #fff;
    font-size: 13px;
    font-weight: 700
}

.social summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 2px
}

.social summary::-webkit-details-marker {
    display: none
}

.social summary::after {
    content: "";
    width: 7px;
    height: 7px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(45deg) translateY(-2px);
    transition: transform .2s
}

.social[open] summary::after {
    transform: rotate(-135deg) translateY(-1px)
}

.social ul {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    list-style: none;
    margin: 0;
    padding: 6px 0;
    background: var(--surface);
    border: 1px solid var(--line);
    border-top: 3px solid var(--yellow);
    box-shadow: 0 4px 14px rgba(0, 0, 0, .15);
    min-width: 160px;
    z-index: 20
}

.social a {
    display: block;
    padding: 7px 14px;
    color: var(--link);
    text-decoration: none;
    font-weight: 700
}

.social a:hover {
    background: var(--soft)
}

/* Profiel compleet maken (activeren) */
.act {
    max-width: 640px
}

.act-head {
    align-items: center
}

.act-head h2 {
    margin-bottom: 2px
}

.act-head .lead {
    margin: 0
}

.act-avatar {
    width: 60px;
    height: 60px;
    font-size: 24px;
    position: relative
}

.strava-dot {
    position: absolute;
    right: -3px;
    bottom: -3px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #FC4C02;
    border: 2px solid var(--bg);
    display: grid;
    place-items: center
}

.strava-dot svg {
    width: 12px;
    height: 12px;
    fill: #fff
}

.act-card {
    border: 1px solid var(--line);
    border-top: 4px solid var(--yellow);
    padding: 22px 24px 24px;
    background: var(--surface)
}

.field input[type=email] {
    width: 100%;
    font: inherit;
    font-size: 16px;
    padding: 10px 12px;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid #BFC5C8;
    border-radius: 4px
}

.field input:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(31, 126, 163, .2)
}

.field.has-err input:focus {
    box-shadow: 0 0 0 3px rgba(179, 38, 30, .15)
}

.help {
    margin: 6px 0 0;
    font-size: 13px;
    color: var(--muted)
}

.field.has-err .help {
    display: none
}

.prefs {
    position: relative
}

.pref-all {
    position: absolute;
    right: 0;
    top: 12px
}

.pref-all .linkbtn {
    font-size: 13px
}

label.pref {
    cursor: pointer;
    border-radius: 4px;
    padding: 12px 6px;
    margin: 0 -6px
}

label.pref:hover {
    background: var(--soft)
}

.pref-text {
    display: flex;
    flex-direction: column;
    gap: 2px
}

.pref-text b {
    font-size: 15px
}

.pref-text span {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.45
}

.pref .switch {
    flex: none
}

.act-form .primary {
    align-self: stretch;
    font-size: 16px;
    padding: 13px
}

.act-form .after {
    margin-top: -12px;
    text-align: center
}

@media (max-width: 520px) {
    .act-card {
        padding: 16px
    }

    .pref-all {
        position: static;
        margin-bottom: 4px
    }

    .act-steps {
        gap: 14px
    }
}

.pref .pref-text {
    color: var(--ink);
    font-size: inherit
}

.pref .pref-text span {
    color: var(--muted);
    font-size: 14px
}

/* ============================================================
   Meldingen: één vaste plek bovenaan de inhoud (#alerts),
   plus foutmeldingen direct onder een veld.
   ============================================================ */
.alerts {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 880px
}

.alerts:not(:empty) {
    margin-bottom: 20px
}

.alert {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 12px 14px;
    border-left: 5px solid;
    border-radius: 3px;
    position: relative;
    font-size: 14px;
    line-height: 1.5
}

.alert:focus {
    outline: 2px solid currentColor;
    outline-offset: 2px
}

.alert[hidden] {
    display: none
}

.alert-icon {
    flex: none;
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    margin-top: 1px
}

.alert-body {
    flex: 1;
    min-width: 0
}

.alert-body p {
    margin: 0
}

.alert-title {
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 2px !important
}

.alert-action {
    display: inline-block;
    margin-top: 6px;
    font-weight: 700;
    color: inherit
}

.alert-close {
    flex: none;
    background: none;
    border: 0;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    color: inherit;
    opacity: .7;
    padding: 0 2px
}

.alert-close:hover {
    opacity: 1
}

.alert.error {
    background: #FDECEA;
    border-color: #B3261E;
    color: #8C1D18
}

.alert.warning {
    background: #FFF4D6;
    border-color: #F6B414;
    color: #6B4E00
}

.alert.success {
    background: #E5F4E8;
    border-color: #2E9E4F;
    color: #1E5E2E
}

.alert.info {
    background: #E7F3F8;
    border-color: #1F7EA3;
    color: #14506A
}

.alert a {
    color: inherit
}

:root[data-theme="dark"] .alert.error {
    background: #3A1D1B;
    color: #F4B7B2
}

:root[data-theme="dark"] .alert.warning {
    background: #3A3115;
    color: #F3D88A
}

:root[data-theme="dark"] .alert.success {
    background: #1B3323;
    color: #9FDCB0
}

:root[data-theme="dark"] .alert.info {
    background: #16303C;
    color: #A9D8EC
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .alert.error {
        background: #3A1D1B;
        color: #F4B7B2
    }

    :root:not([data-theme="light"]) .alert.warning {
        background: #3A3115;
        color: #F3D88A
    }

    :root:not([data-theme="light"]) .alert.success {
        background: #1B3323;
        color: #9FDCB0
    }

    :root:not([data-theme="light"]) .alert.info {
        background: #16303C;
        color: #A9D8EC
    }
}

.act-card .alert {
    margin-bottom: -4px
}

.field .err {
    display: none;
    align-items: flex-start;
    gap: 6px
}

.field.has-err .err {
    display: flex
}

.field .err::before {
    content: "!";
    flex: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #B3261E;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    display: grid;
    place-items: center;
    margin-top: 2px
}

.field.has-err label {
    color: #B3261E
}

.field.has-err .err {
    display: block;
    position: relative;
    padding-left: 22px
}

.field .err::before {
    position: absolute;
    left: 0;
    top: 0
}

/* Welkom: kiezen tussen gratis en Pro */
.welcome {
    max-width: 900px;
    margin: 0 auto
}

.welcome-head {
    display: flex;
    gap: 24px;
    align-items: center;
    margin-bottom: 26px
}

.welcome-head .logo-full {
    width: 150px;
    flex: none
}

.welcome-head .lead {
    margin: 4px 0 0;
    color: var(--ink);
    font-size: 16px
}

.plans {
    display: grid;
    grid-template-columns:minmax(0, .85fr) minmax(0, 1.15fr);
    gap: 20px;
    align-items: stretch
}

.plan-card {
    border: 1px solid var(--line);
    padding: 20px 22px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    background: var(--surface)
}

.free-card {
    border-top: 4px solid #A9B3B8
}

.pro-card {
    border: 2px solid var(--yellow);
    border-top-width: 6px;
    box-shadow: 0 6px 20px -10px rgba(0, 0, 0, .25)
}

.plan-flag {
    position: absolute;
    top: -14px;
    right: 18px;
    margin: 0;
    background: var(--yellow);
    color: #222;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
    padding: 3px 9px;
    border-radius: 3px
}

.plan-name {
    margin: 0;
    font-size: 22px;
    font-weight: 800;
    font-stretch: var(--cond)
}

.plan-price {
    margin: -8px 0 0;
    color: var(--muted);
    font-size: 14px
}

.plan-price b {
    font-size: 36px;
    font-weight: 800;
    font-stretch: var(--cond);
    color: var(--ink);
    margin-right: 4px
}

.plan-list {
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1
}

.plan-list li {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    padding: 4px 0;
    font-size: 14px
}

.plan-list svg {
    flex: none;
    width: 16px;
    height: 16px;
    margin-top: 3px
}

.plan-list li.off {
    color: var(--muted)
}

.nope {
    fill: none;
    stroke: #A9B3B8;
    stroke-width: 2.5;
    stroke-linecap: round
}

.ghost.wide {
    display: block;
    text-align: center;
    padding: 11px;
    font-size: 14px
}

.primary.wide {
    display: block;
    width: 100%;
    text-align: center
}

.plan-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-top: 1px solid var(--line);
    padding-top: 12px
}

.plan-form label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-weight: 600;
    font-size: 14px
}

.plan-form input {
    width: 100%;
    font: inherit;
    padding: 8px 10px;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid #BFC5C8;
    border-radius: 4px
}

.plan-form input.cta {
    background: #3E8A3E;
    color: #fff;
}

.plan-form .sub {
    font-size: 13px
}

.skip {
    text-align: center;
    margin: 18px 0 30px;
    font-weight: 700
}

.skip a {
    text-decoration: none
}

.skip a:hover {
    text-decoration: underline
}

.welcome-deals {
    border-top: 3px solid var(--blue);
    padding-top: 10px;
    max-width: 700px
}

.welcome-deals h3 {
    font-size: 20px;
    font-weight: 800;
    font-stretch: var(--cond);
    margin: 0 0 6px
}

.welcome .partners-title {
    margin-top: 30px !important
}

@media (max-width: 760px) {
    nav.main a {
        font-size: 12px;
        padding: 4px 8px;
    }

    .plans {
        grid-template-columns:1fr
    }

    .pro-card {
        order: -1
    }

    .welcome-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px
    }

    .act-steps {
        flex-wrap: wrap;
        gap: 8px 16px
    }
}

.plan-form input {
    font-weight: 400
}

@media (max-width: 630px) {
    nav.main a.hide_a {
        display: none;
    }
}
@media (max-width: 560px) {
    nav.main a.hide_b {
        display: none;
    }
}
@media (max-width: 630px) {
    nav.main a.hide_a {
        display: none;
    }
}

@media (max-width: 760px) {
    .welcome-head .logo-full {
        display: none
    }
}


.pager {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 20px;
    margin: 18px 0 6px;
    font-size: 14px
}

.pager-info {
    margin: 0;
    color: var(--muted)
}

.pager-info b {
    color: var(--ink);
    font-variant-numeric: tabular-nums
}

.pager-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 4px
}

.pager-list > li > a, .pager-list > li > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: var(--surface);
    color: var(--link);
    font-weight: 700;
    text-decoration: none;
    font-variant-numeric: tabular-nums;
    line-height: 1
}

.pager-list > li > a:hover {
    border-color: var(--blue);
    background: var(--blue-tint)
}

.pager-list > li > a[aria-current="page"] {
    background: var(--blue);
    border-color: var(--blue);
    color: #fff;
    cursor: default
}

.pager-list [aria-disabled="true"] {
    color: var(--muted);
    opacity: .5;
    cursor: not-allowed
}

.pager-gap {
    min-width: 24px;
    text-align: center;
    color: var(--muted)
}

.pager-mobile {
    display: none;
    color: var(--muted)
}

@media (max-width: 560px) {
    .pager {
        flex-direction: column;
        align-items: stretch
    }

    .pager-info {
        text-align: center
    }

    .pager-list {
        justify-content: space-between
    }

    .pager-list li {
        display: none
    }

    .pager-list li:first-child, .pager-list li:last-child, .pager-list .pager-mobile {
        display: block
    }
}


/* Routeplanner */
.rp-map {
    aspect-ratio: auto;
    height: min(72vh, 640px)
}

.rp-map .leaflet-interactive {
    cursor: pointer
}

.rp-side .card h3 {
    display: flex;
    align-items: baseline;
    gap: 6px
}

.rp-count {
    font-size: 14px;
    font-weight: 600;
    color: var(--muted);
    font-stretch: 100%
}

.rp-chips {
    list-style: none;
    margin: 8px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 5px
}

.rp-chips li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 6px 6px 8px;
    background: var(--yellow-soft);
    border-left: 4px solid var(--yellow);
    border-radius: 3px;
    font-weight: 600;
    font-size: 15px
}

.rp-i {
    flex: none;
    min-width: 34px;
    text-align: center;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: #6B4E00
}

.rp-new {
    font-style: normal;
    font-size: 11px;
    font-weight: 700;
    color: var(--ok);
    margin-left: 2px
}

.rp-chips button {
    margin-left: auto;
    width: 26px;
    height: 26px;
    border: 0;
    border-radius: 50%;
    background: none;
    color: var(--muted);
    font-size: 18px;
    line-height: 1;
    cursor: pointer
}

.rp-chips button:hover {
    background: #FDECEA;
    color: #B3261E
}

.rp-type {
    margin: 6px 0 6px
}

.rp-opts .sub {
    margin-bottom: 12px
}

.rp-opts .primary:disabled {
    background: #A9B3B8;
    cursor: not-allowed
}

.rp-km {
    margin: 4px 0 12px
}

.rp-km b:first-child {
    font-size: 30px;
    font-weight: 800;
    font-stretch: var(--cond)
}

.rp-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px
}

.rp-result[hidden] {
    display: none
}

/* .mapbox path{fill-opacity:1} */
.stad-layout {
    display: grid;
    grid-template-columns:minmax(0, 2fr) minmax(0, 1fr);
    gap: 20px;
    align-items: start;
    min-height: 1200px
}

.top {
    z-index: 1200;
}

#map {
    margin: auto;
    width: 100%;
    min-height: 1000px;
}

#map-zip {
    margin: auto;
    width: 100%;
    min-height: 1000px;
}

.ch h3 .link-color,
.link-color {
    color: #1B7299;
}

.hidden {
    display: none;
}

.rr-list {
    padding-left: 4px;
}

.rr-list li {
    list-style: none;
}

.scroll-list-route {
    overflow: auto;
    max-height: 1000px;
}

#drawer {
    z-index: 1210;
}


#ride-map {
    /*display: block; */
    display: none;
    position: fixed;
    top: 15%;
    left: 15%;
    width: 70%;
    min-height: 600px;
    border: 1px solid #1f81a8;
    background-color: #fff;
    padding-bottom: 1%;
    z-index: 1220;
}

#ride-map .header {
    background: #1f81a8;
    color: #fff;
}

.close {
    color: #fff;
    float: right;
    font-size: 22px;
    font-weight: bold;
    position: relative;
    top: -10px;
    text-decoration: none;
}

.close:hover,
.close:focus {
    color: #fff;
    text-decoration: none;
    cursor: pointer;
}

#map-for-ride {
    width: 96%;
    min-height: 600px;
    margin: auto;
}

#ride-title, #process-title {
    width: 100%;
    font-size: 14px;
    font-weight: bold;
    padding-left: 12px;

}

@media only screen and (max-width: 800px) {

    #ride-map {
        top: 2%;
        left: 2%;
        width: 96%;
    }
}


/* ============================================================
   Poster bestellen
   ============================================================ */
.ps-hero {
    display: grid;
    grid-template-columns:minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 30px;
    align-items: center;
    margin-bottom: 26px
}

.ps-hero h2 {
    font-size: 36px
}

.ps-prices {
    list-style: none;
    margin: 0 0 6px;
    padding: 0;
    max-width: 360px
}

.ps-prices li {
    display: flex;
    gap: 6px;
    align-items: baseline;
    padding: 6px 0;
    border-bottom: 1px solid var(--line)
}

.ps-prices span {
    margin-left: auto;
    font-weight: 800;
    font-stretch: var(--cond);
    font-size: 18px
}

.ps-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    margin-top: 16px
}

.ps-cta > a:last-child {
    font-weight: 700;
    text-decoration: none
}

.ps-trio {
    display: grid;
    grid-template-columns:repeat(3, 1fr);
    gap: 14px;
    padding: 22px;
    background: linear-gradient(#EFEDE8, #E4E1DA);
    border-radius: 4px
}

.ps-frame {
    margin: 0;
    background: #fff;
    border: 6px solid #1c1c1c;
    box-shadow: 0 10px 22px -10px rgba(0, 0, 0, .45), inset 0 0 0 10px #fff;
    line-height: 0
}

.ps-frame > svg {
    width: 100%;
    height: auto;
    display: block
}

.ps-frame .pt {
    font: 800 13px var(--font);
    font-stretch: 85%;
    text-anchor: middle;
    fill: #222
}

.ps-frame .pd {
    font: 600 7px var(--font);
    text-anchor: middle
}

.ps-frame .sv {
    font: 700 9px var(--font);
    text-anchor: middle;
    fill: #222
}

.ps-frame .sl {
    font: 600 5.5px var(--font);
    text-anchor: middle;
    text-transform: uppercase;
    letter-spacing: .06em
}

.ps-frame .pl text {
    font-family: var(--font);
    font-weight: 600
}

.ps-steps {
    list-style: none;
    margin: 0 0 30px;
    padding: 16px 0;
    display: grid;
    grid-template-columns:repeat(3, 1fr);
    gap: 18px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line)
}

.ps-steps li {
    display: flex;
    gap: 12px;
    align-items: flex-start
}

.ps-steps li > span, .ps-h span {
    flex: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--blue);
    color: #fff;
    font-weight: 800;
    font-size: 14px;
    display: inline-grid;
    place-items: center
}

.ps-steps b {
    display: block
}

.ps-steps p {
    margin: 2px 0 0;
    font-size: 14px;
    color: var(--muted)
}

.ps-section {
    border-top: 3px solid var(--blue);
    padding-top: 12px;
    margin-bottom: 38px;
    scroll-margin-top: 120px
}

.ps-h {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 800;
    font-stretch: var(--cond);
    margin: 0 0 14px
}

.ps-pick {
    display: grid;
    grid-template-columns:minmax(0, 1.6fr) minmax(0, 1fr);
    gap: 24px;
    align-items: start
}

.ps-pick input[type=search] {
    width: 100%
}

.ps-rides {
    min-width: 0
}

.ps-rides td {
    vertical-align: top
}

.ps-rides td:first-child {
    white-space: nowrap;
    color: var(--muted);
    font-size: 14px
}

.ps-rides td:last-child, .ps-rides th:last-child {
    text-align: right;
    white-space: nowrap
}

.ps-rides tr {
    cursor: pointer
}

.ps-rides tbody tr:hover td {
    background: var(--blue-tint)
}

.ps-rides tr.sel td {
    background: var(--yellow-soft) !important;
    box-shadow: inset 0 2px 0 var(--yellow), inset 0 -2px 0 var(--yellow)
}

.ps-rides tr.sel td:first-child {
    box-shadow: inset 4px 0 0 var(--yellow), inset 0 2px 0 var(--yellow), inset 0 -2px 0 var(--yellow)
}

.ride-pick {
    background: none;
    border: 0;
    padding: 0;
    font: inherit;
    font-weight: 700;
    color: var(--link);
    cursor: pointer;
    text-align: left
}

.ride-sub {
    display: block;
    font-size: 12px;
    color: var(--muted);
    line-height: 1.4;
    margin-top: 1px
}

.ps-aside {
    display: flex;
    flex-direction: column;
    gap: 14px
}

.ps-dl {
    margin: 8px 0 14px;
    display: grid;
    grid-template-columns:auto 1fr;
    gap: 4px 14px;
    font-size: 14px
}

.ps-dl div {
    display: contents
}

.ps-dl dt {
    color: var(--muted)
}

.ps-dl dd {
    margin: 0;
    font-weight: 600
}

.ps-build {
    display: grid;
    grid-template-columns:minmax(0, 1fr) minmax(0, 1fr);
    gap: 34px;
    align-items: start;
    max-width: 900px
}

.ps-frame.big {
    border-width: 10px;
    box-shadow: 0 18px 36px -16px rgba(0, 0, 0, .5), inset 0 0 0 16px #fff;
    position: sticky;
    top: 110px
}

.ps-form, .ps-order {
    display: flex;
    flex-direction: column;
    gap: 12px
}

.ps-form label, .ps-order > label:not(.check), .ps-2col label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-weight: 600;
    font-size: 14px
}

.ps-form input, .ps-order input[type=text], .ps-order input[type=email] {
    font: inherit;
    font-weight: 400;
    padding: 8px 10px;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid #BFC5C8;
    border-radius: 4px;
    width: 100%
}

.ps-2col {
    display: grid;
    grid-template-columns:1fr 1fr;
    gap: 12px
}

.ps-form .swatches button {
    width: 34px;
    height: 34px
}

.ps-order {
    max-width: 640px
}

.ps-order legend {
    font-weight: 800;
    font-stretch: var(--cond);
    font-size: 18px;
    margin-bottom: 8px;
    padding: 0
}

.ps-types {
    display: grid;
    grid-template-columns:repeat(3, 1fr);
    gap: 10px
}

.ps-type {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 2px;
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 12px 12px 10px;
    cursor: pointer;
    background: var(--surface)
}

.ps-type input {
    position: absolute;
    opacity: 0
}

.ps-type b {
    font-size: 15px
}

.ps-type span {
    font-size: 13px;
    color: var(--muted)
}

.ps-type em {
    font-style: normal;
    font-weight: 800;
    font-stretch: var(--cond);
    font-size: 20px;
    margin-top: 6px
}

.ps-type:hover {
    border-color: var(--blue)
}

.ps-type:has(input:checked) {
    border: 2px solid var(--blue);
    padding: 11px 11px 9px;
    background: var(--blue-tint)
}

.ps-type:has(input:focus-visible) {
    outline: 2px solid var(--yellow);
    outline-offset: 2px
}

.ps-code-row {
    display: flex;
    gap: 8px
}

.ps-code-row input {
    flex: 1
}

.ps-total {
    border-top: 3px solid var(--blue);
    padding-top: 8px
}

.ps-total dl {
    margin: 0
}

.ps-total dl div {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    font-size: 15px
}

.ps-total dl div[hidden] {
    display: none
}

.ps-total dd {
    margin: 0;
    font-weight: 700
}

.ps-total .sum {
    border-top: 1px solid var(--line);
    margin-top: 4px;
    padding-top: 8px
}

.ps-total .sum dd {
    font-size: 24px;
    font-weight: 800;
    font-stretch: var(--cond)
}

.ps-order .cta {
    align-self: stretch
}

.ps-trust {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 13px;
    color: var(--muted)
}

.ps-trust li {
    padding-left: 18px;
    position: relative;
    margin-bottom: 3px
}

.ps-trust li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--ok);
    font-weight: 800
}

@media (max-width: 980px) {
    .ps-hero, .ps-pick, .ps-build {
        grid-template-columns:1fr
    }

    .ps-aside, .ps-frame.big {
        position: static
    }

    .ps-frame.big {
        max-width: 420px
    }
}

@media (max-width: 640px) {
    .ps-steps {
        grid-template-columns:1fr
    }

    .ps-types {
        grid-template-columns:1fr
    }

    .ps-2col {
        grid-template-columns:1fr 1fr
    }

    .ps-trio {
        padding: 12px;
        gap: 8px
    }

    .ps-hero h2 {
        font-size: 28px
    }
}


.code-done {
    display: none;
    font-weight: bold;
    color: #427c31;
}

img.login-logo {
    display: block;
    max-width: 200px;
    margin-bottom: 12px;
    margin: auto;
}

#map-for-poster {
    position: absolute;
    left: 32px;
    top: 32px;
    width: 350px;
    height: 370px;
}

/* Pro-pagina */
.pro-top{display:flex;justify-content:space-between;gap:24px;align-items:flex-start;max-width:1000px;margin-bottom:22px}
.pro-top .lead{color:var(--ink);margin-bottom:8px}
.pro-top p{margin:0 0 8px}
.price-tag{flex:none;width:150px;text-align:center;background:var(--yellow);color:#222;padding:14px 10px 12px;border-radius:4px;display:flex;flex-direction:column}
.price-tag b{font-size:40px;font-weight:800;font-stretch:var(--cond);line-height:1}
.price-tag span{font-size:13px}
.pt-label{font-weight:700;text-transform:uppercase;letter-spacing:.06em;font-size:11px!important;margin-bottom:4px}
html[data-plan="pro"] .price-tag{box-shadow:inset 0 0 0 3px #222}
.pro-grid{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,.9fr);gap:30px;align-items:start;max-width:1000px}
.pro-grid h3,.partners-title{font-size:20px;font-weight:800;font-stretch:var(--cond);margin:0 0 8px;color:var(--ink)}
.benefits,.deals{list-style:none;margin:0 0 20px;padding:0}
.benefits li{display:flex;gap:8px;align-items:center;padding:3px 0}
.deals li{padding:5px 0;border-bottom:1px solid var(--line);font-size:14px}
.deals b{display:inline-block;min-width:62px}
.pro-form{border-top:3px solid var(--yellow);background:var(--soft);padding:14px 16px;display:flex;flex-direction:column;gap:12px;position:sticky;top:110px}
.pro-form label{display:flex;flex-direction:column;gap:4px;font-weight:600;font-size:14px}
.cta{background:#3E8A3E;font-size:15px;padding:12px}
.cta:hover{background:#2F732F}
.partners-title{margin-top:28px!important}
.partners{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:16px;max-width:1000px}
.partner{display:flex;gap:14px;border-top:1px solid var(--line);padding-top:12px}
.plogo{flex:none;width:86px;height:86px;border:1px solid var(--line);display:grid;place-items:center;text-align:center;font-weight:800;font-stretch:var(--cond);font-size:14px;line-height:1.1;padding:6px;color:#444;background:#fff}
.partner h4{margin:0;font-size:16px}
.partner p{margin:2px 0;font-size:14px}
.partner .deal{font-weight:600;color:var(--blue)}
.partner code{background:var(--yellow-soft);padding:1px 6px;font-weight:700}
:target{scroll-margin-top:120px}
.partner:target{background:var(--yellow-soft)}
