/* ÖV Schweiz website — same structure as the iKK Voice site, colours of the new app icon. */
:root {
  --brand: #2d327d;
  --brand-strong: #23276b;
  --ink-blue: #1b1f5c;
  --accent: #e30613;
  --tint: #e6e7f4;
  --bg: #ffffff;
  --surface: #f4f5fa;
  --text: #15182b;
  --muted: #4d5166;
  --line: #dadce8;
  --link: #2d327d;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1120;
    --surface: #181b30;
    --text: #e9eaf5;
    --muted: #aab0cc;
    --line: #2a2e4a;
    --link: #9fa6ff;
    --tint: #23274d;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 1.125rem/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

a { color: var(--link); text-underline-offset: 0.15em; }
a:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--bg); padding: 0.5rem 1rem; z-index: 10; }

.wrap { max-width: 68rem; margin: 0 auto; padding-inline: 1.25rem; }
.narrow { max-width: 46rem; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-block: 0.9rem; }
.brand { display: flex; align-items: center; gap: 0.6rem; color: var(--text); text-decoration: none; font-weight: 700; font-size: 1.2rem; }
.brand img { width: 2.25rem; height: 2.25rem; border-radius: 22%; }
.site-header nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.site-header nav a { text-decoration: none; font-weight: 600; }
.site-header nav a[aria-current="page"] { text-decoration: underline; }

/* Language switch (DE EN FR IT), same pill as on ideenkaffee.ch */
.langswitch { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.langswitch a {
  padding: 0.3rem 0.68rem; border-radius: 999px; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.04em;
  color: var(--muted); text-decoration: none; transition: background-color 0.18s ease, color 0.18s ease;
}
.langswitch a[aria-current="true"] { background: var(--brand); color: #fff; }
.langswitch a:not([aria-current="true"]):hover { color: var(--text); }
@media (max-width: 40rem) { .site-header .wrap { justify-content: center; } }

/* Hero */
.hero {
  background: linear-gradient(180deg, var(--brand) 0%, var(--ink-blue) 100%);
  color: #fff;
  padding-block: 4.5rem 5rem;
  text-align: center;
}
.hero img { width: 7.5rem; height: 7.5rem; border-radius: 22%; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35); }
.hero h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); line-height: 1.1; margin: 1.5rem 0 0.75rem; letter-spacing: -0.02em; }
.hero p { font-size: clamp(1.15rem, 2.5vw, 1.4rem); max-width: 40rem; margin: 0 auto; color: #e4e6ff; }
.badge {
  display: inline-block; margin-top: 2rem; padding: 0.85rem 1.6rem; border-radius: 999px;
  background: #fff; color: var(--ink-blue); font-weight: 700; text-decoration: none;
}
.badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin-top: 2rem; }
.badges .badge { margin-top: 0; }

/* Sections */
section { padding-block: 3.5rem; }
section + section { border-top: 1px solid var(--line); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.1rem); line-height: 1.2; margin: 0 0 1.25rem; letter-spacing: -0.01em; }
h3 { font-size: 1.25rem; margin: 0 0 0.4rem; }
.lead { font-size: 1.25rem; color: var(--muted); max-width: 46rem; margin-top: 0; }

.grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); margin-top: 1.75rem; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 1rem; padding: 1.4rem 1.5rem; }
.card p { margin: 0; color: var(--muted); }

ul.checks { padding-left: 0; list-style: none; display: grid; gap: 0.6rem; }
ul.checks li { padding-left: 1.9rem; position: relative; }
ul.checks li::before {
  content: ""; position: absolute; left: 0; top: 0.35em; width: 1.1rem; height: 1.1rem; border-radius: 50%;
  background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/80% no-repeat;
}

.note { background: var(--tint); border-radius: 0.75rem; padding: 1rem 1.25rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Screenshots */
.gallery { display: grid; gap: 1.25rem; grid-template-columns: repeat(2, 1fr); margin-top: 1.75rem; max-width: 46rem; margin-left: auto; margin-right: auto; }
@media (min-width: 40rem) { .gallery { grid-template-columns: repeat(3, 1fr); } }
.gallery figure { margin: 0; text-align: center; }
.gallery img { width: 100%; height: auto; border-radius: 1.4rem; border: 1px solid var(--line); box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12); }
.gallery figcaption { margin-top: 0.6rem; color: var(--muted); font-size: 1rem; }

/* Help videos (portrait phone recordings, four languages) */
.lang-switch { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.25rem; }
.lang-switch button {
  font: inherit; font-weight: 600; cursor: pointer; padding: 0.4rem 1rem; border-radius: 999px;
  border: 2px solid var(--line); background: var(--bg); color: var(--text);
}
.lang-switch button:hover { border-color: var(--brand); }
.lang-switch button[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.videos { display: grid; gap: 1.5rem 2rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); max-width: 46rem; margin-top: 1.75rem; }
.videos figure { margin: 0; }
.videos video {
  display: block; width: 100%; max-width: 20rem; height: auto; aspect-ratio: 456 / 808; margin: 0 auto;
  background: #000; border-radius: 1.4rem; border: 1px solid var(--line); box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}
.videos figcaption { margin-top: 0.8rem; color: var(--muted); font-size: 1rem; max-width: 20rem; margin-inline: auto; }
.videos figcaption strong { color: var(--text); }

/* City photo strip */
.strip { display: grid; gap: 0.6rem; grid-template-columns: repeat(5, 1fr); margin-top: 1.75rem; }
.strip img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 0.75rem; }
@media (max-width: 40rem) { .strip { grid-template-columns: repeat(3, 1fr); } .strip img:nth-child(n+4) { display: none; } }

