/* Tourello — Website. Farben als Tokens, Dunkel nach System oder per Schalter (data-theme). */
:root {
  --bg: #f7f6f2;
  --bg-alt: #eeede6;
  --surface: #ffffff;
  --text: #1b2420;
  --muted: #5b665f;
  --line: #dcdcd2;
  --brand: #2e6a4a;
  --brand-strong: #1c3f2c;
  --brand-soft: #e1eee5;
  --accent: #e0662b;
  --accent-soft: #fbe6da;
  --ski: #2a6fdb;
  --ski-soft: #e2ecfb;
  --ok: #2e8b57;
  --part: #c98a12;
  --no: #a3aba5;
  --shadow: 0 1px 2px rgb(20 30 25 / .06), 0 8px 28px rgb(20 30 25 / .10);
  --radius: 14px;
  --hero-ink: #ffffff;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #101613; --bg-alt: #151d19; --surface: #1a231f; --text: #e8ece9; --muted: #a2ada6; --line: #2b3631;
    --brand: #6cc095; --brand-strong: #9fdcbb; --brand-soft: #1f3329; --accent: #f08a55; --accent-soft: #3a2519;
    --ski: #7aa9f5; --ski-soft: #1c2a40; --ok: #5cc28a; --part: #e0b04a; --no: #5e6a63;
    --shadow: 0 1px 2px rgb(0 0 0 / .4), 0 10px 30px rgb(0 0 0 / .35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #101613; --bg-alt: #151d19; --surface: #1a231f; --text: #e8ece9; --muted: #a2ada6; --line: #2b3631;
  --brand: #6cc095; --brand-strong: #9fdcbb; --brand-soft: #1f3329; --accent: #f08a55; --accent-soft: #3a2519;
  --ski: #7aa9f5; --ski-soft: #1c2a40; --ok: #5cc28a; --part: #e0b04a; --no: #5e6a63;
  --shadow: 0 1px 2px rgb(0 0 0 / .4), 0 10px 30px rgb(0 0 0 / .35);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI Variable", "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  text-rendering: optimizeLegibility;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-strong); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5.5vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 750; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--accent); margin-bottom: .6em; }
.lead { font-size: clamp(1.08rem, 1.8vw, 1.3rem); color: var(--muted); max-width: 46em; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--surface); padding: 8px 12px; border-radius: 8px; }
.missing { color: var(--accent); font-style: italic; }
section { padding: clamp(56px, 8vw, 104px) 0; }
section.alt { background: var(--bg-alt); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

/* Kopf */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; font-size: 1.25rem; letter-spacing: -0.02em; }
.brand img { border-radius: 8px; }
.brand-small { font-size: 1.05rem; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.site-nav a { color: var(--text); text-decoration: none; padding: 8px 12px; border-radius: 999px; font-weight: 550; font-size: .97rem; }
.site-nav a:hover { background: var(--brand-soft); }
.site-nav a[aria-current="page"] { color: var(--brand); background: var(--brand-soft); }
.nav-tools { display: inline-flex; align-items: center; gap: 4px; margin-left: 8px; padding-left: 12px; border-left: 1px solid var(--line); }
/* Sprachmenü: <details> ohne Skript; site.js schliesst es nur bei Klick daneben und mit Esc */
.lang-menu { position: relative; }
.lang-menu > summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-weight: 700; font-size: .85rem; color: var(--text); border: 1px solid var(--line); border-radius: 999px; padding: 5px 10px; user-select: none; }
.lang-menu > summary::-webkit-details-marker { display: none; }
.lang-menu > summary:hover, .lang-menu[open] > summary { background: var(--brand-soft); }
.lang-list { position: absolute; right: 0; top: calc(100% + 6px); z-index: 60; list-style: none; margin: 0; padding: 6px; min-width: 150px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
.lang-list li { margin: 0; }
.site-nav .lang-list a { display: block; padding: 8px 12px; border-radius: 8px; white-space: nowrap; }
.site-nav .lang-list a[aria-current="true"] { color: var(--brand); background: var(--brand-soft); }
.theme-toggle, .nav-toggle, .search-open { background: none; border: 0; color: var(--text); cursor: pointer; padding: 8px; border-radius: 999px; display: inline-grid; place-items: center; }
.theme-toggle:hover, .nav-toggle:hover, .search-open:hover { background: var(--brand-soft); }
.search-open[hidden] { display: none; }
.i-moon { display: none; }
:root[data-theme="dark"] .i-sun { display: none; }
:root[data-theme="dark"] .i-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .i-sun { display: none; }
  :root:not([data-theme="light"]) .i-moon { display: block; }
}
.nav-toggle { display: none; margin-left: auto; }
@media (max-width: 860px) {
  .nav-toggle { display: inline-grid; order: 3; margin-left: 0; }
  .search-open { margin-left: auto; }
  .site-nav { display: none; position: absolute; inset: 64px 0 auto 0; flex-direction: column; align-items: stretch; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px; }
  .nav-tools { margin: 8px 0 0; padding: 12px 0 0; border-left: 0; border-top: 1px solid var(--line); justify-content: space-between; }
  .lang-list { right: auto; left: 0; }
}

