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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f5f5f5;
    color: #333;
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
    overflow: hidden;
}

.site-footer {
    width: 100%;
    text-align: center;
    padding: 6px 0;
    font-size: 0.78rem;
    color: #888;
    flex-shrink: 0;
    background: transparent;
}

.site-footer a {
    color: #888;
    text-decoration: none;
    transition: color 0.15s;
}

.site-footer a:hover {
    color: #dc2626;
    text-decoration: underline;
}

.site-footer-sep {
    margin: 0 8px;
    color: #ccc;
}

.top-bar {
    width: 100%;
    background: #dc2626;
    color: #fff;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    position: relative;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.gew-logo-wrap {
    background: #fff;
    border-radius: 10px;
    padding: 5px 10px;
    display: flex;
    align-items: center;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    text-decoration: none;
}

.gew-logo {
    height: 36px;
    width: auto;
    display: block;
}

.top-bar-brand {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    margin: 0 auto;
    color: inherit;
    text-decoration: none;
}

.top-bar-tagline {
    color: #fff;
    font-weight: 400;
}

.gew-logo-wrap {
    text-decoration: none;
}

.top-bar-logo {
    height: 40px;
    width: auto;
    display: block;
}

.top-bar-title {
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: 0.03em;
}

.map-container {
    width: 100%;
    max-width: 550px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    min-height: 0;
    margin: 10px auto;
}

.map-container svg {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    display: block;
}

.tippy-box[data-theme~='lehrzeit'] {
    background: #2b2b2b;
    color: #fff;
    font-size: 0.95rem;
    padding: 2px 4px;
}

.tippy-box[data-theme~='lehrzeit'][data-placement^='bottom'] > .tippy-arrow::before {
    border-bottom-color: #2b2b2b;
}

.map-container svg path.bundesland {
    fill: #d6d2d2 !important;
    stroke: #ffffff !important;
    stroke-width: 1.5 !important;
    cursor: pointer;
    transition: fill 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.map-container svg path.bundesland:nth-child(2) { fill: #cbc6c6 !important; }
.map-container svg path.bundesland:nth-child(3) { fill: #d1cbcb !important; }
.map-container svg path.bundesland:nth-child(4) { fill: #c8c2c2 !important; }
.map-container svg path.bundesland:nth-child(5) { fill: #d9d4d4 !important; }
.map-container svg path.bundesland:nth-child(6) { fill: #c5bfbf !important; }
.map-container svg path.bundesland:nth-child(7) { fill: #d3cdcd !important; }
.map-container svg path.bundesland:nth-child(8) { fill: #ccc7c7 !important; }
.map-container svg path.bundesland:nth-child(9) { fill: #d0caca !important; }
.map-container svg path.bundesland:nth-child(10) { fill: #c9c3c3 !important; }
.map-container svg path.bundesland:nth-child(11) { fill: #d4cece !important; }
.map-container svg path.bundesland:nth-child(12) { fill: #cac4c4 !important; }
.map-container svg path.bundesland:nth-child(13) { fill: #d2cccc !important; }
.map-container svg path.bundesland:nth-child(14) { fill: #c7c1c1 !important; }
.map-container svg path.bundesland:nth-child(15) { fill: #d5cfcf !important; }
.map-container svg path.bundesland:nth-child(16) { fill: #cdc8c8 !important; }

.map-container svg path.bundesland[data-active="1"] {
    stroke: #dc2626 !important;
    stroke-width: 2 !important;
}

.map-container svg path.bundesland[data-active="1"].active {
    fill: #dc2626 !important;
    cursor: pointer;
}

@media (hover: hover) {
    .map-container svg path.bundesland[data-active="1"]:hover {
        fill: #dc2626 !important;
        cursor: pointer;
    }
}

.map-container svg .bundesland-label {
    font-size: 14px;
    font-weight: 600;
    fill: #333;
    text-anchor: middle;
    dominant-baseline: middle;
    pointer-events: none;
    user-select: none;
}

.map-container svg path.bundesland[data-active="0"] {
    cursor: not-allowed;
}

@media (hover: hover) {
    .map-container svg path.bundesland[data-active="0"]:hover {
        fill: #c4b8b8 !important;
    }
}

.tooltip {
    position: absolute;
    background: rgba(40, 40, 40, 0.95);
    color: #fff;
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 0.85rem;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s ease;
    white-space: nowrap;
    z-index: 100;
    transform: translate(-50%, -100%);
    margin-top: -12px;
}

.tooltip.visible {
    opacity: 1;
}

.tooltip-note {
    font-weight: normal;
    font-size: 0.8rem;
}

.map-intro {
    margin: 14px auto 0;
    text-align: center;
    font-size: 1.05rem;
    color: #333;
    flex-shrink: 0;
}

.tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: rgba(40, 40, 40, 0.95);
}

@media (max-width: 1024px) {
    .map-container {
        max-width: 60vw;
    }
}

@media (max-width: 1024px) and (orientation: portrait) {
    .map-container {
        max-width: 70vw;
    }
}

@media (max-width: 1024px) and (orientation: landscape) {
    .map-container {
        max-width: 45vw;
    }
}

@media (max-width: 768px) {
    .top-bar {
        padding: 10px 14px;
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    .top-bar-logo {
        height: 32px;
    }

    .top-bar-title {
        font-size: 0.95rem;
    }

    .top-bar-brand {
        order: 1;
        margin: 0;
    }

    .gew-logo-wrap {
        order: 0;
        position: static;
        transform: none;
        padding: 4px 10px;
        border-radius: 8px;
    }

    .gew-logo {
        height: 28px;
    }

    .map-container {
        max-width: 95vw;
    }

    .tooltip {
        font-size: 1rem;
        padding: 8px 16px;
    }
}
