:root {
    --bg: #0b0f17;
    --prim-blue: rgba(99,102,241,1);
    --prim-green: rgba(16,185,129,1);
    --prim-red: rgba(236,72,153,1);
    --card: rgba(255, 255, 255, 0.06);
    --card2: rgba(255, 255, 255, 0.085);
    --card3: rgba(0, 0, 0, 0.55);
    --text: rgba(255, 255, 255, 0.9);
    --muted: rgba(255, 255, 255, 0.65);
    --line: rgba(255, 255, 255, 0.12);
    --shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
    --radius: 18px;
    --radius2: 14px;
    --maxw: 1120px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
    color: var(--text);
    background: var(--bg);
    position: relative;
    overflow-x: hidden;
}

body::before{
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;

    background:
	radial-gradient(900px 500px at 20% 10%, rgba(99,102,241,0.25), transparent 60%),
	radial-gradient(700px 400px at 85% 25%, rgba(16,185,129,0.20), transparent 55%),
	radial-gradient(800px 500px at 40% 90%, rgba(236,72,153,0.16), transparent 60%),
	linear-gradient(180deg, #070a10 0%, var(--bg) 100%),
	repeating-linear-gradient(
	    135deg,
	    rgba(255,255,255,0.03) 0 12px,
	    rgba(255,255,255,0.00) 12px 28px
	);

    transform: translateZ(0);
    will-change: transform;
}

a { color: inherit; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 28px 18px 64px; }

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 18px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04));
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    /*backdrop-filter: blur(12px);*/
}

.brand {
    display: flex; align-items: center; gap: 12px;
}

/*.logo {
  width: 40px; height: 40px; border-radius: 12px;
  background:
    radial-gradient(12px 12px at 30% 35%, rgba(255,255,255,0.45), transparent 60%),
    linear-gradient(135deg, rgba(99,102,241,0.9), rgba(16,185,129,0.85));
  box-shadow: 0 10px 26px rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.22);
}*/

h1 { font-size: 18px; margin: 0; letter-spacing: 0.2px; }
.subtitle { margin: 2px 0 0; font-size: 13px; color: var(--muted); }

nav {
    display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end;
}
nav a {
    text-decoration: none;
    font-size: 13px;
    color: var(--muted);
    padding: 8px 10px;
    border-radius: 999px;
    border: 1px solid transparent;
}
nav a:hover {
    color: var(--text);
    border-color: var(--line);
    background: rgba(255,255,255,0.06);
}

.language-switcher {
  position: relative;
  display: inline-block;
}

.lang-toggle {
    color: var(--muted);
background: rgba(255,255,255,0.05);
  border: 1px solid var(--line);
    padding: 8px 10px;
    border-radius: 999px;
    font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5em;
  transition: background-color 0.2s ease;
}

.lang-toggle:hover,
.lang-toggle:focus {
    color: var(--text);
    border-color: var(--line);
    background: rgba(255,255,255,0.06);
}

.lang-arrow {
  font-size: 0.7em;
  transition: transform 0.2s ease;
}

.lang-toggle[aria-expanded="true"] .lang-arrow {
  transform: rotate(180deg);
}

.lang-menu {
  position: absolute;
  top: calc(100% + 0.5em);
  right: 0;
  background: var(--card3);
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: 0 2px 8px var(--shadow);
  list-style: none;
  margin: 0;
  padding: 0.5em 0;
  min-width: 120px;
  z-index: 1001;
}

.lang-menu[hidden] {
  display: none;
}

.lang-menu li {
  margin: 0;
}

