/* =========================================================
   SPLITTRIP - GLOBAL
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    min-height: 100vh;
    padding-top: 100px;
    background: linear-gradient(to bottom right, #eaf4ff, #ffffff);
    color: #1f2d3d;
}

a {
    text-decoration: none;
}


/* =========================================================
   NAVIGATION
========================================================= */

header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    width: 100%;
    padding: 20px 60px;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0;
    cursor: pointer;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.logo:hover {
    transform: scale(1.04);
    opacity: 0.9;
}

.logo img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.logo span {
    display: inline-block;
    font-size: 38px;
    font-weight: 800;
    letter-spacing: -1px;
    background: linear-gradient(
        to right,
        #4a5568 0%,
        #4a5568 55%,
        #3182ce 55%,
        #3182ce 100%
    );
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}


/* =========================================================
   BUTTONS
========================================================= */

.login-btn,
.start-btn,
.logout-btn,
.add-trip-btn,
.open-trip-btn {
    display: inline-block;
    border: none;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.login-btn {
    background-color: #2b6cb0;
    color: white;
    padding: 12px 24px;
    border-radius: 10px;
}

.login-btn:hover {
    background-color: #1f4f80;
}

.start-btn {
    background-color: #3182ce;
    color: white;
    padding: 18px 38px;
    border-radius: 14px;
    font-size: 20px;
}

.start-btn:hover {
    background-color: #2b6cb0;
}

.logout-btn {
    background-color: #edf2f7;
    color: #2b6cb0;
    padding: 10px 18px;
    border-radius: 10px;
}

.logout-btn:hover {
    background-color: #dbeafe;
}

.add-trip-btn {
    background-color: #2f855a;
    color: white;
    padding: 16px 28px;
    border-radius: 14px;
    font-size: 18px;
    white-space: nowrap;
}

.add-trip-btn:hover {
    background-color: #276749;
}

.open-trip-btn {
    background-color: #3182ce;
    color: white;
    padding: 10px 18px;
    border-radius: 10px;
}

.open-trip-btn:hover {
    background-color: #2b6cb0;
}


/* =========================================================
   STARTSEITE
========================================================= */

.hero {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 120px 20px 80px;
}

.hero-content {
    max-width: 850px;
}

.hero h1 {
    font-size: 52px;
    margin-bottom: 25px;
    line-height: 1.2;
}

.hero p {
    font-size: 22px;
    color: #4a5568;
    margin-bottom: 40px;
    line-height: 1.6;
}

.features {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 40px 60px 80px;
    flex-wrap: wrap;
}

.feature-card {
    width: 300px;
    padding: 35px;
    background: white;
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: 0.3s;
}

.feature-card:hover {
    transform: translateY(-8px);
}

.feature-card h2 {
    font-size: 24px;
    color: #2b6cb0;
    margin-bottom: 15px;
}

.feature-card p {
    font-size: 17px;
    color: #4a5568;
    line-height: 1.5;
}


/* =========================================================
   LOGIN & REGISTRIERUNG
========================================================= */

.login-container,
.register-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 100px);
    padding: 40px 20px;
}

.login-box,
.register-box {
    width: 100%;
    background: white;
    border-radius: 24px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.login-box {
    max-width: 480px;
    padding: 50px;
}

.register-box {
    max-width: 560px;
    padding: 50px;
}

.login-box h1,
.register-box h1 {
    font-size: 42px;
    color: #1f2d3d;
    margin-bottom: 12px;
}

.login-box p,
.register-box p {
    font-size: 18px;
    color: #4a5568;
    margin-bottom: 35px;
    line-height: 1.5;
}

.login-box form,
.register-box form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.name-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.login-box input,
.register-box input {
    width: 100%;
    padding: 18px;
    border: 1px solid #d9e2ec;
    border-radius: 14px;
    font-size: 17px;
    outline: none;
    transition: 0.3s;
}

.login-box input:focus,
.register-box input:focus {
    border-color: #3182ce;
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.15);
}

