:root {
    --primary-orange: #f39c12;
    --dark-grey: #2c3e50;
    --light-grey: #ecf0f1;
    --success-green: #27ae60;
    --error-red: #c0392b;
    --sidebar-width: 250px;
    --header-height: 60px;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    overflow-x: hidden;
    background-color: #e0e0e0;
}

/* Hintergrundbild mit 40% Deckkraft */
body::before {
    content: "";
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: url('../../images/bg.png') no-repeat center center fixed;
    background-size: cover;
    opacity: 0.4;
    z-index: -1;
}

/* =========================================
   LAYOUT & SIDEBAR
   ========================================= */
.page-wrapper {
    display: flex;
    min-height: 100vh;
    transition: all 0.3s ease;
}

.sidebar {
    width: var(--sidebar-width);
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #878887;
    position: fixed;
    height: 100vh;
    top: 0; left: 0;
    box-shadow: 2px 0 15px rgba(0,0,0,0.5);
    z-index: 1000;
    overflow-y: auto;
    transition: transform 0.3s ease;
}

.logo-container {
    padding: 30px 20px;
    text-align: center;
    background: rgba(0,0,0,0.2);
}

.app-logo {
    max-width: 150px;
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translatey(0px); }
    50% { transform: translatey(-10px); drop-shadow(0 15px 15px rgba(0,0,0,0.4)); }
    100% { transform: translatey(0px); }
}

/* Navigation */
.nav-links { list-style: none; margin-top: 20px; }

.nav-links li a {
    display: flex; align-items: center; padding: 15px 25px;
    text-decoration: none; color: #191819; font-size: 1.1rem;
    transition: 0.3s; border-left: 4px solid transparent;
}

.nav-links li a:hover, .nav-links li a.active {
    background: rgba(255,255,255,0.05); color: var(--primary-orange);
    border-left: 4px solid var(--primary-orange); padding-left: 35px;
}

.nav-links li a i { width: 30px; font-size: 1.2rem; }

/* Zwischenüberschriften in Sidebar */
.nav-label {
    padding: 20px 25px 5px 25px;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #666;
    font-weight: bold;
    letter-spacing: 1px;
    pointer-events: none;
}

