/* Klang(g‘)schichten – Klangkarte · Gestaltung */
/* required styles */

.leaflet-pane,
.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow,
.leaflet-tile-container,
.leaflet-pane > svg,
.leaflet-pane > canvas,
.leaflet-zoom-box,
.leaflet-image-layer,
.leaflet-layer {
	position: absolute;
	left: 0;
	top: 0;
	}
.leaflet-container {
	overflow: hidden;
	}
.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow {
	-webkit-user-select: none;
	   -moz-user-select: none;
	        user-select: none;
	  -webkit-user-drag: none;
	}
/* Prevents IE11 from highlighting tiles in blue */
.leaflet-tile::selection {
	background: transparent;
}
/* Safari renders non-retina tile on retina better with this, but Chrome is worse */
.leaflet-safari .leaflet-tile {
	image-rendering: -webkit-optimize-contrast;
	}
/* hack that prevents hw layers "stretching" when loading new tiles */
.leaflet-safari .leaflet-tile-container {
	width: 1600px;
	height: 1600px;
	-webkit-transform-origin: 0 0;
	}
.leaflet-marker-icon,
.leaflet-marker-shadow {
	display: block;
	}
/* .leaflet-container svg: reset svg max-width decleration shipped in Joomla! (joomla.org) 3.x */
/* .leaflet-container img: map is broken in FF if you have max-width: 100% on tiles */
.leaflet-container .leaflet-overlay-pane svg {
	max-width: none !important;
	max-height: none !important;
	}
.leaflet-container .leaflet-marker-pane img,
.leaflet-container .leaflet-shadow-pane img,
.leaflet-container .leaflet-tile-pane img,
.leaflet-container img.leaflet-image-layer,
.leaflet-container .leaflet-tile {
	max-width: none !important;
	max-height: none !important;
	width: auto;
	padding: 0;
	}

.leaflet-container img.leaflet-tile {
	/* See: https://bugs.chromium.org/p/chromium/issues/detail?id=600120 */
	mix-blend-mode: plus-lighter;
}

.leaflet-container.leaflet-touch-zoom {
	-ms-touch-action: pan-x pan-y;
	touch-action: pan-x pan-y;
	}
.leaflet-container.leaflet-touch-drag {
	-ms-touch-action: pinch-zoom;
	/* Fallback for FF which doesn't support pinch-zoom */
	touch-action: none;
	touch-action: pinch-zoom;
}
.leaflet-container.leaflet-touch-drag.leaflet-touch-zoom {
	-ms-touch-action: none;
	touch-action: none;
}
.leaflet-container {
	-webkit-tap-highlight-color: transparent;
}
.leaflet-container a {
	-webkit-tap-highlight-color: rgba(51, 181, 229, 0.4);
}
.leaflet-tile {
	filter: inherit;
	visibility: hidden;
	}
.leaflet-tile-loaded {
	visibility: inherit;
	}
.leaflet-zoom-box {
	width: 0;
	height: 0;
	-moz-box-sizing: border-box;
	     box-sizing: border-box;
	z-index: 800;
	}
/* workaround for https://bugzilla.mozilla.org/show_bug.cgi?id=888319 */
.leaflet-overlay-pane svg {
	-moz-user-select: none;
	}

.leaflet-pane         { z-index: 400; }

.leaflet-tile-pane    { z-index: 200; }
.leaflet-overlay-pane { z-index: 400; }
.leaflet-shadow-pane  { z-index: 500; }
.leaflet-marker-pane  { z-index: 600; }
.leaflet-tooltip-pane   { z-index: 650; }
.leaflet-popup-pane   { z-index: 700; }

.leaflet-map-pane canvas { z-index: 100; }
.leaflet-map-pane svg    { z-index: 200; }

.leaflet-vml-shape {
	width: 1px;
	height: 1px;
	}
.lvml {
	behavior: url(#default#VML);
	display: inline-block;
	position: absolute;
	}


/* control positioning */

.leaflet-control {
	position: relative;
	z-index: 800;
	pointer-events: visiblePainted; /* IE 9-10 doesn't have auto */
	pointer-events: auto;
	}
.leaflet-top,
.leaflet-bottom {
	position: absolute;
	z-index: 1000;
	pointer-events: none;
	}
.leaflet-top {
	top: 0;
	}
.leaflet-right {
	right: 0;
	}
.leaflet-bottom {
	bottom: 0;
	}
.leaflet-left {
	left: 0;
	}
.leaflet-control {
	float: left;
	clear: both;
	}
.leaflet-right .leaflet-control {
	float: right;
	}
.leaflet-top .leaflet-control {
	margin-top: 10px;
	}
.leaflet-bottom .leaflet-control {
	margin-bottom: 10px;
	}
.leaflet-left .leaflet-control {
	margin-left: 10px;
	}
.leaflet-right .leaflet-control {
	margin-right: 10px;
	}


/* zoom and fade animations */

.leaflet-fade-anim .leaflet-popup {
	opacity: 0;
	-webkit-transition: opacity 0.2s linear;
	   -moz-transition: opacity 0.2s linear;
	        transition: opacity 0.2s linear;
	}
.leaflet-fade-anim .leaflet-map-pane .leaflet-popup {
	opacity: 1;
	}
.leaflet-zoom-animated {
	-webkit-transform-origin: 0 0;
	    -ms-transform-origin: 0 0;
	        transform-origin: 0 0;
	}
svg.leaflet-zoom-animated {
	will-change: transform;
}

.leaflet-zoom-anim .leaflet-zoom-animated {
	-webkit-transition: -webkit-transform 0.25s cubic-bezier(0,0,0.25,1);
	   -moz-transition:    -moz-transform 0.25s cubic-bezier(0,0,0.25,1);
	        transition:         transform 0.25s cubic-bezier(0,0,0.25,1);
	}
.leaflet-zoom-anim .leaflet-tile,
.leaflet-pan-anim .leaflet-tile {
	-webkit-transition: none;
	   -moz-transition: none;
	        transition: none;
	}

.leaflet-zoom-anim .leaflet-zoom-hide {
	visibility: hidden;
	}


/* cursors */

.leaflet-interactive {
	cursor: pointer;
	}
.leaflet-grab {
	cursor: -webkit-grab;
	cursor:    -moz-grab;
	cursor:         grab;
	}
.leaflet-crosshair,
.leaflet-crosshair .leaflet-interactive {
	cursor: crosshair;
	}
.leaflet-popup-pane,
.leaflet-control {
	cursor: auto;
	}
.leaflet-dragging .leaflet-grab,
.leaflet-dragging .leaflet-grab .leaflet-interactive,
.leaflet-dragging .leaflet-marker-draggable {
	cursor: move;
	cursor: -webkit-grabbing;
	cursor:    -moz-grabbing;
	cursor:         grabbing;
	}

/* marker & overlays interactivity */
.leaflet-marker-icon,
.leaflet-marker-shadow,
.leaflet-image-layer,
.leaflet-pane > svg path,
.leaflet-tile-container {
	pointer-events: none;
	}

.leaflet-marker-icon.leaflet-interactive,
.leaflet-image-layer.leaflet-interactive,
.leaflet-pane > svg path.leaflet-interactive,
svg.leaflet-image-layer.leaflet-interactive path {
	pointer-events: visiblePainted; /* IE 9-10 doesn't have auto */
	pointer-events: auto;
	}

/* visual tweaks */

.leaflet-container {
	background: #ddd;
	outline-offset: 1px;
	}
.leaflet-container a {
	color: #0078A8;
	}
.leaflet-zoom-box {
	border: 2px dotted #38f;
	background: rgba(255,255,255,0.5);
	}


/* general typography */
.leaflet-container {
	font-family: "Helvetica Neue", Arial, Helvetica, sans-serif;
	font-size: 12px;
	font-size: 0.75rem;
	line-height: 1.5;
	}


/* general toolbar styles */

.leaflet-bar {
	box-shadow: 0 1px 5px rgba(0,0,0,0.65);
	border-radius: 4px;
	}
.leaflet-bar a {
	background-color: #fff;
	border-bottom: 1px solid #ccc;
	width: 26px;
	height: 26px;
	line-height: 26px;
	display: block;
	text-align: center;
	text-decoration: none;
	color: black;
	}
.leaflet-bar a,
.leaflet-control-layers-toggle {
	background-position: 50% 50%;
	background-repeat: no-repeat;
	display: block;
	}
.leaflet-bar a:hover,
.leaflet-bar a:focus {
	background-color: #f4f4f4;
	}
.leaflet-bar a:first-child {
	border-top-left-radius: 4px;
	border-top-right-radius: 4px;
	}
.leaflet-bar a:last-child {
	border-bottom-left-radius: 4px;
	border-bottom-right-radius: 4px;
	border-bottom: none;
	}
.leaflet-bar a.leaflet-disabled {
	cursor: default;
	background-color: #f4f4f4;
	color: #bbb;
	}

.leaflet-touch .leaflet-bar a {
	width: 30px;
	height: 30px;
	line-height: 30px;
	}
.leaflet-touch .leaflet-bar a:first-child {
	border-top-left-radius: 2px;
	border-top-right-radius: 2px;
	}
.leaflet-touch .leaflet-bar a:last-child {
	border-bottom-left-radius: 2px;
	border-bottom-right-radius: 2px;
	}

/* zoom control */

.leaflet-control-zoom-in,
.leaflet-control-zoom-out {
	font: bold 18px 'Lucida Console', Monaco, monospace;
	text-indent: 1px;
	}

.leaflet-touch .leaflet-control-zoom-in, .leaflet-touch .leaflet-control-zoom-out  {
	font-size: 22px;
	}


/* layers control */

.leaflet-control-layers {
	box-shadow: 0 1px 5px rgba(0,0,0,0.4);
	background: #fff;
	border-radius: 5px;
	}
.leaflet-control-layers-toggle {
	background-image: url(images/layers.png);
	width: 36px;
	height: 36px;
	}
.leaflet-retina .leaflet-control-layers-toggle {
	background-image: url(images/layers-2x.png);
	background-size: 26px 26px;
	}
.leaflet-touch .leaflet-control-layers-toggle {
	width: 44px;
	height: 44px;
	}
.leaflet-control-layers .leaflet-control-layers-list,
.leaflet-control-layers-expanded .leaflet-control-layers-toggle {
	display: none;
	}
.leaflet-control-layers-expanded .leaflet-control-layers-list {
	display: block;
	position: relative;
	}
.leaflet-control-layers-expanded {
	padding: 6px 10px 6px 6px;
	color: #333;
	background: #fff;
	}
.leaflet-control-layers-scrollbar {
	overflow-y: scroll;
	overflow-x: hidden;
	padding-right: 5px;
	}
.leaflet-control-layers-selector {
	margin-top: 2px;
	position: relative;
	top: 1px;
	}
.leaflet-control-layers label {
	display: block;
	font-size: 13px;
	font-size: 1.08333em;
	}
.leaflet-control-layers-separator {
	height: 0;
	border-top: 1px solid #ddd;
	margin: 5px -10px 5px -6px;
	}

/* Default icon URLs */
.leaflet-default-icon-path { /* used only in path-guessing heuristic, see L.Icon.Default */
	background-image: url(images/marker-icon.png);
	}


/* attribution and scale controls */

.leaflet-container .leaflet-control-attribution {
	background: #fff;
	background: rgba(255, 255, 255, 0.8);
	margin: 0;
	}
.leaflet-control-attribution,
.leaflet-control-scale-line {
	padding: 0 5px;
	color: #333;
	line-height: 1.4;
	}
.leaflet-control-attribution a {
	text-decoration: none;
	}
.leaflet-control-attribution a:hover,
.leaflet-control-attribution a:focus {
	text-decoration: underline;
	}
.leaflet-attribution-flag {
	display: inline !important;
	vertical-align: baseline !important;
	width: 1em;
	height: 0.6669em;
	}
.leaflet-left .leaflet-control-scale {
	margin-left: 5px;
	}
.leaflet-bottom .leaflet-control-scale {
	margin-bottom: 5px;
	}
.leaflet-control-scale-line {
	border: 2px solid #777;
	border-top: none;
	line-height: 1.1;
	padding: 2px 5px 1px;
	white-space: nowrap;
	-moz-box-sizing: border-box;
	     box-sizing: border-box;
	background: rgba(255, 255, 255, 0.8);
	text-shadow: 1px 1px #fff;
	}
.leaflet-control-scale-line:not(:first-child) {
	border-top: 2px solid #777;
	border-bottom: none;
	margin-top: -2px;
	}
.leaflet-control-scale-line:not(:first-child):not(:last-child) {
	border-bottom: 2px solid #777;
	}

.leaflet-touch .leaflet-control-attribution,
.leaflet-touch .leaflet-control-layers,
.leaflet-touch .leaflet-bar {
	box-shadow: none;
	}
.leaflet-touch .leaflet-control-layers,
.leaflet-touch .leaflet-bar {
	border: 2px solid rgba(0,0,0,0.2);
	background-clip: padding-box;
	}


/* popup */

.leaflet-popup {
	position: absolute;
	text-align: center;
	margin-bottom: 20px;
	}
.leaflet-popup-content-wrapper {
	padding: 1px;
	text-align: left;
	border-radius: 12px;
	}
.leaflet-popup-content {
	margin: 13px 24px 13px 20px;
	line-height: 1.3;
	font-size: 13px;
	font-size: 1.08333em;
	min-height: 1px;
	}
.leaflet-popup-content p {
	margin: 17px 0;
	margin: 1.3em 0;
	}
.leaflet-popup-tip-container {
	width: 40px;
	height: 20px;
	position: absolute;
	left: 50%;
	margin-top: -1px;
	margin-left: -20px;
	overflow: hidden;
	pointer-events: none;
	}
.leaflet-popup-tip {
	width: 17px;
	height: 17px;
	padding: 1px;

	margin: -10px auto 0;
	pointer-events: auto;

	-webkit-transform: rotate(45deg);
	   -moz-transform: rotate(45deg);
	    -ms-transform: rotate(45deg);
	        transform: rotate(45deg);
	}
.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
	background: white;
	color: #333;
	box-shadow: 0 3px 14px rgba(0,0,0,0.4);
	}