.login-box button,
.register-box button {
    padding: 18px;
    background-color: #3182ce;
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.login-box button:hover,
.register-box button:hover {
    background-color: #2b6cb0;
}

.extra-links {
    margin-top: 28px;
}

.extra-links a {
    color: #3182ce;
    font-weight: 600;
    transition: 0.3s;
}

.extra-links a:hover {
    color: #2b6cb0;
    text-decoration: underline;
}

.extra-links p {
    margin-top: 18px;
    margin-bottom: 0;
    font-size: 16px;
    color: #4a5568;
}


/* =========================================================
   MELDUNGEN & FEEDBACK
========================================================= */

.message {
    padding: 14px 18px;
    border-radius: 12px;
    margin-bottom: 22px;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
}

.error-message {
    background-color: #ffe5e5;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.success-message {
    background-color: #e6fffa;
    color: #047857;
    border: 1px solid #a7f3d0;
}

.success-view {
    text-align: center;
}

.success-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 24px;
    border-radius: 50%;
    background-color: #e6fffa;
    color: #047857;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 38px;
    font-weight: bold;
}

.success-view h1 {
    font-size: 36px;
    margin-bottom: 14px;
    color: #1f2d3d;
}

.success-view p {
    font-size: 18px;
    color: #4a5568;
    margin-bottom: 0;
}


/* =========================================================
   DASHBOARD
========================================================= */

.user-menu {
    display: flex;
    align-items: center;
    gap: 18px;
    color: #1f2d3d;
}

.user-profile {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1.2;
}

.user-name {
    font-size: 16px;
    font-weight: 800;
    color: #1f2d3d;
}

.user-email {
    font-size: 13px;
    color: #718096;
}

.dashboard-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 70px 40px 80px;
}

.dashboard-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    margin-bottom: 40px;
}

.dashboard-top h1 {
    font-size: 42px;
    color: #1f2d3d;
    margin-bottom: 10px;
}

.dashboard-top p {
    font-size: 18px;
    color: #4a5568;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 50px;
}

