:root {
    --primary-color: #4CAF50;
    --secondary-color: #45a049;
    --danger-color: #f44336;
    --text-color: #333;
    --background-color: #f9f9f9;
    --border-color: #ddd;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    padding-top: 4.5rem;
}

header {
    background-color: white;
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    background-color: white;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

h2 {
    margin-bottom: 1rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.logo-icon {
    font-size: 1.8rem;
    transition: all 0.3s ease;
}

.logo-text {
    transition: opacity 0.3s ease, width 0.3s ease, margin 0.3s ease;
}

nav.scrolled {
    padding: 0rem 2rem;
}

nav.scrolled .logo {
    font-size: 1.2rem;
}

nav.scrolled .logo-icon {
    font-size: 1.4rem;
}

nav.scrolled .logo-text {
    opacity: 0;
    width: 0;
    margin: 0;
    overflow: hidden;
}

.nav-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.main-header {
    margin-bottom: 2rem;
    display: flex;
    justify-content: flex-start;
}

#newSuggestionBtn {
    font-size: 1.1rem;
    padding: 0.75rem 1.5rem;
    background-color: rgba(76, 175, 80, 0.05);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 25px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

#newSuggestionBtn::before {
    content: '🍽️';
    font-size: 1.4rem;
}

#newSuggestionBtn:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    background-color: var(--primary-color);
    color: white;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: var(--secondary-color);
}

.btn-danger {
    background-color: var(--danger-color);
}

.btn-danger:hover {
    background-color: #d32f2f;
}

.hidden {
    display: none !important;
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1001;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch; /* Für iOS */
}

.modal-content {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh; /* Reduziert von 90vh */
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
    -webkit-overflow-scrolling: touch; /* Für iOS */
    overscroll-behavior: contain; /* Verhindert ungewolltes Scrollen des Hintergrunds */
    transform: translate3d(0, 0, 0); /* Hardware-Beschleunigung aktivieren für flüssigeres Scrollen */
}

/* Stelle sicher, dass alle scrollbaren Inhalte korrekt scrollen können */
.modal-content, 
.brings-with-overview-content,
.suggestions-list,
.likes-user-list {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y; /* Erlaubt vertikales Scrollen */
}

.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: transparent;
}

.modal-content::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background-color: rgba(0, 0, 0, 0.3);
}

form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

input, textarea, select {
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 16px;
    font-size: max(16px, 1rem);
    -webkit-text-size-adjust: 100%;
}

/* Verhindern des automatischen Zooms bei Fokus auf iOS */
input, textarea, select {
    font-size: 16px; /* Mindestgröße, bei der iOS nicht zoomt */
    font-size: max(16px, 1rem); /* Verwendet den größeren Wert */
    -webkit-text-size-adjust: 100%; /* Verhindert Textgrößenanpassung */
}

/* Zusätzliche iOS-spezifische Verhaltensanpassungen */
@supports (-webkit-touch-callout: none) {
    /* iOS-spezifische Styles */
    input, textarea, select {
        -webkit-appearance: none; /* Entfernt Standard-Styling von iOS */
        border-radius: 0; /* Verhindert Rundungen, die auf iOS zoomen könnten */
    }
    
    /* Erlaube allgemeines Scrollen, verhindere nur das Zoomen */
    body {
        touch-action: pan-x pan-y;
    }
}

/* Stelle sicher, dass die modalen Inhalte scrollbar sind */
.modal-content, .brings-with-overview-content {
    -webkit-overflow-scrolling: touch; /* Für besseres Scrollverhalten auf iOS */
    overflow-y: auto;
    touch-action: pan-y;
}

.suggestions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.suggestion-card {
    background-color: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: relative;
    min-height: 150px;
    display: flex;
    flex-direction: column;
    padding-bottom: 7rem;
    height: 100%;
}

.suggestion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.author-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.author-avatar {
    width: 32px;
    height: 32px;
    background: #2c3e50;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
}

.suggestion-author {
    font-size: 0.9em;
    color: #666;
    font-weight: 500;
}

.suggestion-text {
    margin: 0.5rem 0;
    flex-grow: 1;
    line-height: 1.5;
    word-wrap: break-word;
    overflow-wrap: break-word;
    margin-bottom: 2rem;
}

.suggestion-card img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.suggestion-card p {
    margin: 0.5rem 0 1.5rem;
    flex-grow: 1;
}