.leaflet-container a.leaflet-popup-close-button {
	position: absolute;
	top: 0;
	right: 0;
	border: none;
	text-align: center;
	width: 24px;
	height: 24px;
	font: 16px/24px Tahoma, Verdana, sans-serif;
	color: #757575;
	text-decoration: none;
	background: transparent;
	}
.leaflet-container a.leaflet-popup-close-button:hover,
.leaflet-container a.leaflet-popup-close-button:focus {
	color: #585858;
	}
.leaflet-popup-scrolled {
	overflow: auto;
	}

.leaflet-oldie .leaflet-popup-content-wrapper {
	-ms-zoom: 1;
	}
.leaflet-oldie .leaflet-popup-tip {
	width: 24px;
	margin: 0 auto;

	-ms-filter: "progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)";
	filter: progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678);
	}

.leaflet-oldie .leaflet-control-zoom,
.leaflet-oldie .leaflet-control-layers,
.leaflet-oldie .leaflet-popup-content-wrapper,
.leaflet-oldie .leaflet-popup-tip {
	border: 1px solid #999;
	}


/* div icon */

.leaflet-div-icon {
	background: #fff;
	border: 1px solid #666;
	}


/* Tooltip */
/* Base styles for the element that has a tooltip */
.leaflet-tooltip {
	position: absolute;
	padding: 6px;
	background-color: #fff;
	border: 1px solid #fff;
	border-radius: 3px;
	color: #222;
	white-space: nowrap;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
	pointer-events: none;
	box-shadow: 0 1px 3px rgba(0,0,0,0.4);
	}
.leaflet-tooltip.leaflet-interactive {
	cursor: pointer;
	pointer-events: auto;
	}
.leaflet-tooltip-top:before,
.leaflet-tooltip-bottom:before,
.leaflet-tooltip-left:before,
.leaflet-tooltip-right:before {
	position: absolute;
	pointer-events: none;
	border: 6px solid transparent;
	background: transparent;
	content: "";
	}

/* Directions */

.leaflet-tooltip-bottom {
	margin-top: 6px;
}
.leaflet-tooltip-top {
	margin-top: -6px;
}
.leaflet-tooltip-bottom:before,
.leaflet-tooltip-top:before {
	left: 50%;
	margin-left: -6px;
	}
.leaflet-tooltip-top:before {
	bottom: 0;
	margin-bottom: -12px;
	border-top-color: #fff;
	}
.leaflet-tooltip-bottom:before {
	top: 0;
	margin-top: -12px;
	margin-left: -6px;
	border-bottom-color: #fff;
	}
.leaflet-tooltip-left {
	margin-left: -6px;
}
.leaflet-tooltip-right {
	margin-left: 6px;
}
.leaflet-tooltip-left:before,
.leaflet-tooltip-right:before {
	top: 50%;
	margin-top: -6px;
	}
.leaflet-tooltip-left:before {
	right: 0;
	margin-right: -12px;
	border-left-color: #fff;
	}
.leaflet-tooltip-right:before {
	left: 0;
	margin-left: -12px;
	border-right-color: #fff;
	}

/* Printing */

@media print {
	/* Prevent printers from removing background-images of controls. */
	.leaflet-control {
		-webkit-print-color-adjust: exact;
		print-color-adjust: exact;
		}
	}