.lang-menu a {
  display: block;
  padding: 0.5em 1em;
  color: inherit;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.lang-menu a:hover,
.lang-menu a:focus {
  background-color: rgba(0, 0, 0, 0.05);
}

/* RTL language support */
.lang-menu a[lang="ar"],
.lang-menu a[lang="fa"] {
  direction: rtl;
  text-align: right;
}

/* Mobile optimization */
@media (max-width: 768px) {
  .lang-menu {
    left: 0;
    right: auto;
  }
}

.hero {
    margin-top: 18px;
    padding: 18px 0 0;
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 18px;
}

.card {
    border: 1px solid var(--line);
    background: rgba(255,255,255,0.05);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
}
.card .inner { padding: 18px; }

.lead {
    margin: 0;
    font-size: 28px;
    line-height: 1.2;
    letter-spacing: -0.4px;
}
.hint {
    margin: 10px 0 0;
    color: var(--muted);
    line-height: 1.6;
    font-size: 14px;
}

.chips {
    margin-top: 14px;
    display: flex; gap: 8px; flex-wrap: wrap;
}
.chip {
    font-size: 12px;
    padding: 8px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.10);
    color: rgba(255,255,255,0.78);
}

.chip .good { background-color: var(--prim-green); }
.chip .bad { background-color: var(--prim-red); }

/* Map widget container */
.map {
    min-height: 320px;
    height: 420px;
    max-height: 640px;
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
}

/* small screen */
@media (max-width: 920px) {
  .map {
    height: 45vh;
    min-height: 320px;
    max-height: 560px;
  }
}

/* very small screen */
@media (max-width: 560px) {
  .map {
    height: 58vh;
    min-height: 320px;
    max-height: 620px;
  }
}


/* having .map--ready (display: none) and add that from js would be cleaner */
.map .frame {
    position: absolute; inset: 0;
    display: grid; place-items: center;
    background:
	linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02)),
	repeating-linear-gradient(45deg, rgba(255,255,255,0.06) 0 10px, rgba(255,255,255,0.03) 10px 20px);
}
.map .placeholder {
    text-align: center;
    padding: 18px;
    max-width: 520px;
}
.badge {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 12px;
    padding: 8px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(0,0,0,0.25);
    color: rgba(255,255,255,0.8);
}

.badge.badge--open { background-color: rgba(16,185,129,0.25); }
.badge.badge--closed { background-color: rgba(236,72,153,0.25); }

/*.dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(16,185,129,0.95);
  box-shadow: 0 0 0 6px rgba(16,185,129,0.18);
}
*/
.map h2 { margin: 12px 0 6px; font-size: 18px; }
.map p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }

section { margin-top: 18px; }
section > .card { overflow: hidden; }

.section-title {
    display: flex; align-items: baseline; justify-content: space-between;
    padding: 16px 18px;
    border-bottom: 1px solid var(--line);
    background: rgba(255,255,255,0.03);
}
.section-title h2 { margin: 0; font-size: 16px; }
.section-title span { color: var(--muted); font-size: 13px; }

/* FAQ (details/summary) */
.faq { padding: 8px 10px 16px; }
details {
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.05);
    border-radius: var(--radius2);
    margin: 10px 8px;
    overflow: hidden;
}
summary {
    cursor: pointer;
    list-style: none;
    padding: 14px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: rgba(255,255,255,0.9);
    font-weight: 600;
    font-size: 14px;
}
summary::-webkit-details-marker { display: none; }
.chev {
    width: 12px; height: 12px;
    border-right: 2px solid rgba(255,255,255,0.6);
    border-bottom: 2px solid rgba(255,255,255,0.6);
    transform: rotate(45deg);
    transition: transform 180ms ease;
    flex: 0 0 auto;
    margin-left: 6px;
}
details[open] .chev { transform: rotate(225deg); }
.faq .content {
    padding: 0 14px 14px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
}
.faq .content p { margin: 10px 0 0; }

/* Impressum */
.impressum {
    padding: 18px;
    display: grid;
    gap: 14px;
}
.impressum h3 {
    margin: 0;
    font-size: 14px;
    color: rgba(255,255,255,0.92);
    letter-spacing: 0.2px;
}
.impressum .box {
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.05);
    border-radius: var(--radius2);
    padding: 14px;
}
.impressum dl {
    margin: 0;
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 10px 14px;
    align-items: start;
    font-size: 14px;
}
.impressum dt { color: rgba(255,255,255,0.78); }
.impressum dd { margin: 0; color: rgba(255,255,255,0.92); }
.impressum a {
    color: rgba(255,255,255,0.92);
    text-decoration: none;
    border-bottom: 1px dashed rgba(255,255,255,0.28);
}
.impressum a:hover { border-bottom-color: rgba(255,255,255,0.55); }