.stat-card {
    background-color: white;
    padding: 28px;
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.stat-card h3 {
    font-size: 18px;
    color: #4a5568;
    margin-bottom: 14px;
}

.stat-card p {
    font-size: 36px;
    font-weight: bold;
    color: #3182ce;
}

.trips-section h2 {
    font-size: 32px;
    margin-bottom: 24px;
    color: #1f2d3d;
}

.trip-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.trip-card-dashboard {
    background-color: white;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transition: 0.3s;
}

.trip-card-dashboard:hover {
    transform: translateY(-6px);
}

.trip-image {
    height: 160px;
    background-size: cover;
    background-position: center;
}

.trip-image.mallorca {
    background: linear-gradient(135deg, #90cdf4, #2b6cb0);
}

.trip-image.amsterdam {
    background: linear-gradient(135deg, #bee3f8, #4a5568);
}

.trip-image.ski {
    background: linear-gradient(135deg, #e2e8f0, #3182ce);
}

.trip-content {
    padding: 24px;
}

.trip-content h3 {
    font-size: 24px;
    color: #1f2d3d;
    margin-bottom: 10px;
}

.trip-content p {
    color: #4a5568;
    margin-bottom: 8px;
    font-size: 16px;
}

.trip-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 22px;
}

.trip-price {
    font-size: 22px;
    font-weight: bold;
    color: #1f2d3d;
}


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

footer {
    text-align: center;
    padding: 25px;
    margin-top: 40px;
    background-color: white;
    color: #718096;
    font-size: 15px;
    border-top: 1px solid #e2e8f0;
}


/* =========================================================
   RESPONSIVE DESIGN
========================================================= */

@media (max-width: 1000px) {
    .dashboard-stats,
    .trip-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-top {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 900px) {
    body {
        padding-top: 130px;
    }

    header {
        padding: 20px;
    }

    nav {
        flex-direction: column;
        gap: 20px;
    }

    .hero h1 {
        font-size: 38px;
    }

    .hero p {
        font-size: 18px;
    }
}

@media (max-width: 600px) {
    body {
        padding-top: 115px;
    }

    header {
        padding: 16px 20px;
    }

    nav {
        gap: 14px;
    }

    .logo img {
        width: 40px;
        height: 40px;
    }

    .logo span {
        font-size: 30px;
    }

    .hero {
        padding: 80px 20px 60px;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero p {
        font-size: 16px;
    }

    .features {
        padding: 30px 20px 60px;
    }

    .login-box,
    .register-box {
        padding: 35px 25px;
    }

    .login-box h1,
    .register-box h1 {
        font-size: 32px;
    }

    .login-box p,
    .register-box p {
        font-size: 16px;
    }

    .name-row {
        grid-template-columns: 1fr;
    }

    .dashboard-page {
        padding: 50px 20px 60px;
    }

    .dashboard-top h1 {
        font-size: 32px;
    }

    .add-trip-btn {
        width: 100%;
        text-align: center;
    }

    .user-menu {
        flex-direction: column;
        gap: 10px;
    }

    .user-profile {
        align-items: center;
    }
}



/* =========================================================
   PROFILBILD UPLOAD REGISTRIERUNG
========================================================= */

.profile-upload {
    display: flex;
    justify-content: center;
    margin-bottom: 18px;
}

.profile-upload label {
    cursor: pointer;
    text-align: center;
}

/* echtes Datei-Feld ausblenden */
.profile-upload input[type="file"] {
    display: none;
}

.profile-preview {
    width: 92px;
    height: 92px;
    margin: 0 auto 10px;
    border-radius: 50%;
    background-color: #edf2f7;
    border: 2px dashed #90cdf4;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #3182ce;
    font-size: 34px;
    font-weight: bold;
    transition: 0.3s;
}

.profile-preview:hover {
    background-color: #e0f2fe;
    border-color: #3182ce;
}

.profile-upload p {
    font-size: 15px;
    color: #4a5568;
    margin-bottom: 0;
}


/* =========================================================
   PROFILBILD NAVIGATION
========================================================= */

.user-profile-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #1f2d3d;
    cursor: pointer;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.user-profile-link:hover {
    transform: scale(1.04);
    opacity: 0.9;
}


.nav-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #dbeafe;
    background-color: #edf2f7;
}


.user-name {
    font-size: 16px;
    font-weight: 800;
    color: #1f2d3d;
}



/* =========================================================
   PROFILSEITE
========================================================= */

.profile-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 70px 40px 80px;
}

.profile-card {
    background-color: white;
    border-radius: 24px;
    padding: 45px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.08);
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 35px;
}

.profile-large-avatar {
    width: 95px;
    height: 95px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #dbeafe;
    background-color: #edf2f7;
}

.profile-header h1 {
    font-size: 42px;
    color: #1f2d3d;
    margin-bottom: 8px;
}

.profile-header p {
    font-size: 18px;
    color: #4a5568;
}

.profile-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.profile-form input {
    width: 100%;
    padding: 18px;
    border: 1px solid #d9e2ec;
    border-radius: 14px;
    font-size: 17px;
    outline: none;
    transition: 0.3s;
}

.profile-form input:focus {
    border-color: #3182ce;
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.15);
}

.profile-image-edit {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.profile-image-edit input[type="file"] {
    display: none;
}

.profile-image-button {
    background-color: #edf2f7;
    color: #2b6cb0;
    padding: 12px 18px;
    border-radius: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.profile-image-button:hover {
    background-color: #dbeafe;
}

.profile-image-edit span {
    color: #718096;
    font-size: 14px;
}

.profile-section-title {
    margin-top: 12px;
}

.profile-section-title h2 {
    font-size: 24px;
    color: #1f2d3d;
    margin-bottom: 6px;
}

.profile-section-title p {
    font-size: 15px;
    color: #718096;
}

.profile-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    margin-top: 10px;
}

.profile-actions button {
    padding: 16px 26px;
    background-color: #3182ce;
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.profile-actions button:hover {
    background-color: #2b6cb0;
}

.secondary-btn {
    background-color: #edf2f7;
    color: #2b6cb0;
    padding: 16px 26px;
    border-radius: 14px;
    font-weight: bold;
    transition: 0.3s;
}

.secondary-btn:hover {
    background-color: #dbeafe;
}

/* Responsive Profilseite */
@media (max-width: 600px) {
    .profile-page {
        padding: 50px 20px 60px;
    }

    .profile-card {
        padding: 35px 25px;
    }

    .profile-header {
        flex-direction: column;
        text-align: center;
    }

    .profile-header h1 {
        font-size: 32px;
    }

    .profile-actions {
        flex-direction: column;
    }

    .profile-actions button,
    .secondary-btn {
        width: 100%;
        text-align: center;
    }
}

/* Profilbild entfernen Button */
.remove-image-btn {
    background-color: #fff5f5;
    color: #b91c1c;
    border: 1px solid #fecaca;
    padding: 12px 18px;
    border-radius: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.remove-image-btn:hover {
    background-color: #ffe5e5;
}


/* =========================================================
   REISE HINZUFÜGEN
========================================================= */

.add-trip-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 70px 40px 80px;
}

.add-trip-card {
    background-color: white;
    border-radius: 24px;
    padding: 45px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.08);
}

.add-trip-header {
    margin-bottom: 35px;
}

.add-trip-header h1 {
    font-size: 42px;
    color: #1f2d3d;
    margin-bottom: 10px;
}

.add-trip-header p {
    font-size: 18px;
    color: #4a5568;
    line-height: 1.5;
}

.add-trip-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 15px;
    font-weight: bold;
    color: #1f2d3d;
}

.form-group input {
    width: 100%;
    padding: 18px;
    border: 1px solid #d9e2ec;
    border-radius: 14px;
    font-size: 17px;
    outline: none;
    transition: 0.3s;
}

.form-group input:focus {
    border-color: #3182ce;
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.15);
}

