:root {
  --bg: #f6f5f2;
  --surface: #ffffff;
  --text: #1d1d1f;
  --muted: #6b6b70;
  --line: #e3e1dc;
  --accent: #00b4e4;          /* Blau von sprechersuche.ch */
  --accent-text: #0077a3;     /* dunklerer Ton für Schrift auf Weiss (lesbar) */
  --accent-ink: #ffffff;
  --accent-soft: #e3f6fc;
  --ok: #166534;
  --ok-soft: #e7f5ec;
  --err: #b91c1c;
  --err-soft: #fdecec;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 4px 16px rgba(0,0,0,.05);
  /* Immer hell, auch wenn der Computer auf „Dunkel“ eingestellt ist (Wunsch des Kunden). */
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--accent-text); }
h1, h2 { line-height: 1.2; }
h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0 0 .4rem; }
h2 { font-size: 1.2rem; margin: 2rem 0 .8rem; }
img { max-width: 100%; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.js .js-hide { display: none; }
.inline { display: inline; margin: 0; }

/* Kopfzeile */
.topbar { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 60px; flex-wrap: wrap; }
.brand { font-weight: 700; color: var(--text); text-decoration: none; }
.topnav { display: flex; gap: 1.1rem; align-items: center; flex-wrap: wrap; }
.topnav a, .linkbtn { color: var(--text); text-decoration: none; font-size: .95rem; }
.topnav a:hover, .linkbtn:hover { color: var(--accent-text); }
.linkbtn { background: none; border: 0; padding: 0; cursor: pointer; font: inherit; }
.count { display: inline-block; min-width: 1.4em; padding: 0 .4em; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: .75rem; text-align: center; font-weight: 600; }
.badge { font-size: .7rem; font-weight: 600; background: var(--accent-soft); color: var(--accent-text); padding: .1rem .45rem; border-radius: 6px; vertical-align: middle; }

main { padding-top: 1.5rem; padding-bottom: 3rem; }
.foot { color: var(--muted); font-size: .85rem; padding-bottom: 2rem; }
.hero { margin-bottom: 1.5rem; }
.hero p { margin: 0; }

/* Buttons & Formulare */
.btn {
  display: inline-flex; align-items: center; gap: .35rem; justify-content: center;
  padding: .5rem .9rem; border-radius: 8px; border: 1px solid var(--line);
  background: var(--surface); color: var(--text); font: inherit; font-size: .92rem;
  cursor: pointer; text-decoration: none; line-height: 1.2;
}
.btn:hover { border-color: var(--accent); color: var(--accent-text); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.btn-primary:hover { filter: brightness(1.08); color: var(--accent-ink); }
.btn-ghost[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-text); }
.btn-danger { color: var(--err); }
.btn-danger:hover { border-color: var(--err); color: var(--err); }
.btn-sm { padding: .3rem .6rem; font-size: .85rem; }

input[type=text], input[type=email], input[type=tel], input[type=search], input[type=password], input[type=number], textarea, select {
  width: 100%; padding: .55rem .7rem; border: 1px solid var(--line); border-radius: 8px;
  background: var(--surface); color: var(--text); font: inherit;
}
input:focus, textarea:focus, select:focus, button:focus-visible, a:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 1px;
}
textarea { min-height: 8rem; resize: vertical; }
.field { margin-bottom: 1rem; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: .3rem; }
.field .hint { color: var(--muted); font-size: .85rem; margin-top: .25rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
@media (max-width: 640px) { .grid-2 { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -10000px; }

.flash { padding: .75rem 1rem; border-radius: 8px; margin-bottom: 1rem; }
.flash-ok { background: var(--ok-soft); color: var(--ok); }
.flash-err { background: var(--err-soft); color: var(--err); }

/* Suche */
.layout { display: grid; grid-template-columns: 270px 1fr; gap: 2rem; align-items: start; }
@media (max-width: 860px) { .layout { grid-template-columns: 1fr; gap: 1rem; } }
.filters { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; position: sticky; top: 76px; max-height: calc(100vh - 92px); overflow: auto; }
@media (max-width: 860px) { .filters { position: static; max-height: none; } }
.search { margin-bottom: .75rem; }
.facet { border-top: 1px solid var(--line); padding: .6rem 0; }
.facet summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.facet summary::-webkit-details-marker { display: none; }
.facet summary::after { content: "+"; color: var(--muted); font-weight: 400; margin-left: auto; }
.facet[open] summary::after { content: "–"; }
.facet summary .count { margin-left: auto; }
.facet summary .count + ::after { margin-left: .4rem; }
.facet-options { padding-top: .4rem; display: grid; gap: .15rem; }
.facet-options.scroll { max-height: 240px; overflow: auto; }
.opt { display: flex; gap: .5rem; align-items: flex-start; font-size: .93rem; cursor: pointer; padding: .15rem 0; }
.opt input { margin-top: .25rem; accent-color: var(--accent); }
.filter-actions { display: flex; flex-direction: column; gap: .5rem; margin-top: .75rem; }

.result-count { color: var(--muted); margin: 0 0 1rem; }
.empty { background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); padding: 2rem; text-align: center; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1rem; }
@media (max-width: 380px) { .cards { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: .7rem; min-width: 0; }
.card-head { display: flex; gap: .8rem; align-items: center; }
.card-title { margin: 0 0 .3rem; font-size: 1.1rem; }
.card-title a { color: var(--text); text-decoration: none; }
.card-title a:hover { color: var(--accent-text); }
.card-actions { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: auto; }
.chips { display: flex; flex-wrap: wrap; gap: .3rem; }
.chip { font-size: .78rem; padding: .1rem .5rem; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); color: var(--muted); }

.avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: none; display: block; }
.avatar-lg { width: 120px; height: 120px; }
.avatar-initials { display: flex; align-items: center; justify-content: center; background: var(--accent-soft); color: var(--accent-text); font-weight: 700; font-size: 1.3rem; }
.avatar-lg.avatar-initials { font-size: 2.2rem; }

