:root {
    --bg-color: #101828;
    --secondary-color: #1E2939;
    --unvisited-color: #E20175;
    --unvisited-hover: #ae005a;
    --visited-color: #FFB900;
    --visited-hover: #c18d00;
    --text-color: #ffffff;
    --danger-color: #E20175;
    --line-color: #2d3d54;
    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: var(--font-family);
}

p {
    text-align: center;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

.screen {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.hidden {
    display: none !important;
}

h1, h2, h3 {
    margin-bottom: 15px;
    text-align: center;
}

/* Forms & Buttons */
.form-group {
    margin-top: 20px;;
    margin-bottom: 15px;
    width: 100%;
}

input, select {
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    border: none;
    background-color: #cdcdcd;
    color: #333;
    font-size: 16px;
    outline: none;
    margin-top: 10px;
}

button {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: opacity 0.2s;
    margin-top: 10px;
}

a, a:visited {
    color: var(--danger-color);
}

button:active {
    opacity: 0.8;
}

.primary-btn {
    background-color: var(--secondary-color);
    color: white;
}

.secondary-btn {
    background-color: transparent;
    border: 2px solid var(--secondary-color);
    color: white;
}

.danger-btn {
    background-color: transparent;
    border: 2px solid var(--danger-color);
    color: var(--danger-color);
    margin-top: 30px;
}

.button-group {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.button-group button {
    flex: 1; /* Zwingt beide Buttons, exakt die gleiche Breite (50%) zu haben */
    margin-top: 0; /* Verhindert, dass der danger-btn nach unten verschoben wird */
}

/* Map */
.map-container {
    width: 100%;
    margin-bottom: 20px;
    background-color: var(--secondary-color);
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0px 0px 15px black;
}

.map-preview-container {
    width: 100%;
    height: auto; /* Passt sich automatisch an die echte Höhe der SVG an */
    max-height: 50vh; /* Verhindert, dass die Karte am Handy den ganzen Bildschirm frisst */
    margin-bottom: 20px;
    display: flex; /* Zentriert die Karte schön */
    justify-content: center;
}

.map-preview-container svg {
    max-height: 100%;
    width: 100%;
}

svg {
    width: 100%;
    height: auto;
}

.state {
    fill: var(--unvisited-color);
    stroke: #000000;
    stroke-width: 2;
    transition: fill 0.3s ease;
}

.state:hover {
    fill: var(--unvisited-hover);
}

.state.visited {
    fill: var(--visited-color);
}

.state.visited:hover {
    fill: var(--visited-hover)
}

svg text {
    fill: black;
    font-weight: bold;
    pointer-events: none;
}

.route-line {
    stroke: var(--line-color);
    stroke-width: 3;
    stroke-dasharray: 5, 5;
}

.route-node {
    fill: var(--line-color);
}



/* Overlay & Popups */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(80, 81, 96, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
}

.popup {
    background-color: var(--bg-color);
    border: 2px solid var(--secondary-color);
    border-radius: 20px;
    padding: 25px;
    width: 100%;
    max-width: 400px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

.beer-list-container {
    background-color: rgba(0,0,0,0.2);
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 20px;
}

ul {
    list-style-type: none;
}

ul li {
    padding: 5px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

ul li:last-child {
    border-bottom: none;
}

.timer-display {
    text-align: center;
    font-size: 3rem; /* Schön groß */
    font-weight: bold;
    margin: 20px 0;
    padding: 15px;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 20px;
    color: white;
    font-family: 'Courier New', Courier, monospace; /* Monospaced, damit die Zahlen nicht springen */
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.3);
}

/* Wenn die Zeit abgelaufen ist, färben wir ihn rot */
.timer-display.expired {
    color: var(--danger-color);
}

/* Custom Dropdown Styles */
.custom-select-container {
    position: relative;
    width: 100%;
    user-select: none;
    margin-top: 10px;
}

.custom-select-trigger {
    background-color: #ffffff;
    color: #333;
    padding: 12px 15px;
    border-radius: 12px;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.custom-options-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #ffffff;
    border-radius: 12px;
    margin-top: 8px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    z-index: 200;
}

.custom-option {
    padding: 12px 15px;
    color: #333;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.custom-option:last-child {
    border-bottom: none;
}

.custom-option.selected {
    background-color: var(--secondary-color);
    color: #ffffff;
}

.custom-option:hover {
    background-color: var(--line-color);
    color: #ffffff;
}

.landing-container {
            max-width: 600px;
            margin: 0 auto;
            width: 100%;
            padding-bottom: 40px;
        }
.info-box {
    background-color: rgba(0,0,0,0.2);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 10px;
    margin-top: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.info-box p {
    margin-bottom: 15px;
}
.info-box p:last-child {
    margin-bottom: 0;
}
/* Überschreibt die Listen-Styles der App für normalen Text */
ul.rules-list {
    list-style-type: disc;
    margin-left: 20px;
    margin-bottom: 15px;
}
ul.rules-list li {
    border-bottom: none;
    padding: 5px 0;
}
/* Macht aus einem Link einen Button, der exakt wie in der App aussieht */
a.cta-btn {
    display: block;
    text-align: center;
    text-decoration: none;
    box-sizing: border-box;
    margin-top: 30px;
}