/* ================================================================
   Gemeinschaftspraxis Folger – Hauptstylesheet
   Gilt für alle Seiten. Lädt Raleway von Google Fonts (im HTML).
================================================================ */


/* --- Designvariablen ------------------------------------------ */

:root {
    --blue:        #6bd2d9;
    --lightblue:   #eff8fb;
    --pink:        #dd1155;
    --darkgrey:    #9a8f97;
    --text:        #1a2a2e;
    --text-light:  #5a7a80;
    --bg:          #edf4f6;
    --white:       #ffffff;
    --sidebar-w:   320px;
    --radius:      14px;
}


/* --- Reset & Basis -------------------------------------------- */

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

html, body {
    height: 100%;
    font-family: "Raleway", sans-serif;
    background-color: var(--bg);
    color: var(--text);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

h1 { font-size: 2.2rem; }
h2 { font-size: 1.2rem; font-weight: 600; }
h3 { font-size: 1rem; font-weight: 600; }

p {
    line-height: 1.8;
    color: var(--text);
}


/* ================================================================
   SIDEBAR
================================================================ */

#sidebar {
    /* Feste Position, volle Fensterhöhe, kein internes Scrollen */
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-w);
    height: calc(100vh - 32px); /* 32px = Footer-Höhe */
    overflow: hidden;
    z-index: 100;

    display: flex;
    flex-direction: column;

    background: var(--white);
    box-shadow: 2px 0 20px rgba(0,0,0,0.07);
}

/* Blauer Akzentstreifen oben */
#sidebar::before {
    content: '';
    flex-shrink: 0;
    display: block;
    height: 5px;
    background: var(--blue);
}

/* Logo */
.sidebar-logo {
    flex-shrink: 0;
    padding: 1.8rem 2rem 0;
}

.sidebar-logo img {
    width: 90%;
}

/* Navigation – füllt den verbleibenden Platz.
   gap mit clamp() schrumpft proportional zur Fensterhöhe. */
.sidebar-nav {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 2rem;
    gap: clamp(0.3rem, 1.8vh, 1.2rem);
}

.sidebar-nav a {
    display: block;
    text-align: right;
    font-size: 0.95rem;
    color: var(--text);
    padding: 0.15rem 0;
    border-bottom: 2px solid transparent;
    transition: border-color 0.15s;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    border-bottom-color: var(--blue);
}

.sidebar-nav a.active {
    font-weight: 700;
}

/* Sprechzeiten – fixiert am unteren Ende der Sidebar */
.sidebar-times {
    flex-shrink: 0;
    background: #f4f9fa;
    border-radius: 10px;
    margin: 0 1.2rem 1.2rem;
    padding: 0.9rem 1.2rem;
    font-size: 0.82rem;
    color: var(--text);
}

.sidebar-times-title {
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

/* Jede Zeile: Tag | Vormittag | Nachmittag */
.times-row {
    display: grid;
    grid-template-columns: 2.6rem 1fr 1fr;
    padding: 0.3rem 0.4rem;
    border-bottom: 1px solid #e4eef0;
    border-radius: 4px;
}

.times-row:last-of-type {
    border-bottom: none;
}

.times-row span:not(:first-child) {
    text-align: right;
}

/* Heutiger Tag – blauer Hintergrund, 6px Überstand links/rechts */
.times-row.today {
    background: var(--blue);
    color: var(--white);
    font-weight: 700;
    border-bottom-color: transparent;
    margin: 1px -6px;
    padding: 0.3rem calc(0.4rem + 6px);
}

.sidebar-times-note {
    font-size: 0.72rem;
    color: var(--text-light);
    margin-top: 0.4rem;
    line-height: 1.6;
}

/* Schließen-Button (nur mobil sichtbar) */
.sidebar-close {
    display: none;
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 1.8rem;
    line-height: 1;
    color: var(--text-light);
    cursor: pointer;
    background: none;
    border: none;
}


/* ================================================================
   HAUPTINHALT
================================================================ */

#content {
    position: relative;
    left: 0;
    width: auto;
    margin-left: var(--sidebar-w);
    min-height: 100vh;
    background: var(--bg);
    padding-bottom: 48px;
}

/* Sticky Topbar: Social-Links + Telefon */
#topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    height: 44px;
    padding: 0 1.5rem;
    background: var(--white);
    box-shadow: 0 1px 6px rgba(0,0,0,0.06);
}

