:root {
    --primary-color: rgb(25, 25, 25);
    --secondary-color: rgba(70, 70, 70, 0.8);
}

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

/* ── Sticky footer layout ── */
html {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: var(--primary-color);
    background-image: url('../Images/halftoneGradient1.png');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    color: rgb(200, 200, 200);
}

main {
    flex: 1; /* pushes footer to bottom on short pages */
}

.row {
    display: flex;
    flex-direction: row;
}

.row-text {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin: 35px;
}

/* ── h1, h2, h3 ── */
h1 {
    padding: 20px;
    font-size: 35px;
    text-align: center;
}

h2 {
    font-size: 25px;
    margin-bottom: 10px;
    text-align: center;
}

h3 {
    font-size: 20px;
    margin-bottom: 10px;
    text-align: center;
}

h3 a {
    text-decoration: none;
    color: rgb(200, 200, 200);
    transition: color 0.2s ease;
}

.error {
    color: rgb(255, 100, 100);
    margin-bottom: 12px;
    text-align: center;
}

/* ── Header ── */
header {
    display: flex;
    position: relative;
    justify-content: center;
    align-items: center;
    align-self: auto;
    background-color: rgba(0, 0, 0, 0.8);
    gap: 10px;
    margin-top: 0;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.75);
    border-bottom: 1px solid rgb(255, 255, 255);
    padding: 12px 16px;
    z-index: 1;
    transition: filter 0.3s ease;
}

header:hover {
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.6));
    transition: filter 0.3s ease;
}

.logo {
    gap: 12px;
}

.logo img {
    width: 46px;
    height: 46px;
}

/* ── Nav links ── */
.main-buttons {
    gap: 10px;
    flex-wrap: wrap;
}

.nav-link-center {
    color: rgb(200, 200, 200);
    text-decoration: none;
    border-radius: 10px;
    margin: 0 5px;
    padding: 10px 15px;
    transition: color 0.3s ease, background-color 0.3s ease, padding 0.3s ease;
}

.nav-link-center:hover {
    color: rgb(255, 255, 255);
    background-color: rgba(255, 255, 255, 0.1);
    padding: 15px 20px;
}

@media (max-width: 480px) {
    .nav-link-center {
        padding: 8px 10px;
        font-size: 14px;
    }

    .nav-link-center:hover {
        padding: 8px 10px; /* disable padding grow on mobile — causes layout jumps */
    }
}

/* ── Form ── */
form {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 50px auto;
    width: min(100% - 32px, 420px); /* 16px breathing room each side on small screens */
    background-color: var(--secondary-color);
    border-radius: 5px;
    padding: 20px;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.75);
}

form input[type="text"],
form input[type="password"],
form input[type="email"],
form textarea {
    width: 100%;
    padding: 12px 14px;
    margin: 8px 0;
    border: 1px solid transparent;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.75);
    outline: none;
    font-size: 14px;
    color: rgb(200, 200, 200);
    transition: border-color 0.2s ease, background 0.2s ease;
}

form input[type="text"]:focus,
form input[type="password"]:focus,
form input[type="email"]:focus,
form textarea:focus {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.1);
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.3));
    transition: border-color 0.2s ease, background 0.2s ease, filter 0.2s ease;
}

form input[type="submit"] {
    width: clamp(80px, 25%, 160px); /* responsive but bounded */
    padding: 10px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 10px;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.75);
    color: #fff;
    transition: background 0.2s ease, filter 0.2s ease;
}

form input[type="submit"]:hover {
    background: rgba(255, 255, 255, 0.25);
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.4));
}

form button {
    width: clamp(160px, 25%, 160px); /* responsive but bounded */
    padding: 10px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 10px;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.75);
    color: #fff;
    transition: background 0.2s ease, filter 0.2s ease;
}

form button:hover {
    background: rgba(255, 255, 255, 0.25);
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.4));
}

