/* Bergkönig — Layout: Landing, App, Responsive (Editorial Redesign) */

/* === LANDING PAGE === */
.landing {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* --- Hero --- */
.landing-hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 40px 60px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 70% 60%, rgba(212,162,76,0.06) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 30%, rgba(126,184,196,0.04) 0%, transparent 50%),
    linear-gradient(160deg, #0d1117 0%, #1a1814 40%, #2a2318 100%);
}

/* Berg-SVG-Silhouette */
.landing-hero .mountain-silhouette {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 60%;
  max-width: 800px;
  opacity: 0.06;
  pointer-events: none;
  z-index: 0;
}

/* Hero-Inhalt über der Silhouette */
.landing-hero-content {
  position: relative;
  z-index: 1;
  max-width: 640px;
}

.landing-hero-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 24px;
}

.landing-hero h1 {
  font-family: var(--font-display);
  font-size: 5rem;
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--color-text);
  margin-bottom: 24px;
}

.landing-hero h1 span {
  color: var(--color-gold);
  display: block;
}

.landing-hero-sub {
  font-size: 16px;
  font-weight: 300;
  color: var(--fog);
  max-width: 480px;
  line-height: 1.7;
  margin-bottom: 32px;
}

/* Meta-Pillen-Reihe */
.landing-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 48px;
}

/* --- Auth Container (im Hero, links) --- */
.auth-container {
  max-width: 380px;
  width: 100%;
  position: relative;
  z-index: 1;
}

.auth-toggle {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.auth-toggle-btn {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-muted);
  padding-bottom: 0.25rem;
  border-bottom: 1px solid transparent;
  transition: all var(--transition);
}

.auth-toggle-btn.active {
  color: var(--color-gold);
  border-bottom-color: var(--color-gold);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0;
  color: var(--color-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--granite);
}

/* === FEATURES SECTION === */
.landing-features {
  border-top: 1px solid var(--granite);
  padding: 60px 24px;
  max-width: 960px;
  margin: 0 auto;
  width: 100%;
}

.landing-features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 0;
}

.feature-card {
  border: 1px solid var(--granite);
  border-radius: 2px;
  padding: 32px 28px;
  background: transparent;
  transition: border-color var(--transition);
}

.feature-card:hover {
  border-color: var(--slate);
}

.feature-icon {
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.feature-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--color-text);
}

.feature-desc {
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--fog);
  line-height: 1.7;
}

/* === FOOTER === */
.landing-footer {
  border-top: 1px solid var(--granite);
  padding: 24px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.landing-footer-logo {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-gold);
}

.landing-footer-copy {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--fog);
}

/* === APP LAYOUT === */
.app {
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.app-header {
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* padding-top = Safe-Area: Logo/Glocke rutschen unter den Notch */
  padding: var(--safe-top) 1rem 0;
  background: var(--color-bg);
  border-bottom: 1px solid var(--granite);
  position: sticky;
  top: 0;
  z-index: 100;
}

.app-header-logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: #f0ece4;
  font-weight: 700;
}
.app-header-logo .brand-king {
  color: #c9a84c;
}

/* Hex Opacity Slider — vertikal */
.hex-opacity-control input[type="range"] {
  writing-mode: vertical-lr;
  direction: rtl;
  width: 20px;
  height: 100px;
  cursor: pointer;
}

/* Hex-Avatar Marker (Profilbild im Gebiet) */
.hex-avatar-icon {
  background: none !important;
  border: none !important;
}
.hex-avatar-wrapper {
  transition: opacity 0.2s ease;
  pointer-events: none;
}

/* Sponsor-Ticker (Landing Page + App Header) */
.sponsor-ticker-wrapper {
  overflow: hidden;
  position: relative;
}
.sponsor-ticker-track {
  display: flex;
  align-items: center;
  gap: 2rem;
  animation: sponsorScroll 30s linear infinite;
  width: max-content;
}
.sponsor-ticker-item {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--color-muted);
  font-size: 0.8rem;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.sponsor-ticker-item:hover { opacity: 1; }