/* Hamburger-Button (nur mobil) */
#menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    margin-right: 0.5rem;
    color: var(--text);
}

.topbar-social {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--bg);
    transition: background 0.15s;
}

.topbar-social:hover {
    background: #d8eff3;
}

.topbar-social img {
    height: 14px;
    width: auto;
    display: block;
    opacity: 0.55;
    transition: opacity 0.15s;
}

.topbar-social:hover img {
    opacity: 0.9;
}

.topbar-phone {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    background: var(--text);
    color: var(--white);
    font-weight: 700;
    font-size: 0.78rem;
    padding: 0.45rem 1rem;
    border-radius: 20px;
    transition: background 0.15s;
}

.topbar-phone:hover {
    background: #2d4a50;
}

.topbar-phone i {
    font-size: 1rem;
    flex-shrink: 0;
}


/* ================================================================
   KARTEN & SEKTIONEN
================================================================ */

/* Gemeinsamer Wrapper für alle Seitenabschnitte */
.section {
    padding: 2rem 2.5rem;
}

/* Hero – vollbreiter blauer Streifen */
.hero {
    background: var(--blue);
    padding: 2.5rem 3rem;
    margin-bottom: 2rem;
}

.hero h1 {
    font-size: 2.8rem;
    color: var(--white);
    margin-bottom: 0.4rem;
    margin-left: 0;
    position: relative;
    animation: heroSlideIn 3s ease;
}

@keyframes heroSlideIn {
    from { opacity: 0; left: 100px; }
    to   { opacity: 1; left: 0; }
}

.hero h2 {
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    margin-bottom: 1.2rem;
    margin-left: 0;
}

.hero p {
    color: var(--text);
    max-width: 800px;
    line-height: 1.8;
}

.hero p a {
    color: var(--text);
    border-bottom: 1px solid rgba(0,0,0,0.3);
}

/* Info-Karte (weiß, blauer linker Rand) */
.card {
    background: var(--white);
    border-radius: var(--radius);
    margin: 0 2rem 1.5rem;
    padding: 2rem 2.5rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}

.card-accent {
    border-left: 5px solid var(--blue);
}

.card h2 {
    color: var(--text);
    margin-bottom: 1.2rem;
}

/* Warn-Karte (pink) */
.card-warn {
    background: var(--pink);
    border-radius: var(--radius);
    margin: 0 2rem 2rem;
    padding: 2rem 2.5rem;
    box-shadow: 0 4px 16px rgba(221,17,85,0.18);
}

.card-warn h1,
.card-warn h2,
.card-warn p,
.card-warn a {
    color: var(--white);
}

.card-warn h1 {
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}

.card-warn h2 {
    font-size: 0.8rem;
    font-weight: 400;
    margin-bottom: 1rem;
}

.card-warn p {
    font-size: 0.9rem;
    line-height: 1.7;
}

.card-warn a {
    font-weight: 400;
    border-bottom: 1px solid rgba(255,255,255,0.5);
}

/* Vollbreite Variante (kein seitlicher Margin, kein Border-Radius) */
.card-warn--full {
    margin-left: 0;
    margin-right: 0;
    border-radius: 0;
}

/* Notfall-Nummern Liste */
.notfall-grid {
    border-top: 1px solid rgba(255,255,255,0.3);
    margin-top: 0.5rem;
}

.notfall-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.65rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.15);
}

.notfall-name {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.9);
}

.notfall-number {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 0.03em;
    border-bottom: none !important;
}

.notfall-number:hover {
    opacity: 0.75;
}


/* ================================================================
   SECTION-LABEL (Zwischenüberschriften)
================================================================ */

.section-label {
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-light);
    border-bottom: 2px solid var(--blue);
    padding-bottom: 0.4rem;
    margin: 0 2rem 1.4rem;
}


/* ================================================================
   URLAUBSZEITEN – Kacheln (vac-b)
================================================================ */

.vac-b {
    background: var(--white);
    border-radius: var(--radius);
    margin: 0 2rem 2rem;
    padding: 1.8rem 2rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}

.vac-b-heading {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1.2rem;
}

.vac-b-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.2rem;
}

