/* ===============================
   Algemene instellingen
================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-height: 100%;
}

body {
    min-height: 100vh;
    font-family: Arial, Verdana, sans-serif;
    background: #f5f5f5;
    color: #1f2933;
    display: flex;
    flex-direction: column;
}

a {
    text-decoration: none;
}

/* ===============================
   Navbar
================================ */
.topbar,
.navbar {
    width: 100%;
    min-height: 64px;
    background: #f58220;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 3px solid #0b1f3a;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.18);
    z-index: 20;
}

.brand,
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-weight: bold;
    font-size: 22px;
    padding-left: 18px;
    text-transform: uppercase;
}

.brand img,
.logo img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.logo-badge {
    background: white;
    color: #f58220;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.topbar nav,
.navbar nav {
    display: flex;
    align-items: stretch;
    min-height: 64px;
}

.topbar nav a,
.navbar nav a {
    color: white;
    font-weight: bold;
    padding: 21px 30px;
    border-left: 1px solid rgba(0, 0, 0, 0.25);
    background: #f58220;
    display: flex;
    align-items: center;
    justify-content: center;
}

.topbar nav a:hover,
.navbar nav a:hover {
    background: #0b1f3a;
}

/* ===============================
   Homepage
================================ */
.home-page,
.page-bg {
    flex: 1;
}

.home-page {
    width: 100%;
    background: white;
}

.home-hero {
    width: 100%;
    min-height: 430px;
    background:
            linear-gradient(rgba(5, 15, 30, 0.55), rgba(5, 15, 30, 0.55)),
            url("../img/stadium.jpg") center / cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 4px solid #f58220;
}

.hero-overlay {
    text-align: center;
    color: white;
    padding: 20px;
}

.hero-overlay h1 {
    font-size: 52px;
    line-height: 1.25;
    margin-bottom: 22px;
    text-shadow: 2px 2px 8px black;
}

.hero-overlay h2 {
    color: #f58220;
    font-size: 32px;
    margin-bottom: 10px;
    text-shadow: 2px 2px 6px black;
}

.hero-overlay p {
    font-size: 26px;
    font-weight: bold;
    text-shadow: 2px 2px 6px black;
}

/* ===============================
   Bezoekersregels
================================ */
.rules-section {
    width: 100%;
    background: white;
    padding: 42px 40px 55px;
    text-align: center;
}

.rules-section h2 {
    color: #0b1f3a;
    font-size: 30px;
    margin-bottom: 30px;
}

.rules-grid {
    width: 100%;
    max-width: 1050px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 35px;
}

.rule {
    padding: 22px;
    border-radius: 14px;
    background: #fafafa;
    border: 1px solid #e0e0e0;
    min-height: 155px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.rule img {
    width: 90px;
    height: 90px;
    object-fit: contain;
    margin-bottom: 12px;
}

.rule p {
    font-weight: bold;
    color: #222;
    font-size: 16px;
}

/* ===============================
   Pagina achtergrond
================================ */
.page-bg {
    position: relative;
    width: 100%;
    min-height: calc(100vh - 124px);
    padding: 70px 20px 120px;
    overflow: hidden;
    background: linear-gradient(rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.86));
}

/* Fans afbeelding achter de inhoud */
.page-bg::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 260px;
    background: url("../img/fans-bg.png") bottom center / auto 230px repeat-x;
    opacity: 0.25;
    z-index: 0;
    pointer-events: none;
}

.page-content,
.page-bg > .form,
.page-bg > .card {
    position: relative;
    z-index: 1;
}

.page-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* ===============================
   Cards
================================ */
.card {
    background: rgba(255, 255, 255, 0.94);
    padding: 35px;
    border-radius: 14px;
    margin: 0 auto 25px;
    border: 1px solid #ddd;
    border-top: 6px solid #f58220;
    max-width: 1000px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.16);
}

.card h1,
.card h2 {
    color: #0b1f3a;
    text-align: center;
    margin-bottom: 22px;
}

.card p {
    margin-bottom: 10px;
    font-size: 16px;
}

.card ul {
    margin-left: 20px;
}

.card li {
    margin-bottom: 10px;
}

/* ===============================
   Formulieren
================================ */
.form {
    background: rgba(255, 255, 255, 0.94);
    padding: 38px;
    border-radius: 14px;
    max-width: 880px;
    margin: 0 auto;
    border: 1px solid #ddd;
    border-top: 6px solid #f58220;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.16);
}

.form h1 {
    color: #0b1f3a;
    margin-bottom: 15px;
    font-size: 34px;
}