/* Packages */
.packages { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); margin-top: 1.75rem; }
.package { border-radius: 1rem; padding: 1.5rem 1.6rem; border: 2px solid var(--line); background: var(--surface); }
.package.all { border-color: var(--brand); }
.package .tag {
  display: inline-block; font-size: 0.9rem; font-weight: 700; letter-spacing: 0.02em;
  padding: 0.2rem 0.7rem; border-radius: 999px; margin-bottom: 0.75rem; background: var(--line); color: var(--text);
}
.package.all .tag { background: var(--brand); color: #fff; }
.package h3 { font-size: 1.4rem; margin-bottom: 0.3rem; }
.package .price { font-size: 1.6rem; font-weight: 700; color: var(--brand); margin: 0 0 0.6rem; }
.package .once { display: inline-block; font-size: 0.85rem; font-weight: 600; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 0.1rem 0.55rem; vertical-align: middle; margin-left: 0.3rem; }
@media (prefers-color-scheme: dark) { .package .price { color: var(--link); } }
.package p { margin: 0 0 0.75rem; }
.package .names { font-size: 0.95rem; color: var(--muted); line-height: 1.5; margin: 0; }
.footnote { font-size: 0.95rem; color: var(--muted); }

/* Package map */
.map-wrap { margin-top: 1rem; }
.map { border: 1px solid var(--line); border-radius: 1rem; overflow: hidden; background: #fff; }
.map svg { display: block; width: 100%; height: auto; }
.map #regions path, .map #cities circle[id] { cursor: pointer; transition: fill-opacity 0.15s, stroke-width 0.15s; }
.map #regions path:hover, .map #regions path.active { fill-opacity: 1; stroke: #15182b; stroke-width: 2.5; }
.map #cities circle[id]:hover, .map #cities circle[id].active { stroke-width: 4.5; stroke: var(--accent); }
.map path:focus-visible, .map circle:focus-visible { outline: none; stroke: var(--accent); stroke-width: 4; }
.map-info { margin: 0.75rem 0 0; min-height: 1.6rem; color: var(--muted); }
.map-info.pinned { color: var(--text); }
.map-info strong { color: var(--text); }

/* Suggestions (regionen.html) */
.suggest-form { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-top: 1.5rem; }
.suggest-form input[type="text"], .search input[type="search"] {
  flex: 1 1 18rem; font: inherit; padding: 0.75rem 1rem; border: 2px solid var(--line); border-radius: 0.75rem;
  background: var(--bg); color: var(--text); min-width: 0;
}
.suggest-form input:focus, .search input:focus { outline: none; border-color: var(--brand); }
.btn {
  font: inherit; font-weight: 700; padding: 0.75rem 1.4rem; border-radius: 0.75rem; border: 0; cursor: pointer;
  background: var(--brand); color: #fff;
}
.btn:disabled { opacity: 0.5; cursor: default; }
.counter { font-size: 0.9rem; color: var(--muted); margin: 0.35rem 0 0; }
.status { min-height: 1.5rem; font-size: 0.95rem; margin: 0.5rem 0 0; color: var(--muted); }
.status.error { color: var(--accent); }
.hints { background: var(--tint); border-radius: 0.9rem; padding: 0.9rem 1.1rem; margin-top: 0.75rem; }
.hints-title { margin: 0 0 0.6rem; font-size: 0.95rem; color: var(--muted); }
.hints ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.hints li { display: flex; align-items: center; gap: 0.5rem; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 0.25rem 0.3rem 0.25rem 0.9rem; font-size: 1rem; }
.hints .like { padding: 0.2rem 0.7rem; font-size: 0.9rem; }
.search { margin-top: 2rem; display: flex; }
ol.suggestions { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: 0.5rem; }
ol.suggestions li {
  display: flex; align-items: center; gap: 0.9rem; background: var(--surface); border: 1px solid var(--line);
  border-radius: 0.9rem; padding: 0.7rem 0.9rem 0.7rem 1.1rem;
}
ol.suggestions .text { flex: 1 1 auto; overflow-wrap: anywhere; }
ol.suggestions .rank { color: var(--muted); font-size: 0.9rem; min-width: 1.8rem; }
.like {
  font: inherit; font-weight: 700; display: inline-flex; align-items: center; gap: 0.4rem; cursor: pointer;
  border: 2px solid var(--line); background: var(--bg); color: var(--text); border-radius: 999px; padding: 0.35rem 0.9rem;
  white-space: nowrap;
}
.like:hover:not(:disabled) { border-color: var(--accent); }
.like.liked { background: var(--accent); border-color: var(--accent); color: #fff; cursor: default; }
.like svg { width: 1.1em; height: 1.1em; }
.empty { color: var(--muted); padding: 1rem 0; }

/* Legal text */
.legal h1 { font-size: clamp(2rem, 5vw, 2.6rem); line-height: 1.15; margin: 2.5rem 0 0.5rem; }
.legal h2 { font-size: 1.4rem; margin: 2.25rem 0 0.6rem; }
.legal .meta { color: var(--muted); margin-top: 0; }
.legal ul { padding-left: 1.3rem; }
.legal li + li { margin-top: 0.35rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 2rem 3rem; margin-top: 2rem; color: var(--muted); font-size: 1rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; justify-content: space-between; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 1.25rem; }
