@charset "utf-8";

/* ==================== Grundlayout ==================== */
body {
    background: #fff;
    font-family: Arial, sans-serif;
    color: #222;
    margin: 0;
    padding: 0;
}

/* ==================== Buttons ==================== */
button,
.btn,
.btn-danger,
.admin-form button,
.admin-table button {
    background-color: #d00;
    color: #fff;
    border: none;
    padding: 10px 18px;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    font-size: 1em;
    line-height: 1.4;
    height: 42px;
    box-sizing: border-box;
    white-space: nowrap;
}

.btn-danger {
    padding: 10px 16px;
}

.button-group {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.btn-varianten {
    font-size: 0.9em;
    padding: 5px 10px;
    white-space: nowrap;
}

/* ==================== Countdown-Seite ==================== */
body.countdown-page {
    text-align: center;
    padding: 50px 20px;
}

.countdown-container {
    border: 3px dashed #d00;
    padding: 2em;
    border-radius: 12px;
    background: #ffecec;
    max-width: 600px;
    margin: auto;
}

.countdown-container h1 {
    font-size: 1.8em;
    color: #d00;
}

.countdown-container p {
    margin-top: 1em;
    font-size: 1.2em;
}

/* ==================== Admin-Login & Verwaltung ==================== */
.admin-header {
    display: flex;
    justify-content: space-between;
    background: #d00;
    color: #fff;
    padding: 10px 20px;
}

.admin-header .btn {
    margin-left: 10px;
}

.admin-login-box {
    max-width: 400px;
    margin: 80px auto;
    padding: 30px;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.admin-login-box h1 {
    margin-bottom: 1em;
}

.admin-login-box form input[type="text"],
.admin-login-box form input[type="password"],
.admin-login-box form button {
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 12px;
    padding: 12px;
    font-size: 1em;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* ==================== Admin-Inhalte ==================== */
.admin-content {
    max-width: 1200px;
    margin: 40px auto;
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.admin-nav {
    list-style: none;
    padding: 0;
}

.admin-nav li {
    margin: 10px 0;
}

.admin-nav a {
    font-size: 1.1em;
    text-decoration: none;
    color: #d00;
    font-weight: bold;
}

/* ==================== Admin-Formulare ==================== */
.admin-form {
    background: #f3f3f3;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.admin-form input,
.admin-form select {
    width: calc(33% - 12px);
    padding: 10px;
    margin: 5px 5px 5px 0;
    font-size: 1em;
    box-sizing: border-box;
}

.feld-reihenfolge {
    width: 60px;
    height: 42px;
    padding: 10px;
    font-size: 1em;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

/* ==================== Admin-Tabelle ==================== */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.admin-table th,
.admin-table td {
    padding: 12px;
    border-bottom: 1px solid #ccc;
    vertical-align: middle;
}

.admin-table input[type="text"],
.admin-table select {
    width: 100%;
    padding: 10px;
    font-size: 1em;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.admin-table td form {
    display: flex;
    gap: 6px;
    align-items: center;
}

/* ==================== Preisliste ==================== */
.preisliste-section {
    max-width: 1000px;
    margin: 0 auto 40px;
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.preisliste-section h1,
.preisliste-section h2 {
    text-align: center;
    color: #d00;
    margin-bottom: 1em;
}

.preisliste-section h2 {
    margin-top: 2em;
    font-size: 1.5em;
}

.preisliste-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}

.preisliste-table th,
.preisliste-table td {
    padding: 12px 10px;
    border-bottom: 1px solid #ccc;
}

.preisliste-table th {
    background: #f9f9f9;
    text-align: center;
}

.preisliste-table td:nth-child(1),
.preisliste-table th:nth-child(1) {
    width: 45%;
}

.preisliste-table td:nth-child(2),
.preisliste-table th:nth-child(2) {
    width: 15%;
    text-align: right;
    white-space: nowrap;
}

.preisliste-table td:nth-child(3),
.preisliste-table th:nth-child(3) {
    width: 40%;
    font-size: 0.95em;
}

/* ==================== Programmseite ==================== */
.programm-section {
    max-width: 1000px;
    margin: auto;
    padding: 30px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.programm-section h1 {
    text-align: center;
    color: #d00;
    margin-bottom: 1em;
}

.programm-table {
    width: 100%;
    border-collapse: collapse;
}

.programm-table th,
.programm-table td {
    padding: 12px 10px;
    border-bottom: 1px solid #ccc;
    text-align: left;
}

.programm-table th {
    background: #f9f9f9;
    text-align: center;
}

.programm-table .highlight {
    background-color: #fff6d6;
    font-weight: bold;
}

.programm-footer {
    margin-top: 40px;
    font-style: italic;
    text-align: center;
    color: #555;
}

/* ==================== Lageplanseite ==================== */
.lageplan-section {
    max-width: 1000px;
    margin: auto;
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.lageplan-section h1 {
    text-align: center;
    color: #d00;
    margin-bottom: 1em;
}

.lageplan-section .intro-text {
    text-align: center;
    font-size: 1.1em;
    margin-bottom: 30px;
}

.lageplan-image-wrapper {
    display: flex;
    justify-content: center;
}

.lageplan-image {
    max-width: 100%;
    height: auto;
    border: 1px solid #ccc;
    border-radius: 8px;
}

/* ==================== Navigation ==================== */
.nav-container {
    background: #d00;
    width: 100%;
    box-sizing: border-box;
}

.nav-bar {
    max-width: 1000px;
    margin: 0 auto;
    padding: 10px 16px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    background: #d00;
    box-sizing: border-box;
}

.nav-bar a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    font-size: 1em;
    padding: 8px 14px;
    border-radius: 6px;
    background-color: #b00;
    margin: 4px 6px;
    white-space: nowrap;
    box-sizing: border-box;
}

.nav-bar a:hover {
    background-color: #a00;
}

/* ==================== Home ==================== */
.home-content {
    max-width: 960px;
    margin: 40px auto;
    padding: 0 20px;
    text-align: center;
}

.home-content h1 {
    font-size: 1.8em;
    color: #d00;
    margin-bottom: 20px;
}

.home-content p {
    font-size: 1.1em;
    line-height: 1.6;
}

/* ==================== Formulare Global ==================== */
select {
    padding: 10px;
    font-size: 1em;
    height: 42px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #fff;
}

/* ==================== Modal ==================== */
.modal {
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6);
}

.modal-content {
    background-color: #fff;
    margin: 50px auto;
    padding: 20px;
    border-radius: 6px;
    width: 90%;
    max-width: 800px;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

.modal-content h2 {
    margin-top: 0;
}

.modal-content table {
    width: 100%;
    margin-top: 15px;
}

.modal-content td input {
    width: 100%;
    padding: 6px;
    box-sizing: border-box;
}

.close {
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

/* ==================== Einstellungen ==================== */
.einstellungen-form {
    max-width: 600px;
    margin-top: 30px;
}

.form-block {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    border: 1px solid #ccc;
}

.form-block label {
    font-weight: bold;
    display: block;
    margin-top: 1em;
}

.form-block label:first-child {
    margin-top: 0;
}

.form-block input[type="text"],
.form-block input[type="file"] {
    width: 100%;
    padding: 0.6em;
    border: 1px solid #ccc;
    border-radius: 6px;
    margin-top: 0.4em;
}

.button-row {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.info-box {
    margin-top: 1.5em;
    padding: 0.8em;
    background: #eee;
    border-left: 4px solid #888;
    border-radius: 5px;
    max-width: 600px;
    font-size: 0.95em;
}

.logo-preview {
    margin-top: 20px;
}

.logo-preview img {
    max-width: 300px;
    max-height: 150px;
    border: 1px solid #ccc;
    padding: 5px;
    background: white;
}

/* ==================== Icons ==================== */
.mdi {
    font-size: 1em;
    vertical-align: baseline;
    margin-right: 0;
}

/* ==================== Bilderverwaltung ==================== */

.grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 20px;
    }
    .img-box {
        border: 1px solid #ccc;
        padding: 10px;
        background: #fafafa;
        border-radius: 5px;
        text-align: center;
        box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    }
    .img-box img {
        max-width: 100%;
        height: auto;
        margin-bottom: 8px;
    }
    .copy-input {
        width: 100%;
        font-size: 12px;
        margin-top: 4px;
        text-align: center;
        padding: 3px;
        border: 1px solid #ddd;
        border-radius: 3px;
    }
    .upload-box, .delete-section {
        margin-top: 30px;
    }
    .admin-content h1 {
        margin-bottom: 20px;
    }

/* ==================== Responsive ==================== */
@media (max-width: 600px) {
    .preisliste-section,
    .programm-section {
        padding: 20px 10px;
    }

    .preisliste-table th,
    .preisliste-table td,
    .programm-table th,
    .programm-table td {
        font-size: 0.95em;
        padding: 10px 6px;
    }

    .nav-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .nav-bar a {
        width: 100%;
        text-align: center;
        font-size: 0.95em;
        padding: 10px;
        margin: 4px 0;
    }
}
