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

    body {
        font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        min-height: 100vh;
        min-width: 290px;
        color: #333;
    }

    .scroll-wrapper {
        scroll-snap-type: y proximity;
        padding-top: max(20px, env(safe-area-inset-top));
        height: 100dvh; /* Dynamic Viewport Height */
        overflow-y: auto;
    }

    /* Innerer Container für den Content */
    .container {
        max-width: 800px;
        margin: 0 auto;
        padding: 20px;
        box-sizing: border-box;
        min-width: 0;
    }
    
    /* Snap-Punkte */
    .block {
        scroll-snap-align: start; /* Standard: Am Anfang snappen */
        /* margin-bottom: 20px; */
    }

    .snap-start {
        scroll-snap-align: start;
    }

    .snap-end {
        scroll-snap-align: end;
    }

    .snap-none {
        scroll-snap-align: none;
    }

    .snap-both {
        scroll-snap-align: start;
    }

    /* Snap-Punkte innerhalb des Containers */
    .snap-point {
        scroll-snap-align: start;
        height: 1px; /* Unsichtbar, aber wirksam */
        width: 100%;
        pointer-events: none;
    }
    
    .snap-point.bottom {
        scroll-snap-align: end;
    }
    
    h1 {
        font-size: 24px;
        margin-bottom: 20px;
        color: #2c3e50;
    }

    /* Privacy Dialog */
    .dialog-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        display: none;
        justify-content: center;
        align-items: center;
        z-index: 1000;
    }

    .dialog {
        background: white;
        color: #333333 !important;
        border-radius: 15px;
        padding: 30px;
        max-width: 600px;
        width: 90%;
        max-height: 80vh;
        overflow-y: auto;
        position: relative;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
        /* Wichtig: Browser Dark Mode überschreiben */
        color-scheme: light;
        -webkit-color-scheme: light;
    }

    .dialog h3 {
        color: #2d3748 !important; /* !important um Browser-Overrides zu überschreiben */
        margin-bottom: 20px;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .dialog p {
        color: #333333 !important;
        margin: 8px 0;
        line-height: 1.6;
    }

    .dialog li {
        color: #333333 !important;
        margin: 5px 0;
        line-height: 1.5;
    }

    .dialog strong {
        color: #2d3748 !important;
    }

    .dialog small {
        color: #666666 !important;
    }

    .dialog-close {
        position: absolute;
        top: 15px;
        right: 20px;
        background: none;
        border: none;
        font-size: 24px;
        cursor: pointer;
        color: #666 !important;
        padding: 5px;
    }

    .dialog-close:hover {
        color: #333 !important;
    }

    .privacy-section {
        background: #f8f9fa;
        color: #333333 !important;
        border-radius: 8px;
        border-left: 4px solid #667eea;
        padding: 15px;
        margin-bottom: 20px;
    }

    .privacy-section h4 {
        color: #2d3748 !important;
        margin-bottom: 10px;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .privacy-section p {
        color: #333333 !important;
        margin: 8px 0;
        line-height: 1.6;
    }

    .privacy-section ul {
        margin: 10px 0;
        padding-left: 20px;
    }

    .privacy-section li {
        color: #333333 !important;
        margin: 5px 0;
        line-height: 1.5;
    }

    /* QR-Sektion und Social-Links */
    .teilen-content {
        display: flex;
        align-items: center;
        gap: 20px;
    }
    
    .qr-section {
        flex-shrink: 0;
    }

    .qr-section img {
        border-radius: 8px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }

    .social-links {
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .social-links .stats-btn {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        text-align: left;
        padding: 8px 12px;
    }

    .social-links .stats-btn .btn-icon {
        display: inline-block;
        width: 20px;
        text-align: center;
        margin-right: 8px;
        flex-shrink: 0;
    }

    .social-links .stats-btn .btn-text {
        flex: 1;
    }

    /* Kategorie-Auswahl */
    .category-selector {
        background: white;
        border-radius: 12px;
        padding: 20px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        margin-bottom: 20px;
    }

    .category-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 15px;
        margin-top: 15px;
        margin-bottom: 15px;
    }

    .category-item {
        position: relative;
        background: white;
        border: 2px solid #e9ecef;
        border-radius: 12px;
        padding: 15px;
        cursor: pointer;
        transition: all 0.3s ease;
        user-select: none;
    }

    .category-item:hover {
        border-color: #3498db;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(52, 152, 219, 0.15);
    }

    .category-item.selected {
        border-color: #3498db;
        background: linear-gradient(135deg, #3498db, #2980b9);
        color: white;
    }

    .category-item.priority {
        border-color: #f39c12;
        background: linear-gradient(135deg, #f39c12, #e67e22);
    }

    .category-item input[type="checkbox"] {
        display: none;
    }

    .category-item .category-name {
        font-weight: 600;
        font-size: 1.1em;
        margin-bottom: 5px;
    }

    .category-item .category-desc {
        font-size: 0.9em;
        opacity: 0.8;
    }

    .priority-star {
        position: absolute;
        top: 10px;
        right: 10px;
        color: #f39c12;
        font-size: 1.2em;
        cursor: pointer;
        opacity: 0.3;
        transition: all 0.3s ease;
    }

    .priority-star.active {
        opacity: 1;
        transform: scale(1.2);
    }

    /* Location Header mit Button */
    .location-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 15px;
    }

    .location-header h3 {
        margin: 0;
        color: white;
    }


    .location-activate-btn {
        background: #3498db;
        color: white;
        border: none;
        width: 100%;
        text-align: center;
        padding: 12px;
        margin-bottom: 15px;
        border-radius: 6px;
        cursor: pointer;
        font-size: 0.9em;
        font-weight: 500;
        transition: background 0.3s ease;
    }

    .location-activate-btn:hover {
        background: #2980b9;
    }

    /* such button und automatig toggle zusammen */
    .search-controls {
        display: flex;
        gap: 12px;
        align-items: center;
        margin-top: 12px;
    }
    
    .search-button {
        width: 100%;
        padding: 14px;
        background: linear-gradient(45deg, #27ae60, #2ecc71);
        color: white;
        border: none;
        border-radius: 8px;
        font-size: 16px;
        font-weight: 600;
        cursor: pointer;
        transition: background 0.2s ease;
    }

    .search-button:hover {
        background: linear-gradient(45deg, #219a52, #27ae60);
    }

    .search-button:disabled {
        background: #ccc;
        cursor: not-allowed;
    }

    .auto-toggle {
        display: flex;
        align-items: center;
        gap: 10px;
        background: #f0f0f0;
        border-radius: 8px;
        padding: 0 12px;
        height: 48px; /* Gleich wie .search-button (14px padding oben + unten + 20px Texthöhe) */
        font-size: 16px;
        font-weight: 500;
        cursor: pointer;
        user-select: none;
    }

    .auto-toggle input[type="checkbox"] {
        display: none;
    }

    .toggle-switch {
        position: relative;
        width: 36px;
        height: 20px;
        background: #ccc;
        border-radius: 10px;
        transition: background 0.3s;
    }

    .toggle-switch::after {
        content: "";
        position: absolute;
        width: 16px;
        height: 16px;
        background: white;
        border-radius: 50%;
        top: 2px;
        left: 2px;
        transition: transform 0.3s;
    }

    input[type="checkbox"]:checked + .toggle-switch {
        background: #2196f3;
    }

    input[type="checkbox"]:checked + .toggle-switch::after {
        transform: translateX(16px);
    }

    /* Neue Block-Styles */
    .manual-location-block,
    .contact-info-block {
        background: white;
        border-radius: 12px;
        padding: 10px 15px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        margin-bottom: 20px;
    }

    .manual-location-block > div:first-child {
        margin-bottom: 8px;
        font-size: 0.85em;
    }

    /* Ensure parent containers accommodate expansion */
    .manual-location-block {
        position: relative;
        overflow: visible; /* Allow suggestions to extend outside */
    }

    .current-location-block {
        background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
        border-radius: 12px;
        color: white;
        padding: 20px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        margin-bottom: 20px;
    }


    /* Manueller Standort Styles */
    .location-input-container {
        position: relative;
        display: flex;
        gap: 12px;
        margin-bottom: 0;
        padding: 10px 0;
    }

    /* Ensure the section container doesn't clip the suggestions */
    #manualLocationSection {
        overflow: visible;
        position: relative;
        z-index: 1;
    }

    #manualLocationSection .section-content {
        overflow: visible;
    }

    .location-input {
        flex: 1;
        padding: 12px 16px;
        border: 2px solid #e9ecef;
        border-radius: 8px;
        font-size: 16px;
        transition: border-color 0.3s ease;
    }

    .location-input:focus {
        outline: none;
        border-color: #3498db;
    }

    .location-input:disabled {
        background: #f8f9fa;
        color: #6c757d;
        cursor: not-allowed;
    }

    .location-search-btn {
        padding: 12px 20px;
        background: linear-gradient(45deg, #3498db, #2980b9);
        color: white;
        border: none;
        border-radius: 8px;
        font-size: 16px;
        font-weight: 600;
        cursor: pointer;
        transition: background 0.2s ease;
        white-space: nowrap;
    }

    .location-search-btn:hover:not(:disabled) {
        background: linear-gradient(45deg, #2980b9, #1f4e79);
    }

    .location-search-btn:disabled {
        background: #ccc;
        cursor: not-allowed;
    }

    .location-suggestions {
        background: white;
        border: 1px solid #dee2e6;
        border-radius: 8px;
        max-height: 80vh; /* Limit to 80% of viewport height */
        overflow-y: auto; /* Only add scroll if exceeding 80% viewport */
        box-shadow: 0 8px 16px rgba(0,0,0,0.15); /* Stronger shadow to indicate it's floating */
        
        /* Positioning */
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        margin-top: 2px;
        z-index: 1000;
    
        /* Animation for smooth expansion */
        opacity: 0;
        transform: translateY(-10px);
        transition: all 0.3s ease;
    }

    .location-suggestions[style*="display: block"] {
        opacity: 1;
        transform: translateY(0);
    }

    /* Push down content below when suggestions appear */
    .location-suggestions + * {
        margin-top: 10px; /* Add spacing below suggestions */
    }
    
    .suggestion-item {
        padding: 12px 16px;
        cursor: pointer;
        border-bottom: 1px solid #f1f3f4;
        transition: background 0.2s ease;
        word-wrap: break-word;
        line-height: 1.4;
    }

    .suggestion-item:hover {
        background: #f8f9fa;
    }

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

    /* Aktueller Standort Styles */
    .current-location-display {
        background: #f8f9fa;
        border-radius: 8px;
        padding: 16px;
    }

    .location-status {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 8px;
    }

    .location-icon {
        font-size: 18px;
    }

    .location-text {
        font-weight: 500;
        color: #2c3e50;
    }

    .location-accuracy {
        font-size: 0.9em;
        color: #6c757d;
    }

    .map-controls {
        display: flex;
        gap: 12px;
        justify-content: center;
    }

    /* Kontakt & Co Styles */
    .contact-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 16px;
        margin-bottom: 20px;
    }

    .contact-item {
        display: flex;
        align-items: flex-start;
        gap: 12px;
        padding: 16px;
        background: #f8f9fa;
        border-radius: 8px;
        transition: all 0.3s ease;
    }

    .contact-item:hover {
        background: #e9ecef;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }

    .contact-icon {
        font-size: 24px;
        line-height: 1;
    }

    .contact-content {
        flex: 1;
    }

    .contact-title {
        font-weight: 600;
        color: #2c3e50;
        margin-bottom: 4px;
    }

    .contact-desc {
        font-size: 0.9em;
        color: #6c757d;
        margin-bottom: 8px;
    }

    .contact-link {
        color: #3498db;
        text-decoration: none;
        font-size: 0.9em;
        font-weight: 500;
    }

    .contact-link:hover {
        text-decoration: underline;
    }

    .stats-btn {
        background: #3498db;
        color: white;
        border: none;
        padding: 6px 12px;
        border-radius: 6px;
        cursor: pointer;
        font-size: 0.9em;
        font-weight: 500;
        transition: background 0.3s ease;
    }

    .stats-btn:hover {
        background: #2980b9;
    }

    /* Statistiken Display */
    .stats-display {
        background: #f0f0f0;
        border-radius: 8px;
        padding: 16px;
        margin-top: 16px;
    }

    .stats-display h4 {
        margin: 0 0 12px 0;
        color: #2c3e50;
    }

    .stats-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 12px;
    }

    .stat-item {
        text-align: center;
        background: white;
        padding: 12px;
        border-radius: 6px;
        box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    }

    .stat-value {
        font-size: 24px;
        font-weight: 600;
        color: #3498db;
        margin-bottom: 4px;
    }

    .stat-label {
        font-size: 0.8em;
        color: #6c757d;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    
    /* Status-Anzeige */
    .search-status {
        background: white;
        border-radius: 8px;
        padding: 12px 16px;
        margin-bottom: 10px;
        display: block;
        box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    }

    .search-status.active {
        display: block;
    }

    .status-phase {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 14px;
        color: #666;
        margin-bottom: 4px;
    }

    .status-phase:last-child {
        margin-bottom: 0;
    }

    .status-phase.active {
        color: #2196f3;
        font-weight: 500;
    }

    .status-phase.done {
        color: #4caf50;
    }

    .spinner {
        display: inline-block;
        width: 14px;
        height: 14px;
        border: 2px solid #f3f3f3;
        border-top: 2px solid #2196f3;
        border-radius: 50%;
        animation: spin 0.8s linear infinite;
    }

    @keyframes spin {
        0% { transform: rotate(0deg); }
        100% { transform: rotate(360deg); }
    }

    /* POI Liste */
    .poi-results {
        background: white;
        border-radius: 12px;
        padding: 10px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        display: none;
        margin-bottom: 10px;
    }

    .poi-results.active {
        display: block;
    }

    .poi-list {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .poi-slot {
        min-height: 60px;
        border-radius: 8px;
        overflow: hidden;
        position: relative;
    }

    .skeleton-loader {
        height: 60px;
        background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
        background-size: 200% 100%;
        animation: loading-shimmer 1.5s infinite;
    }

    .skeleton-loader.dim {
        opacity: 0.5;
    }

    @keyframes loading-shimmer {
        0% { background-position: 200% 0; }
        100% { background-position: -200% 0; }
    }

    .poi-item {
        padding: 12px 16px;
        border: 1px solid #e0e0e0;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        background: white;
        opacity: 0;
        transform: translateY(4px);
        animation: poi-reveal 0.3s ease-out forwards;
    }

    @keyframes poi-reveal {
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .poi-info {
        flex: 1;
    }

    .poi-name {
        font-weight: 500;
        color: #2c3e50;
        margin-bottom: 2px;
    }

    .poi-category {
        font-size: 12px;
        color: #7f8c8d;
    }

    .poi-meta {
        text-align: right;
    }

    .poi-distance {
        font-weight: 500;
        color: #2196f3;
        font-size: 14px;
    }

    .poi-direction {
        font-size: 12px;
        color: #95a5a6;
    }

    /* Server Health Indicator */
    .server-health {
        position: fixed;
        bottom: 20px;
        right: 20px;
        background: white;
        padding: 12px 16px;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        font-size: 12px;
        display: none;
    }

    .server-health.debug-mode {
        display: block;
    }

    .server-status {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-bottom: 4px;
    }

    .status-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: #4caf50;
    }

    .status-dot.warning {
        background: #ff9800;
    }

    .status-dot.error {
        background: #f44336;
    }

    /* Error Message */
    .error-message {
        background: #fee;
        border: 1px solid #fcc;
        color: #c00;
        padding: 12px 16px;
        border-radius: 8px;
        margin-bottom: 16px;
        display: none;
    }

    .error-message.active {
        display: block;
    }

    /* AI Description Styles - zur index.html hinzufügen */
    .ai-description-container {
        background: #f8f9fa;
        border-radius: 12px;
        padding: 16px;
        margin-bottom: 16px;
        border-left: 4px solid #2196f3;
    }

    .ai-description-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 12px;
    }

    .ai-description-header h4 {
        margin: 0;
        color: #2c3e50;
        font-size: 16px;
    }

    .ai-persona-selector select {
        padding: 4px 8px;
        border-radius: 6px;
        border: 1px solid #ddd;
        font-size: 12px;
    }

    .ai-description-content {
        margin: 12px 0;
        line-height: 1.6;
    }

    .ai-description-text {
        color: #444;
        font-size: 14px;
    }

    .ai-loading {
        color: #666;
        font-style: italic;
        text-align: center;
        padding: 20px;
    }

    .ai-error {
        color: #d32f2f;
        text-align: center;
        padding: 12px;
    }

    .ai-description-footer {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-top: 12px;
        font-size: 12px;
    }

    .ai-refresh-btn {
        background: #2196f3;
        color: white;
        border: none;
        padding: 6px 12px;
        border-radius: 6px;
        cursor: pointer;
        font-size: 12px;
    }

    .ai-refresh-btn:hover {
        background: #1976d2;
    }

    .ai-provider-info {
        color: #666;
        font-size: 11px;
    }

    .poi-item {
        position: relative;
    }

    /* Geolocation Dialog Styles */
    .location-section {
        color: #333333 !important;
        margin-bottom: 20px;
        padding: 15px;
        background: #f8f9fa;
        border-radius: 8px;
        border-left: 4px solid #667eea;
    }

    .location-section h4 {
        color: #2d3748 !important;
        margin-bottom: 10px;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .location-section p {
        color: #333333 !important;
        margin: 8px 0;
        line-height: 1.6;
    }

    .location-section li {
        color: #333333 !important;
    }

    .permission-status {
        color: inherit !important; /* Behält die spezifischen Farben bei */
        padding: 12px 16px;
        border-radius: 8px;
        margin-bottom: 16px;
        font-weight: 500;
    }

    .permission-granted {
        background: #d4edda !important;
        color: #155724 !important;
        border: 1px solid #c3e6cb;
    }

    .permission-denied {
        background: #f8d7da !important;
        color: #721c24 !important;
        border: 1px solid #f5c6cb;
    }

    .permission-prompt {
        background: #d1ecf1 !important;
        color: #0c5460 !important;
        border: 1px solid #bee5eb;
    }

    .instruction-steps {
        margin-top: 12px;
    }

    .instruction-steps strong {
        color: #495057 !important;
        display: block;
        margin-top: 12px;
    }

    .instruction-steps ol {
        margin: 8px 0 16px 20px;
        padding-left: 10px;
    }

    .instruction-steps li {
        color: #333333 !important;
        margin: 4px 0;
        line-height: 1.5;
    }

    #dialogButtons {
        display: flex;
        gap: 12px;
        margin-top: 20px;
    }

    #dialogButtons .button {
        flex: 1;
        padding: 12px 20px;
        background: linear-gradient(45deg, #667eea, #764ba2);
        color: white !important; /* Weiße Schrift auf farbigem Hintergrund ist OK */
        border: none;
        border-radius: 8px;
        font-size: 16px;
        font-weight: 600;
        cursor: pointer;
        transition: transform 0.2s;
    }

    #dialogButtons .button:hover {
        transform: translateY(-2px);
    }

    #dialogButtons .button-secondary {
        background: #6c757d;
        color: white !important;
    }
    
    /* No Results Message */
    .no-results-message {
        text-align: center;
        padding: 40px 20px;
        color: #6c757d;
    }

    .no-results-icon {
        font-size: 48px;
        margin-bottom: 16px;
        opacity: 0.5;
    }

    .no-results-text {
        font-size: 18px;
        font-weight: 500;
        margin-bottom: 8px;
        color: #495057;
    }

    .no-results-subtext {
        font-size: 14px;
        color: #6c757d;
    }

    .no-results-popup {
        text-align: center;
        padding: 10px;
    }

    .no-results-popup strong {
        color: #dc3545;
    }

    /* Cache Monitor Styles */
    .cache-monitor {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 90%;
        max-width: 800px;
        max-height: 80vh;
        background: white;
        border-radius: 12px;
        box-shadow: 0 10px 40px rgba(0,0,0,0.2);
        z-index: 10000;
        display: flex;
        flex-direction: column;
    }

    .cache-monitor-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 20px;
        border-bottom: 1px solid #e0e0e0;
    }

    .cache-monitor-header h4 {
        margin: 0;
        color: #2c3e50;
    }

    .cache-monitor-close {
        background: none;
        border: none;
        font-size: 24px;
        cursor: pointer;
        color: #666;
    }

    .cache-monitor-tabs {
        display: flex;
        gap: 10px;
        padding: 10px 20px;
        background: #f8f9fa;
        border-bottom: 1px solid #e0e0e0;
    }

    .tab-btn {
        padding: 8px 16px;
        background: transparent;
        border: none;
        border-radius: 6px;
        cursor: pointer;
        font-size: 14px;
        transition: all 0.3s;
    }

    .tab-btn.active {
        background: white;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }

    .tab-content {
        display: none;
        padding: 20px;
        overflow-y: auto;
        flex: 1;
    }

    .tab-content.active {
        display: block;
    }

    .cache-stats-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 15px;
        margin-bottom: 20px;
    }

    .cache-stat {
        text-align: center;
        padding: 15px;
        background: #f8f9fa;
        border-radius: 8px;
    }

    .cache-stat .stat-value {
        font-size: 24px;
        font-weight: bold;
        color: #2196f3;
    }

    .cache-stat .stat-label {
        font-size: 12px;
        color: #666;
        margin-top: 5px;
    }

    .cache-section {
        margin-bottom: 20px;
    }

    .cache-section h5 {
        margin: 0 0 10px 0;
        color: #495057;
    }

    .cache-dist-item,
    .cache-activity-item {
        display: flex;
        justify-content: space-between;
        padding: 8px 12px;
        background: #f8f9fa;
        border-radius: 4px;
        margin-bottom: 4px;
    }

    .cache-entry {
        border: 1px solid #e0e0e0;
        border-radius: 6px;
        padding: 10px;
        margin-bottom: 8px;
        position: relative;
    }

    .cache-entry-header {
        display: flex;
        justify-content: space-between;
        margin-bottom: 5px;
    }

    .cache-entry-key {
        font-family: monospace;
        font-size: 12px;
        color: #666;
    }

    .cache-entry-size {
        font-weight: bold;
        color: #2196f3;
    }

    .cache-entry-delete {
        position: absolute;
        top: 10px;
        right: 10px;
        background: none;
        border: none;
        cursor: pointer;
        font-size: 16px;
    }

    .cache-monitor-footer {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 15px 20px;
        border-top: 1px solid #e0e0e0;
        background: #f8f9fa;
    }

    .cache-monitor-toggle {
        position: fixed;
        bottom: 80px;
        right: 20px;
        width: 50px;
        height: 50px;
        border-radius: 50%;
        background: #2196f3;
        color: white;
        border: none;
        font-size: 20px;
        cursor: pointer;
        box-shadow: 0 2px 8px rgba(0,0,0,0.2);
        z-index: 9999;
    }

    .cache-controls {
        display: flex;
        gap: 10px;
        margin-bottom: 15px;
    }

    .cache-controls button {
        padding: 8px 16px;
        background: #2196f3;
        color: white;
        border: none;
        border-radius: 6px;
        cursor: pointer;
        font-size: 14px;
    }

    .cache-controls button:hover {
        background: #1976d2;
    }

    /* Responsive Anpassungen für neue Blöcke */
    @media (max-width: 768px) {
        .header h1 {
            font-size: 2em;
        }
        
        .container {
            padding: 15px;
        }
        
        .category-grid {
            grid-template-columns: repeat(2, 1fr);
        }
        
        .location-input-container {
            flex-direction: column;
        }
        
        .location-search-btn {
            width: 100%;
        }
        
        .contact-grid {
            grid-template-columns: 1fr;
        }
        
        .map-controls {
            flex-wrap: wrap;
        }
        
        .stats-grid {
            grid-template-columns: repeat(2, 1fr);
        }

        .teilen-content {
            flex-direction: column;
            align-items: center;
            gap: 15px;
        }

        .social-links {
            width: 100%;
        }

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

        .cache-monitor {
            width: 95%;
            max-height: 90vh;
        }
        
        /* dark modus fixes */
        .dialog {
            /* Noch expliziter für mobile Geräte */
            background: white !important;
            color: #333333 !important;
        }
    
        .dialog * {
            color: inherit; /* Erbt die explizite Farbe vom parent */
        }
    
        /* Nur Elemente mit spezifischen Farben überschreiben */
        .dialog h3,
        .dialog h4,
        .dialog p:not(.permission-granted):not(.permission-denied):not(.permission-prompt),
        .dialog li {
            color: #333333 !important;
        }

        .location-suggestions {
            /* On mobile, you might want some limit */
            max-height: 60vh; /* Limit to 60% on mobile to leave room for keyboard */
            overflow-y: auto;
            -webkit-overflow-scrolling: touch;
        }
    
        .suggestion-item {
            padding: 14px 16px; /* Larger touch targets */
            min-height: 44px;
        }
    }

    /* ===== SAFARI SPECIFIC FIXES ===== */
    @supports (-webkit-appearance: none) {
        .dialog {
            -webkit-text-fill-color: #333333;
            -webkit-color-scheme: light;
        }
    
        .dialog h3,
        .dialog h4,
        .dialog p,
        .dialog li {
            -webkit-text-fill-color: inherit;
        }
    }

    /* ===== FORCE LIGHT MODE FOR DIALOGS ===== */
    /* Diese Lösung erzwingt Light Mode für alle Dialog-Elemente */
    .dialog-overlay {
        color-scheme: light;
        -webkit-color-scheme: light;
    }

    .dialog-overlay * {
        color-scheme: light;
        -webkit-color-scheme: light;
    }
    
    .header.compact {
      padding: 10px 20px;
      flex-direction: row;
      align-items: center;
    }

    .header.compact .header-icon img {
      width: 32px;
      height: 32px;
    }

    .header.compact .header-text h1 {
      font-size: 1.2em;
      margin-bottom: 0;
    }

    .header.compact .header-text p {
      display: none;
    }
        
    /* CSS für zusammenklappbare Sektionen */
    /* styles.css */
    .collapsible-section,
    .section-header {
      background: white;
      border-radius: 12px;
      margin-bottom: 10px;
      overflow: hidden;
    }

    #categoriesSection:not(.active) + #statusUndErgebnis + #mapSection {
      margin-top: -20px;
    }
    
    .collapsible-section h3 {
      padding: 12px 15px;
      margin: 0;
      cursor: pointer;
      display: flex;
      align-items: center;
      color: #495057;
      background: #f8f9fa;
      border-bottom: 1px solid #e9ecef;
    }

    .collapsible-section h3::after {
      content: '−';
      margin-left: auto;
      font-size: 1.5em;
    }

    .collapsible-section.collapsed h3::after {
      content: '+';
    }

    .collapsible-section.collapsed .section-content {
      display: none;
    }

    /* styles.css */
    /*
    .poi-results {
      margin-bottom: 30px; Abstand hinzufügen
    }
    */
    
    @media (max-width: 480px) {
        .category-grid {
            grid-template-columns: 1fr;
        }
        .search-controls {
            flex-direction: column;
            align-items: stretch;
        }
        .auto-toggle {
            justify-content: center;
            width: 100%;
        }
        
        .stats-grid {
            grid-template-columns: 1fr;
        }
        
        .map-icon {
            font-size: 48px;
        }
        
        .map-text {
            font-size: 20px;
        }
        
        .map-subtext {
            font-size: 14px;
        }

        .location-suggestions {
            max-height: 50vh; /* Even smaller on very small screens */
        }
        
    }