button a {
    text-decoration: none;
    color: rgb(200, 200, 200);
}

footer {
    margin-top: auto;
    flex-shrink: 0;
    background-color: rgba(0, 0, 0, 0.8);
    border-top: 1px solid rgb(255, 255, 255);
    padding: 32px 40px 20px;
    color: rgb(200, 200, 200);
    transition: filter 0.3s ease;
}

footer:hover {
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.6));
    transition: filter 0.3s ease;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 32px;
    margin-bottom: 28px;
}

.footer-section h4 {
    font-size: 13px;
    font-weight: 500;
    color: rgb(255, 255, 255);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 0 0 12px;
}

.footer-section p,
.footer-section a {
    font-size: 13px;
    color: rgb(160, 160, 160);
    margin: 0 0 6px;
    text-decoration: none;
    display: block;
    transition: color 0.2s ease;
}

.footer-section a:hover {
    color: rgb(255, 255, 255);
}

.social-row {
    display: flex;
    gap: 12px;
    margin-top: 4px;
    flex-wrap: wrap;
}

.social-row a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: rgb(160, 160, 160);
    font-size: 16px;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.social-row a:hover {
    border-color: rgb(255, 255, 255);
    color: rgb(255, 255, 255);
}

.social-row img {
    width: 16px;
    height: 16px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 16px;
    font-size: 12px;
    color: rgb(100, 100, 100);
    text-align: center;
}

@media (max-width: 480px) {
    footer {
        padding: 24px 20px 16px;
    }

    .footer-grid {
        grid-template-columns: 1fr; /* stack columns on mobile */
        gap: 24px;
    }
}

@media (max-height: 500px) {
    header {
        padding: 6px 16px; /* shrink header on landscape mobile */
        margin-top: 5px;
    }
}

/* ── Event box ── */
.events-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 35px;
    padding: 20px 40px 60px;
    max-width: 1400px;
    margin: auto;
}

.event-card {
    width: calc(50% - 18px);
    border-radius: 14px;
    box-shadow: inset 0 0 10px rgba(0,0,0,.75);
    border: 2px solid rgba(255,255,255,.08);
    margin: 0;
}

.event-card:hover {
    background: rgba(65, 62, 62, 0.19);
    filter: drop-shadow(0 0 10px rgba(77, 69, 69, 0.4));
    transition: border-color 0.2s ease, background 0.2s ease, filter 0.2s ease;
}

.event-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    border-bottom: 1px solid rgba(255,255,255,.1);
}

.event-content {
    padding: 22px;
}

@media (max-width: 700px) {
    .event-card {
        width: 100%;
    }

    .events-grid {
        padding: 20px;
    }

    .event-card img {
        height: 180px;
    }
}

/* ── Tabellen ── */
table {
    margin: auto;
    border-collapse: collapse;
    width: auto;
}

th {
    border: 1px solid white;
    padding: 10px;
    text-align: center;
    background-color: #7f7f834c;
}

td {
    border: 1px solid white;
    padding: 10px;
    text-align: center;
}

/* ── Dropdown Menu ── */
.dropdown {
    position: relative;
}

.dropbtn {
    background-color: #000000;
    color: white;
    padding: 16px;
    font-size: 16px;
    border: none;
    cursor: pointer;
    align-items: center;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #444444;
    min-width: 200px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
}

.dropdown-content a {
    color: rgb(182, 182, 182);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {
    background: rgba(255, 255, 255, 0.19);
    filter: drop-shadow(0 0 10px rgba(77, 69, 69, 0.4));
    transition: border-color 0.2s ease, background 0.2s ease, filter 0.2s ease;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown:hover .dropbtn {
    background: rgba(65, 62, 62, 0.19);
    filter: drop-shadow(0 0 10px rgba(77, 69, 69, 0.4));
    transition: border-color 0.2s ease, background 0.2s ease, filter 0.2s ease;
}