:root {
    --black: #0d0f12;
    --black-2: #171a1f;
    --red: #d20f17;
    --gold: #d4a100;
    --white: #ffffff;
    --soft: #f4f5f7;
    --line: #d9dde3;
    --text: #111319;
    --muted: #616874;
    --shadow: 0 24px 60px rgba(13, 15, 18, .12);
    --radius: 24px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Segoe UI Variable Display", "Segoe UI", Arial, sans-serif;
    color: var(--text);
    background: linear-gradient(180deg, #f6f7f9 0%, #ffffff 34%, #f2f4f7 100%);
    line-height: 1.5;
}

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

img {
    max-width: 100%;
    display: block;
}

.container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(16px);
    color: var(--black);
    border-bottom: 1px solid rgba(13, 15, 18, .08);
}

.nav {
    min-height: 84px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 12px 0;
}

.brand {
    display: flex;
    align-items: center;
    min-width: 0;
}

.brand img {
    width: min(320px, 42vw);
    height: auto;
}

.menu {
    display: flex;
    align-items: center;
    gap: 28px;
    font-size: 14px;
    font-weight: 700;
}

.menu a {
    position: relative;
    color: #2d333c;
}

.menu a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -8px;
    height: 2px;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--black), var(--red), var(--gold));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .2s ease;
}

.menu a:hover::after,
.menu a:focus-visible::after {
    transform: scaleX(1);
}

.btn {
    border: 0;
    border-radius: 14px;
    min-height: 48px;
    padding: 0 20px;
    font-size: 14px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: .2s ease;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--red), #f13519);
    color: var(--white);
    box-shadow: 0 16px 36px rgba(210, 15, 23, .28);
}

.btn-ghost {
    background: rgba(255,255,255,.92);
    color: var(--black);
    border: 1px solid rgba(13,15,18,.12);
}

.btn-light {
    background: var(--white);
    color: var(--black);
    border: 1px solid rgba(13,15,18,.1);
}

.hero {
    min-height: 560px;
    color: var(--black);
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(255,255,255,.97) 0%, rgba(255,255,255,.92) 54%, rgba(244,246,249,.88) 100%),
        linear-gradient(135deg, rgba(212,161,0,.08), rgba(210,15,23,.03)),
        url('https://images.unsplash.com/photo-1528150177508-7cc0c36cda5c?auto=format&fit=crop&w=2200&q=80') right center/cover;
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 6px;
    background: linear-gradient(90deg, var(--black) 0 26%, var(--red) 26% 63%, var(--gold) 63% 100%);
}

.hero .container {
    min-height: 560px;
    display: grid;
    grid-template-columns: 1.08fr .92fr;
    align-items: center;
    gap: 48px;
}

.eyebrow {
    color: var(--red);
    text-transform: uppercase;
    letter-spacing: .18em;
    font-size: 12px;
    font-weight: 900;
    margin-bottom: 18px;
}

.hero h1 {
    font-size: clamp(42px, 6vw, 76px);
    line-height: .95;
    letter-spacing: -.07em;
    max-width: 760px;
    margin-bottom: 22px;
}

.hero p {
    font-size: 20px;
    max-width: 620px;
    color: #414854;
    margin-bottom: 16px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
}

.hero-card {
    justify-self: end;
    width: min(420px, 100%);
    border-radius: var(--radius);
    background: rgba(255,255,255,.92);
    color: var(--text);
    padding: 26px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(13,15,18,.08);
}

.hero-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}

.hero-card-head strong {
    font-size: 18px;
    line-height: 1.1;
    letter-spacing: -.03em;
}

.hero-card-head span {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--red);
}

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

.stat-grid {
    display: grid;
    gap: 12px;
}

.stat {
    padding: 16px 18px;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #f4f5f7 100%);
    border: 1px solid rgba(13,15,18,.05);
}

.stat strong {
    display: block;
    font-size: 26px;
    line-height: .95;
    letter-spacing: -.04em;
    color: var(--black);
}

.stat span {
    display: block;
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.45;
    color: var(--muted);
}

.section {
    padding: 42px 0 56px;
}

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.section h2 {
    font-size: clamp(34px, 4vw, 56px);
    line-height: .94;
    letter-spacing: -.06em;
    color: var(--black);
}

.section-copy {
    max-width: 860px;
    font-size: 16px;
    line-height: 1.7;
    color: var(--muted);
    margin-top: 14px;
}

.section-link {
    font-size: 14px;
    font-weight: 800;
    color: var(--black);
    white-space: nowrap;
}

.workspace {
    display: grid;
    grid-template-columns: minmax(320px, .86fr) minmax(0, 1.14fr);
    gap: 22px;
    align-items: start;
}