.vac-b-tile {
    background: var(--bg);
    border-radius: 10px;
    padding: 1rem 1.1rem;
    border-left: 3px solid var(--blue);
    position: relative;
}

.vac-b-tile.next {
    background: var(--blue);
    border-left-color: transparent;
}

.vac-b-badge {
    display: none;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: rgba(255,255,255,0.25);
    color: var(--text);
    padding: 1px 6px;
    border-radius: 20px;
    margin-bottom: 0.3rem;
}

.vac-b-tile.next .vac-b-badge {
    display: inline-block;
}

.vac-b-name {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.vac-b-date {
    font-size: 0.82rem;
    font-weight: 400;
    color: var(--text-light);
    line-height: 1.4;
}

.vac-b-tile.next .vac-b-name,
.vac-b-tile.next .vac-b-date {
    color: var(--text);
}

.vac-b-divider {
    border: none;
    border-top: 1px solid #eee;
    margin: 0.2rem 0 0.9rem;
}

.vac-b-single-title {
    font-size: 0.7rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.vac-b-single-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.6rem;
}

.vac-b-tag {
    background: var(--bg);
    border: 1px solid #dde8ea;
    border-radius: 20px;
    padding: 0.2rem 0.7rem;
    font-size: 0.8rem;
    color: var(--text);
}

.vac-b-note {
    font-size: 0.78rem;
    color: var(--text-light);
}


/* ================================================================
   URLAUBSZEITEN – einfache Liste (legacy)
================================================================ */

.vac-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.vac-row {
    display: flex;
    align-items: baseline;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.vac-row:last-child {
    border-bottom: none;
}

.vac-label {
    min-width: 145px;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text);
}

.vac-date {
    font-size: 0.95rem;
    color: #555;
}

.vac-section-title {
    font-weight: 700;
    font-size: 0.95rem;
    margin: 1rem 0 0.4rem;
    color: var(--text);
}


/* ================================================================
   NEUIGKEITEN – Karten mit Thumbnail links
================================================================ */

.nc-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    display: flex;
    align-items: stretch;
    overflow: hidden;
    margin: 0 2rem 0.75rem;
    max-height: 200px;
    position: relative;
}

.nc-thumb {
    flex-shrink: 0;
    width: 180px;
}

.nc-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.nc-body {
    flex: 1;
    min-width: 0;
    padding: 1rem 1.3rem 0.8rem;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.nc-date {
    flex-shrink: 0;
    font-size: 0.7rem;
    font-weight: 400;
    color: var(--text-light);
    margin-bottom: 0.2rem;
}

.nc-title {
    flex-shrink: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.35;
    margin-bottom: 0.3rem;
}

.nc-text {
    flex: 1;
    min-height: 0;
    overflow: hidden;
    font-size: 0.88rem;
    color: var(--text);
    line-height: 1.65;
}


/* ================================================================
   ACCORDION (spektrum + notfallinfo) – Override default.css
================================================================ */

/* Hintergrund-Wrapper */
.cardlightblue.pdleft {
    background: var(--bg);
    padding: 1.5rem 2rem 2rem;
    border-bottom: none;
}

/* Äußere Accordion-Box */
#wrap {
    width: auto;
    margin: 0;
    background: transparent;
}

/* Einzelner Accordion-Eintrag */
.box {
    background: var(--white);
    border-radius: 10px;
    border-bottom: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    margin-bottom: 0.5rem;
    overflow: hidden;
}

/* Accordion-Header (Leistungen) */
.punkt {
    background: var(--white);
    padding: 0.9rem 1.2rem;
    height: auto;
    line-height: 1.5;
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--text);
    align-items: center;
    cursor: pointer;
    transition: background 0.15s;
}

.punkt:hover {
    background: #f4fafb;
    box-shadow: none;
}

/* Accordion-Header (FAQs) */
.frage {
    background: var(--white);
    padding: 0.9rem 1.2rem;
    height: auto;
    line-height: 1.5;
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--text);
    align-items: center;
    cursor: pointer;
    transition: background 0.15s;
}

.frage:hover {
    background: #f4fafb;
    box-shadow: none;
}

/* Pfeil-Icon */
.icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon img {
    width: 20px;
    height: 20px;
    transition: transform 0.25s;
}