@keyframes sponsorScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Sponsor-Ticker im Header (füllt gesamten Raum zwischen Logo und Glocke) */
.sponsor-header-ticker {
  flex: 1;
  overflow: hidden;
  height: 100%;
  display: flex;
  align-items: center;
  position: relative;
}
.sponsor-header-ticker .sponsor-ticker-track {
  gap: 4rem;
  position: absolute;
  animation: sponsorHeaderScroll 36s linear infinite;
  white-space: nowrap;
}
@keyframes sponsorHeaderScroll {
  0% { left: 50%; }
  100% { left: -100%; }
}
.sponsor-header-ticker .sponsor-ticker-item {
  font-size: 0.85rem;
  gap: 8px;
  white-space: nowrap;
  color: var(--color-text);
  opacity: 0.9;
}
.sponsor-header-ticker .sponsor-ticker-item img {
  height: 22px;
  max-width: 80px;
  object-fit: contain;
}
.sponsor-header-ticker .sponsor-ticker-item .sponsor-prize {
  color: var(--color-gold);
  font-size: 0.8rem;
}
/* Mobile: Ticker ausblenden, Preise-Link im Header anzeigen */
@media (max-width: 500px) {
  .sponsor-header-ticker { display: none !important; }
  .header-prizes-link { display: flex !important; }
}
.header-prizes-link {
  display: none;
  align-items: center;
  text-decoration: none;
  color: var(--color-gold);
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  margin-left: 8px;
  flex-shrink: 0;
}

.app-header-user {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.app-header-points {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--color-gold);
  font-weight: 500;
  letter-spacing: 1px;
}

.app-header-avatar {
  width: 32px;
  height: 32px;
  border-radius: 2px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}

/* === MAP + INFO LAYOUT === */
.map-container {
  flex: 1;
  min-height: 0;
  position: relative;
}

#map {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

/* Gipfel-Info Panel — schwebt über der Karte, oberhalb der Nav */
.peak-info-panel {
  position: absolute;
  bottom: var(--nav-height);
  left: 0;
  right: 0;
  z-index: 500;
  background: rgba(13, 17, 23, 0.95);
  border-top: 2px solid var(--color-gold);
  padding: 0.6rem 1rem 0.6rem;
  font-size: 0.9rem;
  max-height: 45vh;
  overflow-y: auto;
}

.peak-info-panel .panel-handle,
.peak-info-panel .panel-close {
  display: none;
}

.peak-top-meta {
  text-align: right;
  font-size: 0.75rem;
  color: var(--color-muted);
  margin-bottom: 2px;
}

.peak-bottom-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin-top: 0.2rem;
}
.peak-bottom-name .peak-elev {
  font-size: 0.75rem;
  color: var(--color-muted);
  font-weight: 400;
  margin-left: 6px;
}

.trophy-grid {
  display: flex;
  gap: 4px;
  margin-top: 0.2rem;
  margin-bottom: 0.15rem;
}

.trophy-slot {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.02);
  white-space: nowrap;
}

.trophy-slot.earned {
  background: rgba(201,168,76,0.12);
  border-color: rgba(201,168,76,0.3);
}

.trophy-slot .trophy-emoji {
  font-size: 1.15rem;
  line-height: 1;
  opacity: 0.25;
}

.trophy-slot.earned .trophy-emoji {
  opacity: 1;
}

.trophy-slot .trophy-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--color-muted);
}

.trophy-slot.earned .trophy-label {
  color: var(--color-gold);
}

