:root{
    --bg: #eef4fb;
    --surface: #ffffff;
    --surface-soft: #f7fbff;
    --border: #cfdceb;
    --text: #163654;
    --muted: #5f7790;
    --blue-1: #0c5ca8;
    --blue-2: #1f76d2;
    --blue-3: #edf5ff;
    --green: #23a26d;
    --shadow: 0 10px 30px rgba(16, 72, 126, 0.10);
    --radius: 18px;
    --radius-lg: 22px;
  }

  * { box-sizing: border-box; }

  html, body {
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: linear-gradient(180deg, #edf4fb 0%, #f7fbff 60%, #eef4fb 100%);
    color: var(--text);
  }

  a { color: var(--blue-1); text-decoration: none; }
  a:hover { text-decoration: underline; }

  .app-shell {
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 18px;
    min-height: 100vh;
    padding: 14px;
    align-items: start;
  }

  .sidebar {
    position: sticky;
    top: 14px;
    align-self: start;
    height: calc(100vh - 28px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 14px;
    background: rgba(255,255,255,.94);
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: var(--shadow);
    padding: 16px;
  }

  .sidebar-head {
    padding-bottom: 4px;
  }

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

  .brand-icon {
    width: 48px;
    height: 48px;
    border-radius: 15px;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 22px;
    background: linear-gradient(180deg, #2987df, #0c5ca8);
    box-shadow: 0 8px 18px rgba(31, 118, 210, .28);
  }

  .brand-row h1 {
    margin: 0;
    font-size: 20px;
    line-height: 1.1;
  }

  .brand-row p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.35;
  }

  .stats-grid {
    display: grid;
    gap: 10px;
  }

  .stats-grid-single {
    grid-template-columns: 1fr;
  }

  .stat-card {
    background: #f8fbff;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 14px;
    text-align: left;
  }

  .stat-card-info {
    background: linear-gradient(180deg, #f7fbff, #eef6ff);
  }

  .stat-text {
    font-size: 14px;
    line-height: 1.55;
    font-weight: 700;
    color: var(--text);
  }

  .filter-block {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 14px;
  }

  .filter-label {
    display: block;
    margin: 0 0 6px;
    font-size: 13px;
    font-weight: 700;
  }

  .ui-input,
  .ui-select {
    width: 100%;
    height: 46px;
    border-radius: 14px;
    border: 1px solid var(--border);
    padding: 0 14px;
    font-size: 15px;
    color: var(--text);
    background: #fff;
    outline: none;
    margin-bottom: 12px;
  }

  .ui-input.compact {
    height: 42px;
  }

  .ui-input.no-margin {
    margin-bottom: 0;
  }

  .input-with-clear {
    position: relative;
    margin-bottom: 10px;
  }

  .input-with-clear .ui-input {
    padding-right: 42px;
  }

  .input-clear-btn {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    width: 26px;
    height: 26px;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: #fff;
    color: var(--muted);
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    display: grid;
    place-items: center;
  }

  .toolbar-actions {
    display: flex;
    gap: 8px;
    flex-wrap: nowrap;
    align-items: center;
  }

  .toolbar-actions .ui-btn {
    padding-left: 10px;
    padding-right: 10px;
    white-space: nowrap;
  }

  .ui-btn {
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text);
    border-radius: 14px;
    padding: 10px 14px;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
  }

  .ui-btn.primary {
    background: linear-gradient(180deg, #1f76d2, #0c5ca8);
    color: #fff;
    border-color: transparent;
  }

  .ui-btn.full {
    width: 100%;
  }

  .results-head {
    padding: 4px 2px 0;
  }

  .result-hint {
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
  }

  .port-list {
    overflow: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-right: 4px;
  }

  .port-card {
    border: 1px solid var(--border);
    border-radius: 20px;
    background: #fff;
    padding: 14px;
    box-shadow: 0 6px 18px rgba(14,88,150,.05);
    cursor: pointer;
  }

  .port-card.active {
    border-color: #d95878;
    box-shadow: inset 0 0 0 1px #d95878;
  }

  .port-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
  }

  .port-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
  }

  .port-title {
    margin: 0;
    font-size: 16px;
    line-height: 1.25;
  }

  .flag-mini {
    width: 28px;
    height: 20px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #d6e2ef;
    background: #fff;
    flex: 0 0 auto;
  }

  .port-meta {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
    margin-top: 5px;
  }

  .port-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
  }

  .badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 700;
    border: 1px solid #d6e2ef;
    background: #eef6ff;
    color: var(--blue-1);
  }

  .main-panel {
    display: flex;
    flex-direction: column;
    gap: 18px;
  }

  .map-layout-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 18px;
    align-items: start;
  }

  .map-section,
  .map-sidepanel {
    background: rgba(255,255,255,.94);
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: var(--shadow);
  }

  .map-section {
    padding: 12px;
    position: sticky;
    top: 14px;
  }

  .map-sidepanel {
    position: sticky;
    top: 14px;
    max-height: calc(100vh - 28px);
    overflow: auto;
    padding: 14px;
  }

  .map-sidepanel-head h3 {
    margin: 0 0 10px;
    font-size: 18px;
  }

  .map-filter-box {
    background: #f8fbff;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 12px;
    margin-bottom: 12px;
  }

  .overlay-head-inline {
    margin-bottom: 10px;
  }

  .overlay-bulk-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 10px;
  }

  .overlay-bulk-btn {
    border: none;
    border-radius: 14px;
    padding: 10px 12px;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    background: #dfeafb;
    color: #274c80;
  }

  .overlay-bulk-btn.danger {
    background: #f2d8d8;
    color: #923737;
  }

  .overlay-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .overlay-list.light .overlay-item {
    background: #fff;
    border: 1px solid #dde8f5;
  }

  .overlay-item {
    display: grid;
    grid-template-columns: auto auto 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 10px 12px;
    border-radius: 14px;
  }

  .overlay-item input[type="checkbox"] {
    transform: scale(1.05);
  }

  .overlay-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    border: 2px solid #fff;
    box-shadow: 0 6px 14px rgba(12, 92, 168, 0.18);
  }

  .overlay-count {
    color: var(--muted);
    font-size: 13px;
  }

  #map {
    width: 100%;
    height: calc(100vh - 110px);
    min-height: 640px;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--border);
  }

  .map-action-bar {
    display:flex;
    justify-content:center;
    align-items:center;
    gap:8px;
    margin-top:14px;
    margin-bottom:4px;
    width:100%;
}

  .map-detail-jump-btn,
  .map-print-btn {
    border: none;
    border-radius: 999px;
    padding: 9px 15px;
    background: linear-gradient(180deg, #1f76d2, #0c5ca8);
    color: #fff;
    font-weight: 800;
    font-size: 13px;
    line-height: 1.25;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(12, 92, 168, 0.24);
    
    animation: cpicPulseSoft 2.2s ease-in-out infinite;
  }

  .map-detail-jump-btn {
    max-width: min(520px, 62vw);
  }

  .map-print-btn {
    white-space: nowrap;
    flex: 0 0 auto;
  }

  .map-detail-jump-btn:hover,
  .map-print-btn:hover {
    filter: brightness(1.05);
  }

  @keyframes cpicPulseSoft {
    0% {
      transform: scale(1);
      box-shadow: 0 8px 20px rgba(12, 92, 168, 0.24);
    }
    50% {
      transform: scale(1.025);
      box-shadow: 0 10px 24px rgba(12, 92, 168, 0.34);
    }
    100% {
      transform: scale(1);
      box-shadow: 0 8px 20px rgba(12, 92, 168, 0.24);
    }
  }

  .leaflet-control-layers {
    margin-top: 58px !important;
    border-radius: 14px !important;
    overflow: hidden;
    box-shadow: 0 8px 18px rgba(18, 62, 112, 0.18) !important;
  }

  .map-search-control {
    background: rgba(255,255,255,.96);
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 8px 18px rgba(18, 62, 112, 0.12);
  }

  .map-search-control-inner {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .map-search-control input {
    width: 250px;
    height: 36px;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0 12px;
    font-size: 14px;
    outline: none;
  }

  .map-search-clear-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--muted);
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
  }

  .harbor-anchor {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(180deg, #1f76d2, #0c5ca8);
    border: 2px solid #fff;
    color: #fff;
    font-size: 16px;
    box-shadow: 0 6px 14px rgba(12, 92, 168, 0.28);
  }

  .search-result-pin {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(180deg, #ef6b6b, #c94040);
    border: 2px solid #fff;
    color: #fff;
    font-size: 15px;
    box-shadow: 0 6px 14px rgba(140, 40, 40, 0.28);
  }

  .leaflet-tooltip.port-name-tooltip {
    background: rgba(255,255,255,.92);
    border: 1px solid #d8e5f3;
    color: #17395d;
    border-radius: 10px;
    box-shadow: 0 6px 14px rgba(12, 92, 168, 0.12);
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 700;
  }

  .leaflet-tooltip.port-name-tooltip:before {
    display: none;
  }

  .poi-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    border: 2px solid #fff;
    box-shadow: 0 6px 14px rgba(0,0,0,.18);
  }

  .port-popup {
    min-width: 250px;
    line-height: 1.45;
  }

  .port-popup-title {
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 8px;
    color: #163654;
  }

  .port-popup-row {
    margin: 4px 0;
    color: #334d69;
  }

  .port-popup-label {
    font-weight: 700;
    color: #163654;
  }

  .detail-section {
    display: flex;
    flex-direction: column;
    gap: 18px;
  }

  .detail-placeholder,
  .detail-card,
  .detail-box {
    background: rgba(255,255,255,.94);
    border: 1px solid var(--border);
    border-radius: 22px;
    box-shadow: var(--shadow);
  }

  .detail-placeholder {
    padding: 28px;
    color: var(--muted);
  }

  .detail-hero {
    display: grid;
    grid-template-columns: 1.3fr 0.9fr 0.7fr;
    gap: 16px;
  }

  .detail-card {
    padding: 18px;
  }

  .detail-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
  }

  .detail-title-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
  }

  .flag-large {
    width: 34px;
    height: 24px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #d6e2ef;
    background: #fff;
    flex: 0 0 auto;
  }

  .detail-title {
    margin: 0;
    font-size: 26px;
    line-height: 1.1;
  }

  .detail-subtitle {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 15px;
  }

  .detail-copy {
    color: var(--text);
    line-height: 1.7;
    font-size: 15px;
  }

  .detail-meta-block {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 10px 0 14px;
  }

  .detail-meta-row {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #35516e;
    line-height: 1.5;
  }

  .detail-meta-label {
    font-weight: 700;
    color: #163654;
    min-width: 130px;
  }

  .detail-meta-flag {
    width: 28px;
    height: 20px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #d6e2ef;
    background: #fff;
    flex: 0 0 auto;
  }

  .info-grid,
  .airport-grid,
  .useful-grid {
    display: grid;
    gap: 10px;
  }

  .info-grid {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }

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

  .useful-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }

  .mini-box {
    background: #f8fbff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 12px;
    min-width: 0;
  }

  .mini-label {
    font-size: 11px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: 6px;
  }

  .mini-value {
    font-size: 14px;
    line-height: 1.55;
    font-weight: 700;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .detail-grid-main {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 16px;
  }

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

  .detail-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .detail-box {
    padding: 18px;
  }

  .section-title {
    margin: 0 0 12px;
    font-size: 22px;
  }

  .table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: #fff;
  }

  table.data-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 720px;
  }

  .data-table th {
    background: #edf5ff;
    text-align: left;
    padding: 12px;
    font-size: 13px;
    border-bottom: 1px solid var(--border);
  }

  .data-table td {
    padding: 12px;
    font-size: 14px;
    vertical-align: top;
    border-top: 1px solid #e7eef7;
    line-height: 1.5;
  }

  .data-table tr:nth-child(even) td {
    background: #fbfdff;
  }

  .chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .chip {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: #eef6ff;
    border: 1px solid #d6e6fb;
    color: var(--blue-1);
    font-size: 13px;
    font-weight: 700;
  }

  .chip.link-chip {
    cursor: pointer;
  }

  .affiliate-list {
    display: grid;
    gap: 10px;
  }

  .affiliate-item {
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 12px;
    background: #f9fcff;
  }

  .affiliate-head {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 6px;
  }

  .affiliate-category {
    font-weight: 700;
  }

  .affiliate-provider {
    color: var(--muted);
    font-size: 13px;
  }

  .affiliate-link {
    display: inline-block;
    margin-top: 8px;
    border-radius: 12px;
    padding: 10px 14px;
    background: linear-gradient(180deg, #1f76d2, #0c5ca8);
    color: #fff;
    font-weight: 700;
  }

  .loading-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: grid;
    place-items: center;
    background: rgba(235, 243, 252, 0.50);
    backdrop-filter: blur(10px) saturate(120%);
    -webkit-backdrop-filter: blur(10px) saturate(120%);
    transition: opacity .2s ease;
  }

  .loading-overlay.hidden {
    display: none;
  }

  .loading-card {
    width: min(92vw, 560px);
    border-radius: 28px;
    padding: 28px 26px;
    background: rgba(255,255,255,.82);
    border: 1px solid rgba(255,255,255,.65);
    box-shadow: 0 20px 60px rgba(21, 65, 113, 0.18);
  }

  .spinner-ring {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 4px solid rgba(31,118,210,.12);
    border-top-color: #1f76d2;
    animation: spin 1.6s linear infinite;
    margin-bottom: 18px;
  }

  #loadingTitle {
    margin: 0 0 8px;
    font-size: 24px;
    line-height: 1.2;
  }

  #loadingSubtitle {
    margin: 0 0 18px;
    color: var(--muted);
    line-height: 1.5;
    font-size: 14px;
  }

  .loading-progress-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .loading-progress-item {
    border-radius: 16px;
    border: 1px solid #d9e8f7;
    background: rgba(240, 247, 255, 0.95);
    padding: 10px;
  }

  .loading-progress-label {
    font-size: 14px;
    color: #4f6d89;
    margin-bottom: 8px;
  }

  .loading-progress-bar {
    width: 100%;
    height: 10px;
    border-radius: 999px;
    background: #dfeaf7;
    overflow: hidden;
  }

  .loading-progress-fill {
    height: 100%;
    width: 0%;
    border-radius: 999px;
    background: linear-gradient(90deg, #61a7ef, #1f76d2, #0c5ca8);
    transition: width .55s ease;
  }

  .loading-progress-item.active .loading-progress-label {
    color: #163654;
    font-weight: 700;
  }

  .loading-progress-item.done .loading-progress-fill {
    width: 100% !important;
  }

  @keyframes spin {
    to { transform: rotate(360deg); }
  }


  .flag-emoji-fallback {
    display: inline-grid;
    place-items: center;
    background: #fff;
    border: 1px solid #d6e2ef;
    flex: 0 0 auto;
    line-height: 1;
  }

  .flag-mini.flag-emoji-fallback {
    width: 28px;
    height: 20px;
    border-radius: 4px;
    font-size: 18px;
  }

  .flag-large.flag-emoji-fallback {
    width: 34px;
    height: 24px;
    border-radius: 4px;
    font-size: 22px;
  }


  @media (max-width: 1480px) {
    .map-layout-card {
      grid-template-columns: 1fr;
    }

    .map-section,
    .map-sidepanel {
      position: static;
      max-height: none;
    }

    #map {
      height: 620px;
      min-height: 620px;
    }
  }

  @media (max-width: 1280px) {
    .app-shell {
      grid-template-columns: 380px 1fr;
    }

    .detail-hero,
    .detail-grid-main,
    .detail-grid-3,
    .detail-grid-2 {
      grid-template-columns: 1fr;
    }
  }

  @media (max-width: 980px) {
    .app-shell {
      grid-template-columns: 1fr;
    }

    .sidebar {
      position: static;
      height: auto;
    }

    #map {
      height: 500px;
      min-height: 500px;
    }
  }

  @media (max-width: 680px) {
    .info-grid,
    .airport-grid,
    .useful-grid {
      grid-template-columns: 1fr;
    }

    .loading-card {
      padding: 22px 18px;
    }

    .map-search-control input {
      width: 180px;
    }

    .map-action-bar {
    display:flex;
    justify-content:center;
    align-items:center;
    gap:8px;
    margin-top:14px;
    margin-bottom:4px;
    width:100%;
}

    .map-detail-jump-btn,
  .map-print-btn {
      width: 100%;
      max-width: none;
      border-radius: 16px;
      padding: 10px 13px;
      font-size: 13px;
    }

    .detail-meta-row {
      align-items: flex-start;
      flex-direction: column;
      gap: 4px;
    }

    .detail-meta-label {
      min-width: 0;
    }
  }


  /* Kompakte Aktionsleiste direkt unter den Suchbuttons */
  .quick-actions-box {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #dde8f5;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
  }

  .support-box.compact,
  .global-affiliate-box.compact {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
  }

  .support-box.compact {
    flex: 1 1 auto;
  }

  .support-btn.compact {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    border-radius: 12px;
    background: linear-gradient(180deg, #ffb84d, #e48b00);
    color: #fff;
    padding: 7px 12px;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
    box-shadow: 0 6px 14px rgba(228, 139, 0, .20);
  }

  .support-btn.compact.only {
    width: 100%;
  }

  .support-btn.compact:hover {
    text-decoration: none;
    filter: brightness(.98);
  }

  .global-affiliate-list.compact.icon-row {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
  }

  .global-affiliate-link.compact.icon-only {
    width: 32px;
    height: 32px;
    min-width: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #dde8f5;
    border-radius: 11px;
    background: #f8fbff;
    text-align: center;
    font-size: 17px;
  }

  .global-affiliate-link.compact.icon-only:hover {
    text-decoration: none;
    background: #edf5ff;
  }

  .global-affiliate-link.compact.icon-only span {
    line-height: 1;
  }

  .results-head {
    padding: 4px 2px 0;
  }

  .result-hint:empty {
    display: none;
  }

  @media (max-width: 520px) {
    .toolbar-actions {
      flex-wrap: wrap;
    }

    .quick-actions-box {
      flex-wrap: wrap;
    }

    .support-box.compact {
      flex: 1 1 100%;
    }
  }


/* V4: Affiliate-Icon-Leiste immer sichtbar, mit deaktiviertem Zustand */
.global-affiliate-link.compact.icon-only.is-disabled {
  opacity: .42;
  cursor: default;
  filter: grayscale(.35);
}

.global-affiliate-link.compact.icon-only.is-disabled:hover {
  background: #f8fbff;
  transform: none;
}

.global-affiliate-link.compact.icon-only:hover {
  transform: scale(1.10);
}


  /*************************************************
   * CPIC Drucken / PDF Popup
   *************************************************/
  .cpic-print-card-action {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #dbe8f6;
  }

  .cpic-print-open-btn {
    font-weight: 800;
  }

  .cpic-print-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: rgba(12, 31, 52, .48);
    display: grid;
    place-items: center;
    padding: 18px;
  }

  .cpic-print-modal {
    width: min(720px, 96vw);
    max-height: 92vh;
    overflow: auto;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: 0 24px 70px rgba(16, 72, 126, .30);
    padding: 22px;
    color: var(--text);
  }

  .cpic-print-modal-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 12px;
  }

  .cpic-print-modal h2 {
    margin: 0;
    font-size: 24px;
    line-height: 1.2;
  }

  .cpic-print-modal-intro {
    color: var(--muted);
    line-height: 1.55;
    margin: 0 0 16px;
  }

  .cpic-print-close {
    border: 1px solid var(--border);
    background: #fff;
    color: var(--muted);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
  }

  .cpic-print-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .cpic-print-form-row.full {
    grid-column: 1 / -1;
  }

  .cpic-print-help {
    margin-top: 5px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.4;
  }

  .cpic-print-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #dbe8f6;
  }

  .cpic-print-status {
    margin-top: 14px;
    padding: 12px;
    border-radius: 16px;
    background: #f8fbff;
    border: 1px solid #dbe8f6;
    color: var(--muted);
    line-height: 1.5;
    font-size: 14px;
  }

  .cpic-print-status.success {
    background: #eefaf4;
    border-color: #c6ead8;
    color: #17633f;
  }

  .cpic-print-status.error {
    background: #fff1f1;
    border-color: #f0caca;
    color: #943434;
  }

  .cpic-print-download-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
    border-radius: 999px;
    padding: 11px 16px;
    background: linear-gradient(180deg, #1f76d2, #0c5ca8);
    color: #fff;
    font-weight: 800;
    text-decoration: none;
  }

  .cpic-print-download-link:hover {
    text-decoration: none;
  }

  @media (max-width: 720px) {
    .cpic-print-form-grid {
      grid-template-columns: 1fr;
    }
  }


  /*************************************************
   * CPIC Drucken: Inline-Spinner, Progress & Support
   *************************************************/
  .cpic-print-status.working {
    background: #f8fbff;
    border-color: #cfe0f3;
    color: var(--text);
  }

  .cpic-print-working {
    display: flex;
    align-items: flex-start;
    gap: 12px;
  }

  .cpic-print-inline-spinner {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 3px solid rgba(31,118,210,.15);
    border-top-color: #1f76d2;
    animation: spin .9s linear infinite;
    flex: 0 0 auto;
    margin-top: 2px;
  }

  .cpic-print-working-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    line-height: 1.45;
  }

  .cpic-print-working-text span {
    color: var(--muted);
    font-size: 13px;
  }

  .cpic-print-mini-progress {
    position: relative;
    width: 100%;
    height: 8px;
    margin-top: 12px;
    border-radius: 999px;
    background: #dfeaf7;
    overflow: hidden;
  }

  .cpic-print-mini-progress span {
    position: absolute;
    top: 0;
    bottom: 0;
    left: -35%;
    width: 35%;
    border-radius: 999px;
    background: linear-gradient(90deg, #61a7ef, #1f76d2, #0c5ca8);
    animation: cpicPrintProgress 1.45s ease-in-out infinite;
  }

  @keyframes cpicPrintProgress {
    0% { left: -35%; width: 28%; }
    50% { width: 48%; }
    100% { left: 100%; width: 28%; }
  }

  .cpic-print-support-note {
    margin-top: 14px;
    padding: 14px;
    border-radius: 16px;
    background: #fffaf0;
    border: 1px solid #f0d9a8;
    color: #614313;
    line-height: 1.5;
  }

  .cpic-print-support-title {
    font-weight: 800;
    margin-bottom: 5px;
    color: #4b340f;
  }

  .cpic-print-support-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
    border: none;
    border-radius: 999px;
    padding: 10px 15px;
    background: linear-gradient(180deg, #ffb84d, #e48b00);
    color: #fff;
    font-weight: 800;
    cursor: pointer;
    font-family: inherit;
    box-shadow: 0 6px 14px rgba(228, 139, 0, .20);
  }

  .cpic-print-support-btn:hover {
    filter: brightness(.98);
  }

  .unesco-chip-list .unesco-chip {
    max-width: 100%;
    white-space: normal;
    line-height: 1.35;
    text-align: left;
  }
  


  .poi-export-box {
    background: linear-gradient(180deg, #f8fbff, #eef6ff);
  }

  .poi-export-title {
    font-size: 14px;
    line-height: 1.35;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 10px;
  }

  .poi-export-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .poi-export-btn {
    border: none;
    border-radius: 8px;
    padding: 8px 10px;
    background: #244b2b;
    color: #fff;
    font-family: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
  }

  .poi-export-btn:hover {
    filter: brightness(1.08);
  }

  .poi-export-btn:disabled {
    opacity: .45;
    cursor: not-allowed;
    filter: none;
  }

  .poi-export-note {
    margin-top: 9px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.35;
  }