/* Klang(g‘)schichten – Grundgerüst, von jedem Entwurf über Tokens eingefärbt */
:root {
  --kk-bg: #fff; --kk-surface: #fff; --kk-surface-2: #f3f5f8; --kk-ink: #1b2233; --kk-muted: #5d6677; --kk-line: #e2e6ee;
  --kk-accent: #e5383b; --kk-accent-ink: #fff; --kk-focus: #1d5fd1;
  --kk-c0: #e8890c; --kk-c6: #7a3ec8; --kk-c7: #1d5fd1; --kk-c8: #188a5b; --kk-ghost: #8a93a3;
  --kk-radius: 12px; --kk-radius-sm: 8px; --kk-shadow: 0 10px 30px rgba(20, 30, 50, .18), 0 2px 6px rgba(20, 30, 50, .1);
  --kk-font: system-ui, sans-serif; --kk-font-display: var(--kk-font);
  --kk-ok: #188a5b; --kk-warn: #b45309;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; font-family: var(--kk-font); color: var(--kk-ink); background: var(--kk-bg); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--kk-focus); outline-offset: 2px; }
.kk-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
svg { flex: none; }

/* ---------- Karte ---------- */
.leaflet-container { font-family: var(--kk-font); background: var(--kk-surface-2); }
.leaflet-container a { color: inherit; }
.kk-marker { background: none; border: 0; }
.kk-marker:focus-visible { outline: none; }
.kk-marker:focus-visible .kk-pin__body, .kk-marker:focus-visible .kk-hood, .kk-marker:focus-visible .kk-ghost { outline: 3px solid var(--kk-focus); outline-offset: 3px; }
.leaflet-attribution-flag { display: none !important; }

/* Grund-Pin (Entwürfe gestalten ihn um) */
.kk-pin { position: relative; width: 100%; height: 100%; display: grid; place-items: center; color: #fff; transform: scale(calc(var(--ps, 1) * var(--ph, 1))); transition: transform .18s ease, opacity .2s ease; }
html[data-kk-zoom="13"], html[data-kk-zoom="14"] { --ps: .52; }
html[data-kk-zoom="15"] { --ps: .72; }
html[data-kk-zoom="13"] .kk-pin__tag, html[data-kk-zoom="14"] .kk-pin__tag { display: none; }
.kk-marker--user .kk-pin, .kk-pin--upload { --ps: 1; }
.kk-pin__body { position: relative; z-index: 1; display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 2px #fff, 0 3px 8px rgba(0,0,0,.28); }
.kk-pin__body svg { width: 56%; height: 56%; }
.kk-pin__wave { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--c); opacity: 0; pointer-events: none; }
.kk-pin__tag { position: absolute; left: 50%; top: 100%; transform: translate(-50%, 4px); white-space: nowrap; font-size: 10px; font-weight: 700; line-height: 1; padding: 3px 6px; border-radius: 99px; background: var(--c); color: #fff; letter-spacing: .02em; pointer-events: none; }
.kk-pin--pending .kk-pin__body { background: transparent; color: var(--c); box-shadow: none; border: 2.5px dashed var(--c); background-color: color-mix(in srgb, var(--c) 14%, #fff); }
.kk-pin--pending .kk-pin__tag { background: #fff; color: var(--c); box-shadow: 0 0 0 1.5px var(--c); }
.kk-pin--empty .kk-pin__body { filter: saturate(.25); opacity: .75; }
.is-dim .kk-pin, .kk-marker.is-dim .kk-hood { opacity: .22; }
.kk-marker.is-hot .kk-pin, .kk-marker:hover .kk-pin { --ph: 1.18; --ps: 1; }
.kk-marker.is-active .kk-pin { --ph: 1.22; --ps: 1; }
.kk-marker.is-hot .kk-pin__wave, .kk-marker.is-active .kk-pin__wave, .kk-pin.is-ping .kk-pin__wave { animation: kk-ring 1.6s ease-out infinite; }
.kk-pin.is-ping .kk-pin__wave { animation-iteration-count: 1; }
.kk-marker.is-arriving .kk-pin { animation: kk-drop .9s cubic-bezier(.2, 1.4, .4, 1) both; }
@keyframes kk-ring { 0% { opacity: .85; transform: scale(1); } 100% { opacity: 0; transform: scale(2.6); } }
@keyframes kk-drop { 0% { transform: translateY(-60px) scale(.6); opacity: 0; } 60% { opacity: 1; } 100% { transform: none; } }

.kk-hood { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 10px; border-radius: 999px; background: var(--kk-surface); box-shadow: var(--kk-shadow); white-space: nowrap; transform: translate(-50%, -50%); cursor: pointer; transition: transform .2s; }
.kk-hood:hover { transform: translate(-50%, -50%) scale(1.05); }
.kk-hood__dot { width: 14px; height: 14px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 25%, transparent); }
.kk-hood__txt { display: grid; line-height: 1.15; }
.kk-hood__txt b { font-size: 15px; }
.kk-hood__txt small { font-size: 12px; color: var(--kk-muted); }
.kk-ghost { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; border: 2px dashed var(--kk-ghost); color: var(--kk-ghost); background: color-mix(in srgb, var(--kk-surface) 80%, transparent); font-weight: 700; font-size: 13px; cursor: pointer; }
.kk-ghost:hover { border-style: solid; color: var(--kk-ink); }

.kk-walkline { stroke: var(--kk-ink); stroke-opacity: .6; fill: none; }
.kk-searchpin { stroke: var(--kk-accent); fill: #fff; fill-opacity: 1; }
.kk-locate-dot { stroke: #fff; fill: var(--kk-focus); fill-opacity: 1; }
.kk-locate-acc { stroke: var(--kk-focus); fill: var(--kk-focus); fill-opacity: .12; }
.kk-mini-dot { stroke: #fff; fill: var(--kk-muted); fill-opacity: .8; }
.leaflet-tooltip.kk-tip { font-family: var(--kk-font); font-weight: 600; border-radius: 8px; border: 0; box-shadow: var(--kk-shadow); }

/* ---------- Vorschau ---------- */
.kk-preview { position: absolute; left: 0; top: 0; z-index: 700; width: 200px; background: var(--kk-surface); color: var(--kk-ink); border-radius: var(--kk-radius); box-shadow: var(--kk-shadow); overflow: visible; pointer-events: none; opacity: 0; transform: translateY(6px) scale(.98); transition: opacity .16s ease, transform .16s ease; }
.kk-preview.is-in { opacity: 1; transform: none; }
.kk-preview::after { content: ""; position: absolute; left: var(--arrow-x, 50%); bottom: -7px; width: 14px; height: 14px; background: var(--kk-surface); transform: translateX(-50%) rotate(45deg); border-radius: 2px; }
.kk-preview.is-below::after { bottom: auto; top: -7px; }
.kk-preview.is-landscape { width: 260px; }
.kk-preview__media { position: relative; overflow: hidden; border-radius: var(--kk-radius) var(--kk-radius) 0 0; background: color-mix(in srgb, var(--c) 18%, #111); aspect-ratio: 3 / 4; z-index: 1; }
.kk-preview.is-landscape .kk-preview__media { aspect-ratio: 16 / 9; }
.kk-preview.is-text .kk-preview__media, .kk-preview.is-empty .kk-preview__media { display: none; }
.kk-preview__media img, .kk-preview__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.kk-preview__wave { position: absolute; inset: 12% 6%; width: 88%; height: 76%; color: #fff; }
.kk-preview__dur { position: absolute; right: 8px; bottom: 8px; font-size: 11px; font-weight: 700; padding: 2px 6px; border-radius: 6px; background: rgba(0,0,0,.62); color: #fff; font-variant-numeric: tabular-nums; }
.kk-preview__dur:empty { display: none; }
.kk-preview__eq { position: absolute; left: 8px; bottom: 8px; display: none; gap: 2px; align-items: flex-end; height: 14px; padding: 3px 5px; border-radius: 6px; background: rgba(0,0,0,.62); }
.kk-preview__eq i { display: block; width: 3px; background: #fff; border-radius: 2px; animation: kk-eq .8s ease-in-out infinite alternate; }
.kk-preview__eq i:nth-child(2) { animation-delay: -.3s; } .kk-preview__eq i:nth-child(3) { animation-delay: -.6s; } .kk-preview__eq i:nth-child(4) { animation-delay: -.15s; }
.kk-preview.is-sounding .kk-preview__eq { display: flex; }
@keyframes kk-eq { from { height: 3px; } to { height: 12px; } }
.kk-preview__body { position: relative; z-index: 1; display: grid; gap: 2px; padding: 10px 12px 12px; background: var(--kk-surface); border-radius: 0 0 var(--kk-radius) var(--kk-radius); }
.kk-preview.is-text .kk-preview__body, .kk-preview.is-empty .kk-preview__body { border-radius: var(--kk-radius); }
.kk-preview__kicker { font-size: 11px; font-weight: 700; color: var(--c); letter-spacing: .02em; }
.kk-preview__title { font-size: 15px; line-height: 1.2; }
.kk-preview__hint { font-size: 12px; color: var(--kk-muted); }
.kk-preview__hint:empty { display: none; }
.kk-preview__open { display: none; }
.kk-preview.is-touch { pointer-events: auto; }
.kk-preview.is-touch .kk-preview__open { display: block; position: relative; z-index: 1; width: calc(100% - 24px); margin: 0 12px 12px; padding: 9px; border: 0; border-radius: var(--kk-radius-sm); background: var(--c); color: #fff; font-weight: 700; }
.kk-preview.is-touch.kk-preview--school .kk-preview__open, .kk-preview.is-touch.kk-preview--ghost .kk-preview__open { background: var(--kk-ink); }

/* ---------- Buttons & Formulare ---------- */
.kk-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 8px 14px; border-radius: var(--kk-radius-sm); border: 1.5px solid var(--kk-line); background: var(--kk-surface); color: var(--kk-ink); font-weight: 600; text-decoration: none; line-height: 1.1; }
.kk-btn svg { width: 18px; height: 18px; }
.kk-btn:hover { border-color: var(--kk-ink); }
.kk-btn--primary { background: var(--kk-accent); border-color: var(--kk-accent); color: var(--kk-accent-ink); }
.kk-btn--primary:hover { filter: brightness(1.06); border-color: var(--kk-accent); }
.kk-btn--quiet { background: transparent; }
.kk-btn--ok { background: var(--kk-ok); border-color: var(--kk-ok); color: #fff; }
.kk-btn--ok:hover { border-color: var(--kk-ok); filter: brightness(1.08); }
.kk-iconbtn { display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0; border-radius: var(--kk-radius-sm); border: 0; background: transparent; color: inherit; }
.kk-iconbtn svg { width: 20px; height: 20px; }
.kk-iconbtn:hover { background: var(--kk-surface-2); }
.kk-linkbtn { border: 0; background: none; padding: 0; color: inherit; text-decoration: underline; text-underline-offset: 3px; text-align: left; }
.kk-chipbtn { border: 1.5px solid var(--kk-line); background: var(--kk-surface); border-radius: 99px; padding: 6px 12px; font-size: 14px; }
.kk-chipbtn:hover { border-color: var(--kk-ink); }
.kk-btnrow { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.kk-field { display: grid; gap: 6px; margin: 0 0 16px; border: 0; padding: 0; min-width: 0; }
.kk-field > label, .kk-field > legend, .kk-label { font-weight: 700; font-size: 14px; padding: 0; }
.kk-field em { font-style: normal; font-weight: 500; font-size: 12px; color: var(--kk-muted); margin-left: 6px; }
.kk-field input, .kk-field textarea, .kk-field select, .kk-geo input { width: 100%; padding: 10px 12px; border-radius: var(--kk-radius-sm); border: 1.5px solid var(--kk-line); background: var(--kk-surface); min-width: 0; }
.kk-field input:focus, .kk-field textarea:focus, .kk-field select:focus, .kk-geo input:focus { border-color: var(--kk-focus); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--kk-focus) 25%, transparent); }
.kk-counter { justify-self: end; font-size: 12px; color: var(--kk-muted); font-variant-numeric: tabular-nums; }
.kk-hint { font-size: 13px; color: var(--kk-muted); margin: 4px 0 0; }
.kk-note { font-size: 13px; padding: 10px 12px; border-radius: var(--kk-radius-sm); background: var(--kk-surface-2); color: var(--kk-muted); }
.kk-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.kk-copyrow { display: flex; gap: 8px; align-items: stretch; }
.kk-copyrow input, .kk-copyrow textarea { flex: 1; min-width: 0; font-size: 13px; font-family: ui-monospace, Menlo, monospace; padding: 10px; border-radius: var(--kk-radius-sm); border: 1.5px solid var(--kk-line); background: var(--kk-surface-2); resize: vertical; }
.kk-empty { color: var(--kk-muted); padding: 16px 4px; }
.kk-badge { display: inline-block; vertical-align: middle; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 99px; background: var(--kk-surface-2); color: var(--kk-muted); }
.kk-badge--own { background: color-mix(in srgb, var(--kk-c0) 20%, transparent); color: var(--kk-ink); }
.kk-caticon { width: 18px; height: 18px; }

/* Kategorie-Chips */
.kk-cat { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px 6px 8px; border-radius: 99px; border: 1.5px solid var(--kk-line); background: var(--kk-surface); font-size: 13px; line-height: 1; }
.kk-cat small { color: var(--kk-muted); font-variant-numeric: tabular-nums; }
.kk-cat[aria-pressed="true"], .kk-cat:has(input:checked) { background: var(--kk-ink); border-color: var(--kk-ink); color: var(--kk-surface); }
.kk-cat[aria-pressed="true"] small { color: inherit; opacity: .7; }
.kk-cat input { position: absolute; opacity: 0; pointer-events: none; }
.kk-cat:has(input:focus-visible) { outline: 3px solid var(--kk-focus); outline-offset: 2px; }

/* Ebenen (Schichten) */
.kk-layer { display: flex; align-items: center; gap: 4px; }
.kk-layer__toggle { flex: 1; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 4px 10px; padding: 8px 10px; border-radius: var(--kk-radius-sm); cursor: pointer; min-width: 0; }
.kk-layer__toggle:hover { background: var(--kk-surface-2); }
.kk-layer__toggle input { position: absolute; opacity: 0; }
.kk-layer__swatch { width: 18px; height: 18px; border-radius: 5px; border: 2px solid var(--c); background: var(--c); box-shadow: inset 0 0 0 2px var(--kk-surface); }
.kk-layer__toggle input:not(:checked) ~ .kk-layer__swatch { background: transparent; }
.kk-layer__toggle input:not(:checked) ~ .kk-layer__name { color: var(--kk-muted); text-decoration: line-through; }
.kk-layer__toggle input:focus-visible ~ .kk-layer__swatch { outline: 3px solid var(--kk-focus); outline-offset: 2px; }
.kk-layer__name { font-weight: 700; }
.kk-layer__meta { font-size: 12px; color: var(--kk-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.kk-layer__zoom { width: 34px; height: 34px; color: var(--kk-muted); }
.kk-layer-ghosts { margin-top: 6px; font-size: 13px; color: var(--kk-muted); }
.kk-layer-ghosts summary { cursor: pointer; padding: 6px 10px; }
.kk-layer-ghosts ul { list-style: none; margin: 4px 0 0; padding: 0 10px; display: grid; gap: 6px; }
.kk-layer-ghosts b { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; border: 1.5px dashed var(--kk-ghost); font-size: 11px; margin-right: 6px; }

/* Liste */
.kk-group { margin: 0 0 14px; }
.kk-group__title { display: flex; align-items: baseline; gap: 8px; margin: 0 0 4px; padding: 0 6px; font-size: 13px; }
.kk-group__title small { font-weight: 500; color: var(--kk-muted); margin-left: auto; font-size: 12px; }
.kk-group__swatch { width: 10px; height: 10px; border-radius: 50%; background: var(--c); align-self: center; }
.kk-group__items { display: grid; }
.kk-item { display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 10px; width: 100%; padding: 7px 8px; border: 0; background: none; text-align: left; border-radius: var(--kk-radius-sm); }
.kk-item:hover, .kk-item:focus-visible { background: var(--kk-surface-2); }
.kk-item__icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: color-mix(in srgb, var(--c) 14%, transparent); color: var(--c); }
.kk-item__icon svg { width: 17px; height: 17px; }
.kk-item__name { font-size: 14px; min-width: 0; overflow-wrap: anywhere; }
.kk-item__meta { font-size: 12px; color: var(--kk-muted); font-variant-numeric: tabular-nums; }
.kk-item.is-heard .kk-item__icon { background: var(--c); color: #fff; }

/* Ortssuche */
.kk-geo { position: relative; min-width: 0; }
.kk-geo__results { position: absolute; z-index: 1200; left: 0; right: 0; top: calc(100% + 6px); margin: 0; padding: 6px; list-style: none; background: var(--kk-surface); border-radius: var(--kk-radius-sm); box-shadow: var(--kk-shadow); max-height: 320px; overflow: auto; }
.kk-geo__results button { display: grid; width: 100%; text-align: left; border: 0; background: none; padding: 8px 10px; border-radius: 6px; gap: 2px; }
.kk-geo__results button:hover, .kk-geo__results button:focus-visible { background: var(--kk-surface-2); }
.kk-geo__results small { color: var(--kk-muted); font-size: 12px; }
.kk-geo__state { padding: 8px 10px; font-size: 13px; color: var(--kk-muted); }

/* ---------- Player ---------- */
.kk-player { position: fixed; z-index: 900; display: flex; flex-direction: column; background: var(--kk-surface); color: var(--kk-ink); box-shadow: var(--kk-shadow); overflow: hidden; }
.kk-player__head { display: flex; align-items: flex-start; gap: 12px; padding: 16px 12px 12px 18px; }
.kk-player__swatch { width: 6px; align-self: stretch; border-radius: 3px; background: var(--c); }
.kk-player__heading { flex: 1; min-width: 0; }
.kk-player__kicker { margin: 0 0 2px; font-size: 12px; font-weight: 700; color: var(--c); }
.kk-player__title { margin: 0; font-size: 22px; line-height: 1.15; text-wrap: balance; outline: none; }
.kk-player__media { position: relative; background: #0d0f14; }
.kk-player__media:empty { display: none; }
.kk-player__video { display: block; width: 100%; max-height: 62vh; background: #000; }
.kk-player__img { display: block; width: 100%; max-height: 60vh; object-fit: contain; background: #000; }
.kk-player__audio { display: grid; gap: 10px; padding: 18px; background: color-mix(in srgb, var(--c) 85%, #000); color: #fff; }
.kk-player__audio canvas { width: 100%; height: auto; color: #fff; }
.kk-player__audio audio { width: 100%; }
.kk-player__missing, .kk-player__schoolart { display: grid; place-items: center; gap: 8px; padding: 34px 20px; text-align: center; color: #fff; background: color-mix(in srgb, var(--c) 80%, #000); }
.kk-player__missing svg, .kk-player__schoolart svg { width: 44px; height: 44px; opacity: .9; }
.kk-player__missing p { margin: 0; max-width: 30ch; }
.kk-player__schoolart b { font-size: 48px; line-height: 1; }
.kk-player__body { flex: 1; overflow: auto; padding: 14px 18px 18px; display: grid; align-content: start; gap: 12px; font-size: 15px; line-height: 1.5; }
.kk-player__body p { margin: 0; }
.kk-player__credit { color: var(--kk-muted); font-size: 14px; }
.kk-player__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.kk-player__extra:empty { display: none; }
.kk-player__nav { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--kk-line); }
.kk-player__pos { font-size: 13px; color: var(--kk-muted); font-variant-numeric: tabular-nums; }
.kk-facts { display: flex; flex-wrap: wrap; gap: 6px; }
.kk-fact { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; padding: 4px 10px; border-radius: 99px; background: var(--kk-surface-2); }
.kk-fact svg { width: 15px; height: 15px; }
.kk-fact--cat { background: color-mix(in srgb, var(--c) 14%, transparent); color: var(--kk-ink); }
.kk-fact--example { background: color-mix(in srgb, var(--kk-c0) 22%, transparent); }
.kk-yt { position: relative; display: block; aspect-ratio: 16 / 9; background: #000; }
.kk-yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.kk-yt--link img { width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.kk-yt__play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 64px; height: 64px; display: grid; place-items: center; border-radius: 50%; background: rgba(0,0,0,.65); color: #fff; }
.kk-yt__play svg { width: 28px; height: 28px; margin-left: 3px; }
.kk-yt__note { position: absolute; left: 12px; bottom: 10px; color: #fff; font-weight: 700; font-size: 13px; text-shadow: 0 1px 4px rgba(0,0,0,.6); }
.kk-shows { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.kk-show { display: grid; grid-template-columns: auto 1fr; gap: 0 12px; width: 100%; text-align: left; padding: 10px 12px; border-radius: var(--kk-radius-sm); border: 1.5px solid var(--kk-line); background: var(--kk-surface); }
.kk-show.is-current { border-color: var(--c); box-shadow: inset 4px 0 0 var(--c); }
.kk-show[aria-disabled="true"] { opacity: .65; cursor: default; }
.kk-show__date { grid-row: span 2; font-size: 12px; color: var(--kk-muted); font-variant-numeric: tabular-nums; padding-top: 2px; }
.kk-show__title { font-weight: 700; }
.kk-show__who { font-size: 13px; color: var(--kk-muted); }
.kk-dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; margin: 0; }
.kk-dl dt { font-size: 13px; color: var(--kk-muted); }
.kk-dl dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.kk-dl ul { margin: 0; padding-left: 18px; }
.kk-dl--compact { font-size: 13px; gap: 3px 12px; }
.kk-dl code { font-size: 12px; }
.kk-ok { color: var(--kk-ok); font-weight: 600; } .kk-warn { color: var(--kk-warn); font-weight: 600; }
.kk-workshop { padding: 12px 14px; border-radius: var(--kk-radius-sm); background: var(--kk-surface-2); font-size: 14px; }
.kk-workshop h3 { margin: 0 0 6px; font-size: 14px; }
.kk-workshop p + p { margin-top: 6px; }

/* ---------- Dialoge ---------- */
.kk-dialog { width: min(640px, calc(100vw - 24px)); max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: calc(var(--kk-radius) + 4px); background: var(--kk-surface); color: var(--kk-ink); box-shadow: var(--kk-shadow); overflow: hidden; display: none; flex-direction: column; }
.kk-dialog[open] { display: flex; }
.kk-dialog::backdrop { background: rgba(15, 20, 35, .48); backdrop-filter: blur(2px); }
.kk-dialog__head { display: flex; align-items: center; gap: 12px; padding: 16px 12px 12px 22px; border-bottom: 1px solid var(--kk-line); }
.kk-dialog__head h2 { flex: 1; margin: 0; font-size: 20px; font-family: var(--kk-font-display); }
.kk-dialog__body { overflow: auto; padding: 18px 22px 22px; line-height: 1.5; }
.kk-dialog__body h3 { margin: 20px 0 8px; font-size: 16px; }
.kk-lead { font-size: 17px; margin-top: 0; }
.kk-proto { border-top: 1px dashed var(--kk-line); padding-top: 10px; margin-top: 14px; }
.kk-timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.kk-timeline button { display: grid; grid-template-columns: 30px 1fr; gap: 0 10px; width: 100%; padding: 6px 8px; border-radius: var(--kk-radius-sm); text-decoration: none; }
.kk-timeline button:hover { background: var(--kk-surface-2); }
.kk-timeline b { grid-row: span 2; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 2px dashed var(--c); color: var(--c); }
.kk-timeline .is-mapped b { border-style: solid; background: var(--c); color: #fff; }
.kk-timeline small { color: var(--kk-muted); }
.kk-steps { margin: 0; padding-left: 22px; display: grid; gap: 4px; }
.kk-steps--compact { font-size: 14px; }

/* Menü */
.kk-menu { position: fixed; z-index: 1300; min-width: 200px; padding: 6px; background: var(--kk-surface); color: var(--kk-ink); border-radius: var(--kk-radius); box-shadow: var(--kk-shadow); }
.kk-menu__title { margin: 4px 10px 6px; font-size: 12px; font-weight: 700; color: var(--kk-muted); }
.kk-menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; background: none; border-radius: 6px; text-align: left; }
.kk-menu button:hover { background: var(--kk-surface-2); }
.kk-menu button[aria-checked="true"] { font-weight: 700; }
.kk-menu button[aria-checked="true"]::after { content: "✓"; margin-left: auto; }
.kk-menu__swatch { width: 26px; height: 18px; border-radius: 4px; border: 1px solid var(--kk-line); background: #e9e4dc; }
.kk-menu__swatch--light, .kk-menu__swatch--positron { background: #f2f2f0; }
.kk-menu__swatch--dark { background: #1e2633; }
.kk-menu__swatch--osm { background: #f2efe9; box-shadow: inset 0 -5px 0 #f9c96c; }
.kk-menu__swatch--voyager { background: #f5f3ee; box-shadow: inset 0 -5px 0 #a7d4b4; }
.kk-menu__swatch--paper { background: #fbf6ea; box-shadow: inset 0 -5px 0 #f7c873; }
.kk-menu__swatch--hell { background: #f3f3f1; box-shadow: inset 0 -5px 0 #dcdcdc; }
.kk-menu__swatch--grau { background: #d9d9d9; box-shadow: inset 0 -5px 0 #9a9a9a; }
.kk-menu__swatch--nacht, .kk-menu__swatch--details { background: #1f2738; box-shadow: inset 0 -5px 0 #3d4a66; }
.kk-menu__swatch--bunt { background: #f2efe9; box-shadow: inset 0 -5px 0 #f4b7c6; }
.kk-menu__swatch--farbe { background: #ece9f6; box-shadow: inset 0 -5px 0 #f6c84c; }
.kk-menu__swatch--osmde { background: #f2efe9; box-shadow: inset 0 -5px 0 #f9c96c; }

/* Toasts */
.kk-toasts { position: fixed; z-index: 2000; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); display: grid; gap: 8px; width: min(520px, calc(100vw - 24px)); pointer-events: none; }
html.kk-walking .kk-toasts { bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
.kk-toast { display: flex; align-items: center; gap: 12px; padding: 12px 14px 12px 16px; border-radius: var(--kk-radius); background: var(--kk-ink); color: var(--kk-surface); box-shadow: var(--kk-shadow); font-size: 14px; pointer-events: auto; opacity: 0; transform: translateY(10px); transition: opacity .2s, transform .2s; }
.kk-toast.is-in { opacity: 1; transform: none; }
.kk-toast span { flex: 1; }
.kk-toast__action { border: 0; background: var(--kk-surface); color: var(--kk-ink); border-radius: 6px; padding: 6px 10px; font-weight: 700; }

/* Hörspaziergang */
.kk-walkbar { position: fixed; z-index: 950; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); display: flex; align-items: center; gap: 10px; width: min(560px, calc(100vw - 24px)); padding: 10px 10px 10px 14px; background: var(--kk-surface); color: var(--kk-ink); border-radius: var(--kk-radius); box-shadow: var(--kk-shadow); overflow: hidden; }
.kk-walkbar__icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--c); color: #fff; }
.kk-walkbar__icon svg { width: 20px; height: 20px; }
.kk-walkbar__txt { flex: 1; display: grid; min-width: 0; line-height: 1.2; }
.kk-walkbar__txt small { color: var(--kk-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kk-walkbar__prog { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--kk-line); }
.kk-walkbar__prog i { display: block; height: 100%; width: 0; background: var(--c); transition: width .4s; }

/* ---------- Upload ---------- */
.kk-upload { width: min(720px, calc(100vw - 24px)); }
.kk-stepper { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 0 0 18px; padding: 0; font-size: 13px; }
.kk-stepper li { display: flex; align-items: center; gap: 8px; padding-top: 8px; border-top: 3px solid var(--kk-line); color: var(--kk-muted); min-width: 0; }
.kk-stepper span { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid currentColor; font-size: 12px; font-weight: 700; flex: none; }
.kk-stepper li.is-current { border-color: var(--kk-accent); color: var(--kk-ink); font-weight: 700; }
.kk-stepper li.is-done { border-color: var(--kk-ink); color: var(--kk-ink); }
.kk-stepper li.is-done span { background: var(--kk-ink); color: var(--kk-surface); border-color: var(--kk-ink); }
.kk-step__intro { margin: 0 0 14px; }
.kk-drop { display: grid; justify-items: center; gap: 6px; padding: 34px 20px; border: 2.5px dashed var(--kk-line); border-radius: var(--kk-radius); text-align: center; cursor: pointer; transition: border-color .15s, background .15s; }
.kk-drop:hover, .kk-drop.is-over { border-color: var(--kk-accent); background: color-mix(in srgb, var(--kk-accent) 6%, transparent); }
.kk-drop__icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--kk-accent); color: var(--kk-accent-ink); }
.kk-drop__icon svg { width: 28px; height: 28px; }
.kk-drop strong { font-size: 17px; }
.kk-drop span:last-of-type { color: var(--kk-muted); font-size: 14px; }
.kk-up-alt { justify-content: center; margin-top: 12px; }
.kk-rec { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: var(--kk-radius); background: var(--kk-surface-2); }
.kk-rec__dot { color: var(--kk-accent); animation: kk-blink 1s steps(2) infinite; }
.kk-rec__dot svg { width: 22px; height: 22px; }
.kk-rec__meter { flex: 1; height: 40px; min-width: 0; color: var(--kk-accent); }
.kk-rec__time { font-variant-numeric: tabular-nums; font-weight: 700; }
@keyframes kk-blink { 50% { opacity: .2; } }
.kk-up-preview { display: grid; grid-template-columns: minmax(0, 220px) 1fr; gap: 16px; align-items: start; }
.kk-up-preview__media video, .kk-up-preview__media img { width: 100%; max-height: 300px; object-fit: contain; border-radius: var(--kk-radius-sm); background: #000; }
.kk-up-preview__media .kk-player__audio { border-radius: var(--kk-radius-sm); --c: var(--kk-c0); }
.kk-quality { font-size: 14px; margin: 10px 0; }
.kk-up-searchrow { display: flex; gap: 8px; margin-bottom: 10px; }
.kk-up-searchrow .kk-geo { flex: 1; }
.kk-up-map { height: 340px; border-radius: var(--kk-radius); overflow: hidden; border: 1.5px solid var(--kk-line); }
.kk-up-where { font-size: 14px; margin: 10px 0 0; }
.kk-catpick { display: flex; flex-wrap: wrap; gap: 8px; }
.kk-catpick legend { margin-bottom: 8px; }
.kk-catpick .kk-cat { cursor: pointer; position: relative; font-size: 14px; padding: 8px 12px 8px 10px; }
.kk-consent label { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; font-size: 14px; padding: 4px 0; }
.kk-consent input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--kk-accent); }
.kk-up-error { margin: 12px 0 0; padding: 10px 12px; border-radius: var(--kk-radius-sm); background: color-mix(in srgb, var(--kk-accent) 12%, transparent); color: var(--kk-ink); font-weight: 600; font-size: 14px; }
.kk-up-nav { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--kk-line); }
.kk-up-stepname { font-size: 13px; color: var(--kk-muted); }
.kk-sumcard { display: grid; grid-template-columns: 140px 1fr; border-radius: var(--kk-radius); overflow: hidden; box-shadow: var(--kk-shadow); background: var(--kk-surface); }
.kk-sumcard__media { background: color-mix(in srgb, var(--c) 80%, #000); display: grid; place-items: center; color: #fff; min-height: 120px; }
.kk-sumcard__media video, .kk-sumcard__media img { width: 100%; height: 100%; object-fit: cover; }
.kk-sumcard__media canvas { width: 100%; color: #fff; }
.kk-sumcard__body { display: grid; gap: 4px; padding: 12px 14px; align-content: start; }
.kk-sumcard__kicker { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--c); }
.kk-sumcard__kicker svg { width: 15px; height: 15px; }
.kk-sumcard__body strong { font-size: 18px; }
.kk-sumcard__body p { margin: 0; font-size: 14px; }
.kk-sumcard__body small { color: var(--kk-muted); }
.kk-up-next { margin: 20px 0 8px; font-size: 15px; }
.kk-progress { margin-top: 16px; }
.kk-progress__bar { height: 10px; border-radius: 99px; background: var(--kk-surface-2); overflow: hidden; }
.kk-progress__bar i { display: block; height: 100%; width: 0; background: var(--kk-accent); transition: width .12s linear; }
.kk-progress__txt { font-size: 13px; color: var(--kk-muted); font-variant-numeric: tabular-nums; }
.kk-step--done { text-align: center; padding: 10px 0; }
.kk-step--done .kk-btnrow { justify-content: center; }
.kk-done__icon { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--kk-ok); color: #fff; animation: kk-pop .5s cubic-bezier(.2, 1.5, .4, 1); }
.kk-done__icon svg { width: 34px; height: 34px; }
.kk-step--done h3 { font-size: 22px; margin: 12px 0 6px; }
.kk-done__txt { max-width: 46ch; margin: 0 auto 8px; }
.kk-done__path { font-size: 13px; color: var(--kk-muted); margin: 0 0 18px; overflow-wrap: anywhere; }
@keyframes kk-pop { from { transform: scale(.3); opacity: 0; } }

/* Admin */
.kk-admin { width: min(860px, calc(100vw - 24px)); }
.kk-admin__note { margin: 0 0 14px; padding: 10px 12px; border-radius: var(--kk-radius-sm); background: var(--kk-surface-2); font-size: 14px; }
.kk-tabs { display: flex; gap: 4px; border-bottom: 1.5px solid var(--kk-line); margin-bottom: 14px; overflow-x: auto; }
.kk-tabs button { border: 0; background: none; padding: 10px 12px; font-weight: 600; color: var(--kk-muted); border-bottom: 3px solid transparent; margin-bottom: -1.5px; white-space: nowrap; }
.kk-tabs button span { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; margin-left: 4px; border-radius: 99px; background: var(--kk-surface-2); font-size: 12px; }
.kk-tabs button[aria-selected="true"] { color: var(--kk-ink); border-bottom-color: var(--kk-accent); }
.kk-admin__list { display: grid; gap: 14px; }
.kk-sub { display: grid; grid-template-columns: 220px 1fr; gap: 16px; padding: 14px; border: 1.5px solid var(--kk-line); border-radius: var(--kk-radius); }
.kk-sub__media video, .kk-sub__media img { width: 100%; max-height: 240px; object-fit: contain; background: #000; border-radius: var(--kk-radius-sm); }
.kk-sub__media .kk-player__audio { border-radius: var(--kk-radius-sm); padding: 12px; --c: var(--kk-c0); }
.kk-sub__info { min-width: 0; display: grid; gap: 8px; align-content: start; }
.kk-sub__info h3 { margin: 0; font-size: 17px; }
.kk-sub__info p { margin: 0; font-size: 14px; }
.kk-sub__meta { color: var(--kk-muted); font-size: 13px !important; }
.kk-sub__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.kk-sub__edit, .kk-sub__reject { padding: 12px; border-radius: var(--kk-radius-sm); background: var(--kk-surface-2); }
.kk-sub__reject p { margin: 0 0 8px; }

@media (max-width: 640px) {
  .kk-preview { width: 150px; }
  .kk-preview.is-landscape { width: 210px; }
  .kk-preview__title { font-size: 14px; }
  .kk-row2 { grid-template-columns: 1fr; }
  .kk-up-preview, .kk-sub { grid-template-columns: 1fr; }
  .kk-sumcard { grid-template-columns: 100px 1fr; }
  .kk-stepper { font-size: 0; }
  .kk-stepper li.is-current { font-size: 13px; }
  .kk-dialog { width: 100vw; max-width: 100vw; max-height: 100dvh; height: 100dvh; border-radius: 0; margin: 0; }
  .kk-dialog__body { padding: 16px; }
  .kk-up-map { height: 46vh; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
@media print {
  .kk-player, .kk-preview, .kk-toasts, .kk-walkbar, .kk-menu, .leaflet-control-container, [data-kk-noprint] { display: none !important; }
}
/* Entwurf 3 · Klang-Expedition
   Layout: oben die Expeditionsleiste mit Sammelstand, links das Heft (Liste, Album, Rätsel), rechts die Karte voller Sticker. */
:root {
  --kk-bg: #e8f2ff;
  --kk-surface: #ffffff;
  --kk-surface-2: #eef4fc;
  --kk-ink: #1d2a48;
  --kk-muted: #5a6885;
  --kk-line: #d8e2f0;
  --kk-accent: #ff5a47;
  --kk-accent-ink: #ffffff;
  --kk-focus: #2f8cff;
  --kk-c6: #8b5cf6;
  --kk-c7: #2f8cff;
  --kk-c8: #1fa66a;
  --kk-c0: #ff9d1c;
  --kk-ghost: #96a3bb;
  --sun: #ffc531;
  --kk-font: "Andika", "Trebuchet MS", sans-serif;
  --kk-font-display: "Grandstander", "Comic Sans MS", cursive;
  --kk-radius: 18px;
  --kk-radius-sm: 12px;
  --kk-shadow: 0 10px 0 rgba(29, 42, 72, .08), 0 14px 30px rgba(29, 42, 72, .16);
  --panel-w: 380px;
  --top-h: 74px;
}
body { background: var(--kk-bg); }
h1, h2, h3, .display { font-family: var(--kk-font-display); }

/* Expeditionsleiste */
.top { position: fixed; z-index: 1000; left: 0; right: 0; top: 0; height: var(--top-h); display: flex; align-items: center; gap: 16px; padding: 0 16px; background: var(--kk-surface); box-shadow: 0 2px 0 var(--kk-line); }
.logo { display: flex; align-items: center; gap: 10px; margin: 0; }
.logo__mark { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--sun); color: var(--kk-ink); transform: rotate(-6deg); box-shadow: 0 3px 0 rgba(29, 42, 72, .18); }
.logo__mark svg { width: 28px; height: 28px; }
.logo__txt { display: grid; line-height: 1; }
.logo__txt b { font-family: var(--kk-font-display); font-size: 24px; font-weight: 800; letter-spacing: -.01em; }
.logo__txt small { font-size: 13px; color: var(--kk-muted); margin-top: 4px; }
.score { display: flex; align-items: center; gap: 12px; margin-left: auto; padding: 6px 14px 6px 8px; border-radius: 999px; background: var(--kk-surface-2); }
.score__star { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--sun); color: var(--kk-ink); box-shadow: inset 0 -3px 0 rgba(0,0,0,.12); }
.score__star svg { width: 22px; height: 22px; }
.score__txt { display: grid; gap: 4px; min-width: 150px; }
.score__txt b { font-size: 14px; }
.score__mini { display: none; font-size: 15px; font-variant-numeric: tabular-nums; }
.meter { height: 10px; border-radius: 99px; background: var(--kk-line); overflow: hidden; }
.meter i { display: block; height: 100%; width: var(--p, 0%); background: linear-gradient(90deg, var(--kk-c6), var(--kk-c7), var(--kk-c8)); border-radius: 99px; transition: width .6s cubic-bezier(.2, 1.3, .4, 1); }
.btn-fun { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 20px 0 14px; border: 0; border-radius: 16px; font-family: var(--kk-font-display); font-weight: 800; font-size: 16px; box-shadow: 0 4px 0 rgba(29, 42, 72, .22); transition: transform .1s, box-shadow .1s; white-space: nowrap; }
.btn-fun:active { transform: translateY(3px); box-shadow: 0 1px 0 rgba(29, 42, 72, .22); }
.btn-fun svg { width: 22px; height: 22px; }
.btn-fun--sound { background: var(--kk-surface-2); color: var(--kk-ink); }
.btn-fun--sound[aria-pressed="true"] { background: var(--kk-c8); color: #fff; }
.btn-fun--up { background: var(--kk-accent); color: #fff; }

/* Heft links */
.book { position: fixed; z-index: 900; left: 0; top: var(--top-h); bottom: 0; width: var(--panel-w); display: flex; flex-direction: column; background: var(--kk-surface); box-shadow: 2px 0 0 var(--kk-line); }
.tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 12px 12px 0; }
.tab { display: grid; justify-items: center; gap: 2px; padding: 8px 4px 10px; border: 0; border-radius: 14px 14px 0 0; background: var(--kk-surface-2); color: var(--kk-muted); font-family: var(--kk-font-display); font-weight: 700; font-size: 15px; }
.tab svg { width: 24px; height: 24px; }
.tab[aria-selected="true"] { background: var(--kk-ink); color: #fff; }
.tab__badge { font-family: var(--kk-font); font-size: 11px; font-weight: 700; }
.pane { flex: 1; overflow: auto; padding: 16px; border-top: 4px solid var(--kk-ink); }
.pane h2 { margin: 0 0 4px; font-size: 22px; }
.pane h3 { margin: 18px 0 8px; font-size: 16px; display: flex; justify-content: space-between; align-items: baseline; }
.pane h3 small { font-family: var(--kk-font); font-size: 13px; color: var(--kk-muted); font-weight: 400; }
.pane__intro { margin: 0 0 12px; color: var(--kk-muted); }
.search { display: flex; align-items: center; gap: 8px; padding: 0 14px; border-radius: 14px; background: var(--kk-surface-2); border: 2px solid transparent; }
.search:focus-within { border-color: var(--kk-focus); background: #fff; }
.search svg { width: 20px; height: 20px; color: var(--kk-muted); }
.search input { flex: 1; min-width: 0; border: 0; background: none; padding: 12px 0; outline: none; font-size: 16px; }
.cats { display: flex; flex-wrap: wrap; gap: 6px; }
.kk-cat { border-width: 2px; font-size: 14px; }
.kk-item__icon { border-radius: 10px; transform: rotate(var(--r, -4deg)); }
.kk-item.is-heard .kk-item__icon { background: var(--c); color: #fff; box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--sun); }
.kk-layer__swatch { border-radius: 6px; transform: rotate(-6deg); }

/* Missionen */
.missions { display: grid; gap: 8px; margin-bottom: 4px; }
.mission { display: grid; grid-template-columns: 40px 1fr auto; gap: 4px 12px; align-items: center; padding: 10px 12px; border-radius: 14px; background: var(--kk-surface-2); border: 2px solid transparent; text-align: left; width: 100%; }
.mission:hover { border-color: var(--kk-line); }
.mission__ico { grid-row: span 2; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--c, var(--kk-ink)); color: #fff; transform: rotate(-5deg); }
.mission__ico svg { width: 22px; height: 22px; }
.mission b { font-size: 15px; }
.mission small { font-size: 13px; color: var(--kk-muted); }
.mission__n { grid-row: span 2; font-family: var(--kk-font-display); font-weight: 800; font-size: 18px; }
.mission.is-done { background: color-mix(in srgb, var(--sun) 30%, #fff); }
.mission.is-done .mission__n { color: var(--kk-c8); }

/* Album */
.album-hood { margin: 0 0 18px; }
.album-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 10px; }
.sticker { position: relative; display: grid; gap: 6px; padding: 0; border: 0; background: none; text-align: center; font-size: 12.5px; line-height: 1.2; color: var(--kk-ink); }
.sticker__img { position: relative; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: var(--c); border: 4px solid #fff; box-shadow: 0 3px 0 rgba(29, 42, 72, .12), 0 6px 14px rgba(29, 42, 72, .14); transform: rotate(var(--r, 0deg)); transition: transform .2s; }
.sticker:hover .sticker__img { transform: rotate(0) scale(1.05); }
.sticker__img img { width: 100%; height: 100%; object-fit: cover; }
.sticker__img .sticker__cat { position: absolute; left: 4px; bottom: 4px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 8px; background: var(--c); color: #fff; }
.sticker__img .sticker__cat svg { width: 15px; height: 15px; }
.sticker.is-locked .sticker__img { background: repeating-linear-gradient(45deg, var(--kk-surface-2) 0 8px, #fff 8px 16px); border-style: dashed; border-color: var(--kk-line); box-shadow: none; display: grid; place-items: center; color: var(--kk-ghost); }
.sticker.is-locked .sticker__img svg { width: 34%; height: 34%; }
.sticker.is-locked span { color: var(--kk-muted); }
.sticker__star { position: absolute; top: -6px; right: -6px; z-index: 2; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--sun); color: var(--kk-ink); box-shadow: 0 2px 0 rgba(0,0,0,.15); }
.sticker__star svg { width: 15px; height: 15px; }
.badges { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 8px; }
.badge { display: grid; grid-template-columns: 44px 1fr; gap: 2px 10px; align-items: center; padding: 10px; border-radius: 14px; background: var(--kk-surface-2); }
.badge__ico { grid-row: span 2; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--kk-line); color: var(--kk-muted); }
.badge__ico svg { width: 24px; height: 24px; }
.badge b { font-size: 13.5px; line-height: 1.15; }
.badge small { font-size: 12px; color: var(--kk-muted); line-height: 1.2; }
.badge.is-earned { background: color-mix(in srgb, var(--sun) 28%, #fff); }
.badge.is-earned .badge__ico { background: var(--sun); color: var(--kk-ink); box-shadow: 0 3px 0 rgba(0,0,0,.12); }

/* Rätsel */
.quiz { display: grid; gap: 14px; }
.quiz__stage { display: grid; justify-items: center; gap: 10px; padding: 22px 12px; border-radius: 20px; background: var(--kk-ink); color: #fff; text-align: center; }
.quiz__play { position: relative; display: grid; place-items: center; width: 108px; height: 108px; border: 0; border-radius: 50%; background: var(--sun); color: var(--kk-ink); box-shadow: 0 6px 0 rgba(0,0,0,.25); }
.quiz__play svg { width: 46px; height: 46px; }
.quiz__play::before, .quiz__play::after { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 3px solid var(--sun); opacity: 0; }
.quiz.is-playing .quiz__play::before { animation: kk-ring 1.4s ease-out infinite; }
.quiz.is-playing .quiz__play::after { animation: kk-ring 1.4s .7s ease-out infinite; }
.quiz__stage p { margin: 0; font-size: 15px; opacity: .85; }
.quiz__stage video { width: 100%; max-height: 240px; border-radius: 12px; background: #000; }
.quiz__options { display: grid; gap: 8px; }
.quiz__opt { display: grid; grid-template-columns: 40px 1fr; gap: 0 12px; align-items: center; padding: 10px 12px; border-radius: 14px; border: 2px solid var(--kk-line); background: #fff; text-align: left; font-size: 16px; }
.quiz__opt:hover { border-color: var(--kk-ink); }
.quiz__opt i { grid-row: span 2; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--c); color: #fff; }
.quiz__opt i svg { width: 22px; height: 22px; }
.quiz__opt small { font-size: 13px; color: var(--kk-muted); }
.quiz__opt.is-right { border-color: var(--kk-c8); background: color-mix(in srgb, var(--kk-c8) 14%, #fff); }
.quiz__opt.is-wrong { border-color: var(--kk-accent); background: color-mix(in srgb, var(--kk-accent) 10%, #fff); }
.quiz__fb { margin: 0; padding: 12px 14px; border-radius: 14px; font-weight: 700; }
.quiz__fb.is-right { background: color-mix(in srgb, var(--kk-c8) 16%, #fff); }
.quiz__fb.is-wrong { background: color-mix(in srgb, var(--kk-accent) 12%, #fff); }
.quiz__stats { display: flex; gap: 10px; font-size: 14px; color: var(--kk-muted); justify-content: center; }
.quiz__stats b { color: var(--kk-ink); }
.confetti { position: fixed; z-index: 3000; pointer-events: none; width: 10px; height: 14px; border-radius: 3px; animation: v3-fall 1.3s cubic-bezier(.2, .6, .4, 1) forwards; }
@keyframes v3-fall { from { transform: translate(0, 0) rotate(0); opacity: 1; } to { transform: translate(var(--dx), var(--dy)) rotate(var(--rot)); opacity: 0; } }

/* Karte */
#kk-map { position: fixed; left: var(--panel-w); right: 0; top: var(--top-h); bottom: 0; }
.kk-tiles--bunt { filter: saturate(1.2) brightness(1.03); }
.kk-tiles--hell { filter: saturate(.3) brightness(1.06) contrast(.92); }
.rail { position: fixed; z-index: 800; right: 14px; top: calc(var(--top-h) + 14px); display: grid; gap: 8px; }
.rail .kk-iconbtn { width: 48px; height: 48px; border-radius: 14px; background: #fff; box-shadow: 0 3px 0 rgba(29, 42, 72, .14), 0 6px 14px rgba(29, 42, 72, .1); }
.rail .kk-iconbtn svg { width: 22px; height: 22px; }
.geo { position: fixed; z-index: 800; left: calc(var(--panel-w) + 14px); top: calc(var(--top-h) + 14px); width: min(360px, calc(100vw - var(--panel-w) - 100px)); }
.geo .search { background: #fff; box-shadow: 0 3px 0 rgba(29, 42, 72, .12), 0 8px 18px rgba(29, 42, 72, .12); }

/* Sticker-Pins */
.kk-pin { --ph: 1; }
.kk-pin__body { border-radius: 11px; border: 3px solid #fff; box-shadow: 0 3px 0 rgba(29, 42, 72, .25), 0 4px 10px rgba(29, 42, 72, .25); transform: rotate(var(--r, 0deg)); }
.kk-pin__body svg { width: 60%; height: 60%; }
.kk-pin__wave { border-radius: 14px; border-width: 3px; }
.kk-pin--school .kk-pin__body { border-radius: 50%; background: #fff; color: var(--c); border-color: var(--c); }
.kk-pin--venue .kk-pin__body { background: var(--kk-ink); color: var(--sun); }
.kk-pin__star { position: absolute; z-index: 2; right: -7px; top: -7px; display: grid; place-items: center; width: 19px; height: 19px; border-radius: 50%; background: var(--sun); color: var(--kk-ink); box-shadow: 0 0 0 2px #fff; }
.kk-pin__star svg { width: 12px; height: 12px; }
.kk-pin.just-got { animation: v3-pop .8s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes v3-pop { 0% { transform: scale(.6) rotate(-20deg); } 60% { transform: scale(1.45) rotate(8deg); } 100% { transform: scale(1); } }
.kk-hood { gap: 10px; padding: 8px 16px 8px 8px; border: 3px solid #fff; box-shadow: 0 4px 0 rgba(29, 42, 72, .14), 0 10px 20px rgba(29, 42, 72, .14); font-family: var(--kk-font-display); }
.hood-ring { width: 36px; height: 36px; border-radius: 50%; background: conic-gradient(var(--c) calc(var(--p) * 1%), var(--kk-line) 0); display: grid; place-items: center; }
.hood-ring::after { content: attr(data-n); display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #fff; font-family: var(--kk-font); font-size: 11px; font-weight: 700; }
.kk-hood__txt small { font-family: var(--kk-font); }
.kk-ghost { border-width: 3px; background: #fff; font-family: var(--kk-font-display); }
.kk-walkline { stroke: var(--kk-accent); }

/* Vorschau & Player als Sticker-Karten */
.kk-preview { border: 4px solid #fff; border-radius: 18px; box-shadow: 0 6px 0 rgba(29, 42, 72, .12), 0 16px 30px rgba(29, 42, 72, .22); }
.kk-preview__media { border-radius: 14px 14px 0 0; }
.kk-preview__title { font-family: var(--kk-font-display); font-size: 17px; }
.kk-player { right: 76px; top: calc(var(--top-h) + 14px); bottom: 14px; width: min(410px, calc(100vw - var(--panel-w) - 110px)); border-radius: 22px; border: 5px solid #fff; box-shadow: 0 8px 0 rgba(29, 42, 72, .12), 0 20px 40px rgba(29, 42, 72, .25); transform: rotate(1deg) translateY(16px); opacity: 0; transition: transform .35s cubic-bezier(.2, 1.4, .4, 1), opacity .2s; }
.kk-player.is-in { transform: rotate(0); opacity: 1; }
.kk-player__title { font-family: var(--kk-font-display); font-size: 26px; font-weight: 800; }
.kk-player.is-portrait .kk-player__video { max-height: 50vh; aspect-ratio: 9 / 16; object-fit: contain; }
.got { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: color-mix(in srgb, var(--sun) 35%, #fff); font-weight: 700; animation: kk-pop .5s cubic-bezier(.2, 1.5, .4, 1); }
.got svg { width: 26px; height: 26px; }
.kk-dialog__head h2 { font-family: var(--kk-font-display); font-size: 22px; }
.kk-btn { border-width: 2px; border-radius: 12px; }

.nav-m { display: none; }
@media (max-width: 860px) {
  :root { --top-h: 64px; }
  .logo__txt small, .score__txt { display: none; }
  .score { padding: 4px 12px 4px 4px; gap: 8px; }
  .score__mini { display: block; }
  .btn-fun { min-height: 42px; padding: 0 12px; font-size: 14px; }
  .top .btn-fun--up { display: none; }
  .btn-fun--sound .kk-soundlabel { display: none; }
  #kk-map { left: 0; bottom: calc(68px + env(safe-area-inset-bottom, 0px)); }
  .book { left: 0; right: 0; width: auto; bottom: calc(68px + env(safe-area-inset-bottom, 0px)); top: var(--top-h); transform: translateY(100%); opacity: 0; pointer-events: none; transition: transform .3s cubic-bezier(.2, .9, .3, 1), opacity .2s; }
  html.book-open .book { transform: none; opacity: 1; pointer-events: auto; }
  .tabs { display: none; }
  .pane { border-top: 0; }
  .geo { left: 12px; right: 72px; width: auto; top: calc(var(--top-h) + 10px); }
  .rail { top: calc(var(--top-h) + 10px); right: 10px; }
  .rail [data-kk-action="zoomin"], .rail [data-kk-action="zoomout"], .rail [data-kk-action="print"], .rail [data-kk-action="fullscreen"] { display: none; }
  .nav-m { position: fixed; z-index: 1000; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(5, 1fr); padding: 6px 6px calc(6px + env(safe-area-inset-bottom, 0px)); background: #fff; box-shadow: 0 -2px 0 var(--kk-line); }
  .nav-m button { display: grid; justify-items: center; gap: 2px; padding: 4px 0; border: 0; background: none; font-family: var(--kk-font-display); font-weight: 700; font-size: 12px; color: var(--kk-muted); border-radius: 12px; }
  .nav-m button svg { width: 24px; height: 24px; }
  .nav-m button[aria-current="true"] { color: var(--kk-ink); background: var(--kk-surface-2); }
  .nav-m .nav-m__up { color: #fff; background: var(--kk-accent); margin: -16px 4px 0; border-radius: 18px; box-shadow: 0 4px 0 rgba(29, 42, 72, .2); padding-top: 10px; }
  .kk-player { left: 0; right: 0; bottom: 0; top: auto; width: 100%; max-height: 92dvh; border-radius: 22px 22px 0 0; border-width: 0; z-index: 1100; }
  .album-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 460px) { .album-grid { grid-template-columns: repeat(3, 1fr); } }
@media print { .top, .book, .rail, .geo, .nav-m { display: none !important; } #kk-map { position: static; height: 100vh; } }
/* Präsentationsversion: Farben wie Entwurf 3, fünf Bereiche oben, Mischpult mit Klangband */
:root {
  --kk-c1: #a8642a; --kk-c4: #0b9fb3; --kk-c5: #e64980; --kk-c6: #8b5cf6; --kk-c7: #2f8cff; --kk-c8: #0b6b3c; --kk-c9: #e03131;
  --panel-w: 400px; --band-h: 150px;
}
.top { gap: 12px; }
.logo__txt b { font-size: 22px; }
.main-nav { display: flex; gap: 6px; margin-left: auto; }
.nav-btn { position: relative; display: inline-flex; align-items: center; gap: 7px; min-height: 46px; padding: 0 14px 0 10px; border: 0; border-radius: 14px; background: var(--kk-surface-2); color: var(--kk-ink); font-family: var(--kk-font-display); font-weight: 800; font-size: 15px; box-shadow: 0 3px 0 rgba(29, 42, 72, .12); transition: transform .12s, background .15s; white-space: nowrap; }
.nav-btn svg { width: 21px; height: 21px; }
.nav-btn:hover { background: #e2ecfb; }
.nav-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(29, 42, 72, .12); }
.nav-btn[aria-pressed="true"] { background: var(--kk-ink); color: #fff; }
.nav-btn[data-mix][aria-pressed="true"] { background: var(--kk-c8); }
.nav-btn[data-walkmenu][aria-pressed="true"] { background: var(--kk-accent); }
.nav-btn--up { background: var(--kk-accent); color: #fff; }
.nav-btn--up:hover { background: #ff4430; }
.nav-btn__badge:empty { display: none; }
.nav-btn__badge { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 99px; background: var(--sun); color: var(--kk-ink); font-family: var(--kk-font); font-size: 12px; display: inline-grid; place-items: center; }
.btn-fun--sound { min-height: 46px; padding: 0 14px 0 12px; font-size: 15px; }
@media (max-width: 1360px) { .logo__txt small { display: none; } .nav-btn { padding: 0 11px 0 8px; font-size: 14px; } }
@media (max-width: 1180px) { .btn-fun--sound .kk-soundlabel { display: none; } .logo__txt b { font-size: 19px; } }

/* Startbildschirm */
.splash { position: fixed; inset: 0; z-index: 4000; display: grid; place-items: center; padding: 16px; background: rgba(29, 42, 72, .55); backdrop-filter: blur(4px); transition: opacity .4s; }
html.splash-gone .splash { opacity: 0; pointer-events: none; }
.splash__card { width: min(520px, 100%); padding: 34px 30px 26px; border-radius: 28px; background: #fff; text-align: center; border: 6px solid #fff; box-shadow: 0 12px 0 rgba(29, 42, 72, .15), 0 30px 60px rgba(29, 42, 72, .3); }
.splash__notes { display: flex; justify-content: center; gap: 10px; margin-bottom: 8px; }
.splash__notes svg { width: 46px; height: 46px; padding: 8px; border-radius: 14px; color: #fff; }
.splash__notes svg:nth-child(1) { background: var(--kk-c6); transform: rotate(-8deg); }
.splash__notes svg:nth-child(2) { background: var(--sun); color: var(--kk-ink); transform: translateY(-6px) rotate(4deg); }
.splash__notes svg:nth-child(3) { background: var(--kk-c8); transform: rotate(9deg); }
.splash h1 { margin: 6px 0 8px; font-size: clamp(30px, 6vw, 42px); }
.splash__lead { margin: 0 auto 22px; max-width: 34ch; font-size: 17px; color: var(--kk-muted); }
.splash__lead b { color: var(--kk-ink); }
.btn-fun--go { background: var(--kk-accent); color: #fff; min-height: 58px; font-size: 20px; padding: 0 26px 0 20px; }
.btn-fun--go svg { width: 26px; height: 26px; }
.splash__hint { margin: 14px 0 0; font-size: 14px; color: var(--kk-muted); }

/* Seitenleiste */
.pane { border-top: 0; padding: 18px 18px 24px; }
.pane__lead { margin: 6px 0 14px; line-height: 1.5; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 12px; }
.fact { display: grid; justify-items: center; padding: 10px 4px; border-radius: 14px; background: var(--kk-surface-2); text-align: center; line-height: 1.15; }
.fact b { font-family: var(--kk-font-display); font-size: 24px; }
.fact span { font-size: 11.5px; color: var(--kk-muted); }
.workshop { border-radius: 14px; background: color-mix(in srgb, var(--sun) 22%, #fff); padding: 10px 14px; }
.workshop summary { cursor: pointer; font-family: var(--kk-font-display); font-weight: 800; }
.workshop p { margin: 8px 0 0; font-size: 14.5px; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.tl { position: relative; display: grid; grid-template-columns: 44px 1fr; gap: 10px; padding-bottom: 14px; }
.tl::before { content: ""; position: absolute; left: 21px; top: 40px; bottom: 0; width: 3px; border-radius: 3px; background: var(--kk-line); }
.tl:last-child::before { display: none; }
.tl__dot { display: grid; place-items: center; width: 44px; height: 40px; border-radius: 12px; background: var(--c); color: #fff; font-family: var(--kk-font-display); font-weight: 800; font-size: 15px; transform: rotate(-4deg); box-shadow: 0 3px 0 rgba(29, 42, 72, .18); }
.tl__body { display: grid; gap: 2px; font-size: 14px; }
.tl__body b { font-family: var(--kk-font-display); font-size: 17px; }
.tl__year { font-size: 13px; color: var(--kk-muted); font-weight: 700; }
.tl__soon { font-style: normal; margin-left: 6px; padding: 1px 8px; border-radius: 99px; background: var(--sun); color: var(--kk-ink); font-size: 12px; }
.tl__school, .tl__prem { color: var(--kk-muted); }
.tl__btns { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 2px; }
.tl__btns .kk-linkbtn { color: var(--c); font-weight: 700; }
.hoodfilter { margin: 10px 0 6px; }
.pane__foot { display: grid; gap: 6px; margin-top: 22px; padding-top: 12px; border-top: 2px dashed var(--kk-line); font-size: 13px; color: var(--kk-muted); }
.pane__foot .kk-linkbtn { justify-self: start; }
.subtabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 14px; }
.subtab { display: inline-flex; justify-content: center; align-items: center; gap: 7px; min-height: 46px; border: 0; border-radius: 14px; background: var(--kk-surface-2); color: var(--kk-muted); font-family: var(--kk-font-display); font-weight: 800; font-size: 15px; }
.subtab svg { width: 20px; height: 20px; }
.subtab[aria-selected="true"] { background: var(--kk-ink); color: #fff; }
.albumhead { display: flex; align-items: center; gap: 12px; padding: 10px 12px; margin-bottom: 14px; border-radius: 16px; background: var(--kk-surface-2); }
.albumhead > span:last-child { flex: 1; display: grid; gap: 5px; }
.albumhead b { font-size: 14px; }

/* Hörspaziergang-Auswahl */
.walkmenu { position: fixed; z-index: 1300; width: 330px; padding: 14px; border-radius: 20px; background: #fff; border: 4px solid #fff; box-shadow: 0 8px 0 rgba(29, 42, 72, .1), 0 18px 40px rgba(29, 42, 72, .25); }
.walkmenu__head { display: flex; align-items: center; justify-content: space-between; font-family: var(--kk-font-display); font-size: 19px; }
.walkmenu p { margin: 4px 0 10px; font-size: 14px; color: var(--kk-muted); }
.walkmenu__list { display: grid; gap: 6px; max-height: 60vh; overflow: auto; }
.walkpick { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border: 2px solid var(--kk-line); border-radius: 14px; background: #fff; text-align: left; }
.walkpick:hover { border-color: var(--c); background: color-mix(in srgb, var(--c) 8%, #fff); }
.walkpick > span:last-child { display: grid; }
.walkpick small { color: var(--kk-muted); font-size: 13px; }
.walkpick__dot { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: var(--c); color: #fff; transform: rotate(-5deg); flex: none; }
.walkpick__dot svg { width: 20px; height: 20px; }

/* Klangband + Mischpult: erst sichtbar, wenn das Mischpult aktiv ist */
.band { position: fixed; z-index: 820; left: var(--panel-w); right: 0; bottom: 0; height: var(--band-h); display: grid; grid-template-rows: auto 1fr; padding: 8px 0 10px; background: #fff; box-shadow: 0 -3px 0 var(--kk-line); transform: translateY(100%); transition: transform .3s cubic-bezier(.2, .9, .3, 1); }
html.mix-open .band { transform: none; }
html.mix-open #kk-map { bottom: var(--band-h); }
#kk-map { transition: bottom .3s; }
.band__head { display: flex; align-items: center; gap: 12px; padding: 0 16px 6px; font-size: 13px; color: var(--kk-muted); }
.band__head b { color: var(--kk-ink); font-family: var(--kk-font-display); font-size: 16px; }
.band__track { display: flex; gap: 10px; overflow-x: auto; overflow-y: hidden; padding: 4px 16px 6px; scrollbar-width: thin; }
.card { position: relative; flex: none; width: 104px; }
.card__main { position: relative; display: block; width: 104px; height: 92px; padding: 0; border: 3px solid #fff; border-radius: 14px; overflow: hidden; background: var(--c); box-shadow: 0 3px 0 rgba(29, 42, 72, .14), 0 0 0 2px var(--c); }
.card__main img, .card__main video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card__note { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; }
.card__note svg { width: 34px; height: 34px; }
.card__name { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 14px 6px 4px; background: linear-gradient(transparent, rgba(0, 0, 0, .72)); color: #fff; font-size: 11.5px; font-weight: 700; line-height: 1.15; text-align: left; }
.card__add { position: absolute; z-index: 2; top: -6px; right: -6px; display: grid; place-items: center; width: 30px; height: 30px; border: 3px solid #fff; border-radius: 50%; background: var(--kk-ink); color: #fff; box-shadow: 0 2px 0 rgba(0, 0, 0, .2); }
.card__add svg { width: 16px; height: 16px; }
.card.is-mixed .card__add { background: var(--kk-c8); }
.card.is-active .card__main { box-shadow: 0 0 0 4px var(--sun); }
.card.is-heard .card__main::before { content: "★"; position: absolute; z-index: 1; top: 4px; left: 6px; color: var(--sun); font-size: 16px; text-shadow: 0 1px 2px rgba(0, 0, 0, .5); }
.band__empty { color: var(--kk-muted); padding: 24px 16px; font-size: 14px; }
.mixer { position: fixed; z-index: 860; right: 76px; bottom: calc(var(--band-h) + 14px); width: 380px; max-height: calc(100dvh - var(--top-h) - var(--band-h) - 40px); display: flex; flex-direction: column; border-radius: 22px; background: #fff; border: 4px solid #fff; box-shadow: 0 8px 0 rgba(29, 42, 72, .12), 0 20px 40px rgba(29, 42, 72, .25); transform: translateY(20px); opacity: 0; pointer-events: none; transition: transform .3s, opacity .25s; }
html.mix-open .mixer { transform: none; opacity: 1; pointer-events: auto; }
html.mix-open.kk-player-open .mixer { right: calc(76px + min(410px, 100vw - var(--panel-w) - 110px) + 12px); }
@media (max-width: 1320px) { html.mix-open.kk-player-open .mixer { opacity: 0; pointer-events: none; } }
html.mix-open .kk-player { bottom: calc(var(--band-h) + 14px); }
.mixer.is-over { box-shadow: 0 0 0 4px var(--kk-c8), 0 20px 40px rgba(29, 42, 72, .25); }
.mixer__head { display: flex; align-items: flex-start; gap: 10px; padding: 14px 8px 6px 16px; }
.mixer__head h2 { margin: 0; font-size: 20px; flex: 1; }
.mixer__head p { margin: 2px 0 0; font-size: 13px; color: var(--kk-muted); }
.mixer__tracks { list-style: none; margin: 0; padding: 4px 12px; display: grid; gap: 8px; overflow: auto; }
.track { display: grid; grid-template-columns: 34px 1fr auto auto auto; grid-template-areas: "dot name eq mute rm" "dot vol vol vol vol"; align-items: center; gap: 2px 8px; padding: 8px 6px 8px 8px; border-radius: 14px; background: var(--kk-surface-2); border-left: 5px solid var(--c); }
.track__dot { grid-area: dot; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--c); color: #fff; }
.track__dot svg { width: 18px; height: 18px; }
.track__name { grid-area: name; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; font-size: 14px; display: grid; }
.track__name small { font-weight: 400; color: var(--kk-muted); font-size: 12px; }
.track__vol { grid-area: vol; width: 100%; accent-color: var(--c); }
.track .kk-iconbtn { width: 34px; height: 34px; }
.track [data-mix="mute"] { grid-area: mute; }
.track [data-mix="remove"] { grid-area: rm; }
.track__eq { grid-area: eq; display: flex; align-items: flex-end; gap: 2px; height: 18px; }
.track__eq i { width: 4px; height: 4px; border-radius: 2px; background: var(--c); }
.track.is-playing .track__eq i { animation: mx-eq .8s ease-in-out infinite alternate; }
.track.is-playing .track__eq i:nth-child(2) { animation-delay: -.3s; }
.track.is-playing .track__eq i:nth-child(3) { animation-delay: -.55s; }
.track.is-playing .track__eq i:nth-child(4) { animation-delay: -.15s; }
@keyframes mx-eq { from { height: 4px; } to { height: 18px; } }
.track.is-muted { opacity: .55; }
.mixer__empty { margin: 0; padding: 18px 16px; text-align: center; color: var(--kk-muted); font-size: 14px; border: 2px dashed var(--kk-line); border-radius: 14px; }
.mixer__foot { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px; border-top: 2px dashed var(--kk-line); margin-top: 8px; }
.mixer__play[aria-pressed="true"] { background: var(--kk-c8); border-color: var(--kk-c8); color: #fff; }
.kk-pin.is-mixed .kk-pin__body { box-shadow: 0 0 0 3px var(--kk-c8), 0 3px 0 rgba(29, 42, 72, .25); }
.kk-player__extra { display: grid; gap: 8px; }
.kk-player__extra .kk-btn { justify-self: start; }
.nav-m { grid-template-columns: repeat(6, 1fr) !important; }
.nav-m button { font-size: 11px !important; }

@media (max-width: 860px) {
  :root { --band-h: 128px; }
  .main-nav { display: none; }
  .logo { margin-right: auto; }
  .band { left: 0; bottom: calc(68px + env(safe-area-inset-bottom, 0px)); }
  html.mix-open #kk-map { bottom: calc(68px + var(--band-h) + env(safe-area-inset-bottom, 0px)); }
  .mixer { left: 10px; right: 10px; width: auto; bottom: calc(68px + var(--band-h) + 10px + env(safe-area-inset-bottom, 0px)); max-height: 46dvh; }
  html.mix-open.kk-player-open .mixer { opacity: 0; pointer-events: none; }
  .band__hint { display: none; }
  html.mix-open .kk-player { bottom: 0; }
  .walkmenu { left: 10px !important; right: 10px; top: auto !important; bottom: calc(80px + env(safe-area-inset-bottom, 0px)); width: auto; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .nav-m [data-walkmenu][aria-pressed="true"], .nav-m [data-mix][aria-pressed="true"] { color: var(--kk-ink); background: var(--kk-surface-2); }
}
html.mix-open .kk-toasts { bottom: calc(var(--band-h) + 16px); }
html.mix-open .kk-walkbar { bottom: calc(var(--band-h) + 14px); }
html.mix-open.kk-walking .kk-toasts { bottom: calc(var(--band-h) + 92px); }
@media (min-width: 861px) { .kk-walkbar, .kk-toasts { left: calc(var(--panel-w) + (100vw - var(--panel-w)) / 2) !important; } }
.nav-m .nav-m__up { margin: -14px 2px 0 !important; font-size: 10px !important; letter-spacing: -.01em; }
@media (max-width: 860px) {
  html.mix-open .kk-toasts { bottom: calc(68px + var(--band-h) + 12px + env(safe-area-inset-bottom, 0px)); }
  html.mix-open .kk-walkbar { top: calc(var(--top-h) + 10px); bottom: auto; }
}
/* Seitenleiste einklappbar (Desktop) */
.book { transition: transform .3s cubic-bezier(.2, .9, .3, 1); }
#kk-map, .band { transition: left .3s cubic-bezier(.2, .9, .3, 1), bottom .3s, transform .3s cubic-bezier(.2, .9, .3, 1); }
.book__close { position: absolute; z-index: 5; top: 14px; right: 12px; display: grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 12px; background: var(--kk-surface-2); color: var(--kk-ink); box-shadow: 0 2px 0 rgba(29, 42, 72, .12); }
.book__close:hover { background: var(--kk-ink); color: #fff; }
.book__close svg { width: 20px; height: 20px; }
.pane h2 { padding-right: 46px; }
@media (min-width: 861px) {
  html.book-closed { --panel-w: 0px; }
  html.book-closed .book { width: 400px; transform: translateX(-100%); pointer-events: none; }
}
@media (max-width: 860px) { .book__close { display: none; } }
/* Schul-Text ohne Schulsymbol, Sticker nur im Rätsel */
.kk-player--school .kk-player__media { display: none; }
.quiz__stickers { display: inline-flex; align-items: center; gap: 4px; }
.quiz__stickers svg { width: 16px; height: 16px; color: var(--sun); }
.card.is-heard .card__main::before { content: none; }
@media print { .band, .mixer, .walkmenu, .splash { display: none !important; } }