/* Unterpunkte (Leistungsspektrum) */
.unterpunkt {
    background: var(--bg);
    padding: 0.45rem 1.2rem 0.45rem 2.4rem;
    height: auto;
    line-height: 1.6;
    font-size: 0.88rem;
    color: var(--text);
    border-bottom: 1px solid rgba(255,255,255,0.8);
}

.unterpunkt::before {
    content: none;
}

/* Antwort-Block (FAQs) */
.antwort {
    background: var(--bg);
    padding: 1rem 1.2rem;
    height: auto;
    border-bottom: none;
    font-size: 0.82rem;
    line-height: 1.75;
}

.antwort p {
    max-width: 100%;
    padding: 0;
    margin: 0;
}

.antwort ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.antwort li {
    padding: 0.1rem 0;
}


/* ================================================================
   TEAM-KARTEN (praxis.html)
================================================================ */

.praxis-wrap {
    padding: 0 0 3rem;
}

.team-shot {
    margin: 0 2rem 2rem;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}

.team-shot img {
    width: 100%;
    height: 460px;
    object-fit: cover;
    object-position: center 20%;
    display: block;
}

.team-shot-caption {
    background: var(--white);
    padding: 0.55rem 1.2rem;
    font-size: 0.78rem;
    color: var(--text-light);
}

.tc1-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    display: flex;
    align-items: stretch;
    overflow: hidden;
    margin: 0 2rem 0.75rem;
    position: relative;
}

.tc1-photo {
    flex-shrink: 0;
    width: 190px;
}

.tc1-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}

.tc1-body {
    flex: 1;
    min-width: 0;
    padding: 1.4rem 1.8rem 1.2rem;
    display: flex;
    flex-direction: column;
}

.tc-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.1rem;
}

.tc-role {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-light);
    margin-bottom: 0.9rem;
}

.tc1-facts {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.3rem 1rem;
    font-size: 0.82rem;
}

.tc1-fact-label {
    color: var(--text-light);
    font-weight: 500;
    white-space: nowrap;
    padding-top: 0.05rem;
}

.tc1-fact-value {
    color: var(--text);
    line-height: 1.5;
}

.tc1-quote {
    margin-top: 1rem;
    font-size: 0.84rem;
    font-style: italic;
    color: var(--text-light);
    border-left: 2px solid var(--blue);
    padding-left: 0.75rem;
    line-height: 1.55;
}


/* ================================================================
   FOOTER
================================================================ */

#footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 32px;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    background: var(--text);
}

#footer a {
    color: rgba(255,255,255,0.7);
    font-size: 0.78rem;
}

#footer a:hover {
    color: var(--white);
}

.footer-cross {
    height: 28px;
    position: relative;
    top: -6px;
}

.footer-staff-login {
    position: absolute;
    right: 1rem;
    font-size: 0.7rem;
    color: rgba(255,255,255,0.25) !important;
    letter-spacing: 0.04em;
}

.footer-staff-login:hover {
    color: rgba(255,255,255,0.6) !important;
}


/* ================================================================
   MOBIL (max 768px)
================================================================ */

@media screen and (max-width: 768px) {

    /* Sidebar wird ausgeblendet und per JS eingeschoben */
    #sidebar {
        transform: translateX(-100%);
        transition: transform 0.25s ease;
    }

    #sidebar.open {
        transform: translateX(0);
    }

    .sidebar-close {
        display: block;
    }

    /* Content nimmt volle Breite */
    #content {
        margin-left: 0;
        width: 100%;
    }

    #menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        border-radius: 8px;
        background: #111;
        color: #fff;
        font-size: 1.3rem;
    }

    /* Karten ohne äußeren Seitenabstand */
    .card,
    .card-warn,
    .vac-b,
    .nc-card,
    .alert-card {
        margin-left: 1rem;
        margin-right: 1rem;
        border-radius: 10px;
    }

    .card-warn--full {
        margin-left: 0;
        margin-right: 0;
        border-radius: 0;
    }

    .cardlightblue.pdleft {
        padding: 1rem 0.75rem 1.5rem;
    }

    .vac-b {
        padding: 1.2rem 1.2rem;
    }

    .card-warn {
        padding: 1.2rem 1.4rem;
    }

    .footer-staff-login {
        display: none;
    }

    .nc-card {
        max-height: none;
    }

    .nc-thumb {
        width: 110px;
    }

    .section-label {
        margin-left: 1rem;
        margin-right: 1rem;
    }

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

    .hero {
        padding: 1.5rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .news-heading {
        margin-left: 1rem;
        margin-right: 1rem;
    }

    .news-img-side {
        flex-direction: column;
        padding: 0 1.5rem 1.5rem;
    }

    .news-img-side-img {
        width: 100%;
        height: 200px;
    }

    .team-shot,
    .tc1-card {
        margin-left: 1rem;
        margin-right: 1rem;
    }

    .tc1-card {
        flex-direction: column;
    }

    .tc1-photo {
        width: 100%;
        height: 280px;
    }

        .tc1-photo img {
        object-position: center 20%;
    }
}