.samples { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.samples li { display: grid; gap: .2rem; }
.sample-title { font-size: .88rem; font-weight: 600; }
audio { width: 100%; height: 36px; }

/* Profil */
.profile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1rem, 3vw, 2rem); max-width: 820px; }
.profile-head { display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap; }
.profile-head .card-actions { margin-top: .8rem; }
.bio { margin-top: 1.5rem; }
.attrs { display: grid; grid-template-columns: max-content 1fr; gap: .4rem 1.2rem; margin: 0; }
.attrs dt { font-weight: 600; }
.attrs dd { margin: 0; color: var(--muted); }
@media (max-width: 520px) { .attrs { grid-template-columns: 1fr; } .attrs dd { margin-bottom: .5rem; } }

/* Merkliste */
.merk-list { display: grid; gap: .6rem; margin-bottom: 2rem; }
.merk-item { display: flex; gap: .8rem; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: .7rem; }
.merk-item .grow { flex: 1; min-width: 0; }
.merk-item a { color: var(--text); font-weight: 600; text-decoration: none; }
.merk-item .avatar { width: 48px; height: 48px; font-size: 1rem; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1rem, 3vw, 1.6rem); max-width: 760px; }

/* Admin */
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: .93rem; }
th, td { text-align: left; padding: .6rem .8rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); }
tr:last-child td { border-bottom: 0; }
td .avatar { width: 36px; height: 36px; font-size: .8rem; }
.row-actions { display: flex; gap: .4rem; flex-wrap: wrap; justify-content: flex-end; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.toolbar h1 { margin: 0; }
.status-off { color: var(--muted); font-size: .85rem; }
.facet-edit { display: grid; gap: .3rem; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: .8rem 1rem 1rem; margin: 0 0 1rem; background: var(--surface); }
legend { font-weight: 700; padding: 0 .3rem; }
.inline-form { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.inline-form input[type=text] { flex: 1 1 200px; width: auto; }
.inline-form input[type=number] { width: 5.5rem; }
.login { max-width: 360px; margin: 3rem auto; }
.inq { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; margin-bottom: .8rem; }
.inq.done { opacity: .6; }
.inq-meta { color: var(--muted); font-size: .88rem; margin-bottom: .5rem; }
.inq-msg { white-space: pre-wrap; margin: .5rem 0; }

/* Stimmprobe */
.sample { border-top: 1px solid var(--line); padding-top: .6rem; }
.sample:first-child { border-top: 0; padding-top: 0; }
/* Sprungziel von alten Links (/produkt/…  →  /person#probe-123) */
.sample { scroll-margin-top: 1rem; }
.sample:target { background: #e6f7fc; box-shadow: 0 0 0 .5rem #e6f7fc; border-radius: 4px; }
.sample-head { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.chip-kategorie { background: var(--accent-soft); color: var(--accent-text); border-color: transparent; }
.card-more { margin: 0; margin-top: auto; }
.sample-admin { border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; margin-bottom: 1rem; background: var(--surface); }
.sample-admin audio { margin: .5rem 0; }
.facet-group { margin-bottom: .8rem; }
.facet-group > strong { display: block; font-size: .88rem; margin-bottom: .2rem; }

.count[hidden] { display: none; }
.btn { white-space: nowrap; }

/* Player mit Wellenform */
.player { --wave-played: var(--accent); --wave-rest: var(--line); }
.player.is-ready { display: flex; align-items: center; gap: .6rem; }
.player.is-ready audio { display: none; }
.play-btn { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--accent); color: var(--accent-ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.play-btn:hover { filter: brightness(1.08); }
.play-btn svg { width: 18px; height: 18px; fill: currentColor; }
.play-btn .i-pause, .player.is-playing .play-btn .i-play { display: none; }
.player.is-playing .play-btn .i-pause { display: inline; }
.wave { flex: 1; min-width: 0; height: 40px; position: relative; }
.wave canvas { display: block; width: 100%; height: 100%; cursor: pointer; touch-action: none; border-radius: 4px; }
.player .time { flex: none; font-size: .78rem; color: var(--muted); font-variant-numeric: tabular-nums; min-width: 4.6em; text-align: right; }
.peaks-status { font-size: .8rem; color: var(--muted); }

/* Aufklappbare weitere Stimmproben, Top-Proben, Gruppen */
.more-samples { border-top: 1px solid var(--line); padding-top: .5rem; }
.more-samples > summary { cursor: pointer; list-style: none; font-size: .9rem; font-weight: 600; color: var(--accent-text); padding: .2rem 0; }
.more-samples > summary::-webkit-details-marker { display: none; }
.more-samples > summary .when-open, .more-samples[open] > summary .when-closed { display: none; }
.more-samples[open] > summary .when-open { display: inline; }
.more-samples[open] > summary { margin-bottom: .6rem; }
.top { color: var(--accent-text); }
.sample-group h3 { font-size: 1rem; margin: 1.6rem 0 .6rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; font-size: .82rem; }
.cards { align-items: start; }

/* Anzahl Stimmproben pro Filterwert */
.opt-label { flex: 1; }
.opt-n { color: var(--muted); font-size: .78rem; font-variant-numeric: tabular-nums; margin-top: .15rem; }

/* Seitenwechsel */
.pager { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; margin-top: 2rem; }
.pager .btn { min-width: 2.6rem; }
.pager-gap { align-self: center; color: var(--muted); padding: 0 .2rem; }

hr.sep { border: 0; border-top: 1px solid var(--line); margin: 1.5rem 0 1rem; }
.share { margin-bottom: 1.5rem; }

/* Merkliste sortieren */
.sort-ctrl { display: flex; flex-direction: column; align-items: center; gap: .1rem; flex: none; }
.sort-btn { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: .7rem; line-height: 1; padding: .2rem .35rem; border-radius: 4px; }
.sort-btn:hover { color: var(--accent-text); background: var(--accent-soft); }
.merk-item:first-child .sort-btn[data-move="-1"], .merk-item:last-child .sort-btn[data-move="1"] { visibility: hidden; }
.sort-handle { cursor: grab; color: var(--muted); font-size: 1.2rem; line-height: 1; padding: .15rem .2rem; touch-action: none; user-select: none; }
.sort-handle:hover { color: var(--accent-text); }
.merk-item.dragging { opacity: .85; box-shadow: 0 8px 24px rgba(0,0,0,.15); border-color: var(--accent); position: relative; z-index: 2; }
.merk-item.dragging .sort-handle { cursor: grabbing; }
.merk-item.moved { border-color: var(--accent); transition: border-color .4s; }
.merk-list.is-saving { opacity: .9; }
.sort-hint { margin-top: -.3rem; }

/* Link zur Merkliste oben */
.share-bar { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius); padding: .9rem 1rem; margin-bottom: 1.2rem; }
.share-bar-label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: .4rem; }
.share-bar input { font-size: .9rem; color: var(--muted); }

/* Kategorie als Textzeile über dem Titel */
.sample-heading { min-width: 0; }
.sample-cat { font-size: .72rem; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; color: var(--accent-text); line-height: 1.35; margin-bottom: .1rem; }
.sample-head { align-items: flex-start; }
.merk-item .sample-cat { margin-bottom: .15rem; }

/* Grössere Kopfzeile */
.topbar-inner { min-height: 76px; }
.brand { font-size: 1.35rem; letter-spacing: -.01em; }
.topnav { gap: 1.6rem; }
.topnav a, .linkbtn { font-size: 1.08rem; font-weight: 600; }
.topnav .count { font-size: .8rem; vertical-align: 2px; }
.filters { top: 92px; max-height: calc(100vh - 108px); }
@media (max-width: 520px) {
  .topbar-inner { min-height: 64px; padding-top: .4rem; padding-bottom: .4rem; }
  .brand { font-size: 1.15rem; }
  .topnav { gap: 1.1rem; }
  .topnav a, .linkbtn { font-size: 1rem; }
}

/* Kategorien wieder als Etiketten, alle grau */
.chip-kategorie { background: var(--bg); color: var(--muted); border-color: var(--line); }

/* Merkliste löschen */
.merk-delete { display: flex; justify-content: flex-end; margin: -1.2rem 0 1.5rem; }

/* Bestätigung nach dem Versand */
.success-box { display: flex; gap: .9rem; align-items: center; background: var(--ok-soft); color: var(--ok); border: 1px solid currentColor; border-radius: var(--radius); padding: 1rem 1.1rem; margin-bottom: 1.4rem; font-size: 1.02rem; animation: pop .35s ease-out; }
.success-box strong { font-size: 1.12rem; display: block; margin-bottom: .15rem; }
.success-icon { flex: none; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--ok); color: var(--ok-soft); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; font-weight: 700; }
@keyframes pop { from { transform: scale(.97); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .success-box { animation: none; } }
#versenden { scroll-margin-top: 96px; }

/* Umschalter Interface 1 / Interface 2 */
.ui-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 2px; background: var(--bg); }
.ui-switch a { font-size: .8rem; font-weight: 600; padding: .25rem .7rem; border-radius: 999px; color: var(--muted); text-decoration: none; white-space: nowrap; }
.ui-switch a:hover { color: var(--accent-text); }
.ui-switch a[aria-current="true"] { background: var(--accent); color: var(--accent-ink); }


/* Ansicht-Umschalter über den Ergebnissen */
.result-bar { display: flex; justify-content: space-between; align-items: center; gap: .8rem; flex-wrap: wrap; margin-bottom: 1rem; }
.result-bar .result-count { margin: 0; }
.ui-switch a { font-size: .85rem; padding: .3rem .8rem; }
.ui-switch a span { font-size: 1rem; line-height: 1; }

/* Anfrage vom Profil: nur die Person */
.direct-people { display: grid; gap: .8rem; margin-bottom: .8rem; }
.direct-person { display: flex; gap: 1.2rem; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem; max-width: 760px; }
.direct-name { font-size: 1.4rem; font-weight: 700; margin: .1rem 0 .3rem; }
.direct-name a { color: var(--text); text-decoration: none; }

/* Ergebnisse werden beim Tippen nachgeladen */
#results { transition: opacity .15s; }
#results.is-loading { opacity: .55; }

/* Merkliste oben: rot mit Herz, gut sichtbar, sobald etwas gemerkt ist */
:root { --merk: #dc3232; --merk-ink: #ffffff; }
.topnav .merk-link {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .45rem .95rem; border-radius: 999px;
  border: 2px solid var(--merk); color: var(--merk); font-weight: 700;
  transition: background .15s, color .15s, transform .15s;
}
.topnav .merk-link:hover { background: #fdecec; color: var(--merk); }
.topnav .merk-link .merk-heart { font-size: 1.1em; line-height: 1; }
.topnav .merk-link.has-items { background: var(--merk); color: var(--merk-ink); }
.topnav .merk-link.has-items:hover { background: #c02525; color: var(--merk-ink); }
.topnav .merk-link .count { background: var(--merk-ink); color: var(--merk); font-size: .8rem; min-width: 1.5em; padding: .05em .45em; }
.topnav .merk-link.pulse { animation: merk-pulse .5s ease-out; }
@keyframes merk-pulse { 0% { transform: scale(1); } 40% { transform: scale(1.12); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .topnav .merk-link.pulse { animation: none; } }

/* Merken-Knöpfe: Herz, gemerkt = rot */
.btn-ghost[data-merken][aria-pressed="true"] { background: #fdecec; border-color: var(--merk); color: var(--merk); }
.ui-2 .list2-merk .btn[aria-pressed="true"] { background: var(--merk); border-color: var(--merk); color: #fff; }

/* Logo sprechersuche.ch in der Kopfzeile */
.brand { display: inline-flex; align-items: center; gap: .6rem; padding: .35rem 0; }
.brand-logo { display: block; height: 56px; width: auto; }
@media (max-width: 520px) { .brand-logo { height: 44px; } }

/* Merkliste oben: leer = blau umrandet, mit Inhalt = rot gefüllt */
.topnav .merk-link:not(.has-items) { border-color: var(--accent); color: var(--accent-text); }
.topnav .merk-link:not(.has-items):hover { background: var(--accent-soft); color: var(--accent-text); }

/* Grösseres Logo */
.brand-logo { height: 92px; }
.topbar-inner { min-height: 108px; }
.filters { top: 124px; max-height: calc(100vh - 140px); }
#versenden { scroll-margin-top: 128px; }
@media (max-width: 520px) {
  .brand-logo { height: 64px; }
  .topbar-inner { min-height: 80px; }
}

/* Mehr Luft um das Logo: gleicher Abstand oben und unten */
.topbar-inner { min-height: 0; padding-top: 1.25rem; padding-bottom: 1.25rem; }
.brand { padding: 0; }
.filters { top: 148px; max-height: calc(100vh - 164px); }
#versenden { scroll-margin-top: 150px; }
@media (max-width: 520px) {
  .topbar-inner { min-height: 0; padding-top: .9rem; padding-bottom: .9rem; }
}

/* ===================== Kachel-Ansicht (ui-1) an die Liste angleichen ===================== */

/* Titel gross und zentriert */
.ui-1 .hero { text-align: center; margin: 2.6rem 0 2.2rem; }
.ui-1 .hero h1 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); font-weight: 600; margin: 0 0 .5rem; }
.ui-1 .hero p { font-size: 1rem; }
@media (max-width: 520px) { .ui-1 .hero { margin: 1.6rem 0 1.4rem; } }

/* Karten: ruhiger, grössere Fotos und Namen */
.ui-1 .card { border-radius: 6px; box-shadow: 0 1px 2px rgba(0,0,0,.04); padding: 1.1rem; gap: .8rem; }
.ui-1 .card-head { gap: 1rem; }
.ui-1 .card .card-head .avatar { width: 84px; height: 84px; border-radius: 6px; }
.ui-1 .card .card-head .avatar-initials { font-size: 1.6rem; }
.ui-1 .card-title { font-size: 1.3rem; font-weight: 700; margin-bottom: .4rem; }
.ui-1 .card-title a { color: var(--accent-text); }
.ui-1 .card-head .chip { font-size: .72rem; padding: 0 .42rem; }

/* Pro Probe nur Kategorie und Sprache als Etiketten (Eigenschaft steht im Profil) */
.ui-1 .cards .chip-eigenschaft { display: none; }
.ui-1 .cards .sample .chip { font-size: .72rem; padding: 0 .42rem; }
.ui-1 .cards .sample .chips { gap: .2rem; }
.ui-1 .sample-title { font-size: .92rem; }

/* Wellenform kräftiger und etwas höher */
.ui-1 .cards .player { --wave-rest: #a9b6c0; }
.ui-1 .cards .wave { height: 46px; }

/* Merken-Knöpfe blau wie in der Liste, gemerkt = rot */
.ui-1 .cards [data-merken] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; border-radius: 4px; }
.ui-1 .cards [data-merken]:hover { filter: brightness(1.07); color: var(--accent-ink); }
.ui-1 .cards [data-merken][aria-pressed="true"] { background: var(--merk); border-color: var(--merk); color: #fff; }

/* Filter links im ruhigen Stil der Liste */
.ui-1 .filters { border-radius: 6px; padding: 1.1rem 1.1rem .8rem; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.ui-1 .filters .search input { min-height: 44px; border-radius: 6px; }
.ui-1 .facet { padding: .75rem 0; }
.ui-1 .facet summary { font-size: .95rem; }
.ui-1 .facet[open] > summary { color: var(--accent-text); }
.ui-1 .facet summary::after { content: ""; width: .45rem; height: .45rem; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); margin: 0 .2rem .2rem auto; transition: transform .15s; }
.ui-1 .facet[open] summary::after { content: ""; transform: rotate(-135deg); margin-bottom: -.15rem; }
.ui-1 .opt { font-size: .9rem; }
.ui-1 .filter-actions .btn { border-radius: 6px; }

.result-bar-end { justify-content: flex-end; }
.ui-1 .hero h1 { margin-bottom: 0; }

/* Kacheln: Filter-Kasten und Karten beginnen auf gleicher Höhe,
   der Umschalter sitzt darüber im Abstand unter dem Titel */
@media (min-width: 861px) {
  .ui-1 .hero { margin-bottom: 3.4rem; }
  .ui-1 .results { position: relative; }
  .ui-1 .result-bar-end { position: absolute; right: 0; top: -2.9rem; margin: 0; }
}

/* Kacheln: mehr Luft zwischen Titel und Umschalter */
@media (min-width: 861px) {
  .ui-1 .hero { margin-bottom: 4.6rem; }
}

/* Admin: Suchfeld über der Sprecher-Liste */
.admin-search { display: flex; gap: .5rem; margin: 0 0 .6rem; max-width: 720px; }
.admin-search input { min-height: 44px; }

/* Admin: Titel-Baukasten */
.title-builder { display: grid; grid-template-columns: 1fr 1.3fr 8rem; gap: 0 1rem; background: var(--bg); border: 1px dashed var(--line); border-radius: 8px; padding: .8rem 1rem; margin-bottom: 1rem; }
@media (max-width: 640px) { .title-builder { grid-template-columns: 1fr; } }
.title-builder select { min-height: 40px; }

/* Admin: Knopf zurück zur Sprechersuche */
.topnav a.admin-back { border: 2px solid var(--accent); color: var(--accent-text); border-radius: 999px; padding: .35rem .9rem; font-weight: 700; }
.topnav a.admin-back:hover { background: var(--accent); color: var(--accent-ink); }

/* Admin: grosses Feld zum Hineinziehen von Audiodateien */
.field-drop { grid-column: 1 / -1; }
.field-label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: .3rem; }
.dropzone { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .4rem;
  min-height: 190px; padding: 1.5rem; text-align: center; cursor: pointer;
  border: 2px dashed var(--accent); border-radius: 10px; background: var(--accent-soft); color: var(--text);
  transition: background .15s, border-color .15s, transform .1s; }
.dropzone:hover { background: #d4f0fa; }
.dropzone.is-over { background: #c4eaf8; border-style: solid; transform: scale(1.01); }
.dropzone.has-files { border-style: solid; background: var(--surface); }
.dropzone input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.dropzone-icon { font-size: 2.4rem; line-height: 1; color: var(--accent-text); }
.dropzone-text { font-size: 1rem; color: var(--muted); }
.dropzone-text strong { color: var(--accent-text); font-size: 1.1rem; }
.dropzone-files { display: flex; flex-wrap: wrap; gap: .35rem; justify-content: center; }
.dropzone-file { font-size: .85rem; background: var(--accent-soft); border-radius: 999px; padding: .15rem .6rem; color: var(--accent-text); font-weight: 600; }

/* Admin: Audiodatei einer Probe ersetzen */
.replace-file { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin: .2rem 0 .8rem; color: var(--muted); }
.replace-file input[type="file"] { font-size: .85rem; }
.sample-admin:target { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Admin: kleines Feld zum Austauschen der Audiodatei einer Probe */
.dropzone.dropzone-sm { min-height: 0; flex-direction: row; flex-wrap: wrap; justify-content: flex-start; text-align: left; gap: .5rem .8rem; padding: .7rem 1rem; margin: .4rem 0 .9rem; border-width: 2px; }
.dropzone-sm .dropzone-icon { font-size: 1.5rem; }
.dropzone-sm .dropzone-text { font-size: .9rem; flex: 1 1 260px; }
.dropzone-sm .dropzone-text strong { font-size: .95rem; }
.dropzone-sm .dropzone-files { justify-content: flex-start; flex-basis: 100%; }
.dropzone-hint { font-size: .85rem; font-weight: 700; color: var(--merk); }

/* ---------- FAQ (/faq) ---------- */
.faq-page { max-width: 820px; margin: 1.6rem auto 3rem; }
.faq-lead { color: var(--muted); font-size: 1.05rem; margin: .2rem 0 1.2rem; }
.faq-toc { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .6rem; }
.faq-toc a { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: .35rem .85rem; font-size: .9rem; text-decoration: none; color: var(--text); }
.faq-toc a:hover { border-color: var(--accent); color: var(--accent-text); }
.faq-group { scroll-margin-top: 90px; }
.faq-group h2 { margin-top: 2.2rem; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: .5rem; }
.faq-item > summary { cursor: pointer; list-style: none; padding: .85rem 1rem; font-weight: 600; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary::after { content: ""; flex: none; width: .5rem; height: .5rem; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); margin: 0 .2rem .2rem 0; transition: transform .15s; }
.faq-item[open] > summary { color: var(--accent-text); }
.faq-item[open] > summary::after { transform: rotate(-135deg); margin-bottom: -.2rem; }
.faq-answer { padding: 0 1rem 1rem; }
.faq-answer p { margin: 0 0 .8rem; }
.faq-answer p:last-child { margin-bottom: 0; }
.faq-answer ul { margin: .4rem 0 .8rem; padding-left: 1.2rem; }
.faq-cta { margin-top: 2.4rem; padding: 1.2rem; background: var(--accent-soft); border-radius: var(--radius); }
.faq-cta p { margin: 0 0 .8rem; }
.foot a { color: var(--muted); }

/* ---------- Textseiten (Kontakt, Impressum, Datenschutz) ---------- */
.text-page { max-width: 820px; margin: 1.6rem auto 3rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem 1.8rem; overflow-wrap: anywhere; }
.text-page h1 { margin-bottom: 1rem; }
.text-page h2, .text-page h3 { font-size: 1.1rem; margin: 1.6rem 0 .5rem; }
.text-page p { margin: 0 0 .9rem; }
.text-page ul { padding-left: 1.2rem; }
@media (max-width: 600px) { .text-page { padding: 1.1rem 1rem; border-radius: 0; border-left: 0; border-right: 0; margin-left: -16px; margin-right: -16px; } }

/* Geteilte Merkliste: schlichte Ansicht zum Anhören, nur ein Knopf */
.merk-shared { max-width: 1000px; }
.merk-shared .merk-item strong { font-weight: 600; }
.merk-shared-adopt { margin: 1.5rem 0 2rem; text-align: center; }
.merk-shared-adopt .btn { font-size: 1rem; padding: .75rem 1.4rem; }

/* Name der eigenen Merkliste */
.merk-name-form { margin: .2rem 0 1rem; align-items: center; gap: .5rem; flex-wrap: wrap; }
.merk-name-form input[type=text] { max-width: 380px; }
