.passport-container {
    display: flex;
    max-width: 1200px;
    margin: 2rem auto;
    position: relative;
    min-height: 600px;
    overflow: visible;
}

.passport {
    flex: 1;
    max-width: 900px;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.2);
    padding: 2rem;
    position: relative;
    z-index: 10;
    margin-left:50px;
    background-color: var(--surface-color);
}


.passport__header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    border-bottom: 2px solid rgba(0,0,0,0.1);
    padding-bottom: 1rem;
    gap: 2rem;
    justify-content: center;
}

.passport__logo {
    display: flex;
    align-items: center;
}

.passport__symbol {
    font-size: 4rem;
    line-height: 1;
}

.passport__title {
    font-size: 1.8rem;
    color: var(--text-body);
    margin: 0;
    align-self: center;
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
}

.passport__content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
}

/* Generisches Layout mit linker Notiz-Spalte für Kontakte/Profil */
.passport__info {
    margin-bottom: 1rem;
}

.passport__info-text {
    font-size: 0.95rem;
    color: var(--text-body);
}

/* Abschnittstitel und Unterzeile direkt darunter */
.passport__section-title {
    margin-top: 1.0rem;
    margin-bottom: 0.25rem;
}

.passport__section-info {
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--text-body-light);
    font-size: 0.95rem;
}

.passport__photo-section {
    text-align: center;
}

.passport__photo-image,
.passport__current-photo {
    width: 250px;
    height: 320px;
    object-fit: cover;
    border-radius: 5px;
}

.passport__photo-input {
    display: none;
}

.passport__btn,
.passport__photo-btn {
    padding: 0.7rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    background: #f0f0f0;
}

.passport__photo-btn:hover {
    background: #e0e0e0;
}

.passport__btn--update {
    background: #4CAF50;
    color: var(--text-body-white);
}

.passport__btn--logout {
    background: #f0f0f0;
    color: var(--text-body);
}

.passport__btn--delete {
    background: #ff4444;
    color: var(--text-body-white);
}

.passport__signature-text {
    font-family:cursive;
    font-size: 2.5rem;
    color: var(--text-body-light);
    margin-bottom: 0.5rem;
}

.passport__signature-line {
    border: none;
    border-bottom: 1px solid #999;
}

.passport__form-group {
    margin-bottom: 1.5rem;
}

.passport__label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-body-light);
}

.passport__input,
.passport__select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.passport__input--readonly {
    background: #f5f5f5;
}

.passport__additional-actions {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
}

.passport__action-form {
    display: inline-block;
}

.passport__photo-dropzone,
.passport__photo-placeholder {
    width: 250px;
    height: 320px;
    margin: 0 auto 20px;
}

.passport__photo-dropzone {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.passport__photo-dropzone--active {
    border-color: #4a90e2;
    background-color: var(--debug-todo);
}

.passport__photo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--background-color-medium);
}

.passport__photo-icon {
    font-size: 50px;
    color: var(--text-body-light);
}

.passport__photo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--debug-todo);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.passport__photo-dropzone:hover .passport__photo-overlay {
    opacity: 1;
    border: 3px dashed #ccc;
}

.passport__photo-text {
    color: var(--text-body-white);
    text-align: center;
    font-size: 14px;
    padding: 10px;
}

.passport__photo-text i {
    font-size: 24px;
    margin-bottom: 5px;
}

.passport__photo-subtext {
    display: block;
    font-size: 12px;
    margin-top: 5px;
    opacity: 0.8;
}

.passport__photo-form {
    display: none;
}

.passport__photo-progress-container {
    width: 150px;
    height: 10px;
    background-color: var(--background-color-medium);
    border-radius: 5px;
    margin: 10px auto;
    overflow: hidden;
    position: relative;
}

.passport__photo-progress-bar {
    height: 100%;
    background-color: var(--debug-todo);
    width: 0;
    transition: width 0.3s ease;
}

.passport__photo-progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 10px;
    color: var(--text-body);
}

.passport__tabbar {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0.3rem;
    width: 250px;
    position: absolute;
    right: 20px;
    top:20px;
    z-index: 5;
    overflow: visible;
}

.passport__tabbar-item {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    border-radius: 8px 0 0 8px;
    text-decoration: none;
    color: var(--text-body-light);
    transition: all 0.2s ease-out;
    position: relative;
    box-shadow: -2px 2px 8px rgba(0,0,0,0.15);
    border-right: 15px solid #ddd;
    border-left: none;
    transform-origin: right center;
    height: 30px;
    opacity: 0.8;
    width: 200px;
    overflow: hidden;
    justify-content: flex-end;
    cursor: pointer;
}