/* ================================================================
   LOGIN-OVERLAY
================================================================ */

#login-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0,0,0,0.45);
    align-items: center;
    justify-content: center;
}

#login-overlay.visible {
    display: flex;
}

#login-box {
    background: var(--white);
    border-radius: 10px;
    padding: 2rem 2.5rem;
    width: 320px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#login-title {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text);
}

#login-box input[type="password"] {
    width: 100%;
    padding: 0.6rem 0.8rem;
    border: 1.5px solid #d0d0d0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.15s;
}

#login-box input[type="password"]:focus {
    border-color: var(--blue);
}

#login-error {
    display: none;
    color: var(--pink);
    font-size: 0.85rem;
    margin-top: -0.5rem;
}

#login-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
}

#login-cancel {
    background: none;
    border: 1.5px solid #d0d0d0;
    border-radius: 8px;
    padding: 0.45rem 1rem;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--darkgrey);
    transition: border-color 0.15s;
}

#login-cancel:hover {
    border-color: var(--blue);
}

#login-btn {
    background: var(--blue);
    border: none;
    border-radius: 8px;
    padding: 0.45rem 1.2rem;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text);
    transition: background 0.15s;
}

#login-btn:hover {
    background: #38b6be;
}


/* ================================================================
   ABMELDEN-BESTÄTIGUNG
================================================================ */

#logout-confirm {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1100;
    background: rgba(0,0,0,0.45);
    align-items: center;
    justify-content: center;
}

#logout-confirm.visible {
    display: flex;
}

#logout-confirm-box {
    background: var(--white);
    border-radius: 10px;
    padding: 2rem 2.5rem;
    width: 340px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

#logout-confirm-title {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text);
}

#logout-confirm-text {
    font-size: 0.88rem;
    color: var(--darkgrey);
    line-height: 1.5;
    margin: 0;
}

#logout-confirm-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    margin-top: 0.25rem;
}

#logout-confirm-back {
    background: var(--blue);
    border: none;
    border-radius: 8px;
    padding: 0.45rem 1rem;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text);
    transition: background 0.15s;
}

#logout-confirm-back:hover {
    background: #38b6be;
}

#logout-confirm-ok {
    background: var(--pink);
    border: none;
    border-radius: 8px;
    padding: 0.45rem 1rem;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    color: #fff;
    transition: background 0.15s;
}

#logout-confirm-ok:hover {
    background: #c00f49;
}


/* ================================================================
   EDIT-LEISTE
================================================================ */

#edit-bar {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 900;
    height: 44px;
    background: var(--text);
    color: var(--white);
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-size: 0.85rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}

#edit-bar.visible {
    display: flex;
}

#edit-bar-label {
    font-weight: 600;
    letter-spacing: 0.04em;
    font-size: 0.8rem;
    opacity: 0.7;
}

#edit-save-btn,
#edit-logout-btn {
    border: none;
    border-radius: 8px;
    padding: 0.35rem 1rem;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    transition: background 0.15s;
}

#edit-save-btn {
    background: var(--blue);
    color: var(--text);
}

#edit-save-btn:hover {
    background: #38b6be;
}

#edit-logout-btn {
    background: rgba(255,255,255,0.12);
    color: var(--white);
}

#edit-logout-btn:hover {
    background: rgba(255,255,255,0.22);
}

.editable-active {
    outline: 2px dashed var(--blue);
    outline-offset: 4px;
    border-radius: 4px;
    min-height: 2rem;
}


/* ================================================================
   URLAUBSZEITEN – WARTESCHLANGE
================================================================ */

