:root {
    --primary: #0095eb;
    --primary-dark: #007cc3;
    --text: #222222;
    --light-gray: #f8f8f8;
    --border: #e0e0e0;
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Base */
body {
    font-family: "Jost", Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background-color: #ffffff;
}

input, select, button {
    font-size: 16px;
}

/* Layout */
header {
    background: #ffffff;
    border-bottom: 1px solid var(--border);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    color: #000;
    text-decoration: none;
}

.logo span {
    color: var(--primary);
}

/* Typography */
h1 {
    font-size: 48px;
    line-height: 58px;
    font-weight: 400;
    margin: 60px 0 20px;
    text-align: center;
}

.subtitle {
    font-size: 20px;
    text-align: center;
    color: #555;
    margin-bottom: 40px;
}

/* Search UI */
.search-box {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 40px 30px;
    max-width: 800px;
    margin: 0 auto 60px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.search-row {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

select,
input[type="text"],
input[type="number"] {
    font-family: "Jost", sans-serif;
    padding: 14px 18px;
    border: 1px solid var(--border);
    border-radius: 8px;
    min-width: 180px;
}

select:focus,
input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0,149,235,0.15);
}

/* Combo */
.combo {
    position: relative;
    min-width: 140px;
}

.combo-unit {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
    pointer-events: none;
}

.combo-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    border: 1px solid #ccc;
    background: white;
    display: none;
    max-height: 250px;
    overflow: auto;
    z-index: 1000;
}

.combo-item {
    padding: 4px;
    cursor: pointer;
}

.combo-item:hover,
.combo-item.active {
    background: #e6e6e6;
}

/* Button */
button {
    background-color: #1b608b;
    color: white;
    font-family: "Jost", sans-serif;
    font-size: 17px;
    font-weight: 500;
    padding: 14px 32px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

button:hover {
    background-color: #2994d7;
    transform: translateY(-2px);
}

button:disabled {
    background: #35444b;
    cursor: not-allowed;
    transform: none;
}

/* Inputs */
#plz {
    width: 6em;
}

#radius {
    width: 6em;
}

/* Results */
#results {
    max-width: 1000px;
    margin: 0 auto;
}

#results div {
    margin-bottom: 12px;
}

#results .school {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
}

#results .sponsor {
    background: #fff8dc;
    border: 2px solid #f0c040;
}

.result-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    transition: box-shadow 0.3s;
}

.result-card:hover {
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
}

/* Alert */
#customAlert {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 20px;
    background-color: bisque;
    border: 1px solid black;
    z-index: 1000;
    text-align: center;
}

#customAlert p {
    margin: 0 0 20px 0;
    font-family: sans-serif;
    font-weight: bold;
}

/* Footer */
footer {
    text-align: center;
    padding: 40px 20px;
    color: #777;
    font-size: 14px;
    border-top: 1px solid var(--border);
    margin-top: 80px;
}

.disclaimer {
    text-align: center;
    color: #777;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 400px) {
    h1 {
        font-size: 36px;
        line-height: 44px;
    }

    .search-row {
        flex-direction: column;
        align-items: center;
    }

    select,
    input,
    button {
        min-width: 100%;
        max-width: 320px;
    }
}

@media (max-width: 400px) {
    #plz {
        width: 100%;
    }
	#radius {
        width: 100%;
	}
}

.copyright a {
    color: #777;
    text-decoration: none;
}

.copyright a:hover {
    color: #444;
}

.social a {
    color: #777;          /* grau */
    text-decoration: none;
}

.social a:hover {
    color: #444;
}

.result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.result-text {
    flex: 1;
}

.result-logo {
    width: 300px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.result-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}