.trophy-slot .trophy-user {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.trophy-slot .trophy-detail {
  font-size: 0.55rem;
  color: var(--color-muted);
}

.peak-history {
  font-size: 0.78rem;
  color: var(--color-muted);
  margin-top: 0.4rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.peak-description {
  font-size: 0.82rem;
  color: var(--color-muted);
  font-style: italic;
  line-height: 1.4;
  margin-top: 0.15rem;
}

/* Bergkönig zweifarbig — überall nutzbar */
.brand-name .brand-king { color: var(--color-gold); }

/* === BOTTOM NAVIGATION === */
.app-nav {
  height: var(--nav-height);
  display: flex;
  align-items: center;
  background: var(--color-bg);
  border-top: 1px solid var(--granite);
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  /* padding-bottom = Safe-Area: Buttons bleiben ueber dem Home-Indikator */
  padding-bottom: var(--safe-bottom);
}

.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 0.5rem;
  color: var(--color-muted);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: color var(--transition);
}

.nav-item.active {
  color: var(--color-gold);
}

.nav-icon {
  font-size: 1.25rem;
}

/* === CONTENT SECTIONS === */
.app-content {
  flex: 1;
  overflow-y: auto;
  padding-bottom: calc(var(--nav-height) + 1rem);
}

.content-section {
  padding: 1.25rem;
  display: none;
}

.content-section.active {
  display: block;
}

.section-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

/* === PEAK GRID === */
.peak-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

/* === LEADERBOARD LIST === */
.leaderboard-list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

/* === PROFILE === */
.profile-header {
  text-align: center;
  padding: 1.5rem 1rem;
}

.profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 2px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 1rem;
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-top: 1rem;
}

.profile-badges {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-top: 1rem;
}

.profile-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  color: var(--color-muted);
}