.vac-b-queue-section {
    display: none;
    margin-top: 1.2rem;
    padding-top: 1.2rem;
    border-top: 1px dashed #c8e6ea;
}

.vac-b-queue-section.visible {
    display: block;
}

.vac-b-queue-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--darkgrey);
    margin-bottom: 0.3rem;
}

.vac-b-queue-info {
    font-size: 0.8rem;
    color: var(--darkgrey);
    margin: 0 0 0.8rem;
    line-height: 1.5;
}


/* ================================================================
   KACHEL-LÖSCHEN-BUTTON
================================================================ */

.tile-delete-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.85);
    color: var(--darkgrey);
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, color 0.15s;
    z-index: 2;
}

.tile-delete-btn:hover {
    background: var(--pink);
    color: #fff;
}


/* ================================================================
   URLAUBSZEITEN – HINZUFÜGEN
================================================================ */

.vac-add-btn {
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: none;
    border: 1.5px dashed #b0d8de;
    border-radius: 10px;
    padding: 0.6rem 1.2rem;
    color: var(--darkgrey);
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s;
    width: fit-content;
}

.vac-add-btn:hover {
    border-color: var(--blue);
    color: var(--text);
}

.vac-add-form {
    margin-top: 1rem;
    background: rgba(255,255,255,0.9);
    border-radius: 10px;
    padding: 1.2rem;
    border: 1.5px dashed #b0d8de;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.vac-add-row,
.vac-add-dates {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.vac-add-field,
.vac-add-date-label {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    flex: 1;
    min-width: 140px;
}

.vac-add-field label,
.vac-add-date-label > span {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--darkgrey);
}

.vac-add-title {
    border: 1.5px solid #dde8ea;
    border-radius: 8px;
    padding: 0.45rem 0.7rem;
    font-size: 0.88rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.15s;
    box-sizing: border-box;
    width: 100%;
}

.vac-add-field input,
.vac-add-date-input {
    border: 1.5px solid #dde8ea;
    border-radius: 8px;
    padding: 0.45rem 0.7rem;
    font-size: 0.88rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.15s;
    box-sizing: border-box;
    width: 100%;
}

.vac-add-field input:focus,
.vac-add-date-input:focus,
.vac-add-title:focus {
    border-color: var(--blue);
}

.vac-add-actions {
    display: flex;
    gap: 0.6rem;
    justify-content: flex-end;
}

.vac-add-cancel {
    background: #fff;
    border: 1.5px solid #dde8ea;
    border-radius: 9999px;
    padding: 0.35rem 1rem;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.85rem;
    color: var(--darkgrey);
    transition: background 0.15s, border-color 0.15s;
}

.vac-add-cancel:hover {
    background: var(--bg);
    border-color: #b0d8de;
}

.vac-add-save {
    background: var(--blue);
    border: 1.5px solid var(--blue);
    border-radius: 9999px;
    padding: 0.35rem 1rem;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 700;
    color: #1a1a1a;
    transition: background 0.15s, border-color 0.15s;
}

.vac-add-save:hover {
    background: #4dc6cd;
    border-color: #4dc6cd;
}


/* ================================================================
   CHIP-CONTROLS (Einzeltage)
================================================================ */

.chip-add-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: none;
    border: 1.5px dashed #b0d8de;
    border-radius: 20px;
    padding: 0.3rem 0.8rem;
    color: var(--darkgrey);
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s;
    vertical-align: middle;
}

.chip-add-btn:hover {
    border-color: var(--blue);
    color: var(--text);
}

.chip-add-input {
    border: 1.5px solid #dde8ea;
    border-radius: 20px;
    padding: 0.3rem 0.8rem;
    font-size: 0.8rem;
    font-family: inherit;
    outline: none;
    width: 160px;
    transition: border-color 0.15s;
    vertical-align: middle;
}

.chip-add-input:focus {
    border-color: var(--blue);
}

.chip-delete {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--darkgrey);
    font-size: 0.85rem;
    padding: 0 0.1rem 0 0.2rem;
    line-height: 1;
    transition: color 0.15s;
    vertical-align: middle;
}

.chip-delete:hover {
    color: var(--pink);
}


/* ================================================================
   NEUIGKEITEN – LÖSCHEN / HINZUFÜGEN
================================================================ */