.date-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.info-box {
    background-color: #ebf8ff;
    border: 1px solid #bee3f8;
    border-radius: 18px;
    padding: 22px;
}

.info-box h3 {
    font-size: 20px;
    color: #2b6cb0;
    margin-bottom: 8px;
}

.info-box p {
    color: #4a5568;
    line-height: 1.5;
}

.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    margin-top: 10px;
}

.form-actions button {
    padding: 16px 26px;
    background-color: #3182ce;
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.form-actions button:hover {
    background-color: #2b6cb0;
}

@media (max-width: 600px) {
    .add-trip-page {
        padding: 50px 20px 60px;
    }

    .add-trip-card {
        padding: 35px 25px;
    }

    .add-trip-header h1 {
        font-size: 32px;
    }

    .date-row {
        grid-template-columns: 1fr;
    }

    .form-actions {
        flex-direction: column;
    }

    .form-actions button,
    .secondary-btn {
        width: 100%;
        text-align: center;
    }
}



/* =========================================================
   REISE DETAILS
========================================================= */

.trip-details-page {
    max-width: 1300px;
    margin: 0 auto;
    padding: 60px 40px 80px;
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 32px;
}

.trip-details-header {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 30px;
    margin-bottom: 10px;
}



.trip-details-header h1 {
    font-size: 46px;
    color: #1f2d3d;
    margin-bottom: 10px;
}

.trip-details-header p {
    font-size: 18px;
    color: #4a5568;
}

.trip-header-card {
    background-color: white;
    padding: 18px 24px;
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    min-width: 190px;
}

.trip-header-card span {
    display: block;
    color: #718096;
    font-size: 14px;
    margin-bottom: 6px;
}

.trip-header-card strong {
    color: #1f2d3d;
    font-size: 18px;
}

.trip-overview-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.trip-main-card,
.side-card {
    background-color: white;
    border-radius: 24px;
    padding: 28px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.section-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 24px;
}

.section-title-row h2,
.side-card h2 {
    font-size: 26px;
    color: #1f2d3d;
    margin-bottom: 8px;
}

.section-title-row p {
    color: #718096;
    line-height: 1.5;
}

.small-action-btn {
    background-color: #edf2f7;
    color: #2b6cb0;
    padding: 11px 16px;
    border-radius: 12px;
    font-weight: bold;
    white-space: nowrap;
    transition: 0.3s;
}

.small-action-btn:hover {
    background-color: #dbeafe;
}

.empty-state,
.activity-placeholder {
    background-color: #f8fafc;
    border: 1px dashed #cbd5e0;
    border-radius: 18px;
    padding: 26px;
}

.empty-state h3,
.activity-placeholder h3 {
    font-size: 21px;
    color: #1f2d3d;
    margin-bottom: 10px;
}

.empty-state p,
.activity-placeholder p {
    color: #4a5568;
    line-height: 1.5;
}

.connection-preview {
    display: flex;
    align-items: center;
    gap: 18px;
    background-color: #ebf8ff;
    border: 1px solid #bee3f8;
    border-radius: 18px;
    padding: 22px;
}

.connection-icon {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background-color: #3182ce;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 26px;
    flex-shrink: 0;
}

.connection-preview h3 {
    font-size: 21px;
    color: #1f2d3d;
    margin-bottom: 6px;
}

.connection-preview p {
    color: #4a5568;
}

.trip-side-panel {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.cost-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid #edf2f7;
}

.cost-row span {
    color: #4a5568;
}

.cost-row strong {
    color: #1f2d3d;
    text-align: right;
}

.settle-btn {
    width: 100%;
    margin-top: 22px;
    padding: 15px;
    background-color: #3182ce;
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 17px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.settle-btn:hover {
    background-color: #2b6cb0;
}

.member-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 18px;
}

.member-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.member-item img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    background-color: #edf2f7;
}

