:root {
  --primary: #1e3c72;
  --primary-2: #2a5298;
  --bg: #0b1220;
  --surface: #0f1a33;
  --card: #0f2147;
  --text: #eaf0ff;
  --muted: #b9c7ee;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto,
    Arial, "Noto Sans", "Helvetica Neue", sans-serif;
  min-height: 100vh;
  color: var(--text);
  position: relative;
  background-color: var(--bg);
}

.background-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -2;
  background-image: url('resources/windrad-header.jpeg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.background-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(11, 18, 32, 0.75);
  z-index: 1;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Topbar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(15, 26, 51, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand {
  margin: 0;
  color: #ffffff;
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 700;
  letter-spacing: 0.3px;
  text-align: center;
}

.cta {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

/* Material-like button */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  cursor: pointer;
  transition: transform 0.12s ease, background 0.12s ease,
    border-color 0.12s ease;
  user-select: none;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.22);
}

.btn.primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 10px 24px rgba(30, 60, 114, 0.35);
}

.btn.primary:hover {
  background: linear-gradient(135deg, #224384, #2e5db1);
}

/* Layout */
.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 22px 16px 60px;
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
  align-items: stretch;
  margin-top: 6px;
}

@media (max-width: 920px) {
  .hero {
    grid-template-columns: 1fr;
  }
}

.card {
    background: rgba(15, 33, 71, 0.4);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.card-pad {
  padding: 18px;
}

h1 {
  margin: 0 0 8px;
  font-size: clamp(22px, 2.4vw, 34px);
}

.lead {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

/* Map */
.map-shell {
  position: relative;
  width: 100%;
  aspect-ratio: 1000 / 1028;
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius);
  overflow: hidden;
}

.map-shell img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.25));
}

/* Pins */
.pin {
  position: absolute;
  transform: translate(-50%, -50%);
  z-index: 5;
  padding: 8px 11px;
  font-size: 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(15, 33, 71, 0.72);
  backdrop-filter: blur(8px);
  color: var(--text);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.28);
  transition: transform 0.12s ease, background 0.12s ease,
    border-color 0.12s ease;
}

.pin:hover {
  transform: translate(-50%, -52%);
  background: rgba(30, 60, 114, 0.85);
  border-color: rgba(255, 255, 255, 0.24);
}

.pin:focus-visible {
  outline: 3px solid rgba(42, 82, 152, 0.55);
  outline-offset: 2px;
}

/* Tooltip (Material-ish) */
.tooltip {
  position: absolute;
  z-index: 50;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, calc(-100% - 14px)) scale(0.98);
  transform-origin: bottom center;
  transition: opacity 0.12s ease, transform 0.12s ease;
}

.tooltip.show {
  opacity: 1;
  transform: translate(-50%, calc(-100% - 14px)) scale(1);
}

.tooltip .bubble {
  max-width: 280px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(15, 33, 71, 0.92);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.35);
  color: var(--text);
  font-size: 13px;
  line-height: 1.35;
  white-space: nowrap;
}

.tooltip .bubble strong {
  font-weight: 700;
}

.tooltip .arrow {
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 12px;
  height: 12px;
  transform: translateX(-50%) rotate(45deg);
  background: rgba(15, 33, 71, 0.92);
  border-right: 1px solid rgba(255, 255, 255, 0.14);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

/* wenn Tooltip unter dem Pin angezeigt wird */
.tooltip.below {
  transform: translate(-50%, 14px) scale(0.98);
}

.tooltip.below.show {
  transform: translate(-50%, 14px) scale(1);
}

.tooltip.below .arrow {
  top: -6px;
  bottom: auto;
  transform: translateX(-50%) rotate(225deg);
}

/* Region list */
.region-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.note {
  margin-top: 10px;
  color: rgba(185, 199, 238, 0.9);
  font-size: 13px;
}

.hint {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(30, 60, 114, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--muted);
  line-height: 1.45;
  font-size: 14px;
}

code.inline {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 2px 6px;
  border-radius: 8px;
  color: var(--text);
}