.suggestion-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.suggestion-actions {
    position: absolute;
    bottom: 0.5rem;
    left: 0.5rem;
    right: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: white;
    padding: 0.5rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    flex-wrap: nowrap;
    overflow: hidden;
}

.brings-with-container {
    flex: 1;
    margin-right: 1.5rem;
    min-width: 0; /* Erlaubt Schrumpfen unter Mindestinhaltsgröße */
    max-width: calc(100% - 105px); /* Noch mehr Platz für brings-with-container */
    overflow: visible; /* Geändert zu visible statt hidden */
    white-space: nowrap;
    text-overflow: clip;
}

.like-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 0.25rem 0.5rem 0.25rem 0.5rem;
    border-radius: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    flex-shrink: 0;
    flex-basis: auto;
    width: auto;
    min-width: 60px;
    max-width: none;
    z-index: 2;
    margin-right: 0.5rem;
}

.like-button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0.25rem;
    transition: transform 0.2s;
    min-width: 1.5rem;
    text-align: center;
}

.like-button:hover {
    transform: scale(1.1);
}

.like-button[data-liked="true"] {
    color: #ff4444;
}

.like-button[data-liked="true"]:hover {
    color: #aaa;
}

.like-button[data-liked="false"]:hover {
    color: #ff4444;
}

.likes-count {
    font-size: 0.9em;
    color: #666;
    cursor: pointer;
    padding: 0.25rem 0.5rem 0.25rem 0.75rem;
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-right: 0.25rem;
}

.likes-count::before {
    content: '👥';
    font-size: 0.9em;
}