.passport__tabbar-item i {
    font-size: 1.2rem;
    margin-left: auto;
}


.passport__tabbar-item:hover {
    background: linear-gradient(to left, #f8f8f8, #ffffff);
    color: var(--text-body);
    transform: translateX(15px) scale(1.03);
    opacity: 0.95;
    z-index: 6;
}

.passport__tabbar-item--active {
    background: linear-gradient(to left, #f8f8f8, #ffffff);
    color: var(--text-body);
    font-weight: bold;
    border-right-color: #4a90e2;
    border-left: 1px solid red;
    opacity: 1;
    box-shadow: -3px 3px 10px rgba(0,0,0,0.2);
    z-index: 7;
}

.passport__tabbar-item--active:hover {
    background: linear-gradient(to left, #f8f8f8, #ffffff);
    color: var(--text-body);
    border-right-color: #4a90e2;
    transform: translateX(-3px);
    z-index: 7;
}



/* Passwortänderungsseite */
.passport__error {
    display: none;
    margin-top: 0.5rem;
    color: var(--danger-color);
    font-size: 0.875rem;
}

.passport__message-text {
    font-size: 0.875rem;
    border: 1px solid var(--primary-color);
    padding: 1rem;
    border-radius: 0.5rem;
}

/* Export Bereich */
.passport__section-title {
    font-size: 1.5rem;
    color: var(--text-body);
    grid-column: span 2;
}

.passport__export-description {
    grid-column: span 2;
}

.passport__export-container {
    grid-column: span 2;
    position: relative;
    margin-bottom: 2rem;
}

.passport__export-data {
    width: 100%;
    height: 500px;
    background-color: var(--background-color-medium);
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 1rem;
    overflow: auto;
    font-family: monospace;
    white-space: pre-wrap;
    margin-top: 1rem;
}

.alert {
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    grid-column: span 2;
}

.alert--error {
    background-color: var(--debug-todo);
    border-left: 4px solid #f44336;
    color: var(--text-body);
}

.alert p {
    margin: 0.5rem 0;
}

@media (max-width: 768px) {
    .passport-container {
        flex-direction: column;
        min-height: auto;
    }

    .passport {
        margin: 1rem;
        padding: 1rem;
        z-index: 1;
        margin-right: 1rem;
    }
    
    .passport:before {
        display: none;
    }

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

    .passport__photo {
        width: 150px;
        height: 200px;
    }

    .passport__photo-image {
        width: 140px;
        height: 180px;
    }

    .passport__tabbar {
        flex-direction: row;
        justify-content: center;
        gap: 0.5rem;
        padding: 0.5rem;
        width: auto;
        margin: -20px 1rem 1rem;
        border-left: none;
        overflow-x: auto;
        position: relative;
        z-index: 2;
        right: auto;
        top: auto;
        display: flex !important;
    }

    .passport__tabbar-item {
        flex-direction: column;
        padding: 0.5rem;
        text-align: center;
        font-size: 0.8rem;
        border-radius: 8px 8px 0 0;
        border-right: none;
        border-left: none;
        border-top: 5px solid #ddd;
        border-bottom: none;
        right: 0 !important;
        top: 0 !important;
        height: auto;
        box-shadow: 0 -2px 5px rgba(0,0,0,0.1);
        background: linear-gradient(to bottom, #f0f0f0, #f5f5f5);
        width: auto;
        position: relative !important;
    }

    .passport__tabbar-item:nth-child(1),
    .passport__tabbar-item:nth-child(2),
    .passport__tabbar-item:nth-child(3),
    .passport__tabbar-item:nth-child(4) {
        z-index: 1;
        position: relative !important;
        top: 0 !important;
        right: 0 !important;
    }

    .passport__tabbar-item--active {
        border-top-color: #4CAF50;
        border-right-color: transparent;
        z-index: 2;
        opacity: 1;
        transform: translateY(-3px);
        background: linear-gradient(to bottom, #f8f8f8, #ffffff);
    }

    .passport__tabbar-item:hover {
        transform: translateY(-2px);
        z-index: 2;
        background: linear-gradient(to bottom, #f8f8f8, #ffffff);
        right: 0;
    }

    .passport__tabbar-item i {
        font-size: 1.5rem;
        margin-bottom: 0.3rem;
    }

    .passport__export-data {
        height: 300px;
    }
    /* Notes-Layout einklappen */

}