.filters,
.stage {
    background: rgba(255,255,255,.95);
    border: 1px solid rgba(13,15,18,.08);
    border-radius: 28px;
    box-shadow: var(--shadow);
}

.filters {
    padding: 24px;
}

.panel-tools {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin: 18px 0 16px;
}

.panel-chip {
    padding: 10px 14px;
    border-radius: 999px;
    background: #f3f4f6;
    border: 1px solid rgba(13,15,18,.08);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #2b3139;
}

.list {
    display: grid;
    gap: 14px;
    margin-top: 8px;
}

.item {
    padding: 18px 18px 16px;
    border-radius: 20px;
    background: var(--soft);
    border: 1px solid rgba(13,15,18,.05);
}

.item-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 8px;
}

.item strong {
    display: block;
    font-size: 18px;
    line-height: 1.1;
    letter-spacing: -.03em;
    color: var(--black);
}

.item .k {
    display: inline-block;
    margin-bottom: 8px;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--red);
}

.item .m {
    font-size: 14px;
    line-height: 1.6;
    color: var(--muted);
}

.stage {
    padding: 24px;
}

.stage-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 18px;
}

.stage-head h3 {
    font-size: 30px;
    line-height: .98;
    letter-spacing: -.05em;
    color: var(--black);
    margin-bottom: 10px;
}

.stage-head p {
    max-width: 640px;
    font-size: 15px;
    line-height: 1.7;
    color: var(--muted);
}

.map-badge {
    padding: 10px 14px;
    border-radius: 999px;
    background: #f3f4f6;
    color: var(--black);
    border: 1px solid rgba(13,15,18,.08);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    white-space: nowrap;
}

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

.board-card {
    min-height: 176px;
    padding: 22px;
    border-radius: 22px;
    border: 1px solid rgba(13,15,18,.08);
    background:
        linear-gradient(180deg, #ffffff 0%, #f7f8fa 100%);
}

.board-card strong {
    display: inline-block;
    margin-bottom: 12px;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--red);
}

.board-card h4 {
    font-size: 24px;
    line-height: 1;
    letter-spacing: -.04em;
    color: var(--black);
}

.board-card p {
    margin-top: 12px;
    font-size: 15px;
    line-height: 1.65;
    color: var(--muted);
}

.board-card ul {
    margin-top: 12px;
    padding-left: 18px;
    color: var(--muted);
}

.board-card li {
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 1.55;
}

.statement {
    margin-top: 18px;
    padding: 28px;
    border-radius: 24px;
    background:
        linear-gradient(135deg, rgba(255,255,255,.98), rgba(246,247,249,.96));
    color: var(--black);
    border: 1px solid rgba(13,15,18,.08);
}

.statement p {
    max-width: 920px;
    font-size: clamp(20px, 2.4vw, 31px);
    line-height: 1.08;
    letter-spacing: -.04em;
    color: var(--black);
}

.finder {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 22px;
    align-items: start;
}

.filters-head,
.map-stage-head {
    padding: 24px 24px 18px;
    border-bottom: 1px solid var(--line);
}

.filters-head h3,
.map-stage-head h3 {
    font-size: 24px;
    line-height: 1.05;
    letter-spacing: -.04em;
    margin-bottom: 8px;
}

.filters-head p,
.map-stage-head p {
    color: var(--muted);
    font-size: 14px;
}

.search-input {
    width: 100%;
    border: 1px solid #d9e2ec;
    border-radius: 12px;
    padding: 14px 16px;
    background: var(--white);
    color: var(--text);
    font-weight: 700;
    outline: none;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.search-input:focus {
    border-color: #2f84ca;
    box-shadow: 0 0 0 3px rgba(47,132,202,.16);
}

.verband-list {
    max-height: 72vh;
    overflow: auto;
    background: linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(247,251,255,.98) 100%);
}

.verband-list .item {
    padding: 12px 18px;
    border-bottom: 1px solid var(--line);
    cursor: pointer;
    transition: background-color .18s ease, box-shadow .18s ease;
    background: transparent;
}

.verband-list .item:hover {
    background: #eef7ff;
    box-shadow: inset 0 0 0 1px rgba(11,49,92,.08);
}