.logout-link { color: #e74c3c !important; transition: all 0.3s; }
.logout-link:hover { background: rgba(231, 76, 60, 0.1) !important; padding-left: 35px; }

/* Hamburger Menu Button (Mobile) */
.mobile-menu-toggle {
    display: none;
    position: fixed; top: 15px; left: 15px; z-index: 2000;
    background: var(--primary-orange); color: #fff;
    border: none; padding: 10px 15px; border-radius: 5px;
    font-size: 1.2rem; cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

/* Main Content */
.main-content {
    margin-left: var(--sidebar-width);
    width: auto; 
    flex: 1; padding: 0;
    display: flex; flex-direction: column;
    min-height: 100vh;
    position: relative;
    transition: margin-left 0.3s ease;
}

/* =========================================
   COMPONENTS (Header, Footer, Cards)
   ========================================= */

/* Hero Header */
.hero-section {
    width: 100%;
    height: 300px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    line-height: 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-img {
    width: 100%; height: 100%;
    object-fit: contain; object-position: center;
    display: block;
}

/* Content Container */
.content-container {
    padding: 40px;
    background: rgba(255, 255, 255, 0.85);
    margin: 30px;
    border-radius: 15px;
    backdrop-filter: blur(5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    flex: 1; 
}

/* Footer */
.site-footer {
    margin-top: auto; padding: 20px;
    background-color: var(--dark-grey); color: #bdc3c7;
    text-align: center; border-top: 4px solid var(--primary-orange);
    font-size: 0.9rem;
}
.site-footer strong { color: #fff; }

/* Alerts */
.alert { padding: 15px; border-radius: 8px; margin-bottom: 20px; font-weight: bold; }
.alert.success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert.error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* Buttons & Forms */
.btn-orange {
    background: var(--primary-orange); color: #fff; border: none;
    padding: 12px 25px; border-radius: 6px; cursor: pointer;
    font-size: 1rem; font-weight: bold; display: inline-flex;
    align-items: center; gap: 8px; transition: background 0.2s;
    text-decoration: none;
}
.btn-orange:hover { background: #e67e22; }

.btn-text-danger { color: #e74c3c; text-decoration: none; font-size: 0.8rem; cursor: pointer; border: none; background: none;}
.btn-login-small { color: var(--dark-grey); text-decoration: underline; font-size: 0.9rem; }

.form-group label { display: block; font-size: 0.9rem; color: #666; margin-bottom: 5px; font-weight: 600; }
.form-group input, .form-group textarea, .form-group select, select {
    width: 100%; padding: 12px;
    border: 1px solid #ddd; border-radius: 6px;
    font-family: inherit; font-size: 1rem;
    background: #fff;
}
.form-group input:focus, .form-group textarea:focus, select:focus {
    border-color: var(--primary-orange); outline: none;
}

/* Select Custom Arrow */
select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23333%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat; background-position: right 10px top 50%; background-size: 12px auto;
}

.form-row { display: flex; gap: 20px; margin-bottom: 15px; }
.three-cols .form-group { flex: 1; }
.full-width { width: 100%; }

/* Password Eye */
.password-wrapper { position: relative; width: 100%; }
.password-wrapper input { width: 100%; padding-right: 40px; }
.password-wrapper i {
    position: absolute; right: 15px; top: 50%; transform: translateY(-50%);
    cursor: pointer; color: #999; font-size: 1rem; transition: color 0.2s;
}
.password-wrapper i:hover { color: var(--primary-orange); }

/* =========================================
   SECTIONS & MODULES
   ========================================= */

/* Welcome Section */
.welcome-wrapper { display: flex; gap: 40px; align-items: flex-start; }
.team-column { flex: 0 0 280px; display: flex; flex-direction: column; gap: 25px; }
.text-column { flex: 1; font-size: 1.05rem; line-height: 1.6; }
.text-column h2 { font-size: 2rem; margin-bottom: 10px; color: var(--dark-grey); }

/* Profile Card */
.profile-card {
    background: #fff; border-radius: 12px; overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08); transition: transform 0.3s ease;
    border-bottom: 4px solid var(--primary-orange);
}
.profile-card:hover { transform: translateY(-5px); }
.card-img { width: 100%; height: 250px; object-fit: cover; display: block; }
.card-info { padding: 15px; text-align: center; }
.card-info h3 { margin: 0; font-size: 1.2rem; color: var(--dark-grey); }
.card-info .role {
    display: block; margin-top: 5px; font-size: 0.9rem;
    color: var(--primary-orange); font-weight: bold; text-transform: uppercase;
    letter-spacing: 1px;
}

/* Communication Section */
.comm-grid { display: flex; gap: 30px; justify-content: space-between; }
.comm-card {
    flex: 1; background: #fff; padding: 30px 20px;
    border-radius: 12px; text-align: center; box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease; border-top: 4px solid transparent;
}
.comm-card:hover {
    transform: translateY(-5px); border-top: 4px solid var(--primary-orange);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}
.comm-icon { font-size: 3.5rem; margin-bottom: 20px; display: inline-block; }
.comm-list { list-style: none; margin-top: 15px; padding: 0; }
.comm-list li { padding: 5px 0; color: var(--dark-grey); }

/* Mitglieder Grid */
.members-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px; padding-bottom: 40px;
}
.member-card {
    background: #fff; border-radius: 12px; overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05); transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative; border-bottom: 4px solid transparent;
}
.member-card:hover {
    transform: translateY(-7px); box-shadow: 0 15px 30px rgba(0,0,0,0.15);
    border-bottom: 4px solid var(--primary-orange);
}
.member-img-wrapper {
    height: 180px; background: #ecf0f1; display: flex;
    justify-content: center; align-items: center; position: relative;
}
.member-img {
    width: 120px; height: 120px; border-radius: 50%;
    object-fit: contain; background-color: #fff; border: 3px solid #fff;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1); padding: 5px;
}
.role-badge {
    position: absolute; top: 15px; right: 15px; padding: 5px 10px;
    border-radius: 20px; font-size: 0.75rem; font-weight: bold;
    color: #fff; text-transform: uppercase; box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
.role-badge.admin { background-color: #e74c3c; }
.role-badge.moderator { background-color: var(--primary-orange); }
.member-info { padding: 20px; text-align: center; }
.member-detail {
    display: flex; align-items: center; justify-content: center;
    gap: 10px; margin-bottom: 8px; color: #555; font-size: 0.95rem;
}
.member-detail i { color: var(--primary-orange); width: 20px; }

/* POI Cards */
.poi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 25px; }
.poi-card {
    background: #fff; border-radius: 12px; overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05); display: flex; flex-direction: column;
    transition: transform 0.2s; border-top: 4px solid var(--dark-grey);
}
.poi-card:hover { transform: translateY(-5px); border-top-color: var(--primary-orange); }
.poi-icon {
    background: #f8f9fa; height: 60px; display: flex;
    align-items: center; justify-content: center; font-size: 1.5rem;
    color: var(--primary-orange); border-bottom: 1px solid #eee;
}
.poi-content { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.poi-meta { margin-top: auto; font-size: 0.8rem; color: #aaa; border-top: 1px solid #eee; padding-top: 10px; }
.gps-link { text-decoration: none; display: inline-block; }
.gps-badge {
    color: var(--success-green); font-weight: bold; font-size: 0.85rem; padding: 5px 10px;
    border: 1px solid var(--success-green); border-radius: 20px; transition: all 0.3s ease;
    background-color: #fff; display: flex; align-items: center; gap: 5px;
}
.gps-link:hover .gps-badge {
    background-color: var(--success-green); color: #fff;
    box-shadow: 0 3px 8px rgba(39, 174, 96, 0.3); transform: translateY(-2px);
}

/* Tour Cards */
.tour-list { display: flex; flex-direction: column; gap: 20px; max-width: 900px; }
.tour-card {
    background: #fff; border-radius: 10px; box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    display: flex; overflow: hidden; position: relative;
    border-left: 5px solid var(--dark-grey); transition: transform 0.2s;
}
.tour-card.joined { border-left-color: var(--success-green); background: #fcfcfc; }
.tour-card:hover { transform: translateX(5px); }
.tour-date-box {
    background: #ecf0f1; width: 90px; display: flex; flex-direction: column;
    align-items: center; justify-content: center; padding: 15px;
    color: var(--dark-grey); border-right: 1px solid #eee;
}
.tour-date-box .day { font-size: 1.8rem; font-weight: bold; }
.tour-date-box .month { text-transform: uppercase; font-size: 0.9rem; font-weight: bold; color: var(--primary-orange); }
.tour-details { flex: 1; padding: 20px; }
.tour-meta-grid { display: flex; flex-wrap: wrap; gap: 15px; margin-bottom: 15px; font-size: 0.9rem; color: #555; }
.meta-item i { color: var(--primary-orange); margin-right: 5px; }
.meta-item.full-width { width: 100%; }
.participant-info {
    font-size: 0.85rem; color: var(--dark-grey); background: #f9f9f9;
    padding: 5px 10px; border-radius: 5px; display: inline-block;
}
.blur-overlay {
    background: #f9f9f9; padding: 20px; border-radius: 5px;
    text-align: center; color: #999; border: 1px dashed #ddd;
}
.blurred-lines {
    height: 10px; background: #e0e0e0; margin: 10px auto;
    border-radius: 5px; width: 80%; opacity: 0.5;
}
.tour-action {
    width: 140px; display: flex; flex-direction: column; align-items: center;
    justify-content: center; border-left: 1px solid #eee; padding: 10px;
}
.btn-join {
    background: var(--primary-orange); color: #fff; text-decoration: none;
    padding: 10px 20px; border-radius: 20px; font-weight: bold;
    font-size: 0.9rem; transition: background 0.2s;
}
.btn-join:hover { background: #d35400; }
.status-badge {
    color: var(--success-green); font-weight: bold; display: flex;
    flex-direction: column; align-items: center; gap: 5px; margin-bottom: 10px;
}

/* Profile Page Layout */
.profile-layout { display: flex; gap: 30px; align-items: flex-start; }
.profile-sidebar-card {
    flex: 0 0 250px; background: #fff; padding: 30px 20px;
    border-radius: 12px; text-align: center; box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-top: 4px solid var(--primary-orange);
}
.profile-avatar-large {
    width: 150px; height: 150px; border-radius: 50%;
    object-fit: cover; border: 4px solid #f0f0f0; margin-bottom: 15px;
}
.role-tag {
    background: #ecf0f1; color: var(--dark-grey); padding: 4px 10px;
    border-radius: 15px; font-size: 0.8rem; display: inline-block;
    font-weight: bold; margin-top: 5px;
}
/* Upload Button Hidden Input */
input[type="file"] { display: none; }
.custom-file-upload {
    border: 1px solid #ccc; display: inline-block; padding: 6px 12px;
    cursor: pointer; border-radius: 20px; font-size: 0.8rem;
    margin-top: -10px; margin-bottom: 20px; background: #fff; transition: all 0.2s;
}
.custom-file-upload:hover { background: #eee; }
.profile-settings-area { flex: 1; display: flex; flex-direction: column; gap: 20px; }
.setting-box {
    background: #fff; padding: 25px; border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.03);
}
.setting-box h3 {
    margin: 0 0 20px 0; font-size: 1.1rem; border-bottom: 1px solid #eee;
    padding-bottom: 10px; color: var(--dark-grey);
}

/* Admin Dashboard & Member View */
.admin-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 15px; }
.admin-btn {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    background: var(--dark-grey); color: #fff; text-decoration: none;
    padding: 20px; border-radius: 8px; transition: transform 0.2s, background 0.2s;
}
.admin-btn:hover { background: var(--primary-orange); transform: translateY(-3px); }
.admin-btn i { font-size: 2rem; margin-bottom: 10px; }
.admin-btn span { font-weight: bold; }

.admin-split-view {
    display: flex; gap: 30px; height: calc(100vh - 200px); min-height: 500px;
}
.member-list-sidebar {
    flex: 0 0 25%; background: #fff; border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05); display: flex;
    flex-direction: column; overflow: hidden;
}
.list-header {
    padding: 15px 20px; background: #f8f9fa; border-bottom: 1px solid #eee;
    font-weight: bold; color: var(--dark-grey);
}
.list-scroll-area { flex: 1; overflow-y: auto; }
.user-list-item {
    display: flex; justify-content: space-between; align-items: center;
    padding: 15px 20px; border-bottom: 1px solid #f0f0f0;
    text-decoration: none; color: #333; transition: background 0.2s;
}
.user-list-item:hover { background: #f9f9f9; }
.user-list-item.active { background: #fff3e0; border-left: 4px solid var(--primary-orange); }
.u-name { font-weight: 600; display: block; }
.u-role-badge {
    font-size: 0.7rem; padding: 2px 6px; border-radius: 4px;
    text-transform: uppercase; color: #fff; margin-top: 3px; display: inline-block;
}
.u-role-badge.admin { background: #e74c3c; }
.u-role-badge.moderator { background: var(--primary-orange); }
.u-role-badge.member { background: #95a5a6; }
.member-editor {
    flex: 1; background: #fff; border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05); padding: 30px; overflow-y: auto;
}
.editor-header {
    display: flex; justify-content: space-between; align-items: center;
    border-bottom: 2px solid #eee; padding-bottom: 20px; margin-bottom: 20px;
}

/* =========================================
   ZUSÄTZLICHE ADMIN STYLES
   ========================================= */

/* Blurring für sensitive Felder bei Moderatoren */
.blur-field input, .blur-field textarea {
    filter: blur(4px); /* Starke Unschärfe */
    transition: filter 0.3s ease;
}

/* Deaktiviert Blurring bei Hover für Admins (optional) */
.blur-field:hover input, .blur-field:hover textarea {
    filter: blur(3px); /* Leichte Unschärfe bei Hover */
}

/* Sorgt dafür, dass der Container den Blur-Effekt erbt, falls nötig, aber primär für Input */
.blur-field {
    pointer-events: auto; /* Erlaubt Klicks */
}

/* =========================================
   GALLERY & UPLOADER MODULE
   ========================================= */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    padding-bottom: 50px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.2s;
    background: #fff;
    height: 250px;
}

.gallery-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.2);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
}

.gallery-item:hover img { transform: scale(1.05); }

.gallery-overlay {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.4); display: flex;
    justify-content: center; align-items: center;
    opacity: 0; transition: opacity 0.3s;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay i { color: #fff; font-size: 2rem; text-shadow: 0 2px 5px rgba(0,0,0,0.5); }

/* Badges & Overlays in Gallery */
.gallery-badges {
    position: absolute; top: 10px; left: 10px; z-index: 10; pointer-events: none;
}
.badge-internal {
    background: rgba(44, 62, 80, 0.8); color: #fff; font-size: 0.7rem;
    padding: 3px 8px; border-radius: 4px; text-transform: uppercase;
    font-weight: bold; backdrop-filter: blur(2px);
}
.delete-img-form {
    position: absolute; top: 10px; right: 10px; z-index: 20;
}
.btn-delete-img {
    background: rgba(231, 76, 60, 0.8); color: #fff; border: none;
    width: 30px; height: 30px; border-radius: 50%; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.9rem; transition: background 0.2s;
}
.btn-delete-img:hover { background: #c0392b; }
.gallery-info-overlay {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: #fff; padding: 20px 10px 10px 10px;
    font-size: 0.85rem; opacity: 0; transition: opacity 0.3s;
}
.gallery-item:hover .gallery-info-overlay { opacity: 1; }

/* Lightbox */
.lightbox {
    display: none; position: fixed; z-index: 3000; left: 0; top: 0;
    width: 100%; height: 100%; background-color: rgba(0,0,0,0.9);
    justify-content: center; align-items: center; padding: 20px;
}
.lightbox-content {
    max-width: 95%; max-height: 95vh; border-radius: 4px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5); animation: zoomIn 0.3s;
}
@keyframes zoomIn { from {transform:scale(0.8); opacity:0;} to {transform:scale(1); opacity:1;} }
.close-lightbox {
    position: absolute; top: 20px; right: 30px; color: #fff;
    font-size: 40px; font-weight: bold; cursor: pointer; z-index: 3001;
    transition: color 0.2s;
}
.close-lightbox:hover { color: var(--primary-orange); }

/* Upload Modal Modern */
.upload-area {
    border: 2px dashed #cbd5e1; border-radius: 12px;
    padding: 3rem 1.5rem; text-align: center; cursor: pointer;
    transition: all 0.2s; background: #f8fafc; margin-bottom: 20px;
}
.upload-area:hover, .upload-area.dragover {
    border-color: var(--primary-orange); background: #fff8e1;
}
.file-item {
    background: white; border: 1px solid #e2e8f0; padding: 15px;
    border-radius: 8px; margin-top: 10px; box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    transition: all 0.5s ease; opacity: 1; max-height: 100px;
    overflow: hidden; position: relative;
}
.file-item.finished-hide { opacity: 0; max-height: 0; margin-top: 0; padding: 0; border: none; }
.file-header {
    display: flex; justify-content: space-between; align-items: center;
    font-size: 0.9rem; margin-bottom: 8px; color: #334155; font-weight: 600;
}
.filename-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 80%; }
.progress-track {
    height: 6px; background: #e2e8f0; border-radius: 3px; overflow: hidden; width: 100%;
}
.progress-fill {
    height: 100%; background: var(--primary-orange); width: 0%;
    transition: width 0.2s linear;
}
.progress-fill.error { background: var(--error-red); }
.progress-fill.success { background: var(--success-green); }
.status-text { font-size: 0.75rem; color: #64748b; margin-top: 5px; text-align: right; }

/* Modal General */
.modal {
    display: none; 
    position: fixed; 
    z-index: 1000; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: hidden; /* Wichtig, um Scrollen zu verhindern */
    background-color: rgba(0,0,0,0.7); /* Transparenz für Overlay */
}
.modal-content {
    background-color: #fefefe;
    margin: 10% auto; 
    padding: 30px;
    border: 1px solid #888;
    width: 80%; 
    max-width: 500px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}
.close-btn {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}
.close-btn:hover,
.close-btn:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}
.modal-content .form-group {
    margin-bottom: 15px;
}
.modal-content input[type="text"], 
.modal-content textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}
/* ENDE KORRIGIERTER MODAL STYLES */


/* =========================================
   MOBILE RESPONSIVENESS
   ========================================= */
@media (max-width: 900px) {
    .welcome-wrapper { flex-direction: column; }
    .team-column { flex: 1; width: 100%; flex-direction: row; flex-wrap: wrap; justify-content: center; }
    .profile-card { width: 100%; max-width: 300px; }
    .admin-split-view { flex-direction: column; height: auto; }
    .member-list-sidebar { width: 100%; flex: 0 0 auto; height: 300px; margin-bottom: 20px; } 
}

@media (max-width: 768px) {
    /* 1. Sidebar verstecken & Trigger anzeigen */
    .sidebar { transform: translateX(-100%); }
    .sidebar.active { transform: translateX(0); }
    .mobile-menu-toggle { display: block; }
    
    /* 2. Main Content Reset */
    .main-content { margin-left: 0; padding-top: 50px; }
    
    /* 3. Grid & Spalten auflösen */
    .comm-grid, .form-row, .form-row.three-cols, .tour-card, .profile-layout {
        flex-direction: column; gap: 15px;
    }
    
    .content-container { margin: 15px; padding: 20px; }
    
    /* 4. Tour Cards optimieren */
    .tour-date-box { 
        width: 100%; flex-direction: row; gap: 10px; 
        border-right: none; border-bottom: 1px solid #eee; padding: 10px;
    }
    .tour-action { 
        width: 100%; border-left: none; border-top: 1px solid #eee; 
        flex-direction: row; gap: 20px; padding: 20px; justify-content: space-between;
    }
    .tour-meta-grid { flex-direction: column; gap: 8px; }
    
    /* 5. Profile & Admin Anpassungen */
    .profile-sidebar-card { width: 100%; }
    .hero-section { height: 200px; }
    
    /* 6. Formulare lesbarer machen */
    .form-group label { font-size: 1rem; }
    .btn-orange { width: 100%; justify-content: center; padding: 15px; }
}

/* =========================================
   POI & FORM STYLES (Repariert)
   ========================================= */

/* --- POI CARD NEU --- */
.poi-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.poi-content h4 {
    font-size: 1.4rem;
    margin-bottom: 20px; /* Mehr Abstand nach unten */
    color: var(--dark-grey);
    font-weight: 700;
}

/* Der Info Kasten */
.poi-info-box {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 20px;
    overflow: hidden;
}

.poi-form-container {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    
    /* HIER GEÄNDERT: Mehr Abstand nach unten */
    margin-bottom: 60px; 
    
    border-left: 5px solid var(--primary-orange);
    position: relative; /* Verhindert Layout-Fehler */
    z-index: 10;        /* Liegt über dem Grid */
}

.info-header {
    background: #e9ecef;
    padding: 8px 15px;
    font-size: 0.8rem;
    font-weight: bold;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-body {
    padding: 15px;
}

.info-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
    color: #333;
    font-size: 1rem;
}

.info-row:last-child {
    margin-bottom: 0;
}

.info-row i {
    color: var(--primary-orange);
    width: 20px;
    text-align: center;
}

.poi-desc {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Toggle Logik für das Formular */
#addPoiForm {
    margin-top: 20px;
    transition: all 0.3s ease;
    display: block; 
}

/* Hinzugefügt: Klasse für das Standardmäßig eingeklappte Formular */
#addPoiForm.hidden {
    display: none;
}

/* Formular Layout Grid */
.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    align-items: flex-start;
}

/* Spezifische Klasse für 3-Spalten Layout (Straße, PLZ, Ort) */
.form-row.three-cols .form-group {
    flex: 1; /* Alle 3 Spalten gleich breit */
}

/* Input Felder Styling */
.form-group {
    margin-bottom: 15px;
    width: 100%; /* Wichtig damit Inputs den Container füllen */
}

.form-group.full-width {
    width: 100%;
    flex: 100%;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 5px;
    font-weight: 600;
}

.form-group input, 
.form-group textarea, 
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    background-color: #fff;
    box-sizing: border-box; /* Verhindert dass Padding die Breite sprengt */
}

.form-group input:focus, 
.form-group textarea:focus, 
.form-group select:focus {
    border-color: var(--primary-orange);
    outline: none;
    box-shadow: 0 0 0 3px rgba(243, 156, 18, 0.1);
}

/* Mobile Anpassung für das Formular */
@media (max-width: 768px) {
    .form-row, 
    .form-row.three-cols {
        flex-direction: column; /* Untereinander auf Handy */
        gap: 10px;
    }
}

/* Star Rating Styling */
.rating-stars {
    display: inline-block;
    cursor: pointer;
    font-size: 1.5rem; /* Größer für Klickbarkeit */
}
.rating-stars .star {
    color: #ccc; /* Leer */
    transition: color 0.2s;
}
.rating-stars.rated .star {
    color: #ff9800; /* Gefüllt */
}
.rating-stars .star:hover,
.rating-stars .star:hover ~ .star {
    color: #fdd835; /* Hover-Farbe */
}
.rating-summary {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}
.rating-summary .stars-static {
    font-size: 1.2rem;
    color: #ff9800;
}
.rating-summary .star-empty {
    color: #ccc;
}