.profile-badge-icon {
  width: 48px;
  height: 48px;
  border-radius: 2px;
  background: var(--color-bg-card);
  border: 1px solid var(--granite);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

/* === SEASON FILTER === */
.season-filter {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
}

/* === LEAFLET OVERRIDES === */
.peak-marker {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
  width: 32px;
  height: 32px;
  background: rgba(26,24,20,0.85);
  border-radius: 50%;
  border: 2px solid var(--color-gold);
}

.peak-marker.king {
  font-size: 1.6rem;
  width: 38px;
  height: 38px;
  background: radial-gradient(circle, rgba(201,168,76,0.4) 0%, rgba(26,24,20,0.95) 70%);
  border-width: 2.5px;
  filter: drop-shadow(0 0 8px rgba(212,162,76,0.8));
  opacity: 1 !important;
}

.peak-marker.normal {
  color: var(--color-gold);
  font-size: 1rem;
}

.peak-marker.summited {
  color: var(--color-muted);
  font-size: 1rem;
}

.peak-marker.available {
  color: #00e676;
  font-size: 1rem;
  border-color: #00e676;
  filter: drop-shadow(0 0 4px rgba(0,230,118,0.4));
}

.peak-marker.danger {
  color: var(--color-danger);
  font-size: 1.1rem;
}

.hex-territory-info {
  font-size: 0.75rem;
  color: var(--color-muted);
  padding: 5px 8px;
  margin: 4px 0;
  background: rgba(0,229,255,0.06);
  border-left: 2px solid #00e5ff;
  border-radius: 4px;
  line-height: 1.4;
}
.hex-territory-info.hex-mine {
  background: rgba(201,168,76,0.08);
  border-left-color: var(--color-gold);
  color: var(--color-gold);
}
.hex-territory-info strong {
  color: var(--color-text);
}

.poi-marker {
  width: 22px !important;
  height: 22px !important;
  font-size: 0.7rem !important;
  color: var(--color-gold) !important;
  border-color: rgba(201,168,76,0.5) !important;
  opacity: 0.55;
}

.peak-marker.unreachable {
  color: #777 !important;
  font-size: 0.6rem !important;
  border-color: #666 !important;
  border-width: 1px !important;
  filter: none !important;
  opacity: 0.35;
  width: 18px !important;
  height: 18px !important;
  background: rgba(26,24,20,0.4) !important;
}

/* Popup Check-in Button — kompakt */
.popup-checkin-btn {
  margin-top: 6px;
  padding: 4px 12px;
  background: var(--color-gold);
  color: var(--color-bg);
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  width: 100%;
}
.popup-checkin-btn:hover {
  background: var(--color-gold-light);
}

/* Leaflet Attribution — klein und dezent */
.leaflet-control-attribution {
  font-size: 9px !important;
  background: rgba(0,0,0,0.4) !important;
  color: rgba(255,255,255,0.5) !important;
  padding: 1px 5px !important;
}
.leaflet-control-attribution a {
  color: rgba(255,255,255,0.6) !important;
}

/* Leaflet Layer-Switcher — dunkles Theme */
.leaflet-control-layers {
  background: var(--color-bg-card) !important;
  color: var(--color-text) !important;
  border: 1px solid var(--color-border) !important;
  border-radius: var(--radius) !important;
}
.leaflet-control-layers-toggle {
  width: 30px !important;
  height: 30px !important;
}

/* Orts-Suche auf der Karte */
.map-search-container {
  position: absolute;
  top: 10px;
  left: 50px;
  right: 50px;
  z-index: 1000;
}
.map-search-input {
  width: 100%;
  padding: 8px 12px;
  background: var(--color-bg-card);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.85rem;
  outline: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.map-search-input::placeholder {
  color: var(--color-muted);
}
.map-search-input:focus {
  border-color: var(--color-gold);
}
.map-search-results {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
  max-height: 200px;
  overflow-y: auto;
}
.map-search-item {
  padding: 8px 12px;
  font-size: 0.82rem;
  color: var(--color-text);
  cursor: pointer;
  border-bottom: 1px solid var(--color-border);
}
.map-search-item:hover {
  background: var(--color-bg-hover);
  color: var(--color-gold);
}

/* Leaflet Popup — editorial */
.leaflet-popup-content-wrapper {
  background: var(--color-bg-card) !important;
  color: var(--color-text) !important;
  border-radius: 2px !important;
  border: 1px solid var(--granite) !important;
  box-shadow: none !important;
}

.leaflet-popup-tip {
  background: var(--color-bg-card) !important;
  border: 1px solid var(--granite) !important;
}

.leaflet-popup-close-button {
  color: var(--color-muted) !important;
}

.peak-popup {
  min-width: 200px;
}

.peak-popup-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.peak-popup-ele {
  color: var(--color-muted);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

.peak-popup-info {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

/* === RESPONSIVE: MOBILE (default) === */
@media (max-width: 767px) {
  .landing-hero {
    padding: 60px 24px 40px;
    min-height: 100vh;
  }

  .landing-hero h1 {
    font-size: 3rem;
  }

  .landing-meta-row {
    gap: 6px;
  }

  .landing-footer {
    flex-direction: column;
    gap: 8px;
    text-align: center;
    padding: 20px 24px;
  }

  /* Infobox auf Mobile — GROSS und gut lesbar */
  .peak-info-panel {
    padding: 0.5rem 0.7rem;
  }
  .peak-top-meta {
    font-size: 1rem;
  }
  .trophy-grid {
    gap: 6px;
    margin-top: 0.3rem;
    margin-bottom: 0.2rem;
    flex-wrap: nowrap;
    overflow-x: auto;
  }
  .trophy-slot {
    padding: 5px 10px;
    gap: 3px;
    min-width: 0;
    flex-shrink: 1;
  }
  .trophy-slot .trophy-emoji {
    font-size: 1.3rem;
  }
  .trophy-slot .trophy-label {
    font-size: 0.95rem;
  }
  .trophy-slot .trophy-user {
    font-size: 0.95rem;
    max-width: 80px;
  }
  .peak-bottom-name {
    font-size: 1.3rem;
    margin-top: 0.2rem;
  }
  .peak-bottom-name .peak-elev {
    font-size: 1rem;
    color: var(--color-muted);
    font-weight: 400;
    margin-left: 4px;
  }
  .peak-description {
    font-size: 1rem;
    line-height: 1.4;
    margin-top: 0.2rem;
  }
  .peak-history {
    font-size: 0.9rem;
    margin-top: 0.2rem;
  }
}

/* === RESPONSIVE: TABLET + === */
@media (min-width: 768px) {
  .landing-features-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .peak-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .map-container {
    height: 65vh;
  }
}

/* === RESPONSIVE: DESKTOP === */
@media (min-width: 1024px) {
  .landing-hero {
    padding: 120px 80px 80px;
  }

  .landing-hero h1 {
    font-size: 6rem;
  }

  .landing-features {
    padding: 80px 60px;
  }

  .peak-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .app-content {
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
  }

  .content-section {
    padding: 2rem;
  }

  .profile-badges {
    grid-template-columns: repeat(6, 1fr);
  }
}

/* === AUTH PAGES (login, register, forgot, reset, settings) === */
.auth-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 1rem;
  max-width: 420px;
  margin: 0 auto;
}

.auth-logo {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: #f0ece4;
  text-decoration: none;
  margin-bottom: 2rem;
}
.auth-logo .brand-king {
  color: #c9a84c;
}

.auth-card {
  width: 100%;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.auth-card h1 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin: 0 0 1.25rem 0;
}

.auth-card h2 {
  font-family: var(--font-display);
}

.form-link-right {
  float: right;
  font-size: 0.8rem;
  color: var(--color-gold);
}

.auth-alt-link {
  text-align: center;
  font-size: 0.85rem;
  color: var(--color-muted);
  margin-top: 1.25rem;
}

.auth-alt-link a {
  color: var(--color-gold);
}

.auth-footer {
  margin-top: auto;
  padding-top: 2rem;
  font-size: 0.75rem;
  color: var(--color-muted);
}

.auth-footer a {
  color: var(--color-muted);
}

/* Avatar Selector */
.avatar-selector {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.25rem;
}

.avatar-option {
  width: 40px;
  height: 40px;
  font-size: 1.3rem;
  border: 2px solid var(--color-border);
  border-radius: 6px;
  background: var(--color-bg);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-option.selected {
  border-color: var(--color-gold);
  background: rgba(201,168,76,0.1);
}

/* Consent Checkboxen */
.consent-section {
  margin: 1rem 0;
  padding: 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.consent-item {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  margin-bottom: 0.75rem;
  font-size: 0.8rem;
  color: var(--color-muted);
}

.consent-item:last-child {
  margin-bottom: 0;
}

.consent-item input[type="checkbox"] {
  margin-top: 2px;
  flex-shrink: 0;
}

.consent-item a {
  color: var(--color-gold);
}

/* === REGIONEN-FORTSCHRITT === */
.region-progress {
  margin-bottom: 8px;
}
.region-progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3px;
}
.region-progress-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text);
}
.region-progress-count {
  font-size: 0.72rem;
  color: var(--color-muted);
  font-family: var(--font-mono);
}
.region-progress-bar {
  height: 6px;
  background: rgba(255,255,255,0.08);
  border-radius: 3px;
  overflow: hidden;
}
.region-progress-bar.complete {
  box-shadow: 0 0 6px rgba(255,215,0,0.4);
}
.region-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #4CAF50, #8BC34A);
  border-radius: 3px;
  min-width: 2px;
  transition: width 0.5s ease;
}
.region-progress-bar.complete .region-progress-fill {
  background: linear-gradient(90deg, #ffd700, #ff8c00);
}

/* === GIPFEL-KACHELN === */
.peak-card {
  position: relative;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 8px;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.2s;
}
.peak-card:hover {
  border-color: rgba(201,168,76,0.3);
}
.peak-card.gold {
  border-color: rgba(201,168,76,0.2);
  background: rgba(201,168,76,0.04);
}
.peak-card.diamond {
  border-color: rgba(255,215,0,0.3);
  background: rgba(255,215,0,0.06);
}
.peak-card .progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-gold), #ff8c00);
  border-radius: 0 3px 0 0;
}
.peak-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-text);
  font-family: var(--font-display);
}
.peak-meta {
  font-size: 0.75rem;
  color: var(--color-muted);
  margin-top: 2px;
}
.peak-points {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-gold);
  font-family: var(--font-display);
}
.badge-pill {
  font-size: 0.65rem;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 600;
  white-space: nowrap;
}

/* Breakdown: versteckt, per Klick aufklappbar */
.peak-card .breakdown {
  display: none;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(201,168,76,0.1);
}
.peak-card.expanded .breakdown {
  display: block;
}