.nc-delete-btn {
    position: absolute;
    top: 0.6rem;
    right: 0.6rem;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.85);
    color: var(--darkgrey);
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, color 0.15s;
    z-index: 2;
}

.nc-delete-btn:hover {
    background: var(--pink);
    color: #fff;
}

.nc-add-card {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 1.1rem;
    background: rgba(255,255,255,0.75);
    border: 1.5px dashed #b0d8de;
    border-radius: 10px;
    color: var(--darkgrey);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s;
    margin: 0 2rem 1rem;
    box-sizing: border-box;
}

.nc-add-card:hover {
    border-color: var(--blue);
    color: var(--text);
}

/* Formular spiegelt nc-card-Layout: Thumb links, Body rechts */
.nc-new-form {
    background: rgba(255,255,255,0.92);
    border-radius: 10px;
    border: 1.5px dashed #b0d8de;
    margin: 0 2rem 0.75rem;
    display: flex;
    align-items: stretch;
    overflow: hidden;
    max-height: none;
}

.nc-new-thumb {
    flex-shrink: 0;
    width: 180px;
    background: var(--bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    color: var(--text-light);
    font-size: 0.82rem;
    cursor: pointer;
    border-right: 1.5px dashed #b0d8de;
    transition: background 0.15s, color 0.15s;
    overflow: hidden;
}

.nc-new-thumb:hover {
    background: #e5f6f8;
    color: var(--text);
}

.nc-new-thumb i {
    font-size: 2rem;
}

.nc-new-body {
    flex: 1;
    min-width: 0;
    padding: 0.8rem 1.1rem 0.7rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.nc-new-date,
.nc-new-title {
    border: 1.5px solid #dde8ea;
    border-radius: 8px;
    padding: 0.35rem 0.65rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.15s;
    box-sizing: border-box;
}

.nc-new-date {
    width: 170px;
    font-size: 0.78rem;
    color: var(--text-light);
}

.nc-new-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
    width: 100%;
}

.nc-new-date:focus,
.nc-new-title:focus {
    border-color: var(--blue);
}

.nc-new-text {
    flex: 1;
    border: 1.5px solid #dde8ea;
    border-radius: 8px;
    padding: 0.4rem 0.65rem;
    font-size: 0.88rem;
    font-family: inherit;
    outline: none;
    resize: vertical;
    min-height: 55px;
    transition: border-color 0.15s;
    box-sizing: border-box;
    line-height: 1.55;
    color: var(--text);
}

.nc-new-text:focus {
    border-color: var(--blue);
}

.nc-new-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.1rem;
}

.nc-new-counter {
    font-size: 0.75rem;
    color: var(--text-light);
}

.nc-new-actions {
    display: flex;
    gap: 0.5rem;
}

.nc-new-cancel,
.nc-new-save {
    padding: 0.35rem 1rem;
    border-radius: 9999px;
    font-family: inherit;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.nc-new-cancel {
    background: #fff;
    color: var(--darkgrey);
    border: 1.5px solid #dde8ea;
}

.nc-new-cancel:hover {
    background: var(--bg);
    border-color: #b0d8de;
}

.nc-new-save {
    background: var(--blue);
    color: #1a1a1a;
    border: 1.5px solid var(--blue);
    font-weight: 600;
}

.nc-new-save:hover {
    background: #4dc6cd;
    border-color: #4dc6cd;
}


/* ================================================================
   ANKÜNDIGUNGEN (Alert-Karten)
================================================================ */

.alert-card {
    background: rgba(255,255,255,0.92);
    border-left: 4px solid var(--blue);
    border-radius: 8px;
    padding: 0.9rem 1rem;
    margin: 0 2rem 0.75rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    position: relative;
}

.alert-card-icon {
    color: var(--blue);
    font-size: 1.3rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.alert-card-body {
    flex: 1;
}

.alert-card-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.alert-card-text {
    font-size: 0.88rem;
    color: var(--darkgrey);
    line-height: 1.5;
}

.alert-card-expiry {
    font-size: 0.75rem;
    color: var(--darkgrey);
    margin-top: 0.4rem;
    opacity: 0.7;
}

.alert-card-delete {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.85);
    color: var(--darkgrey);
    font-size: 0.9rem;
    line-height: 1;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, color 0.15s;
    z-index: 2;
}

.alert-card-delete.visible {
    display: flex;
}

.alert-card-delete:hover {
    background: var(--pink);
    color: #fff;
}

.alert-add-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: none;
    border: 1.5px dashed #b0d8de;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    color: var(--darkgrey);
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s;
    margin-bottom: 0.75rem;
}