.verband-list .item.is-active {
    background: linear-gradient(180deg, #d9ecfb 0%, #edf7ff 100%);
    outline: 1px solid rgba(11,49,92,.18);
}

.verband-list .item.is-ger4sail {
    background: linear-gradient(180deg, rgba(210,15,23,.08) 0%, rgba(212,161,0,.12) 100%);
    box-shadow: inset 4px 0 0 var(--red);
}

.verband-list .item.is-ger4sail:hover {
    background: linear-gradient(180deg, rgba(210,15,23,.12) 0%, rgba(212,161,0,.16) 100%);
}

.verband-list .item.is-ger4sail.is-active {
    background: linear-gradient(180deg, rgba(210,15,23,.18) 0%, rgba(212,161,0,.22) 100%);
    outline: 1px solid rgba(210,15,23,.24);
}

.verband-list .item.is-hidden {
    display: none;
}

.item-row {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
}

.item-main {
    min-width: 0;
    flex: 1 1 auto;
}

.item-main .n {
    font-weight: 800;
    color: var(--black);
}

.item-tag {
    display: inline-flex;
    align-items: center;
    margin-bottom: 8px;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(210,15,23,.1);
    color: var(--red);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.item-name-link {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 6px 14px;
    border-radius: 999px;
    background: #f7fbf7;
    border: 1px solid rgba(79,134,86,.45);
    color: var(--black) !important;
    font-size: .92rem;
    font-weight: 800;
    line-height: 1.15;
    transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.item-name-link:hover {
    background: #eef8ef;
    border-color: #4f8656;
    box-shadow: 0 8px 18px rgba(79,134,86,.16);
    transform: translateY(-1px);
}

.item-main .m {
    color: var(--muted);
    font-size: .9rem;
    margin-top: 6px;
}

.item-logo {
    flex: 0 0 auto;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
}

.item-logo img {
    max-width: 80px;
    max-height: 46px;
    object-fit: contain;
}

.empty-search,
.hint {
    padding: 18px 24px;
    color: var(--muted);
    font-size: .92rem;
}

.empty-search {
    display: none;
}

.empty-search.is-visible {
    display: block;
}

.map-stage {
    border-radius: 28px;
    background: rgba(255,255,255,.96);
    border: 1px solid rgba(13,15,18,.08);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.map-shell {
    padding: 0 24px 24px;
    position: relative;
}

#map {
    height: 60vh;
    min-height: 420px;
    border-radius: 20px;
    background: #dbeefe;
    box-shadow: inset 0 0 0 1px rgba(11,49,92,.06);
    position: relative;
    z-index: 1;
}

.leaflet-container {
    font-family: "Segoe UI Variable Display", "Segoe UI", Arial, sans-serif;
}

.leaflet-popup-content-wrapper {
    border-radius: 14px;
}

.map-logo-overlay {
    position: absolute;
    inset: 28px 42px 42px 42px;
    background-image: url('/image/GER4sail_master.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    opacity: 1;
    pointer-events: none;
    z-index: 2;
    filter: saturate(1.12);
}

.msg {
    padding: 14px 18px;
    border: 1px solid #f2caca;
    background: #fff5f5;
    color: #7a1d1d;
    border-radius: 16px;
    margin-bottom: 24px;
    box-shadow: 0 10px 20px rgba(60,22,22,.08);
}

.map-legend {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.legend-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 999px;
    background: #f3f4f6;
    border: 1px solid rgba(13,15,18,.08);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #2b3139;
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--black);
}

.legend-dot.is-partner {
    background: var(--red);
}

.legend-dot.is-hub {
    background: var(--gold);
}

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

.module-card {
    padding: 22px;
    border-radius: 22px;
    background: rgba(255,255,255,.96);
    border: 1px solid rgba(13,15,18,.08);
    box-shadow: var(--shadow);
}

.module-card strong {
    display: inline-block;
    margin-bottom: 12px;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--gold);
}

.module-card h3 {
    font-size: 24px;
    line-height: 1;
    letter-spacing: -.04em;
    color: var(--black);
}

.module-card p {
    margin-top: 12px;
    font-size: 15px;
    line-height: 1.65;
    color: var(--muted);
}

.footer {
    padding: 8px 0 42px;
}

.footer-panel {
    padding: 24px 28px;
    border-radius: 24px;
    background: rgba(255,255,255,.96);
    border: 1px solid rgba(13,15,18,.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}

.footer-copy {
    font-size: 14px;
    color: var(--muted);
}

.footer-links {
    display: flex;
    gap: 14px 24px;
    flex-wrap: wrap;
    font-size: 14px;
    color: var(--muted);
}

@media (max-width: 980px) {
    .menu { display: none; }
    .hero .container,
    .workspace,
    .finder,
    .board-grid,
    .module-grid {
        grid-template-columns: 1fr;
    }

    .hero-card {
        justify-self: stretch;
    }
}

@media (max-width: 600px) {
    .brand img {
        width: min(270px, 68vw);
    }

    .hero-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .section {
        padding: 34px 0 48px;
    }

    .hero .container {
        padding: 42px 0;
        min-height: auto;
    }

    .hero {
        min-height: auto;
    }

    .hero h1 {
        font-size: 38px;
    }

    .stage-head,
    .section-head,
    .panel-tools {
        flex-direction: column;
        align-items: flex-start;
    }
}