footer {
    margin-top: 22px;
    color: rgba(255,255,255,0.55);
    font-size: 12px;
    text-align: center;
}

@media (max-width: 920px) {
    .hero { grid-template-columns: 1fr; padding: 18px 0 0; }
    header { padding: 16px; }
    .wrap { padding-top: 18px; }
}

@media (max-width: 560px) {
    .lead { font-size: 24px; }
    .impressum dl { grid-template-columns: 1fr; }
    nav { justify-content: flex-start; }
}


/* match leaflet buttons (ein bisschen zumindest) */

/* Leaflet controls fit your theme */
.leaflet-control,
.leaflet-bar {
  border: 1px solid var(--line) !important;
  background: var(--bg) !important;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  border-radius: 14px !important;
  overflow: hidden;
}

.leaflet-bar a {
  color: rgba(255,255,255,0.88) !important;
  background: transparent !important;
  border-bottom: 1px solid rgba(255,255,255,0.80) !important;
  width: 34px !important;
  height: 34px !important;
  line-height: 34px !important;
  font-size: 16px !important;
}

.leaflet-bar a:last-child {
  border-bottom: 0 !important;
}

.leaflet-bar a:hover {
  background: rgba(255,255,255,0.78) !important;
}

/* Visible keyboard focus */
.leaflet-bar a:focus-visible {
  outline: 2px solid rgba(99,102,241,0.75);
  outline-offset: 2px;
}

/* popups in dark mode */
.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
  background: var(--bg) !important;
  color: var(--text) !important;
  border: 1px solid var(--line) !important;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.leaflet-popup-content {
  margin: 10px 12px !important;
  font-size: 13px;
  line-height: 1.45;
}

.leaflet-container a.leaflet-popup-close-button {
  color: rgba(255,255,255,0.75) !important;
}
.leaflet-container a.leaflet-popup-close-button:hover {
  color: rgba(255,255,255,0.95) !important;
}


/* ab hier nurnoch wilde logo-animations-spielerei */
.bkc-logo{
    --fg:var(--text);
    --pill:var(--card2);
    --speed:4.20s;
    --ease:cubic-bezier(.2,.8,.2,1);

    font: 800 var(--bkc-size, 20px)/1.1 system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, "Noto Sans", sans-serif;
    letter-spacing:.01em;
    color:var(--fg);
    display:inline-flex;
    align-items:center;            /* header-friendly */
    gap:.18em;
    white-space:nowrap;
    user-select:none;
}

a.bkc-logo,
a.bkc-logo:hover,
a.bkc-logo:visited{
    text-decoration: none;
    color: inherit;
}

.bkc-logo .swap-pill{
    display:inline-flex;
    align-items:center;
    /*gap:.18em;*/
    padding:.14em 0 .16em .55em;
    border-radius:999px;
    border: 1px solid var(--line);
    background: var(--pill);
    transform: translateY(.02em);
    line-height: 1.1;
}

.bkc-logo .swapwrap{
    position:relative;
    display:inline-block;
    height: 1.12em;
    min-width: 5.2ch;
    vertical-align: middle;
}

.bkc-logo .swap{
    position:absolute; inset:0;
    display:inline-flex;
    align-items:center;
    opacity:0;
    transform: translateY(.14em) scale(.99);
    filter: blur(1px);
    z-index:1;
    animation: bkcSwap var(--speed) var(--ease) infinite;
    will-change: transform, opacity, filter;
}
.bkc-logo .swap--karte{ animation-delay:0s; }
.bkc-logo .swap--cash { animation-delay:calc(var(--speed)/2); }