/* keine POI gefunden */
    .comfort-message {
        background-color: #f8f9fa;
        border-radius: 12px;
        padding: 15px;
        margin-top: 20px;
        border-left: 4px solid #4a90e2;
    }
    
    .comfort-icon {
        font-size: 24px;
        text-align: center;
        margin-bottom: 10px;
    }
    
    .comfort-text {
        text-align: center;
        font-style: italic;
        color: #6c757d;
        margin-bottom: 15px;
    }
    
    .comfort-actions {
        display: flex;
        gap: 10px;
        justify-content: center;
    }
    
    .comfort-actions button {
        background: #4a90e2;
        color: white;
        border: none;
        padding: 8px 16px;
        border-radius: 20px;
        cursor: pointer;
        font-size: 14px;
        transition: background 0.3s;
    }
    
    .comfort-actions button:hover {
        background: #3a7bc8;
    }

    .no-results-message {
        text-align: center;
        padding: 20px;
        background: #f9f9f9;
        border-radius: 12px;
        margin: 20px 0;
        box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    }

    .no-results-icon {
        font-size: 48px;
        margin-bottom: 15px;
    }

    .no-results-text {
        font-size: 18px;
        font-weight: bold;
        margin-bottom: 10px;
    }

    .no-results-subtext {
        color: #666;
        margin-bottom: 15px;
    }

    .suggestions {
        text-align: left;
        max-width: 300px;
        margin: 0 auto 20px;
        padding-left: 20px;
    }

    .suggestions li {
        margin-bottom: 8px;
    }

    .motivation {
        font-style: italic;
        margin: 20px 0;
        color: #6c757d;
        border-top: 1px dashed #dee2e6;
        padding-top: 15px;
    }

    .actions {
        display: flex;
        gap: 10px;
        justify-content: center;
        flex-wrap: wrap;
    }

    .action-button {
        background: #4a90e2;
        color: white;
        border: none;
        padding: 10px 20px;
        border-radius: 30px;
        cursor: pointer;
        font-size: 14px;
        transition: background 0.3s;
    }

    .action-button:hover {
        background: #3a7bc8;
        transform: translateY(-2px);
    }
    
    /* gespeicherte auf oder zugeklappte bereiche */
    .section .section-content {
        transition: max-height 0.3s ease;
        overflow: hidden;
    }

    .section.collapsed .section-content {
        max-height: 0;
        display: none;
    }

    .section.collapsed .toggle-icon {
        transform: rotate(-90deg);
    }
    
    /* WakeLock Indicator */
    .wakelock-indicator {
        position: absolute;
        top: -4px;
        right: -4px;
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background: #4CAF50;
        border: 2px solid rgba(255, 255, 255, 0.8);
        box-shadow: 0 0 4px rgba(0,0,0,0.3);
        display: none;
        z-index: 10;
    }

    .header-icon {
        position: relative; /* Für absolute Positionierung des Indicators */
    }

    /* Für kompakten Header */
    .header.compact .wakelock-indicator {
        top: -2px;
        right: -2px;
        width: 8px;
        height: 8px;
    }
    
    /* KI-Design neu */
    /* styles.css */
    .ai-description-block {
        background: #f8f9fa;
        border-radius: 12px;
        padding: 15px;
        margin-bottom: 20px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    }

    .ai-controls {
        display: flex;
        gap: 10px;
        margin-bottom: 15px;
        flex-wrap: wrap;
    }

    .ai-persona-selector {
        flex-grow: 1;
        min-width: 150px;
    }

    .ai-persona-selector select {
        width: 100%;
        padding: 8px 12px;
        border: 1px solid #ced4da;
        border-radius: 20px;
        background-color: white;
        font-size: 0.9em;
        appearance: none;
        background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
        background-repeat: no-repeat;
        background-position: right 10px center;
        background-size: 16px;
    }

    .ai-refresh-btn {
        background: #e9ecef;
        border: none;
        border-radius: 20px;
        padding: 8px 15px;
        font-size: 0.85em;
        cursor: pointer;
        display: flex;
        align-items: center;
        gap: 5px;
        white-space: nowrap;
    }

    .ai-description-content {
        background: white;
        border-radius: 10px;
        padding: 15px;
        min-height: 120px;
        box-shadow: inset 0 0 5px rgba(0,0,0,0.05);
    }

    .ai-placeholder {
        text-align: center;
        padding: 20px;
        color: #6c757d;
    }

    .ai-placeholder .ai-icon {
        font-size: 2.5em;
        margin-bottom: 10px;
        opacity: 0.5;
    }

    .ai-footer {
        margin-top: 10px;
        text-align: right;
        font-size: 0.8em;
        color: #6c757d;
    }

    /* POI Hervorhebung */
    .poi-item {
        transition: all 0.3s ease;
        cursor: pointer;
        position: relative;
    }

    .poi-item.active {
        background: linear-gradient(135deg, #007bff20, #28a74520);
        border-left: 4px solid #007bff;
        box-shadow: 0 2px 8px rgba(0,123,255,0.2);
        transform: translateY(-1px);
    }

    .poi-item.active .poi-name {
        color: #007bff;
        font-weight: 600;
    }

    .poi-item.active .poi-distance {
        color: #28a745;
    }

    /* Responsive Anpassungen */
    @media (max-width: 480px) {
        .ai-controls {
            flex-direction: column;
        }
    
        .ai-refresh-btn {
            width: 100%;
            justify-content: center;
        }
    }

    /* komprimierter header */
    /* Header Toggle Funktionalität */
    .header {
        transition: all 0.5s ease-in-out;
        position: relative;
        user-select: none; /* Text nicht auswählbar beim Klicken */
    }

    .header:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    }

    .header.compact {
        padding: 10px 20px;
        flex-direction: row;
        align-items: center;
        cursor: pointer;
    }

    .header.compact:hover {
        background: rgba(255, 255, 255, 0.15);
    }

    .header.compact .header-icon img {
        width: 32px;
        height: 32px;
    }

    .header.compact .header-text h1 {
        font-size: 1.2em;
        margin-bottom: 0;
    }

    .header.compact .header-text p {
        display: none;
    }

    /* Toggle-Hint für visuelles Feedback */
    .header-toggle-hint {
        position: absolute;
        top: 8px;
        right: 8px;
        font-size: 12px;
        opacity: 0.6;
        transition: opacity 0.3s ease;
        pointer-events: none;
    }

    .header:hover .header-toggle-hint {
        opacity: 1;
    }

    .header.compact .header-toggle-hint {
        top: 50%;
        right: 12px;
        transform: translateY(-50%);
        font-size: 14px;
    }

    /* Animationen für sanfte Übergänge */
    .header .header-icon,
    .header .header-text {
        transition: all 0.5s ease-in-out;
    }

    .header .header-text h1 {
        transition: font-size 0.5s ease-in-out, margin 0.5s ease-in-out;
    }

    .header .header-text p {
        transition: opacity 0.3s ease-in-out;
    }

    /* Hover-Effekte für bessere Interaktivität */
    .header.compact::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 20px;
        opacity: 0;
        transition: opacity 0.3s ease;
        pointer-events: none;
    }

    .header.compact:hover::before {
        opacity: 1;
    }

    /* Accessibility - Focus Styles */
    .header:focus {
        outline: 2px solid rgba(255, 255, 255, 0.5);
        outline-offset: 4px;
    }

    /* Mobile Anpassungen */
    @media (max-width: 768px) {
        .header h1 {
            font-size: 2em;
        }
    
        .header.compact .header-text h1 {
            font-size: 1.1em;
        }
    
        .header-toggle-hint {
            font-size: 10px;
        }
    
        .header.compact .header-toggle-hint {
            font-size: 12px;
        }
    }

    @media (max-width: 480px) {
        .header h1 {
            font-size: 1.8em;
        }
    
        .header.compact {
            padding: 8px 15px;
        }
    
        .header.compact .header-icon img {
            width: 28px;
            height: 28px;
        }
    
        .header.compact .header-text h1 {
            font-size: 1em;
        }
    }

    /* Temporary message styling */
    .header-temp-message {
        font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        backdrop-filter: blur(10px);
    }

    /* Smooth state transitions */
    @media (prefers-reduced-motion: reduce) {
        .header,
        .header *,
        .header::before {
            transition: none !important;
        }
    }
    
    /* speed indicator */
    /* Geschwindigkeits-Anzeige Styles */
    .results-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 16px;
        flex-wrap: wrap;
        gap: 10px;
    }

    .results-header h3 {
        margin: 0;
        color: #2c3e50;
    }

    .speed-indicator {
        display: flex;
        align-items: center;
        gap: 6px;
        background: #f8f9fa;
        padding: 6px 12px;
        border-radius: 20px;
        font-size: 12px;
        border: 1px solid #e9ecef;
        transition: all 0.3s ease;
    }

    .speed-indicator.walking {
        background: linear-gradient(135deg, #4CAF50, #45a049);
        color: white;
        border-color: #4CAF50;
    }

    .speed-indicator.cycling {
        background: linear-gradient(135deg, #FF9800, #F57C00);
        color: white;
        border-color: #FF9800;
    }

    .speed-indicator.driving {
        background: linear-gradient(135deg, #2196F3, #1976D2);
        color: white;
        border-color: #2196F3;
    }

    .speed-icon {
        font-size: 14px;
        line-height: 1;
    }

    .speed-text {
        font-weight: 500;
    }

    .speed-value {
        font-weight: 600;
        font-size: 11px;
        opacity: 0.9;
    }

    .search-type {
        font-size: 10px;
        opacity: 0.8;
        background: rgba(255, 255, 255, 0.2);
        padding: 2px 6px;
        border-radius: 10px;
        margin-left: 4px;
    }

    .speed-indicator.walking .search-type {
        background: rgba(255, 255, 255, 0.25);
    }

    .speed-indicator.cycling .search-type {
        background: rgba(255, 255, 255, 0.25);
    }

    .speed-indicator.driving .search-type {
        background: rgba(255, 255, 255, 0.25);
    }

    /* Animation für Geschwindigkeitsänderungen */
    .speed-indicator {
        animation: speed-update 0.5s ease-out;
    }

    @keyframes speed-update {
        0% {
            transform: scale(0.95);
        }
        50% {
            transform: scale(1.05);
        }
        100% {
            transform: scale(1);
        }
    }
    
/* ===== KONSISTENTES KATEGORIE-FARBSYSTEM ===== */

/* Basis-Farben für alle Kategorien (unaufdringlich) */
:root {
    --color-sehenswuerdigkeiten: #e74c3c;
    --color-sehenswuerdigkeiten-light: #f8d7da;
    --color-sehenswuerdigkeiten-dark: #c0392b;
    
    --color-essen-trinken: #f39c12;
    --color-essen-trinken-light: #fef3e2;
    --color-essen-trinken-dark: #d68910;
    
    --color-natur-parks: #27ae60;
    --color-natur-parks-light: #d5f4e6;
    --color-natur-parks-dark: #229954;
    
    --color-sport-freizeit: #3498db;
    --color-sport-freizeit-light: #d6eaf8;
    --color-sport-freizeit-dark: #2980b9;
    
    --color-familie-kinder: #9b59b6;
    --color-familie-kinder-light: #ebdef0;
    --color-familie-kinder-dark: #8e44ad;
    
    --color-einkaufen: #1abc9c;
    --color-einkaufen-light: #d5f7f0;
    --color-einkaufen-dark: #17a2b8;
    
    --color-default: #95a5a6;
    --color-default-light: #ecf0f1;
    --color-default-dark: #7f8c8d;
}

/* ===== KATEGORIE-BUTTONS MIT FARBLICHER MARKIERUNG ===== */

/* Subtile farbliche Akzente für Kategorie-Items */
.category-item[data-category="sehenswuerdigkeiten"] {
    border-left: 4px solid var(--color-sehenswuerdigkeiten);
}

.category-item[data-category="essen_trinken"] {
    border-left: 4px solid var(--color-essen-trinken);
}

.category-item[data-category="natur_parks"] {
    border-left: 4px solid var(--color-natur-parks);
}

.category-item[data-category="sport_freizeit"] {
    border-left: 4px solid var(--color-sport-freizeit);
}

.category-item[data-category="familie_kinder"] {
    border-left: 4px solid var(--color-familie-kinder);
}

.category-item[data-category="einkaufen"] {
    border-left: 4px solid var(--color-einkaufen);
}

/* Ausgewählte Kategorien mit vollständiger Farbe (wie bisher) */
.category-item.selected[data-category="sehenswuerdigkeiten"] {
    border-color: var(--color-sehenswuerdigkeiten);
    background: linear-gradient(135deg, var(--color-sehenswuerdigkeiten), var(--color-sehenswuerdigkeiten-dark));
    color: white;
}

.category-item.selected[data-category="essen_trinken"] {
    border-color: var(--color-essen-trinken);
    background: linear-gradient(135deg, var(--color-essen-trinken), var(--color-essen-trinken-dark));
    color: white;
}

.category-item.selected[data-category="natur_parks"] {
    border-color: var(--color-natur-parks);
    background: linear-gradient(135deg, var(--color-natur-parks), var(--color-natur-parks-dark));
    color: white;
}

.category-item.selected[data-category="sport_freizeit"] {
    border-color: var(--color-sport-freizeit);
    background: linear-gradient(135deg, var(--color-sport-freizeit), var(--color-sport-freizeit-dark));
    color: white;
}

.category-item.selected[data-category="familie_kinder"] {
    border-color: var(--color-familie-kinder);
    background: linear-gradient(135deg, var(--color-familie-kinder), var(--color-familie-kinder-dark));
    color: white;
}

.category-item.selected[data-category="einkaufen"] {
    border-color: var(--color-einkaufen);
    background: linear-gradient(135deg, var(--color-einkaufen), var(--color-einkaufen-dark));
    color: white;
}

/* ===== POI-ERGEBNISSE MIT FARBLICHER MARKIERUNG ===== */

/* Kleine farbige Indikatoren für POI-Items */
.poi-item {
    position: relative;
    border-left: 4px solid var(--color-default);
}

.poi-item[data-category="sehenswuerdigkeiten"] {
    border-left-color: var(--color-sehenswuerdigkeiten);
}

.poi-item[data-category="essen_trinken"] {
    border-left-color: var(--color-essen-trinken);
}

.poi-item[data-category="natur_parks"] {
    border-left-color: var(--color-natur-parks);
}

.poi-item[data-category="sport_freizeit"] {
    border-left-color: var(--color-sport-freizeit);
}

.poi-item[data-category="familie_kinder"] {
    border-left-color: var(--color-familie-kinder);
}

.poi-item[data-category="einkaufen"] {
    border-left-color: var(--color-einkaufen);
}

/* Zusätzlicher farbiger Punkt, wenn aus cache */

.poi-item.cached-result::before {
    content: '';
    position: absolute;
    left: -2px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-default);
    border: 2px solid white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}


.poi-item[data-category="sehenswuerdigkeiten"]::before {
    background: var(--color-sehenswuerdigkeiten);
}

.poi-item[data-category="essen_trinken"]::before {
    background: var(--color-essen-trinken);
}

.poi-item[data-category="natur_parks"]::before {
    background: var(--color-natur-parks);
}

.poi-item[data-category="sport_freizeit"]::before {
    background: var(--color-sport-freizeit);
}

.poi-item[data-category="familie_kinder"]::before {
    background: var(--color-familie-kinder);
}

.poi-item[data-category="einkaufen"]::before {
    background: var(--color-einkaufen);
}

/* Hover-Effekte für POI-Items mit passender Hintergrundfarbe */
.poi-item[data-category="sehenswuerdigkeiten"]:hover {
    background: var(--color-sehenswuerdigkeiten-light);
}

.poi-item[data-category="essen_trinken"]:hover {
    background: var(--color-essen-trinken-light);
}

.poi-item[data-category="natur_parks"]:hover {
    background: var(--color-natur-parks-light);
}

.poi-item[data-category="sport_freizeit"]:hover {
    background: var(--color-sport-freizeit-light);
}

.poi-item[data-category="familie_kinder"]:hover {
    background: var(--color-familie-kinder-light);
}

.poi-item[data-category="einkaufen"]:hover {
    background: var(--color-einkaufen-light);
}

/* ===== AKTIVE POI-HERVORHEBUNG ===== */
.poi-item.active[data-category="sehenswuerdigkeiten"] {
    background: linear-gradient(135deg, var(--color-sehenswuerdigkeiten-light), #fff);
    border-left-color: var(--color-sehenswuerdigkeiten);
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
}

.poi-item.active[data-category="essen_trinken"] {
    background: linear-gradient(135deg, var(--color-essen-trinken-light), #fff);
    border-left-color: var(--color-essen-trinken);
    box-shadow: 0 2px 8px rgba(243, 156, 18, 0.3);
}

.poi-item.active[data-category="natur_parks"] {
    background: linear-gradient(135deg, var(--color-natur-parks-light), #fff);
    border-left-color: var(--color-natur-parks);
    box-shadow: 0 2px 8px rgba(39, 174, 96, 0.3);
}

.poi-item.active[data-category="sport_freizeit"] {
    background: linear-gradient(135deg, var(--color-sport-freizeit-light), #fff);
    border-left-color: var(--color-sport-freizeit);
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
}

.poi-item.active[data-category="familie_kinder"] {
    background: linear-gradient(135deg, var(--color-familie-kinder-light), #fff);
    border-left-color: var(--color-familie-kinder);
    box-shadow: 0 2px 8px rgba(155, 89, 182, 0.3);
}

.poi-item.active[data-category="einkaufen"] {
    background: linear-gradient(135deg, var(--color-einkaufen-light), #fff);
    border-left-color: var(--color-einkaufen);
    box-shadow: 0 2px 8px rgba(26, 188, 156, 0.3);
}

/* ===== KATEGORIE-BADGE IN POI-BESCHREIBUNG ===== */
.poi-category {
    position: relative;
    padding-left: 16px;
}

.poi-category::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    border-radius: 2px;
    background: var(--color-default);
}


.category-details {
    font-size: 0.9em;
    opacity: 0.8;
    font-style: italic;
    margin-left: 5px;
}

/* Optional: Hover-Effekt für bessere Lesbarkeit */
.poi-category:hover .category-details {
    opacity: 1;
}

.poi-item[data-category="sehenswuerdigkeiten"] .poi-category::before {
    background: var(--color-sehenswuerdigkeiten);
}

.poi-item[data-category="essen_trinken"] .poi-category::before {
    background: var(--color-essen-trinken);
}

.poi-item[data-category="natur_parks"] .poi-category::before {
    background: var(--color-natur-parks);
}

.poi-item[data-category="sport_freizeit"] .poi-category::before {
    background: var(--color-sport-freizeit);
}

.poi-item[data-category="familie_kinder"] .poi-category::before {
    background: var(--color-familie-kinder);
}

.poi-item[data-category="einkaufen"] .poi-category::before {
    background: var(--color-einkaufen);
}


/* ===== NO-RESULTS NACHRICHT MIT FARBE ===== */
.no-results-message {
    border-left: 4px solid var(--color-default);
    position: relative;
}

.no-results-message::before {
    content: '';
    position: absolute;
    left: -2px;
    top: 20px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-default);
    border: 2px solid white;
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    .poi-item,
    .category-item {
        transition: none !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --color-sehenswuerdigkeiten: #cc1100;
        --color-essen-trinken: #cc7700;
        --color-natur-parks: #006600;
        --color-sport-freizeit: #0066cc;
        --color-familie-kinder: #6600cc;
        --color-einkaufen: #006666;
    }
}

.search-button.pending-search {
    background: linear-gradient(45deg, #4CAF50, #2196F3);
    animation: pendingGlow 2s ease-in-out infinite alternate;
}

@keyframes pendingGlow {
    from { box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
    to { box-shadow: 0 4px 8px rgba(33, 150, 243, 0.3); }
}

.search-button {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.search-button.auto-active {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
}

.search-button.manual-mode {
    background: linear-gradient(135deg, #2196F3, #1976D2);
    color: white;
}

.search-button.pending-search {
    background: linear-gradient(45deg, #FF9800, #F57C00);
    color: white;
    animation: pendingPulse 2s ease-in-out infinite;
}

@keyframes pendingPulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }
    50% { 
        transform: scale(1.02);
        box-shadow: 0 4px 12px rgba(255, 152, 0, 0.4);
    }
}

.search-button:disabled {
    background: #cccccc;
    color: #666666;
    cursor: not-allowed;
    animation: none;
    transform: none;
}

/* Pending search specific styles */
.search-button.pending-search::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Brief message improvements */
.brief-message {
    pointer-events: none;
    user-select: none;
}

.brief-message-success {
    background: linear-gradient(135deg, #4CAF50, #45a049) !important;
}

.brief-message-warning {
    background: linear-gradient(135deg, #FF9800, #F57C00) !important;
}

.brief-message-error {
    background: linear-gradient(135deg, #F44336, #D32F2F) !important;
}

.poi-item {
    transition: all 0.2s ease;
    cursor: pointer;
    user-select: none;
    position: relative;
}

.poi-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* styling für refresh ohne cache */
.refresh-cache-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: transparent;
    border: 1px solid #dee2e6;
    border-radius: 50%;
    font-size: 0.8em;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.2s ease;
    opacity: 0.7;
    flex-shrink: 0;
}

.refresh-cache-btn:hover {
    background: #f8f9fa;
    opacity: 1;
    transform: scale(1.1);
}

.refresh-cache-btn:active {
    transform: scale(0.95);
    background: #e9ecef;
}

.refresh-cache-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

.refresh-cache-btn.loading {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Header Controls Anpassung */
.header-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0; /* Verhindert Schrumpfen */
}

/* Exportiern von Deep-Links */

/* Export-Funktion Styles */
.search-export-container {
    margin-top: 15px;
}

.export-toggle-btn {
    width: 100%;
    padding: 12px 16px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
    text-align: center;
}

.export-toggle-btn:hover {
    background: linear-gradient(45deg, #5a67d8, #6b46c1);
    transform: translateY(-2px);
}

.search-export-section {
    margin-top: 12px;
    background: #f8f9fa;
    border-radius: 10px;
    padding: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.export-info {
    text-align: center;
    margin-bottom: 10px;
}

.export-message {
    color: #6c757d;
    font-size: 0.9em;
    padding: 8px;
}

.export-buttons {
    display: flex !important;
    justify-content: space-between; /* gleichmäßige Verteilung */
    gap: 10px;
    margin-top: 6px;
}

.export-action-btn {
    flex: 1; /* alle gleich breit */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: 500;
    transition: all 0.2s ease;
    text-align: center;
    min-width: 0;
}

/* Mobile: untereinander */
@media (max-width: 480px) {
  .export-buttons {
    flex-direction: column;
  }
  .export-action-btn {
    width: 100%;
    flex: none;
  }
}

.export-action-btn:hover {
    border-color: #3498db;
    box-shadow: 0 3px 8px rgba(52,152,219,0.15);
    transform: translateY(-2px);
}

.export-action-btn.primary {
    background: linear-gradient(45deg, #3498db, #2980b9);
    color: white;
    border: none;
}

.export-action-btn.primary:hover {
    background: linear-gradient(45deg, #2980b9, #1f4e79);
}

.export-help {
    margin-top: 10px;
    font-size: 0.8em;
    color: #6c757d;
    text-align: center;
}

.export-inline-btn {
  background: none;
  border: none;
  font-size: 1.1em;
  margin-left: auto;      /* schiebt nach rechts */
  cursor: pointer;
  color: #6c757d;
  padding: 2px 6px;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}

.export-inline-btn:hover {
  color: #3498db;
  background: rgba(52,152,219,0.1);
}


/* doppelt ? status anzeige über ergebnissen */

.search-status.final .status-phase {
    border-left: 3px solid #4CAF50;
    background: linear-gradient(90deg, rgba(76, 175, 80, 0.05) 0%, transparent 100%);
}

.status-phase.final.success {
    color: #2E7D32;
    font-weight: 500;
}

.status-phase.final.no-results {
    color: #F57C00;
    border-left-color: #FF9800;
    background: linear-gradient(90deg, rgba(255, 152, 0, 0.05) 0%, transparent 100%);
}

.status-phase.final.details {
    color: #666;
    font-size: 0.9em;
    font-style: italic;
}

.status-phase.final.suggestion {
    color: #1976D2;
    font-style: italic;
}

/* die beiden statistik buttons unten in kontakt */
/* Container für die Statistik-Buttons */
.stats-buttons-container {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.stats-btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: 500;
    transition: background 0.3s ease;
    flex: 1; /* Gleiche Breite für alle Buttons */
    min-width: 0; /* Verhindert Overflow */
    text-align: center;
}

.stats-btn:hover {
    background: #2980b9;
}

.poi-item {
    position: relative;
}

/* Wikipedia-Icon in POI-Items */
.wiki-info-icon {
    position: absolute;
    top: 8px;
    right: 8px;
    background: white;
    border: 1px solid #007bff;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    z-index: 5;
}

/* Wikipedia-Link in KI-Beschreibung */
.wikipedia-link {
    margin-top: 15px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.wiki-link-container {
    background: linear-gradient(135deg, #f0f8ff, #e3f2fd);
    border: 1px solid #2196f3;
    border-radius: 8px;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

.wiki-link-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.2);
}

.wiki-link-icon {
    font-size: 1.5em;
    flex-shrink: 0;
}

.wiki-link-text {
    flex: 1;
}

.wiki-link-title {
    font-weight: 500;
    color: #1565c0;
    font-size: 0.9em;
}

.wiki-link-subtitle {
    font-size: 0.8em;
    color: #42a5f5;
    opacity: 0.8;
}

.wiki-link-arrow {
    font-size: 1.2em;
    color: #1976d2;
    transition: transform 0.3s ease;
}

.wiki-link-container:hover .wiki-link-arrow {
    transform: translateX(3px);
}