.alert-add-btn:hover {
    border-color: var(--blue);
    color: var(--text);
}

.alert-add-form {
    background: rgba(255,255,255,0.92);
    border-radius: 8px;
    padding: 1.1rem;
    border: 1.5px dashed #b0d8de;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin: 0 2rem 0.75rem;
}

.alert-add-field {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.alert-add-field label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--darkgrey);
}

.alert-add-field input,
.alert-add-field textarea {
    border: 1.5px solid #dde8ea;
    border-radius: 8px;
    padding: 0.45rem 0.7rem;
    font-size: 0.88rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.15s;
    width: 100%;
    box-sizing: border-box;
}

.alert-add-field textarea {
    resize: vertical;
    min-height: 70px;
}

.alert-add-field input:focus,
.alert-add-field textarea:focus {
    border-color: var(--blue);
}

.alert-add-actions {
    display: flex;
    gap: 0.6rem;
    justify-content: flex-end;
    margin-top: 0.1rem;
}


/* ================================================================
   TEAM-KARTE HINZUFÜGEN (praxis.html)
================================================================ */

.tc1-add-form {
    display: flex;
    gap: 1.5rem;
    background: rgba(255,255,255,0.92);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1.5px dashed #b0d8de;
    margin: 0 2rem 2rem;
    align-items: flex-start;
}

.tc1-new-thumb {
    width: 180px;
    min-width: 180px;
    height: 220px;
    background: #e8f4f7;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    color: var(--darkgrey);
    font-size: 0.82rem;
    border: 1.5px dashed #b0d8de;
    transition: border-color 0.15s;
    overflow: hidden;
}

.tc1-new-thumb:hover {
    border-color: var(--blue);
}

.tc1-new-thumb i {
    font-size: 2.5rem;
    opacity: 0.5;
}

.tc1-new-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.tc1-new-input {
    border: 1.5px solid #dde8ea;
    border-radius: 8px;
    padding: 0.5rem 0.7rem;
    font-size: 0.88rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.15s;
    width: 100%;
    box-sizing: border-box;
}

.tc1-new-input:focus {
    border-color: var(--blue);
}

.tc1-new-name {
    font-size: 1rem;
    font-weight: 600;
}

.tc1-new-role {
    font-size: 0.9rem;
}

.tc1-new-facts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.tc1-new-field-label {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.tc1-new-field-label.full {
    grid-column: 1 / -1;
}

.tc1-new-field-label > span {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--darkgrey);
}

.tc1-delete-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.85);
    color: var(--darkgrey);
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, color 0.15s;
    z-index: 2;
}

.tc1-delete-btn:hover {
    background: var(--pink);
    color: #fff;
}

/* --- Aufsichtsbehörde / rechtliche Angaben -------------------------------- */
.bottominfo {
    font-size: 0.82rem;
    line-height: 1.55;
    background-color: #3a323e;
    padding: 1.75rem 2.5rem 1.5rem;
}

.bottominfo h2 {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    opacity: 0.65;
    margin: 0.75rem 0 0.2rem;
}

.bottominfo h2:first-child {
    margin-top: 0;
}

.aufsicht {
    justify-content: flex-start;
    gap: 6rem;
}

.aufsicht > div {
    padding: 0;
}

.aufsicht address {
    font-style: normal;
}

.aufsicht address p {
    margin: 0;
    line-height: 1.6;
}

.mitte {
    text-align: left;
    position: static;
    left: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.12);
}

.mitte p {
    font-size: 0.76rem;
    line-height: 1.6;
    max-width: 90%;
    margin-bottom: 0.35rem;
}

@media screen and (max-width: 768px) {
    .bottominfo {
        font-size: 0.9rem;
        padding: 1.25rem;
    }

    .bottominfo h2 {
        font-size: 0.78rem;
        opacity: 0.85;
    }

    .aufsicht {
        gap: 2.5rem;
    }

    .mitte p {
        font-size: 0.85rem;
        max-width: 100%;
    }
}