.likes-count:hover {
    background-color: rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

/* Desktop optimierter Like-Container */
@media (min-width: 769px) {
    .likes-count:hover::after {
        content: attr(title);
        position: absolute;
        bottom: 100%;
        left: 50%;
        transform: translateX(-50%);
        padding: 5px 10px;
        background: rgba(0, 0, 0, 0.8);
        color: white;
        border-radius: 4px;
        font-size: 14px;
        white-space: nowrap;
        z-index: 1000;
    }
    
    .likes-count {
        padding: 0.3rem 0.75rem;
        background-color: rgba(0, 0, 0, 0.05);
        min-width: auto;
        width: auto;
        flex-shrink: 0;
    }
    
    .like-container {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.25rem 0.5rem;
        margin-right: 0.5rem;
        min-width: auto;
        max-width: none;
        width: auto;
        flex-wrap: nowrap;
        justify-content: flex-end;
    }
    
    .brings-with-container {
        flex: 0 1 auto;
        margin-right: 1rem;
        max-width: 70%;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .brings-with {
        min-width: 100px;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        display: inline-block;
    }
    
    .suggestion-actions {
        display: flex;
        justify-content: space-between;
        flex-wrap: nowrap;
        overflow: visible;
    }
    
    .suggestions-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    nav {
        flex-direction: column;
        padding: 1rem;
    }

    nav.scrolled {
        flex-direction: row;
        padding: 0rem 1rem;
    }

    .nav-buttons {
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
        gap: 0.5rem;
    }

    nav.scrolled .nav-buttons {
        width: auto;
        justify-content: flex-end;
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 0.25rem;
    }

    .nav-buttons .btn {
        padding: 0.75rem 1.25rem;
        font-size: 1rem;
        min-width: 120px;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .nav-buttons .btn-danger {
        padding: 0.75rem 1.25rem;
    }

    nav.scrolled .nav-buttons .btn {
        padding: 0.5rem 0.75rem;
        min-width: auto;
        height: auto;
        font-size: 0.9rem;
    }
    
    nav.scrolled .nav-buttons .btn-danger {
        padding: 0.5rem 0.75rem;
    }

    .main-header {
        margin: 2.5rem 0 1.5rem 0;
    }

    #newSuggestionBtn {
        width: 100%;
        font-size: 1rem;
        padding: 0.75rem 1rem;
    }

    .category-input-group {
        margin-bottom: 2.5rem;
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .category-input-group select {
        width: 100%;
        height: 48px;
        font-size: 1rem;
    }
    
    .category-input-group button {
        width: 100% !important;
        height: 60px !important;
        font-size: 1.2rem !important;
        margin-top: 4rem !important;
        padding: 1rem 1.5rem !important;
        font-weight: 600 !important;
        border-radius: 8px !important;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1) !important;
    }

    .modal {
        align-items: flex-start; /* Verhindert Zentrierung, was bei manchen Modals Probleme verursachen kann */
    }
    
    .modal-content {
        margin: 5vh auto;
        max-height: 85vh;
        padding: 1.25rem;
    }
    
    .modal-buttons {
        margin-top: 2rem;
    }
    
    .modal-buttons .btn {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
        min-width: 140px;
        height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .modal-buttons .btn-cancel {
        padding: 0.75rem 1.5rem;
    }

    .suggestion-card {
        padding-bottom: 5rem;
    }

    .suggestion-actions {
        bottom: 0.75rem;
        left: 0.75rem;
        right: 0.75rem;
        padding: 0.75rem;
        flex-wrap: nowrap;
        justify-content: space-between;
        gap: 0.5rem;
    }
    
    .brings-with-container {
        margin-right: 0.5rem;
        flex-shrink: 1;
        min-width: 0;
        max-width: 65%;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }
    
    .brings-with-btn, 
    .brings-with {
        font-size: 0.8em;
        padding: 4px 8px;
        white-space: nowrap;
        overflow: visible;
        text-overflow: clip;
        max-width: 100%;
        display: inline-block;
    }
    
    .like-container {
        gap: 0.25rem;
        padding: 0.4rem 0.6rem;
        flex-shrink: 0;
        flex-basis: auto;
        min-width: 80px;
        max-width: none;
        margin-left: auto;
        margin-right: 0.5rem;
        border-radius: 20px;
        background-color: rgba(255, 255, 255, 0.95);
        box-shadow: 0 1px 4px rgba(0,0,0,0.15);
    }
    
    .like-button {
        font-size: 1.1rem;
        min-width: 1.25rem;
    }
    
    .likes-count {
        font-size: 0.8em;
        padding: 0.3rem 0.5rem;
        gap: 0.25rem;
        white-space: nowrap;
    }

    .suggestion-header {
        margin-bottom: 0.75rem;
    }
    
    .suggestion-author {
        font-size: 0.85em;
    }
    
    .delete-btn {
        font-size: 1.3rem;
        padding: 0.4rem;
    }

    .suggestion-text {
        margin: 0.5rem 0 2.5rem 0;
    }

    .category-section {
        margin-top: 2rem;
        padding: 1.5rem;
    }
    
    .category-title {
        font-size: 1.3rem;
        margin-bottom: 1.25rem;
    }
    
    .suggestions-grid {
        gap: 1rem;
    }

    .author-avatar {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }
    
    .author-info {
        gap: 0.5rem;
    }

    .brings-with-overview {
        max-height: 85vh;
    }
}

.category-section {
    margin-top: 3rem;
    padding: 2rem;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.category-section:first-child {
    margin-top: 2rem;
}

.category-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
}

.likes-user-list {
    max-height: 60vh;
    overflow-y: auto;
    padding: 1rem;
}

.likes-user-item {
    padding: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.likes-user-item:last-child {
    border-bottom: none;
}

.modal-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 1.5rem;
}

.btn-cancel {
    background-color: #dc3545 !important;
    color: white !important;
    border: 1px solid #dc3545 !important;
    opacity: 0.9 !important;
}

.btn-cancel:hover {
    opacity: 1 !important;
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.2) !important;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.category-input-group {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1rem;
}

select {
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    flex: 1;
}

.brings-with-btn {
    background: none;
    border: 2px solid #4CAF50;
    cursor: pointer;
    padding: 4px 12px;
    font-size: 0.9em;
    color: #4CAF50;
    border-radius: 20px;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.brings-with-btn:hover {
    background-color: #4CAF50;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(76, 175, 80, 0.2);
}

.brings-with {
    color: #4CAF50;
    font-size: 0.9em;
    padding: 0.4rem 0.6rem;
    border-radius: 4px;
    background-color: rgba(76, 175, 80, 0.12);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    min-width: 120px; /* Deutlich erhöht */
    width: auto;
}

.brings-with-remove {
    background: none;
    border: none;
    color: #4CAF50;
    cursor: pointer;
    padding: 0 4px;
    font-size: 0.8em;
    opacity: 0.7;
    transition: all 0.2s;
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.brings-with-remove:hover {
    opacity: 1;
    background-color: rgba(76, 175, 80, 0.1);
}

@media (max-width: 768px) {
    .brings-with-btn,
    .brings-with {
        font-size: 0.85em;
        padding: 6px 14px;
    }
    
    .brings-with-remove {
        width: 24px;
        height: 24px;
        font-size: 0.9em;
    }
}

.delete-btn {
    background-color: rgba(0, 0, 0, 0.05);
    border: none;
    border-radius: 20px;
    padding: 0.4rem 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    font-size: 1rem;
    color: #666;
}

.delete-btn:hover {
    background-color: rgba(255, 0, 0, 0.1);
    transform: translateY(-1px);
    color: #ff4444;
}

@media (max-width: 768px) {
    .delete-btn {
        padding: 0.5rem 0.85rem;
        font-size: 1.1rem;
    }
}

.brings-with-section {
    margin-bottom: 2rem;
    padding: 1rem;
    background-color: rgba(76, 175, 80, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(76, 175, 80, 0.2);
}

.brings-with-section h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.brings-with-list {
    list-style: none;
    padding: 0;
}

.brings-with-list li {
    padding: 0.75rem;
    background-color: white;
    border-radius: 6px;
    margin-bottom: 0.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.suggestion-category {
    font-size: 0.9em;
    color: var(--primary-color);
    font-weight: 500;
}

.suggestion-text {
    color: var(--text-color);
    line-height: 1.4;
}

@media (max-width: 768px) {
    .brings-with-section {
        padding: 0.75rem;
    }
    
    .brings-with-section h3 {
        font-size: 1.1rem;
    }
    
    .brings-with-list li {
        padding: 0.5rem;
    }
}

.suggestion-form {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.suggestion-form textarea {
    min-height: 120px;
}

.toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    pointer-events: none;
}

.toast {
    background-color: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: slideIn 0.3s ease-out;
    pointer-events: all;
    max-width: 400px;
    border-left: 4px solid;
}

.toast-error {
    border-left-color: #ff4444;
}

.toast-success {
    border-left-color: var(--primary-color);
}

.toast-icon {
    font-size: 1.2rem;
}

.toast-message {
    color: var(--text-color);
    font-size: 0.95rem;
    line-height: 1.4;
    flex: 1;
}

.toast-close {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 0.25rem;
    font-size: 1.1rem;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.toast-close:hover {
    opacity: 1;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.toast.removing {
    animation: slideOut 0.3s ease-in forwards;
}

@media (max-width: 768px) {
    .toast-container {
        bottom: 1rem;
        right: 1rem;
        left: 1rem;
    }
    
    .toast {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
}

/* Brings With Overview Modal */
.brings-with-overview {
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    margin: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: white;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 1;
}

.brings-with-overview-content {
    flex: 1;
    overflow-y: auto;
    padding: 0 1.5rem 1.5rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(76, 175, 80, 0.6) transparent;
}

.brings-with-overview-content::-webkit-scrollbar {
    width: 8px;
}

.brings-with-overview-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
}

.brings-with-overview-content::-webkit-scrollbar-thumb {
    background-color: rgba(76, 175, 80, 0.6);
    border-radius: 4px;
}

/* Scroll-Indikator für Mobile */
@media (max-width: 768px) {
    .brings-with-overview {
        max-height: 80vh;
        margin: 4rem auto;
        width: 95%;
        border-radius: 12px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    }
    
    .brings-with-overview-content {
        scrollbar-width: thin;
        scrollbar-color: rgba(76, 175, 80, 0.8) rgba(0, 0, 0, 0.1);
        position: relative;
        padding-bottom: 3rem;
    }
    
    .brings-with-overview-content::-webkit-scrollbar {
        width: 6px;
    }
    
    .brings-with-overview-content::-webkit-scrollbar-thumb {
        background-color: rgba(76, 175, 80, 0.8);
    }
}

/* Scroll-Hinweis am unteren Rand */
.scroll-indicator {
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    display: block;
    text-align: center;
    padding: 0.75rem;
    background: linear-gradient(to bottom, rgba(255,255,255,0.85), rgba(76, 175, 80, 0.35) 60%);
    color: #4CAF50;
    font-weight: 600;
    font-size: 0.95rem;
    pointer-events: none;
    border-top: 1px dashed rgba(76, 175, 80, 0.3);
    margin-top: 1rem;
    transition: opacity 0.3s ease;
    z-index: 10;
    box-shadow: 0 -4px 10px rgba(255, 255, 255, 0.95);
    text-shadow: 0 0 5px white;
}

.scroll-indicator.hidden {
    opacity: 0;
    visibility: hidden;
}

.btn-icon {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    color: #666;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.btn-icon:hover {
    color: #333;
    background-color: rgba(0, 0, 0, 0.05);
    transform: rotate(90deg);
}

.modal-header h2 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.5rem;
    font-weight: 600;
}

.brings-with-stats {
    display: flex;
    gap: 2rem;
    margin: 1.5rem 0;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2c3e50;
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
}

.brings-with-user-section {
    margin-bottom: 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    overflow: hidden;
}

.user-header {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: #2c3e50;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 1rem;
}

.user-header h3 {
    margin: 0;
    flex-grow: 1;
}

.item-count {
    color: #666;
    font-size: 0.9rem;
}

.suggestions-list {
    padding: 1rem;
}

.suggestion-item {
    display: flex;
    padding: 0.75rem;
    border-bottom: 1px solid #eee;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.suggestion-category {
    display: inline-block;
    font-size: 0.8rem;
    color: #4CAF50;
    background: rgba(76, 175, 80, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-weight: 500;
    align-self: flex-start;
}

.suggestion-text {
    display: block;
    font-weight: 500;
    line-height: 1.4;
    color: #2c3e50;
}

.suggestion-meta {
    margin-left: 1rem;
}

.likes-count {
    font-size: 0.9rem;
    color: #666;
}

/* Responsive Anpassungen */
@media (max-width: 600px) {
    .brings-with-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .suggestion-item {
        padding: 1rem;
    }
    
    .suggestion-category {
        font-size: 0.75rem;
        padding: 0.2rem 0.6rem;
    }
    
    .suggestion-text {
        font-size: 0.95rem;
    }
}

.category-select-container {
    display: flex;
    gap: 1rem;
    align-items: center;
    width: 100%;
}

#newCategoryBtn {
    height: 40px;
    min-width: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .category-select-container {
        flex-direction: column;
        gap: 0.5rem;
        margin-top: 0.25rem;
        align-items: flex-start;
    }
    
    .category-select-container select {
        width: 100%;
        text-align: left;
    }
    
    #newCategoryBtn {
        width: 100%;
        height: 44px !important;
        font-size: 0.9rem !important;
        padding: 0.6rem 1rem !important;
        font-weight: 500 !important;
        margin-top: 0.5rem !important;
        border-radius: 6px !important;
        box-shadow: 0 1px 3px rgba(0,0,0,0.1) !important;
    }
}

/* Update-Benachrichtigung */
.update-notification {
    position: fixed;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(76, 175, 80, 0.9);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    font-weight: 500;
    font-size: 0.9rem;
    transition: bottom 0.3s ease-in-out;
    z-index: 1500;
    text-align: center;
}

.update-notification.show {
    bottom: 20px;
}

@media (max-width: 768px) {
    .update-notification {
        width: 80%;
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
    
    .update-notification.show {
        bottom: 15px;
    }
}

/* Mitbringen-Bestätigung */
.brings-with-confirmation {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    max-width: 500px;
    width: 90%;
    margin: auto;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.brings-with-confirmation .modal-header {
    background-color: var(--primary-color);
    color: #ffffff;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brings-with-confirmation .modal-header h2 {
    color: #ffffff;
    margin: 0;
}

.brings-with-confirmation .modal-content {
    padding: 1.5rem;
}

.brings-with-confirmation p {
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.1rem;
}

.brings-with-confirmation .modal-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

@media (max-width: 768px) {
    .brings-with-confirmation {
        width: 85%;
        margin: 4rem auto;
    }
    
    .brings-with-confirmation .modal-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .brings-with-confirmation .btn {
        width: 100%;
        padding: 0.75rem;
        font-size: 1rem;
    }
}

/* Desktop-spezifische Anpassungen für bessere Darstellung */
@media (min-width: 1024px) {
    .suggestion-card {
        padding-bottom: 6rem;
    }
    
    .suggestion-actions {
        bottom: 1rem;
        left: 1rem;
        right: 1rem;
    }
    
    .brings-with-container {
        max-width: 65%;
    }
    
    .suggestion-text {
        margin-bottom: 1.5rem;
    }
    
    .modal-content {
        max-width: 600px;
    }
    
    .brings-with-overview {
        max-width: 900px;
    }
} 