﻿/* --- Global Reset --- */
* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
    font-family: "myriad-pro", "Helvetica", Helvetica, Arial, sans-serif;
    font-weight: 400;
    font-style: normal;
    background: white;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* --- Header --- */
.site-header {
    width: 100%;
    display: flex;
    justify-content: center;
    background-color: #e8001b;
}

    .site-header img {
        width: 100%;
        max-height: 120px;
        object-fit: cover;
        display: block;
    }

/* --- Main Content --- */
body > main {
    flex: 1;
    padding: 40px;
}

.intro-text {
    max-width: 800px;
    margin: 0 auto 10px auto;
    text-align: center;
    font-size: 1.1em;
    line-height: 1.5;
    color: #333;
}

h1 {
    text-align: center;
    margin-bottom: 20px;
}

h3 {
    font-weight: 700;
    font-size: 2.0rem !important;
}

/* Neuer Untertitel "Ich bin..." */
.section-heading {
    text-align: center;
    font-size: 1.3em;
    color: #444;
    margin-bottom: 30px;
    font-weight: 500;
}

@media (max-width: 600px) {
    .section-heading {
        font-size: 1.1em; /* etwas kleiner für Mobile */
        margin-bottom: 20px; /* etwas weniger Abstand nach unten */
    }
}

/* --- Grid / Cards --- */
.grid {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: nowrap; /* Desktop: in einer Reihe */
    align-items: stretch;
}

@media (max-width: 1200px) {
    .grid {
        flex-wrap: wrap;
    }
}

.card {
    flex: 0 1 300px;
    min-width: 250px;
    max-width: 300px;
    padding: 25px 20px;
    background: #f8f8f8;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    transition: background 0.25s ease, box-shadow 0.25s ease;
}

    .card:hover {
        background: #f8f8f8;
        box-shadow: 0 8px 16px rgba(0,0,0,0.2);
        transition: box-shadow 0.25s ease,
    }

    .card h2, .card h3 {
        color: #1a1a1a;
        margin-bottom: 15px;
        font-size: 1.3em;
    }

    .card ul {
        list-style: none;
        padding: 0;
        margin: 0 0 20px 0;
        text-align: left;
    }

        .card ul li {
            margin: 6px 0;
            padding-left: 16px;
            position: relative;
        }

            .card ul li::before {
                content: "•";
                color: #e8001b;
                position: absolute;
                left: 0;
            }

    .card .card-buttons {
        display: flex;
        justify-content: center;
        gap: 10px;
        margin-top: auto;
    }

    .card a {
        display: inline-block;
        flex: 1;
        padding: 10px 15px;
        border-radius: 8px;
        background: #e8001b;
        color: white;
        text-decoration: none;
        transition: background 0.2s ease;
    }

        .card a:hover {
            background: #c50017;
            box-shadow: 0 8px 16px rgba(0,0,0,0.2);
        }

    /* --- Ergänzungen für Variante 2 (Titel + Untertitel) --- */

    .card h2 {
        font-size: 1.3rem;
        margin-bottom: 5px;
        color: #111;
    }

.subtitle {
    font-size: 1.44rem;
    color: #555;
    margin-bottom: 15px;
    line-height: 1.3;
    min-height: 2.4em;
}

.card .subtitle {
    font-size: 1.44rem;
    line-height: 1.3;
    color: #6b3a3a;
    text-align: center;
    margin: 0 8px 10px 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


/* --- Info- & Kündigungs-Cards --- */
.cards-container {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
    width: 100%;
}

.info-card,
.cancel-card {
    flex: 1;
    min-width: 250px;
    max-width: 300px;
    padding: 20px;
    background: #f8f8f8;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    text-align: center;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.25s ease;
}

    .info-card:hover,
    .cancel-card:hover {
        box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    }

/* Buttons in der Card */
.info-buttons,
.cancel-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: auto;
}

    .info-buttons a,
    .cancel-buttons a {
        padding: 10px 15px;
        border-radius: 8px;
        background: #e8001b;
        color: white;
        text-decoration: none;
        transition: background 0.2s ease;
    }

        .info-buttons a:hover,
        .cancel-buttons a:hover {
            background: #c50017;
            box-shadow: 0 8px 16px rgba(0,0,0,0.2);
        }

/* --- Textbox --- */
.textbox {
    margin-top: 20px;
    font-size: 0.95em;
    line-height: 1.5;
    color: black;
    background: #ededed;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #eee;
}

    .textbox ul {
        padding: 10px 40px;
    }

/* --- Popup Modal --- */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.4);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.close {
    position: absolute;
    top: 10px;
    right: 16px;
    font-size: 1.5em;
    cursor: pointer;
}

/* --- Footer --- */
.site-footernav {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding: 10px 20px;
    background: #e9e9e9;
    color: #dd0502;
}

    .site-footernav a {
        text-decoration: none;
        color: inherit;
    }

/* --- Tabs Navigation --- */
.tabs {
    display: flex;
    justify-content: center;
    margin: 31px 0 17px;
    gap: 10px;
    flex-wrap: wrap;
    padding: 0 12px;
}


.tab-button {
    padding: 10.5px 21px;
    border: none;
    border-radius: 8px;
    background: #e6e6e6;
    cursor: pointer;
    font-size: 1.44rem;
    transition: background 0.2s ease, color 0.2s ease;
    white-space: nowrap;
}

    .tab-button.active {
        background: #e8001b;
        color: white;
    }

    .tab-button:hover {
        background: #c50017;
        color: white;
    }

@media (max-width: 480px) {
    .tab-button {
        padding: 9px 16px;
        font-size: 0.85rem;
    }
}

/* --- Tabellen Container --- */
.tab-content {
    display: none;
    max-width: 600px;
    margin: 0 auto 30px;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    overflow-x: auto;
}

    .tab-content.active {
        display: block;
    }

/* Einheitliche Tabellen */
table {
    width: 100%;
    border-collapse: collapse;
    min-height: 220px;
    table-layout: fixed;
}

    table th, table td {
        border: 1px solid #ddd;
        padding: 10px;
        text-align: center;
    }

    table th {
        background: #f5f5f5;
        font-weight: 600;
    }

/* --- Info-Link unter Verwalten --- */
.info-link-container {
    width: 100%;
    text-align: center;
    margin-top: 20px;
}

.info-link {
    display: inline-block;
    color: #0073e6;
    text-decoration: underline;
    cursor: pointer;
}

    .info-link:hover {
        color: #004c99;
    }

/* --- Popup Overlay --- */
.popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

/* --- Popup Box --- */
.popup-box {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
    text-align: left;
    animation: fadeIn 0.25s ease;
}

    .popup-box h3 {
        margin-top: 0;
        color: #e8001b;
    }

.popup-close {
    margin-top: 15px;
    background: #e8001b;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 8px 15px;
    cursor: pointer;
    transition: background 0.2s ease;
}

    .popup-close:hover {
        background: #aa271f;
    }

/* --- Animation --- */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* --- Responsive / Mobile --- */
@media (max-width: 600px) {
    .grid {
        flex-direction: column;
        align-items: center;
    }

    .card {
        width: 90%;
        flex: none;
    }

    .info-card-container {
        flex-direction: column;
        align-items: center;
    }

    .info-card {
        width: 90%;
    }

    body > main {
        padding: 20px;
    }

    .tab-content {
        max-width: 100%;
        padding: 15px;
    }

    table {
        font-size: 14px;
        min-height: auto;
    }

        table th, table td {
            padding: 8px;
        }

    .card {
        min-height: auto;
    }

    .subtitle {
        min-height: auto;
    }
}