.form-intro {
    color: #555;
    margin-bottom: 25px;
    font-size: 17px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

.form label {
    display: block;
    margin-top: 15px;
    font-weight: bold;
    color: #0b1f3a;
}

.form input,
.form select {
    width: 100%;
    padding: 13px;
    margin-top: 7px;
    border: 1px solid #c8c8c8;
    border-radius: 8px;
    font-size: 15px;
    background: white;
}

.form input:focus,
.form select:focus {
    outline: none;
    border-color: #f58220;
    box-shadow: 0 0 0 3px rgba(245, 130, 32, 0.2);
}

/* ===============================
   Knoppen
================================ */
.button,
button {
    display: inline-block;
    background: #f58220;
    color: white;
    padding: 13px 22px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 15px;
    font-weight: bold;
    margin-top: 15px;
    text-align: center;
}

.button:hover,
button:hover {
    background: #d96d12;
}

.button.secondary {
    background: #0b1f3a;
}

.button.secondary:hover {
    background: #16385f;
}

.danger {
    background: #b3261e;
}

.danger:hover {
    background: #8f1d18;
}

.actions-row {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 25px;
}

/* ===============================
   Meldingen
================================ */
.error {
    background: #ffe1e1;
    color: #8a0000;
    padding: 13px;
    border-radius: 8px;
    margin-bottom: 15px;
    border-left: 5px solid #b3261e;
}

.success {
    background: #ddffe4;
    color: #006b1b;
    padding: 13px;
    border-radius: 8px;
    margin-bottom: 15px;
    border-left: 5px solid #1d7f3f;
}

/* ===============================
   Dashboard
================================ */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.info-line {
    padding: 13px 0;
    border-bottom: 1px solid #eee;
}

.info-line strong {
    display: inline-block;
    width: 170px;
    color: #0b1f3a;
}

/* ===============================
   Tabellen
================================ */
.table-wrapper {
    width: 100%;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    margin-top: 20px;
}

th,
td {
    padding: 14px;
    border-bottom: 1px solid #ddd;
    text-align: left;
    white-space: nowrap;
}

th {
    background: #0b1f3a;
    color: white;
}

tr:hover {
    background: #fff4e8;
}

.delete-form {
    margin: 0;
}

.delete-button {
    background: #b3261e;
    padding: 8px 12px;
    margin: 0;
}

/* ===============================
   Footer
================================ */
.footer {
    width: 100%;
    background: #0b1f3a;
    color: white;
    text-align: center;
    padding: 18px;
    font-weight: bold;
}

/* ===============================
   Responsive tablet
================================ */
@media (max-width: 900px) {
    .hero-overlay h1 {
        font-size: 40px;
    }

    .hero-overlay h2 {
        font-size: 28px;
    }

    .rules-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===============================
   Responsive mobiel
================================ */
@media (max-width: 700px) {
    .topbar,
    .navbar {
        flex-direction: column;
        height: auto;
    }

    .brand,
    .logo {
        padding: 15px;
        font-size: 18px;
    }

    .topbar nav,
    .navbar nav {
        width: 100%;
        height: auto;
        min-height: unset;
    }

    .topbar nav a,
    .navbar nav a {
        flex: 1;
        text-align: center;
        padding: 15px 8px;
        font-size: 14px;
    }

    .home-hero {
        min-height: 320px;
    }

    .hero-overlay h1 {
        font-size: 30px;
    }

    .hero-overlay h2 {
        font-size: 23px;
    }

    .hero-overlay p {
        font-size: 19px;
    }

    .rules-section {
        padding: 30px 18px 40px;
    }

    .rules-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }

    .rule {
        padding: 15px;
        min-height: 140px;
    }

    .rule img {
        width: 70px;
        height: 70px;
    }

    .page-bg {
        padding: 45px 15px 90px;
    }

    .page-bg::before {
        height: 170px;
        background-size: auto 150px;
    }

    .form,
    .card {
        padding: 25px;
    }

    .form h1 {
        font-size: 26px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .info-line strong {
        display: block;
        width: 100%;
        margin-bottom: 4px;
    }
}

/* ===============================
   Zeer kleine schermen
================================ */
@media (max-width: 430px) {
    .topbar nav,
    .navbar nav {
        flex-direction: column;
    }

    .topbar nav a,
    .navbar nav a {
        border-left: none;
        border-top: 1px solid rgba(0, 0, 0, 0.25);
    }

    .rules-grid {
        grid-template-columns: 1fr;
    }
}