@keyframes bkcSwap{
    0%   {opacity:0; transform: translateY(.14em) scale(.99);  filter: blur(1px);}
    14%  {opacity:1; transform: translateY(0) scale(1);        filter: blur(0);}
    46%  {opacity:1; transform: translateY(0) scale(1);        filter: blur(0);}
    60%  {opacity:0; transform: translateY(-.10em) scale(.995); filter: blur(1px);}
    100% {opacity:0;}
}

.bkc-logo .arrow{
    color:var(--muted);
    font-weight:900;
    display:inline-block;
    transform: translateY(-.01em);
    animation: arrowPulse var(--speed) var(--ease) infinite;
}
@keyframes arrowPulse{
    0%, 45% { opacity:.35; }
    55%,100%{ opacity:.95; }
}

/* Anarchy-A */
.bkc-logo .aA{
    width:.95em; height:.95em;
    display:inline-block;
    transform: translateY(.06em);
    /*margin: 0 .02em;*/
}
.bkc-logo .aA svg{ width:100%; height:100%; display:block; }
.bkc-logo .aA .ring{ fill:none; stroke:currentColor; stroke-width:2.1; opacity:.92; }
.bkc-logo .aA .slash{ stroke:currentColor; stroke-width:2.1; stroke-linecap:round; opacity:.92;
		    }
.bkc-logo .aA .A{ stroke:currentColor; stroke-width:2.2; stroke-linecap:round; stroke-linejoin:round; fill:none; }

/* zAhl: same-position replacement */
.bkc-logo .A-slot{
    position:relative;
    display:inline-block;
    width: .95em;
    height: .95em;
    margin: 0 -.3em;
    transform: translateY(.12em);
}
.bkc-logo .A-slot .layer{
    position:absolute; inset:0;
    display:flex;
    align-items:center;
    justify-content:center;
}
.bkc-logo .A-slot .layer--anarchy{
    opacity:1;
    animation: zahlIntro var(--speed) var(--ease) infinite;
}
.bkc-logo .A-slot .layer--plain{
    opacity:0;
    transform: translateY(-.04em);
    font-weight:900;
    /*font-size: .90em;*/
    animation: zahlOutro var(--speed) var(--ease) infinite;
}
@keyframes zahlIntro{
    0%, 52% { opacity:1; transform: scale(1); }
    60%,100%{ opacity:0; transform: scale(.92); }
}
@keyframes zahlOutro{
    0%, 52% { opacity:0; transform: scale(.98); }
    60%,100%{ opacity:1; transform: scale(1); }
}

/* Mode control: swap | karte | cash */
.bkc-logo[data-mode="karte"] .swap--cash,
.bkc-logo[data-mode="cash"]  .swap--karte{ display:none; }
.bkc-logo[data-mode="karte"] .swap--karte,
.bkc-logo[data-mode="cash"]  .swap--cash{
    position:static;
    opacity:1;
    transform:none;
    filter:none;
    animation:none;
}
.bkc-logo[data-mode="karte"] .swapwrap,
.bkc-logo[data-mode="cash"]  .swapwrap{
    height:auto;
    min-width:auto;
}
.bkc-logo[data-mode="karte"] .arrow,
.bkc-logo[data-mode="cash"]  .arrow{ animation:none; opacity:.7; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .bkc-logo .swap, .bkc-logo .arrow, .bkc-logo .A-slot .layer{ animation:none !important; }
  .bkc-logo .swap{ opacity:1; position:static; transform:none; filter:none; }
  .bkc-logo .swap--cash{ display:none; }
  .bkc-logo .swapwrap{ min-width:auto; height:auto; }
  .bkc-logo .A-slot .layer--plain{ opacity:0; }
  .bkc-logo .A-slot .layer--anarchy{ opacity:1; }
}

.nearest-highlight {
  stroke: rgba(255,255,255,0.95);
  stroke-width: 2;
  fill: rgba(99,102,241,0.35);
}
