:root {
    --panel: rgba(255,255,255,.09);
    --panel2: rgba(255,255,255,.15);
    --text: #f7f3e8;
    --muted: #c9c0ad;
    --gold: #c9a86a;
    --green: #7bd88f;
    --red: #e16e6e;
    --radius: 24px;
}

* {
    box-sizing: border-box;
    min-width: 0;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background:
    linear-gradient(rgba(9,13,11,.82), rgba(9,13,11,.96)),
    url("../images/blickachsen_park_demo.jpg");
    background-size: cover;
    background-position: center;
}

header {
    padding: 24px 18px 10px;
    text-align: center;
}

.brand-logo {

    width: min(220px, 55vw);

    height: auto;

    display: block;

    margin: 0 auto 18px;

    filter: drop-shadow(0 12px 28px rgba(0,0,0,.45));

}

.badge {
    display: inline-block;
    padding: 8px 15px;
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 999px;
    color: var(--gold);
    background: rgba(0,0,0,.28);
    letter-spacing: .08em;
    text-transform: uppercase;
    font-size: .78rem;
}

h1 {
    margin: 14px 0 6px;
    font-size: clamp(2rem, 6vw, 4rem);
    line-height: .95;
    overflow-wrap: anywhere;
}

h2 {
    margin: 0 0 12px;
    font-size: 1.25rem;
}

p {
    color: var(--muted);
    line-height: 1.55;
}

.subtitle {
    margin: 0 auto;
    max-width: 840px;
    color: var(--muted);
    line-height: 1.5;
    overflow-wrap: anywhere;
}

main {
    width: min(1180px, calc(100% - 24px));
    margin: 22px auto 50px;
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 16px;
}

.card {
    background: var(--panel);
    border: 1px solid rgba(255,255,255,.16);
    border-radius: var(--radius);
    padding: 20px;
    backdrop-filter: blur(18px);
    box-shadow: 0 24px 80px rgba(0,0,0,.32);
    overflow: hidden;
    overflow-wrap: anywhere;
}

.wide { grid-column: span 8; }
.side { grid-column: span 4; }
.half { grid-column: span 6; }
.full { grid-column: span 12; }

.controls {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

button,
select {
    max-width: 100%;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.16);
    background: var(--panel2);
    color: var(--text);
    padding: 13px 17px;
    font-size: 1rem;
}

button {
    min-height: 48px;
    cursor: pointer;
    white-space: normal;
    transition: .18s ease;
}

button:hover {
    transform: translateY(-1px);
    background: rgba(255,255,255,.22);
}

.primary {
    background: linear-gradient(135deg, #d7b978, #8b6830);
    color: #16110a;
    font-weight: 800;
}

.danger {
    background: rgba(190,65,65,.45);
}

.live {
    background: rgba(85,135,210,.42);
}

.station-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.station {
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
    text-align: left;
    border-radius: 22px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.14);
}

.station img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    opacity: .92;
}

.stationText {
    padding: 15px;
}

.station strong {
    display: block;
    margin-bottom: 5px;
    font-size: 1.02rem;
    line-height: 1.25;
}

.station small {
    display: block;
    color: var(--muted);
    line-height: 1.35;
}

.activeStation {
    outline: 2px solid var(--gold);
    background: rgba(201,168,106,.18);
}

.status {
    min-height: 132px;
    max-height: 260px;
    overflow: auto;
    white-space: pre-wrap;
    padding: 18px;
    border-radius: 20px;
    background: rgba(0,0,0,.28);
    border: 1px solid rgba(255,255,255,.13);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    color: var(--green);
    overflow-wrap: anywhere;
    font-size: .92rem;
}

.pillrow {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 14px 0 0;
}

.pill {
    max-width: 100%;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(0,0,0,.28);
    color: var(--muted);
    font-size: .86rem;
    overflow-wrap: anywhere;
}

.stationImage {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 18px;
    margin: 10px 0 14px;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(0,0,0,.25);
}

