/* zweigstellen.css */

/* ============================================================
   Zweigstellen Seiten-Basis (Kopiert von team.css und isoliert)
   ============================================================ */

.zweigstellen_page {
    box-sizing: border-box;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 24px 60px;
}

.zweigstellen_page_header {
    text-align: center;
    margin-bottom: 52px;
    padding-bottom: 36px;
    border-bottom: 1px solid #e8e8e8;
}

.zweigstellen_label {
    display: inline-block;
    font-size: 0.72em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #999;
    margin: 0 0 12px;
}

.zweigstellen_page_header h1 {
    font-size: 2.2em;
    font-weight: 700;
    color: #111;
    margin: 0 0 16px;
    line-height: 1.2;
}

.zweigstellen_intro {
    font-size: 0.95em;
    color: #666;
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto;
}

.zweigstellen_section {
    margin-bottom: 52px;
}

/* Äußeres Grid für die drei Karten nebeneinander */
.zweigstellen_cards_grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* ============================================================
   Die Karte selbst
   ============================================================ */

.zweigstellen_card {
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    overflow: hidden;
    gap: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.zweigstellen_card:hover {
    transform: perspective(1000px) scale3d(1.03, 1.03, 1.03) rotateX(2deg) rotateY(-2deg) translateY(-8px);
    box-shadow: 15px 25px 45px rgba(0,0,0,0.12), inset 0 0 20px rgba(255,255,255,0.9) !important;
    z-index: 10;
}

.zweigstellen_img_container {
    height: 160px;
    width: 100%;
    overflow: hidden;
}

.zweigstellen_img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.4s ease;
}

.zweigstellen_img:hover {
    transform: scale(1.05);
}

.zweigstellen_card_body {
    width: 100%;
    padding: 30px 24px;
    text-align: center;
    box-sizing: border-box;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* ============================================================
   Karten-Inhalt: Titel
   ============================================================ */
.zweigstellen_title_wrapper {
    min-height: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 12px;
    margin-bottom: 24px;
}

.zweigstellen_title_wrapper h3 {
    font-size: 1.3em;
    color: #111;
    text-align: center;
    margin: 0;
    font-weight: 700;
}

.zweigstellen_title_wrapper h3 span {
    font-size: 0.75em;
    font-weight: normal;
    color: #888;
    font-style: italic;
}

/* ============================================================
   Karten-Inhalt: Zeiten
   ============================================================ */
.zweigstellen_times_wrapper {
    width: 100%;
    font-size: 0.85em;
    color: #555;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.zweigstellen_role {
    text-align: left;
    margin: 0 0 12px 0;
    font-size: 0.9em;
    color: #222;
    font-weight: bold;
}

/* Das innere CSS-Grid für die perfekten Tag/Uhrzeit Tabellen */
.zweigstellen_times_grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    row-gap: 0;
    margin-bottom: 24px;
}

.zweigstellen_times_grid:last-of-type {
    margin-bottom: 0;
}

/* Schwache Trennlinie für jede Zeile */
.zweigstellen_day,
.zweigstellen_time {
    border-bottom: 1px dashed rgba(0, 0, 0, 0.1);
    padding: 8px 0;
}

/* Verhindert eine Trennlinie unter dem letzten Eintrag im Block */
.zweigstellen_day:nth-last-child(-n+2),
.zweigstellen_time:nth-last-child(-n+2) {
    border-bottom: none;
}

.zweigstellen_day {
    text-align: left;
}

.zweigstellen_time {
    text-align: right;
}


/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 1000px) {
    .zweigstellen_cards_grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .zweigstellen_page {
        padding: 28px 14px 48px;
    }

    .zweigstellen_page_header h1 {
        font-size: 1.7em;
    }

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