/* Knöpfe */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 999px; font-weight: 700; text-decoration: none; border: 2px solid transparent; transition: transform .15s ease, background .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { color: #fff; background: color-mix(in srgb, var(--accent) 88%, #000); }
.btn-ghost { border-color: currentColor; color: var(--text); }
.btn-ghost:hover { color: var(--text); background: var(--brand-soft); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Startseite: Bühne */
.hero { position: relative; min-height: min(88vh, 860px); display: grid; align-items: end; padding: 0; color: var(--hero-ink); overflow: hidden; isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img, .hero-media video { width: 100%; height: 100%; object-fit: cover; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgb(8 14 11 / .78) 0%, rgb(8 14 11 / .55) 45%, rgb(8 14 11 / .05) 80%), linear-gradient(180deg, rgb(8 14 11 / .35) 0%, transparent 30%, transparent 70%, rgb(8 14 11 / .6) 100%); }
@media (max-width: 760px) { .hero::before { background: linear-gradient(180deg, rgb(8 14 11 / .45) 0%, rgb(8 14 11 / .65) 45%, rgb(8 14 11 / .88) 100%); } }
.hero-inner { padding: 120px 0 64px; }
.hero h1 { max-width: 13em; text-shadow: 0 2px 24px rgb(0 0 0 / .35); }
.hero .lead { color: rgb(255 255 255 / .9); max-width: 38em; }
.hero .btn-ghost { color: #fff; }
.hero .btn-ghost:hover { background: rgb(255 255 255 / .12); }
.hero .eyebrow { color: #ffc29f; }
.platforms { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.platform { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: rgb(255 255 255 / .14); border: 1px solid rgb(255 255 255 / .28); font-weight: 600; font-size: .92rem; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.platform svg { width: 18px; height: 18px; }
.hero-credit { position: absolute; right: 12px; bottom: 8px; font-size: .72rem; color: rgb(255 255 255 / .7); }

/* Zahlenleiste */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 34px 0; border-bottom: 1px solid var(--line); }
.fact strong { display: block; font-size: clamp(1.5rem, 3vw, 2.1rem); color: var(--brand); letter-spacing: -0.02em; line-height: 1.1; }
.fact span { color: var(--muted); font-size: .95rem; }
@media (max-width: 760px) { .facts { grid-template-columns: repeat(2, 1fr); } }

/* Karten mit Alleinstellungsmerkmalen */
.section-head { max-width: 760px; margin-bottom: 44px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.card h3 { display: flex; gap: 12px; align-items: center; }
.card .ico { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.card .ico svg { width: 24px; height: 24px; }
.card.ski .ico { background: var(--ski-soft); color: var(--ski); }
.card.hot .ico { background: var(--accent-soft); color: var(--accent); }
.card p { color: var(--muted); margin: 0; }
.card .vs { margin-top: 12px; font-size: .9rem; padding-top: 12px; border-top: 1px dashed var(--line); }
.badge { display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); vertical-align: middle; }

/* Abwechselnde Vorstellungen: Text + Bild */
.feature { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.feature + .feature { margin-top: clamp(64px, 9vw, 120px); }
.feature.flip > :first-child { order: 2; }
.feature ul { padding-left: 1.2em; color: var(--muted); }
.feature li { margin-bottom: .35em; }
.feature li strong { color: var(--text); }
.feature-media { position: relative; }
@media (max-width: 900px) { .feature { grid-template-columns: 1fr; } .feature.flip > :first-child { order: 0; } }

/* Gerätebilder */
figure { margin: 0; }
figcaption { font-size: .86rem; color: var(--muted); margin-top: 10px; text-align: center; }
.zoom { cursor: zoom-in; }
.mac { border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); background: var(--surface); }
.mac::before { content: ""; display: block; height: 26px; border-bottom: 1px solid var(--line); }
.mac::before { background-color: var(--bg-alt); background-image: radial-gradient(circle at 16px 13px, #ff5f57 5px, transparent 5.5px), radial-gradient(circle at 34px 13px, #febc2e 5px, transparent 5.5px), radial-gradient(circle at 52px 13px, #28c840 5px, transparent 5.5px); }
.phone { width: min(300px, 78vw); margin-inline: auto; padding: 10px; border-radius: 40px; background: #0e1210; box-shadow: var(--shadow), inset 0 0 0 2px #2a302d; }
.phone img { border-radius: 30px; aspect-ratio: 720 / 1395; object-fit: cover; }
.phones { display: flex; gap: clamp(12px, 3vw, 32px); justify-content: center; align-items: flex-start; }
.phones .phone { width: min(260px, 44vw); }
.phones .phone:nth-child(2) { margin-top: 48px; }
.wide-shot { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.overlap { position: relative; }
.overlap .phone { position: absolute; right: -8px; bottom: -40px; width: min(190px, 34%); padding: 7px; border-radius: 28px; }
.overlap .phone img { border-radius: 22px; }
@media (max-width: 600px) { .overlap .phone { display: none; } }

/* Video */
.video-card { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #000; }
.video-card video { width: 100%; aspect-ratio: 1280 / 1052; object-fit: cover; }
/* The flight over the Matterhorn (2026-10-16): a wide 16:9 block under the 3D feature. */
.flight-intro { margin: clamp(64px, 9vw, 120px) auto 0; max-width: 760px; text-align: center; }
.flight-intro ul { display: inline-block; text-align: left; margin: 4px auto 0; padding-left: 1.2em; color: var(--muted); }
.flight-intro li { margin-bottom: .35em; }
.flight-intro li strong { color: var(--text); }
.flight-video { margin: 24px 0 0; }
.video-card.wide video { aspect-ratio: 16 / 9; }
.flight-video + .feature { margin-top: clamp(64px, 9vw, 120px); }
.video-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 760px) { .video-grid { grid-template-columns: 1fr; } }

/* Galerie */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.gallery figure { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.gallery img, .gallery video { aspect-ratio: 16 / 11; object-fit: cover; width: 100%; display: block; }
.gallery figcaption { padding: 10px 14px 14px; text-align: left; margin: 0; }
.gallery figcaption strong { display: block; color: var(--text); font-size: .95rem; }

/* Profile-Reiter */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.tab { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--text); padding: 10px 16px; border-radius: 999px; font: inherit; font-weight: 650; cursor: pointer; }
.tab svg { width: 20px; height: 20px; }
.tab[aria-selected="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
:root[data-theme="dark"] .tab[aria-selected="true"] { color: #0d1511; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tab[aria-selected="true"] { color: #0d1511; } }
.tab.ski[aria-selected="true"] { background: var(--ski); border-color: var(--ski); }
.panel { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.panel[hidden] { display: none; }
@media (max-width: 860px) { .panel { grid-template-columns: 1fr; } }

/* Plattformen */
.platform-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 860px) { .platform-grid { grid-template-columns: 1fr; } }
.platform-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.platform-card h3 { display: flex; align-items: center; gap: 10px; }
.platform-card svg { width: 28px; height: 28px; color: var(--brand); }
.platform-card ul { margin: 0; padding-left: 1.1em; color: var(--muted); }

/* Aufruf */
.cta { text-align: center; background: linear-gradient(135deg, var(--brand-strong), var(--brand)); color: #fff; border-radius: 24px; padding: clamp(40px, 6vw, 72px) 24px; }
:root[data-theme="dark"] .cta { background: linear-gradient(135deg, #1f3a2c, #2e6a4a); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cta { background: linear-gradient(135deg, #1f3a2c, #2e6a4a); } }
.cta p { color: rgb(255 255 255 / .88); max-width: 40em; margin-inline: auto; }
.cta .btn-row { justify-content: center; }
.cta .btn-ghost { color: #fff; }

/* Seitenkopf der Unterseiten */
.page-head { padding: clamp(48px, 7vw, 88px) 0 clamp(28px, 4vw, 44px); border-bottom: 1px solid var(--line); background: var(--bg-alt); }
.page-head h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.toc a { text-decoration: none; padding: 6px 13px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--text); font-size: .92rem; font-weight: 550; }
.toc a:hover { border-color: var(--brand); color: var(--brand); }

/* Funktionstabellen */
.legend { display: flex; flex-wrap: wrap; gap: 18px; font-size: .9rem; color: var(--muted); margin-top: 18px; }
.fgroup { margin-bottom: 48px; scroll-margin-top: 84px; }
.fgroup h2 { font-size: 1.5rem; display: flex; align-items: center; gap: 12px; }
.fgroup h2 .ico { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.fgroup h2 .ico svg { width: 22px; height: 22px; }
.ftable { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: .97rem; }
.ftable th, .ftable td { padding: 11px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.ftable tr:last-child td { border-bottom: 0; }
.ftable th { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: var(--bg-alt); }
.ftable th.d, .ftable td.d { text-align: center; width: 76px; white-space: nowrap; }
.y, .p, .n { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font-size: .8rem; font-weight: 800; }
.y { background: color-mix(in srgb, var(--ok) 18%, transparent); color: var(--ok); }
.y::after { content: "✓"; }
.p { background: color-mix(in srgb, var(--part) 20%, transparent); color: var(--part); }
.p::after { content: "◐"; }
.n { color: var(--no); }
.n::after { content: "–"; }
.unique { color: var(--accent); font-size: .78rem; font-weight: 800; margin-left: 6px; white-space: nowrap; }
@media (max-width: 600px) { .ftable th.d, .ftable td.d { width: 44px; padding-inline: 4px; } .ftable { font-size: .92rem; } }

/* Anleitungen */
.guide { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 3.5vw, 36px); margin-bottom: 26px; scroll-margin-top: 84px; }
.guide-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 14px; }
.guide-head .ico { flex: none; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.guide-head .ico svg { width: 26px; height: 26px; }
.guide-head h2 { font-size: 1.45rem; margin: 0; }
.guide-head p { margin: 4px 0 0; color: var(--muted); }
.guide-body { display: grid; grid-template-columns: 1fr 240px; gap: 32px; align-items: start; }
.guide-body.no-media { grid-template-columns: 1fr; }
.guide-shots { display: grid; gap: 16px; }
.legend { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px 40px; }
.legend-sec h3 { margin: 0 0 6px; }
.legend-sec h4 { margin: 14px 0 6px; }
.legend-sec p { margin: 0 0 10px; color: var(--muted); }
.legend-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.legend-list li { display: flex; align-items: center; gap: 12px; }
.legend-list .sw { flex: none; background: #f1eee3; border-radius: 4px; }
@media (max-width: 760px) { .guide-body { grid-template-columns: 1fr; } .guide-body .phone { width: 220px; } }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: s; position: relative; padding: 0 0 14px 44px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: .88rem; }
:root[data-theme="dark"] .steps li::before { color: #0d1511; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .steps li::before { color: #0d1511; } }
.ui { font-weight: 650; background: var(--bg-alt); border: 1px solid var(--line); border-radius: 6px; padding: 0 6px; white-space: nowrap; }
.tip { background: var(--accent-soft); border-radius: 10px; padding: 12px 16px; margin-top: 8px; font-size: .95rem; }
.platform-note { font-size: .88rem; color: var(--muted); }

/* FAQ */
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; padding: 0 20px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 18px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); }

/* Textseiten (Impressum, Datenschutz, Kontakt) */
.prose { padding: 48px 0 80px; }
.prose h2 { font-size: 1.35rem; margin-top: 2em; }
.prose h3 { margin-top: 1.5em; }
.prose address { font-style: normal; line-height: 1.8; }
.contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; margin: 24px 0; }
.contact-card > :first-child { margin-top: 0; }
.contact-card > :last-child { margin-bottom: 0; }

/* Fuss */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 48px; background: var(--bg-alt); margin-top: 0; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.footer-inner .sources { font-size: .82rem; color: var(--muted); max-width: 640px; margin: 12px 0 0; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 6px 20px; align-items: flex-start; }
.footer-nav a { color: var(--muted); text-decoration: none; font-size: .95rem; }
.footer-nav a:hover, .footer-nav a[aria-current="page"] { color: var(--brand); }
.footer-langs { display: flex; flex-wrap: wrap; gap: 6px 14px; flex-basis: 100%; }

/* Bild gross */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 96vh; overflow: visible; }
.lightbox::backdrop { background: rgb(5 8 7 / .86); }
.lightbox img { max-width: 96vw; max-height: 88vh; border-radius: 10px; margin: auto; cursor: zoom-out; }
.lightbox video { display: block; max-width: 96vw; max-height: 88vh; border-radius: 10px; margin: auto; cursor: zoom-out; }
.lightbox video[hidden], .lightbox img[hidden] { display: none; }
/* Kacheln mit Video: ein ▶ oben links sagt, dass es läuft und sich groß ansehen lässt */
.gallery figure.has-video, .video-card { position: relative; }
.gallery figure.has-video::after, .video-card::after { content: "▶"; position: absolute; top: 10px; left: 10px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; color: #fff; background: rgb(0 0 0 / .55); pointer-events: none; }
.lightbox.tall img { max-height: 88vh; width: auto; }
.lightbox-caption { color: #e8ece9; text-align: center; margin: 10px 0 0; font-size: .95rem; }
.lightbox-close { position: fixed; top: 14px; right: 18px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgb(255 255 255 / .15); color: #fff; font-size: 1.8rem; line-height: 1; cursor: pointer; }

/* Flex- und Grid-Kinder dürfen schmaler werden als ihr Bild (sonst ragt das zweite Telefon über den Rand) */
.feature > *, .panel > *, .guide-body > * { min-width: 0; }
.phones > .phone { min-width: 0; flex: 0 1 260px; }

/* iPad im Querformat */
.ipad { padding: 14px; border-radius: 28px; background: #0e1210; box-shadow: var(--shadow), inset 0 0 0 2px #2a302d; }
.ipad img { border-radius: 16px; aspect-ratio: 1600 / 1085; object-fit: cover; width: 100%; }
@media (max-width: 600px) { .ipad { padding: 8px; border-radius: 18px; } .ipad img { border-radius: 10px; } }

/* Hinweis „noch nicht im App Store / bei Google Play" (seit 2026-10-16) — Startseite und Kontakt. */
.availability { margin: 18px 0 0; padding: 12px 16px; border-radius: 12px; background: var(--surface, rgba(255,255,255,.9)); color: var(--text, #1d2520); border: 1px solid var(--line, rgba(0,0,0,.12)); max-width: 46rem; font-size: .95rem; line-height: 1.45; }
.hero .availability { background: rgba(255,255,255,.92); color: #1d2520; }
.availability a { color: inherit; font-weight: 600; }

/* Startseite: vor, während, nach der Tour (seit 2026-10-18) */
.phases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.phase { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.phase .video-card { border-radius: 0; box-shadow: none; }
.phase .video-card video { aspect-ratio: 16 / 10; }
.phase h3 { margin: 16px 18px 6px; }
.phase p { margin: 0 18px 10px; color: var(--muted); flex: 1; }
.phase .more { margin: 0 18px 18px; font-weight: 600; }
@media (max-width: 900px) { .phases { grid-template-columns: 1fr; } }
.btn-row.center { justify-content: center; margin-top: 28px; }

/* Startseite: was Tourello anders macht (seit 2026-10-18) — Kacheln, die zu ihrem Abschnitt in den Einblicken führen */
.highlights-section { padding-bottom: 0; }
.highlights { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) { .highlights { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .highlights { grid-template-columns: 1fr; } }
.highlight { display: grid; grid-template-columns: 46px 1fr; gap: 4px 14px; align-content: start; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: var(--radius); color: var(--text); text-decoration: none; transition: transform .15s ease, box-shadow .15s; }
.highlight:hover { color: var(--text); transform: translateY(-2px); box-shadow: var(--shadow); }
.highlight .ico { grid-row: span 2; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.highlight .ico svg { width: 26px; height: 26px; }
.highlight strong { font-size: 1.08rem; line-height: 1.3; }
.highlight span:last-child { color: var(--muted); font-size: .95rem; line-height: 1.5; }
.ftable .unique { font-weight: 700; }
.legend .unique { margin: 0; }

/* Suche (seit 2026-10-18): Fenster oben, Treffer mit Seite › Abschnitt und Textstück */
.search { width: min(680px, 100% - 32px); max-height: min(78vh, 720px); margin: 10vh auto auto; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--text); box-shadow: var(--shadow); display: none; flex-direction: column; overflow: hidden; }
.search[open] { display: flex; }
.search::backdrop { background: rgb(5 8 7 / .55); }
.search-bar { display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 16px; border-bottom: 1px solid var(--line); color: var(--muted); }
.search-bar input { flex: 1; min-width: 0; border: 0; background: none; color: var(--text); font: inherit; font-size: 1.1rem; padding: 8px 0; outline: none; }
.search-bar input::-webkit-search-cancel-button { display: none; }
.search-close { background: none; border: 0; color: var(--muted); font-size: 1.6rem; line-height: 1; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; }
.search-close:hover { background: var(--brand-soft); color: var(--text); }
.search-status { margin: 0; padding: 8px 18px 0; font-size: .85rem; color: var(--muted); }
.search-status:empty { display: none; }
.search-results { list-style: none; margin: 0; padding: 8px; overflow-y: auto; }
.search-results a { display: block; padding: 10px 12px; border-radius: 10px; color: var(--text); text-decoration: none; }
.search-results a:hover, .search-results a:focus-visible { background: var(--brand-soft); outline: none; }
.search-where { color: var(--brand); font-size: .85rem; font-weight: 650; }
.search-results strong { font-size: .97rem; }
.search-text { display: block; color: var(--muted); font-size: .9rem; line-height: 1.45; margin-top: 2px; }
.search-results mark { background: var(--accent-soft); color: inherit; border-radius: 3px; padding: 0 1px; }
@media (max-width: 600px) { .search { margin-top: 12px; max-height: calc(100vh - 24px); } }
/* Sprungziel: unter dem festen Kopf, kurz hervorgehoben */
[id] { scroll-margin-top: 84px; }
.search-hit { animation: hit 1.8s ease-out; outline-offset: 6px; }
@keyframes hit { from { outline: 3px solid var(--accent); } to { outline: 3px solid transparent; } }
@media (prefers-reduced-motion: reduce) { .search-hit { animation: none; } }

/* Anleitungen: das passende Video über den Schritten (seit 2026-10-18) */
.guide-video { margin: 4px 0 22px; max-width: 560px; }
.guide-video .video-card { position: relative; }
.guide-video video { aspect-ratio: 16 / 10; }

/* ---- Regionenkarte (regionen.html, Daten aus scripts/region-map.mjs, Skript assets/js/region-map.js) ---- */
.region-map { position: relative; max-width: max(320px, calc((100vh - 140px) * 1000 / 1004)); margin-inline: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.region-map .rm-stage { aspect-ratio: 1000 / 1004; background: color-mix(in srgb, var(--ski-soft) 70%, var(--surface)); }
.region-map .rm-stage svg { display: block; width: 100%; height: 100%; cursor: default; user-select: none; }
.region-map.dragging .rm-stage svg { cursor: grabbing; }
.region-map:not(.ready) .rm-stage::after { content: attr(data-loading); display: grid; place-items: center; height: 100%; color: var(--muted); }
.region-map.failed .rm-stage::after { content: attr(data-failed); }
.rm-base path { fill: var(--bg-alt); stroke: var(--line); stroke-width: .5; vector-effect: non-scaling-stroke; }
.rm-regions path { fill: var(--brand); fill-opacity: .55; stroke: var(--surface); stroke-width: .8; vector-effect: non-scaling-stroke; fill-rule: evenodd; }
.rm-regions path.hover { fill-opacity: .9; }
.rm-ortho path { fill: var(--accent); fill-opacity: 0; stroke: none; fill-rule: evenodd; vector-effect: non-scaling-stroke; }
.region-map.show-ortho .rm-regions path { fill-opacity: .3; }
.region-map.show-ortho .rm-regions path.hover { fill-opacity: .5; }
.region-map.show-ortho .rm-ortho path { fill-opacity: .28; stroke: var(--accent); stroke-width: .7; stroke-opacity: .8; }
.region-map.show-ortho .rm-ortho path.hover { fill-opacity: .5; }
.rm-alps path { fill: transparent; stroke: var(--brand-strong); stroke-width: 1.2; stroke-dasharray: 4 3; vector-effect: non-scaling-stroke; }
.rm-tools { position: absolute; top: 12px; right: 12px; display: flex; flex-direction: column; gap: 6px; }
.rm-tools button { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: 600 1.1rem/1 inherit; cursor: pointer; box-shadow: var(--shadow); }
.rm-tools button:hover { border-color: var(--brand); }
.rm-tip { position: absolute; z-index: 2; max-width: min(340px, 80%); padding: 10px 12px; background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); font-size: .9rem; line-height: 1.4; pointer-events: none; }
.rm-tip-ortho { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--line); }
.rm-tip-ortho ul { margin: 2px 0 0; padding-left: 1.1em; }
.rm-legend { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; padding: 12px 16px; border-top: 1px solid var(--line); font-size: .92rem; }
.rm-legend .sw { display: inline-block; width: 18px; height: 12px; border-radius: 3px; vertical-align: -1px; margin-right: 6px; }
.rm-legend .sw-region { background: color-mix(in srgb, var(--brand) 60%, transparent); }
.rm-legend .sw-ortho { background: color-mix(in srgb, var(--accent) 40%, transparent); border: 1px solid var(--accent); }
.rm-legend .sw-alps { border: 2px dashed var(--brand-strong); height: 12px; }
.rm-legend label { cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.rm-legend .rm-hint { margin-left: auto; color: var(--muted); }
.rm-stats { justify-content: center; display: flex; flex-wrap: wrap; gap: 12px 32px; margin: 20px 0 0; }
.rm-stats strong { font-size: 1.6rem; display: block; color: var(--brand); }
.rm-base path { fill: var(--bg-alt); stroke: none; }
.rm-lakes path { fill: color-mix(in srgb, var(--ski-soft) 70%, var(--surface)); stroke: none; pointer-events: none; }
.rm-borders path { fill: none; stroke: var(--surface); stroke-width: 1.2; stroke-linejoin: round; vector-effect: non-scaling-stroke; pointer-events: none; }
.rm-regions path { stroke: color-mix(in srgb, var(--surface) 70%, transparent); stroke-width: .5; }
.rm-stats > div { text-align: center; }

/* Regionenkarte am Telefon (seit 2026-11-03): Infofeld unter der Karte statt unter dem Finger, grössere Knöpfe,
   Vollbild als feste Ebene über der Seite (das iPhone kennt die Fullscreen-API nicht). */
.rm-info { display: none; padding: 10px 16px; border-top: 1px solid var(--line); font-size: .95rem; line-height: 1.45; min-height: 3.2em; }
.rm-info .rm-tip-ortho ul { margin: 2px 0 0; padding-left: 1.1em; }
.rm-hint-touch { display: none; }
@media (hover: none), (pointer: coarse) {
  .rm-info { display: block; }
  .rm-hint:not(.rm-hint-touch) { display: none; }
  .rm-hint-touch { display: inline; }
  .rm-tools button { width: 44px; height: 44px; font-size: 1.25rem; }
}
.region-map.full { position: fixed; inset: 0; z-index: 1000; max-width: none; margin: 0; border: 0; border-radius: 0; display: flex; flex-direction: column; }
.region-map.full .rm-stage { flex: 1; min-height: 0; aspect-ratio: auto; }
.region-map.full .rm-tools { top: max(12px, env(safe-area-inset-top)); }
.region-map.full .rm-legend { padding-bottom: max(12px, env(safe-area-inset-bottom)); }
.region-map.full .rm-info { max-height: 30vh; overflow: auto; }
html.rm-noscroll, html.rm-noscroll body { overflow: hidden; }
@media (max-width: 640px) {
  .rm-legend { gap: 6px 16px; padding: 10px 12px; font-size: .88rem; }
  .rm-legend .rm-hint { margin-left: 0; width: 100%; }
}