.now {
    margin: 6px 0;
    color: var(--gold);
    font-size: clamp(1.25rem, 3vw, 1.6rem);
    font-weight: 850;
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.next {
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.35;
}

.meter {
    height: 12px;
    margin-top: 8px;
    border-radius: 999px;
    background: rgba(255,255,255,.13);
    overflow: hidden;
}

.bar {
    height: 100%;
    width: 75%;
    background: linear-gradient(90deg, var(--green), var(--gold));
}

audio {
    width: 100%;
    margin-top: 12px;
}

footer {
    text-align: center;
    color: var(--muted);
    padding: 24px 14px 45px;
    font-size: .88rem;
}

/* ==========================================================================
    Guide-Mikrofon
    ========================================================================== */

.guide-mic-panel {
    min-height: 100%;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
}

.panel-header h2 {
    margin: 0;
    color: var(--gold);
}

.panel-header p {
    margin: .25rem 0 0;
    color: var(--muted);
    font-size: .9rem;
}

.status-badge {
    padding: .35rem .75rem;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .08em;
    border: 1px solid rgba(255,255,255,.22);
    white-space: nowrap;
}

.status-badge.live {
    color: #111;
    background: var(--green);
    box-shadow: 0 0 18px rgba(123,216,143,.55);
}

.status-badge.muted {
    color: #fff;
    background: rgba(255,255,255,.12);
}

.mic-control-wrap {
    display: grid;
    place-items: center;
    gap: 1rem;
    margin: 1.4rem 0;
}

.ptt-button {
    width: 170px;
    height: 170px;
    border-radius: 50%;
    border: 2px solid rgba(201,168,106,.75);
    background:
    radial-gradient(circle at 35% 25%, rgba(255,255,255,.28), transparent 35%),
    linear-gradient(145deg, rgba(201,168,106,.95), rgba(96,70,28,.95));
    color: #17120a;
    font-weight: 900;
    cursor: pointer;
    box-shadow:
    0 18px 38px rgba(0,0,0,.35),
    inset 0 0 28px rgba(255,255,255,.18);
    transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}

.ptt-button:active,
.ptt-button.active {
    transform: scale(.96);
    filter: brightness(1.15);
    box-shadow:
    0 0 34px rgba(123,216,143,.65),
    inset 0 0 30px rgba(255,255,255,.2);
}

.ptt-icon {
    display: block;
    font-size: 2.2rem;
}

.ptt-label {
    display: block;
    margin-top: .45rem;
    font-size: .85rem;
    line-height: 1.15;
    letter-spacing: .08em;
}

.level-meter {
    width: min(280px, 90%);
    height: 12px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255,255,255,.13);
    border: 1px solid rgba(255,255,255,.18);
}

.level-bar {
    width: 0%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--green), var(--gold), var(--red));
    transition: width .06s linear;
}

.mic-options {
    display: grid;
    gap: .8rem;
    margin-top: 1rem;
}

.mic-options label {
    display: grid;
    gap: .35rem;
    color: var(--text);
    font-size: .92rem;
}

.mic-options input[type="range"],
.mic-options select {
    width: 100%;
}

.preset-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: .65rem;
    margin-top: 1.2rem;
}

.preset-grid button {
    border: 1px solid rgba(255,255,255,.2);
    background: rgba(255,255,255,.1);
    color: var(--text);
    border-radius: 14px;
    padding: .8rem .7rem;
    font-weight: 700;
    cursor: pointer;
}

.preset-grid button:hover {
    background: rgba(255,255,255,.17);
}

.mic-status-text {
    margin-top: 1rem;
    color: var(--muted);
    font-size: .86rem;
}

body.guide-ducking #audioPlayer {
    opacity: .65;
}

@media (max-width: 1050px) {
    .station-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .wide,
    .side,
    .half,
    .full {
    grid-column: span 12;
    }

    .station-grid {
    grid-template-columns: 1fr;
    }

    button,
    select {
    width: 100%;
    }

    .card {
    padding: 16px;
    }

    .panel-header {
    flex-direction: column;
    }
}

.super-beacon-panel input,
.super-beacon-panel select {
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.08);
  color: var(--text);
}

.super-beacon-panel label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 120px;
  color: var(--muted);
}

.navigation-panel p {
  color: var(--muted);
  margin-top: 0;
  line-height: 1.5;
}

.map-wrap {
  width: 100%;
  height: 420px;
  margin: 18px 0;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(0,0,0,.25);
  box-shadow: inset 0 0 30px rgba(0,0,0,.25);
}

.nav-map {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  filter: saturate(0.9) contrast(1.05);
}

.nav-controls {
  margin-top: 14px;
}

.geo-pillrow {
  margin-top: 10px;
}

.leaflet-interactive {
  transition: all 0.25s ease;
}

.navigation-panel .leaflet-popup-content {
  font-weight: 500;
  line-height: 1.35;
}