.member-item strong {
    display: block;
    font-size: 15px;
    color: #1f2d3d;
}

.member-item span {
    font-size: 13px;
    color: #718096;
}

.invite-btn {
    display: block;
    margin-top: 22px;
    background-color: #edf2f7;
    color: #2b6cb0;
    padding: 13px 16px;
    border-radius: 12px;
    font-weight: bold;
    text-align: center;
    transition: 0.3s;
}

.invite-btn:hover {
    background-color: #dbeafe;
}

/* Responsive Reise Details */
@media (max-width: 1050px) {
    .trip-details-page {
        grid-template-columns: 1fr;
    }

    .trip-side-panel {
        order: 2;
    }
}

@media (max-width: 700px) {
    .trip-details-page {
        padding: 45px 20px 60px;
    }

    .trip-details-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .trip-details-header h1 {
        font-size: 34px;
    }

    .section-title-row {
        flex-direction: column;
    }

    .small-action-btn {
        width: 100%;
        text-align: center;
    }
}

/* =========================================================
   KLICKBare REISEKARTEN + REISE LÖSCHEN
========================================================= */

.clickable-trip-card {
    position: relative;
    cursor: pointer;
}

.clickable-trip-card:hover {
    transform: translateY(-6px);
}

.trip-card-link {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.trip-image,
.trip-content {
    position: relative;
    z-index: 0;
}

.open-trip-text {
    color: #3182ce;
    font-weight: bold;
}

/* Löschen-Button liegt über dem Karten-Link */
.delete-trip-form {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
}

.delete-trip-btn {
    background-color: rgba(255, 245, 245, 0.95);
    color: #b91c1c;
    border: 1px solid #fecaca;
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.delete-trip-btn:hover {
    background-color: #ffe5e5;
}




/* Leerer Dashboard Zustand */
.empty-dashboard {
    background-color: white;
    border-radius: 24px;
    padding: 45px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.empty-dashboard h3 {
    font-size: 28px;
    color: #1f2d3d;
    margin-bottom: 12px;
}

.empty-dashboard p {
    font-size: 18px;
    color: #4a5568;
    line-height: 1.5;
    margin-bottom: 28px;
}

.trip-owner {
    font-size: 14px !important;
    color: #718096 !important;
}



/* =========================================================
   REISEBILD UPLOAD
========================================================= */

.trip-image-upload {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 18px;
    text-align: center;
}

.trip-image-upload label {
    cursor: pointer;
}

.trip-image-upload input[type="file"] {
    display: none;
}

.trip-image-preview {
    width: 100%;
    max-width: 760px;
    height: 100px;
    margin: 0 auto 10px;
    border-radius: 18px;
    background: linear-gradient(135deg, #eaf4ff, #dbeafe);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border: 2px dashed #90cdf4;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #3182ce;
    font-size: 34px;
    font-weight: bold;
    transition: 0.3s;
    overflow: hidden;
}


.trip-image-preview:hover {
    background-color: #e0f2fe;
    border-color: #3182ce;
}

.trip-image-upload p {
    font-size: 16px;
    color: #4a5568;
    font-weight: 600;
    margin-bottom: 6px;
}

.trip-image-upload small {
    color: #718096;
    font-size: 14px;
}

/* Reisebild Dashboard */
.trip-dashboard-image {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
    background-color: #edf2f7;
}



/* =========================================================
   REISE DETAILS BILD + BEARBEITEN BUTTON
========================================================= */

.trip-header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.edit-trip-btn {
    background-color: #edf2f7;
    color: #2b6cb0;
    padding: 14px 18px;
    border-radius: 12px;
    font-weight: bold;
    transition: 0.3s;
    white-space: nowrap;
}

.edit-trip-btn:hover {
    background-color: #dbeafe;
}

.edit-trip-preview {
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}




/* =========================================================
   EINLADUNGSTOKEN / REISE BEITRETEN
========================================================= */

.dashboard-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.join-trip-btn {
    display: inline-block;
    background-color: #edf2f7;
    color: #2b6cb0;
    padding: 16px 28px;
    border-radius: 14px;
    font-size: 18px;
    font-weight: bold;
    transition: 0.3s;
    white-space: nowrap;
}

.join-trip-btn:hover {
    background-color: #dbeafe;
}

.invite-token-box {
    margin-top: 18px;
    background-color: #ebf8ff;
    border: 1px solid #bee3f8;
    border-radius: 16px;
    padding: 18px;
    text-align: center;
}

.invite-token-box span {
    display: block;
    font-size: 14px;
    color: #4a5568;
    margin-bottom: 8px;
}

.invite-token-box strong {
    display: block;
    font-size: 24px;
    letter-spacing: 2px;
    color: #1f2d3d;
    margin-bottom: 10px;
}

.invite-token-box p {
    font-size: 14px;
    color: #718096;
    line-height: 1.4;
}

@media (max-width: 600px) {
    .dashboard-actions {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .join-trip-btn,
    .add-trip-btn {
        width: 100%;
        text-align: center;
    }
}


/* =========================================================
   REISE VERLASSEN / ORGANISATOR ÜBERTRAGEN
========================================================= */

.leave-trip-form {
    margin-top: 18px;
}

.leave-trip-btn {
    width: 100%;
    background-color: #fff5f5;
    color: #b91c1c;
    border: 1px solid #fecaca;
    padding: 13px 16px;
    border-radius: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.leave-trip-btn:hover {
    background-color: #ffe5e5;
}

.trip-message {
    grid-column: 1 / -1;
    margin-bottom: 0;
}

.transfer-owner-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.transfer-owner-option {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border: 1px solid #d9e2ec;
    border-radius: 16px;
    cursor: pointer;
    transition: 0.3s;
}

.transfer-owner-option:hover {
    border-color: #3182ce;
    background-color: #ebf8ff;
}

.transfer-owner-option input {
    width: auto;
}

.transfer-owner-option img {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    object-fit: cover;
    background-color: #edf2f7;
}

.transfer-owner-option span {
    font-weight: bold;
    color: #1f2d3d;
}



/* =========================================================
   MITGLIEDER VERWALTEN / ROLLENLOGIK
========================================================= */

.manage-members-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 28px;
}

.manage-member-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    padding: 18px;
    border: 1px solid #d9e2ec;
    border-radius: 18px;
    background-color: white;
}

.manage-member-info {
    display: flex;
    align-items: center;
    gap: 14px;
}

.manage-member-info img {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    background-color: #edf2f7;
    border: 2px solid #dbeafe;
    flex-shrink: 0;
}

.manage-member-info strong {
    display: block;
    color: #1f2d3d;
    font-size: 17px;
}

.manage-member-info span {
    color: #718096;
    font-size: 14px;
}

.manage-member-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.manage-member-actions form {
    margin: 0;
}

.small-role-btn {
    border: none;
    background-color: #edf2f7;
    color: #2b6cb0;
    padding: 10px 13px;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.small-role-btn:hover {
    background-color: #dbeafe;
}

.admin-transfer-btn {
    background-color: #ebf8ff;
}

.remove-member-btn {
    background-color: #fff5f5;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.remove-member-btn:hover {
    background-color: #ffe5e5;
}

.admin-note {
    color: #718096;
    font-weight: bold;
}

.manage-members-btn {
    margin-top: 12px;
}

/* Reise verlassen */
.leave-trip-form {
    margin-top: 18px;
}

.leave-trip-btn {
    width: 100%;
    background-color: #fff5f5;
    color: #b91c1c;
    border: 1px solid #fecaca;
    padding: 13px 16px;
    border-radius: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.leave-trip-btn:hover {
    background-color: #ffe5e5;
}

.trip-message {
    grid-column: 1 / -1;
    margin-bottom: 0;
}

/* Admin übertragen */
.transfer-owner-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 24px 0;
}

.transfer-owner-option {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border: 1px solid #d9e2ec;
    border-radius: 16px;
    cursor: pointer;
    transition: 0.3s;
    background-color: white;
}

.transfer-owner-option:hover {
    border-color: #3182ce;
    background-color: #ebf8ff;
}

.transfer-owner-option input {
    width: auto;
    flex-shrink: 0;
}

.transfer-owner-option img {
    width: 48px;
    height: 48px;
    min-width: 48px;
    max-width: 48px;
    border-radius: 50%;
    object-fit: cover;
    background-color: #edf2f7;
    border: 2px solid #dbeafe;
    flex-shrink: 0;
}

.transfer-owner-option strong {
    display: block;
    font-weight: bold;
    color: #1f2d3d;
    font-size: 16px;
}

.transfer-owner-option span {
    display: block;
    color: #718096;
    font-size: 14px;
}

@media (max-width: 700px) {
    .manage-member-card {
        flex-direction: column;
        align-items: stretch;
    }

    .manage-member-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .small-role-btn {
        width: 100%;
    }
}



/* =========================================================

   EINLADUNG IN MITGLIEDER VERWALTEN

========================================================= */

.invite-management-box {

    background-color: #ebf8ff;

    border: 1px solid #bee3f8;

    border-radius: 20px;

    padding: 24px;

    margin: 28px 0;

}

.invite-management-box h2 {

    font-size: 24px;

    color: #1f2d3d;

    margin-bottom: 8px;

}

.invite-management-box p {

    color: #4a5568;

    line-height: 1.5;

    margin-bottom: 18px;

}

.invite-management-box .invite-btn {

    margin-top: 0;

}




/* =========================================================
   UNTERKÜNFTE MEHRFACH + KOSTENLOS
========================================================= */

.form-group select {
    width: 100%;
    padding: 18px;
    border: 1px solid #d9e2ec;
    border-radius: 14px;
    font-size: 17px;
    outline: none;
    background-color: white;
    transition: 0.3s;
}

.form-group select:focus {
    border-color: #3182ce;
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.15);
}

.optional-date-box {
    background-color: #f8fafc;
    border: 1px solid #d9e2ec;
    border-radius: 18px;
    padding: 22px;
}

.optional-date-box h3 {
    font-size: 20px;
    color: #1f2d3d;
    margin-bottom: 6px;
}

.optional-date-box p {
    color: #718096;
    line-height: 1.5;
    margin-bottom: 18px;
}

.checkbox-row {
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: #ebf8ff;
    border: 1px solid #bee3f8;
    border-radius: 16px;
    padding: 16px;
    cursor: pointer;
    font-weight: bold;
    color: #1f2d3d;
}

.checkbox-row input {
    width: auto;
    transform: scale(1.2);
}

.accommodation-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.accommodation-card {
    background-color: #f8fafc;
    border: 1px solid #d9e2ec;
    border-radius: 18px;
    padding: 26px;
}

.accommodation-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
}

.accommodation-card h3 {
    font-size: 24px;
    color: #1f2d3d;
    margin-bottom: 10px;
}

.accommodation-card p {
    color: #4a5568;
    margin-bottom: 14px;
}


.accommodation-date {
    display: inline-block;
    background-color: #edf2f7;
    color: #4a5568;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 16px;
}

.accommodation-meta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 18px 0;
}

.accommodation-meta span {
    color: #4a5568;
}

.accommodation-meta strong {
    color: #1f2d3d;
}

.accommodation-link {
    display: inline-block;
    margin-top: 8px;
}

@media (max-width: 700px) {
    .accommodation-title-row {
        flex-direction: column;
    }

    .free-badge {
        align-self: flex-start;
    }
}


/* =========================================================
   UNTERKUNFT BEARBEITEN
========================================================= */

.accommodation-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.secondary-small-btn {
    display: inline-block;
    background-color: #edf2f7;
    color: #2b6cb0;
    padding: 10px 16px;
    border-radius: 10px;
    font-weight: bold;
    transition: 0.3s;
}

.secondary-small-btn:hover {
    background-color: #dbeafe;
}

@media (max-width: 700px) {
    .accommodation-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .accommodation-actions a {
        width: 100%;
        text-align: center;
    }
}


/* =========================================================
   UNTERKUNFT LÖSCHEN
========================================================= */

.delete-accommodation-form {
    margin: 0;
}

.delete-accommodation-btn {
    background-color: #fff5f5;
    color: #b91c1c;
    border: 1px solid #fecaca;
    padding: 10px 16px;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.delete-accommodation-btn:hover {
    background-color: #ffe5e5;
}

@media (max-width: 700px) {
    .delete-accommodation-form,
    .delete-accommodation-btn {
        width: 100%;
    }
}

/* =========================================================
   VERBINDUNGEN
========================================================= */

.connection-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.connection-card {
    background-color: #f8fafc;
    border: 1px solid #d9e2ec;
    border-radius: 18px;
    padding: 26px;
}

.connection-title-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.connection-title-row .connection-icon {
    width: 52px;
    height: 52px;
    min-width: 52px;
    border-radius: 16px;
    background-color: #ebf8ff;
    color: #2b6cb0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
}

.connection-title-row h3 {
    font-size: 24px;
    color: #1f2d3d;
    margin-bottom: 4px;
}

.connection-title-row span {
    color: #718096;
    font-weight: bold;
}

.connection-card p {
    color: #4a5568;
    margin-bottom: 14px;
}


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

.site-footer {
    width: 100%;
    padding: 28px 20px;
    text-align: center;
    border-top: 1px solid #d9e2ec;
    background-color: #ffffff;
    color: #718096;
    font-size: 16px;
    font-weight: 600;
    margin-top: 60px;
}

.site-footer p {
    margin: 0;
}

html,
body {
    min-height: 100%;
}

body {
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}


