        :root {
            --primary: #ff2d55;
            --secondary: #5856d6;
            --light: #f5f7fa;
            --dark: #2d3748;
            --header-height: 60px;
            --footer-height: 120px;
        }
        
        * { 
            box-sizing: border-box; 
            margin: 0; 
            padding: 0; 
            -webkit-tap-highlight-color: transparent;
        }
        
        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
            line-height: 1.6;
            color: #333;
            background-color: var(--light);
            height: 100vh;
            display: flex;
            flex-direction: column;
            overflow: hidden;
            position: fixed;
            width: 100%;
        }
        
        /* App Header */
        .app-header {
            background: white;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
            padding: 0.5rem 1rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
            height: var(--header-height);
            position: sticky;
            top: 0;
            z-index: 100;
        }
        
        .logo:hover, .logo {
            font-size: 1.5rem;
            font-weight: 700;
            color: #660000;
            text-decoration: none;
        }
        
        .font-smal {
        font-size: 0.8rem;
        }
        
        .menu-links {
            display: none;
            position: absolute;
            top: 100%;
            left: 0;
            background: white;
            width: 200px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
            z-index: 1000;
            border-radius: 5px;
            padding: 10px 0;
            font-size: 1rem;
        }

        .menu-links a {
            display: block;
            padding: 10px 15px;
            color: #333;
            text-decoration: none;
        }

        .menu-links a:hover {
            background: var(--secondary);
            color: white;
        }

        .nav-icon {
            position: relative;
        }

        .nav-icon:hover .menu-links {
            display: block;
        }
        
        a {
            color: #000000;
            text-decoration: none;
        }

        a:hover {
            color: #000000;
            text-decoration: none;
        }

        .rounded-image {
            width: 40px;
            height: 40px;
            border-radius: 50%; 
            object-fit: cover; 
            padding: 3px;
        }
        
        #previewContainer {
            display: none;
            margin-top: 15px;
        }
        
        #preview {
            max-width: 100px;
            max-height: 100px;
        }     
        
        .nav-icon {
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: var(--light);
            cursor: pointer;
        }
        
        .nav-icon span {
            display: block;
            width: 20px;
            height: 2px;
            background: var(--dark);
            margin: 2px 0;
        }
        
        /* App Main Content */
        .app-container {
            flex: 1;
            overflow-y: auto;
            -webkit-overflow-scrolling: touch;
            padding-bottom: var(--footer-height);
        }
        
        .hero {
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            color: white;
            padding: 1rem 1rem;
            text-align: center;
            position: relative;
        }
        
        .hero h1 {
            font-size: 1.8rem;
            margin-bottom: 1rem;
        }
        
        .cta-button {
            display: inline-block;
            background: white;
            color: var(--primary);
            padding: 12px 25px;
            margin: 1rem 0.5rem;
            border-radius: 30px;
            text-decoration: underline;
            font-weight: bold;
            font-size: 1rem;
            box-shadow: 0 4px 10px rgba(0,0,0,0.2);
            border: none;
            cursor: pointer;
        }
        
        .cta-button:hover {
            background: var(--secondary);
            color: white;
            padding: 12px 25px;
            margin: 1rem 0.5rem;
            border-radius: 30px;
            text-decoration: none;
            font-weight: bold;
            font-size: 1rem;
            box-shadow: 0 4px 10px rgba(0,0,0,0.2);
            border: none;
            cursor: pointer;
        }
        
        .section {
            padding: 2rem;
        }
        
        .section-title {
            margin-bottom: 1.5rem;
            color: var(--dark);
            font-size: 1.5rem;
            text-align: center;
        }
        
        .features {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
            gap: 1rem;
            margin-bottom: 2rem;
        }
        
        .feature-box {
            padding: 1rem;
            background: white;
            border-radius: 12px;
            box-shadow: 0 3px 10px rgba(0,0,0,0.05);
            text-align: center;
        }
        
        .feature-icon {
            font-size: 2rem;
            color: var(--primary);
            margin-bottom: 0.5rem;
        }
        
        /* Bilder als klickbar stylen */
        .feature-box img {
            cursor: pointer;
            transition: transform 0.2s;
        }
        
        .feature-box img:hover {
            transform: scale(1.03);
        }
        
        /* Bilder als klickbar stylen */
        .chat-img img {
            cursor: pointer;
            transition: transform 0.2s;
        }
        
        .chat-img img:hover {
            transform: scale(1.03);
        }
        
        /* Bottom Navigation */
        .bottom-nav {
            position: fixed;
            bottom: 33px;
            left: 0;
            right: 0;
            background: white;
            box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
            height: 50;
            display: flex;
            z-index: 100;
        }
        
        /* Bottom Copy */
        .bottomEND {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            height: 30px;
            display: flex;
            z-index: 101;
        }
        
        .nav-item {
            flex: 1;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            text-decoration: none;
            color: var(--dark);
            font-size: 0.8rem;
        }
        
        .nav-item.active {
            color: var(--primary);
        }
              
        .nav-icon {
            font-size: 1.2rem;
            margin-bottom: 3px;
        }
        
        .nav-icon:hover {
            font-size: 1.4rem;
            margin-bottom: 3px;
        }
        
        /* Install Banner */
        .install-banner {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            background: var(--dark);
            color: white;
            padding: 2px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            z-index: 1000;
            transform: translateY(100%);
            transition: transform 0.3s ease;
        }
        
        .install-banner.show {
            transform: translateY(0);
        }
        
        .install-btn {
            background: var(--primary);
            color: white;
            border: none;
            padding: 5px 10px;
            border-radius: 4px;
            font-weight: bold;
            cursor: pointer;
        }
        
        /* Swipe Cards */
        #swipe-container {
            position: relative;
            width: 300px;
            height: 400px;
            perspective: 1000px;
            margin-bottom: 20px;
        }
        
        .card {
            position: absolute;
            width: 100%;
            height: 100%;
            border-radius: 15px;
            background-size: cover;
            background-position: center;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
            transition: transform 0.5s;
            transform-style: preserve-3d;
            display: flex;
            justify-content: center;
            align-items: center;
            font-size: 24px;
            font-weight: bold;
            color: white;
            text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
            cursor: grab;
            user-select: none;
        }
        
        .like {
            background-color: #4CAF50 !important;
        }
        
        .nope {
            background-color: #F44336 !important;
        }
        
        .like::after {
            content: "❤️";
            font-size: 60px;
        }
        
        .nope::after {
            content: "NOPE";
        }
        
        /* Login Modal */
        .modal {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0,0,0,0.7);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 1000;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.3s;
        }
        
        .modal.show {
            opacity: 1;
            pointer-events: all;
        }
        
        .modal-content {
            background: white;
            border-radius: 16px;
            width: 90%;
            max-width: 400px;
            padding: 2rem;
            position: relative;
        }
        
        .close-modal {
            position: absolute;
            top: 15px;
            right: 15px;
            font-size: 1.5rem;
            background: none;
            border: none;
            cursor: pointer;
        }
        
        .form-group {
            margin-bottom: 1rem;
        }
        
        .form-control {
            width: 100%;
            padding: 12px;
            border: 1px solid #ddd;
            border-radius: 8px;
            font-size: 1rem;
        }
        
        /* Offline Indicator */
        .offline-indicator {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            background: #ff6b6b;
            color: white;
            text-align: center;
            padding: 5px;
            z-index: 1000;
            transform: translateY(-100%);
            transition: transform 0.3s;
        }
        
        .offline-indicator.show {
            transform: translateY(0);
        }
        
        /* Swipe Animation */
        @keyframes swipeRight {
            to {
                transform: rotate(15deg) translateX(200%);
                opacity: 0;
            }
        }
        
        @keyframes swipeLeft {
            to {
                transform: rotate(-15deg) translateX(-200%);
                opacity: 0;
            }
        }
        
        /* Lightbox Stile mit Ladeanimation */
        .lightbox {
            display: none;
            position: fixed;
            z-index: 9999;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.9);
            text-align: center;
        }
        
        .lightbox-content {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            max-width: 90%;
            max-height: 90%;
        }
        
        .lightbox img {
            max-height: 90vh;
            max-width: 90vw;
            opacity: 0;
            transition: opacity 0.3s ease;
        }
        
        .lightbox img.loaded {
            opacity: 1;
        }
        
        .close-lightbox {
            position: absolute;
            top: 20px;
            right: 30px;
            color: white;
            font-size: 35px;
            font-weight: bold;
            cursor: pointer;
            z-index: 100000;
        }
        
        /* Ladeanimation */
        .loader {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 60px;
            height: 60px;
        }
        
        .loader-circle {
            position: absolute;
            width: 100%;
            height: 100%;
            border: 5px solid transparent;
            border-top-color: #ff2d55;
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }
        
        .loader-circle:nth-child(2) {
            border: 5px solid transparent;
            border-bottom-color: #ff2d55;
            animation: spinReverse 1s linear infinite;
        }
        
        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }
        
        .chat-input {
            display: flex;
            align-items: flex-end;
            position: relative;
        }
        
        .message-input {
            flex: 1;
            padding: 5px;
            border: none;
            border-radius: 10px;
            outline: none;
            font-size: 14px;
            resize: none;
            min-height: 40px;
            max-height: 100px;
            overflow-y: auto;
        }
     
        .send-button {
            background: white;
            color: var(--primary);
            border: none;
            border-radius: 50%;
            width: 40px;
            height: 40px;
            margin-left: 5px;
            cursor: pointer;
            display: flex;
            justify-content: center;
            align-items: center;
            font-size: 25px;
            flex-shrink: 0;
        }
        
        .send-button:hover {
            background: var(--primary);
            color: white;
            cursor: pointer;
        }
            
        .input-container {
            position: fixed;
            bottom: 55px;
            left: 0;
            right: 0;
            padding: 30px;
            z-index: 1000;
            background-color: var(--secondary);
        }     
    
        #messages {
            overflow-y: auto;
            display: flex;
            flex-direction: column;
            padding: 10px;
            gap: 10px;
        }
        
        .message {
            max-width: 70%;
            padding: 10px 15px;
            border-radius: 18px;
            margin: 5px 0;
            word-wrap: break-word;
            position: relative;
        }
        
        .message-me {
            align-self: flex-end;
            background-color: #C2C1F5;
            border-bottom-right-radius: 5px;
        }
        
        .message-other {
            align-self: flex-start;
            background-color: #FFC0CB;
            border-bottom-left-radius: 5px;
        }
        
        .message-time {
            font-size: 0.7em;
            opacity: 0.7;
            text-align: right;
            margin-top: 5px;
        }
        
        #new-message-indicator {
            position: fixed;
            bottom: 200px;
            left: 50%;
            transform: translateX(-50%);
            background-color: var(--primary);
            color: white;
            padding: 8px 16px;
            border-radius: 20px;
            cursor: pointer;
            z-index: 1000;
            box-shadow: 0 2px 5px rgba(0,0,0,0.2);
            display: none;
        }
        
        #new-message-indicator:hover {
            background-color: var(--primary-dark);
        }
        
        .loading {
            text-align: center;
            padding: 10px;
            color: #666;
        }
        
        .scrollable-content {
            padding-bottom: 120px;
        }
        
        /* Kamera-Container */
        .camera-modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: black;
            z-index: 10000;
            display: none;
            flex-direction: column;
        }
        
        /* Kamera-Vorschau (nimmt den gesamten Bildschirm ein) */
        .camera-preview {
            flex: 1;
            position: relative;
            overflow: hidden;
        }
        
        #video {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transform: scaleX(-1); /* Für Frontkamera spiegeln */
        }
        
        /* Steuerleiste oben */
        .camera-header {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            padding: 15px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            z-index: 10;
        }
        
        /* Steuerleiste unten */
        .camera-footer {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            padding: 55px;
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 10;
        }
        
        /* Kamera-Buttons */
        .camera-btn {
            width: 60px;
            height: 60px;
            border-radius: 50%;
            background-color: rgba(255, 255, 255, 0.3);
            display: flex;
            justify-content: center;
            align-items: center;
            color: white;
            font-size: 24px;
            border: 2px solid white;
            cursor: pointer;
        }
        
        .camera-btn-large {
            width: 70px;
            height: 70px;
            background-color: rgba(255, 255, 255, 0.3);
            color: white;
            margin: 0 20px;
        }
        
        .camera-btn-close {
            background-color: rgba(255, 255, 255, 0.2);
            color: white;
            width: 50px;
            height: 50px;
        }
        
        /* Vorschau-Container (nimmt auch den gesamten Bildschirm ein) */
        #previewContainer {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: black;
            display: none;
            justify-content: center;
            align-items: center;
            z-index: 20;
        }
        
        #previewFull {
            max-width: 100%;
            max-height: 100%;
        }
        
        /* Vorschau-Buttons */
        .preview-controls {
			position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            padding: 70px;
            display: flex;
            justify-content: center;
            align-items: center;
        }
        
        .preview-btn {
            width: 60px;
            height: 60px;
            border-radius: 50%;
            background-color: rgba(255, 255, 255, 0.3);
            display: flex;
            justify-content: center;
            align-items: center;
            color: white;
            font-size: 24px;
            border: 2px solid white;
            cursor: pointer;
        }
        
        .preview-btn-send {
            background-color: rgba(255, 255, 255, 0.3);
        }
        
        /* NEUE STYLES FÜR DIE BILDAUSWAHL */
        .crop-container {
            position: relative;
            margin: 0 auto;
            max-width: 100%;
            overflow: hidden;
            border: 1px solid #ddd;
            background-color: #f9f9f9;
            text-align: center;
            touch-action: none;
        }
        
        #image-to-crop {
            max-width: 100%;
            display: block;
            margin: 0 auto;
        }
        
        .crop-area {
            position: absolute;
            top: 0;
            left: 0;
            cursor: move;
            border: 2px dashed rgba(255, 255, 255, 0.8);
            box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.5);
            z-index: 10;
        }
        
        .handle {
            position: absolute;
            width: 12px;
            height: 12px;
            background: white;
            border: 1px solid #3498db;
            border-radius: 2px;
        }
        
        .handle-tl { top: -6px; left: -6px; cursor: nwse-resize; }
        .handle-tr { top: -6px; right: -6px; cursor: nesw-resize; }
        .handle-bl { bottom: -6px; left: -6px; cursor: nesw-resize; }
        .handle-br { bottom: -6px; right: -6px; cursor: nwse-resize; }
        
        .crop-controls {
            padding: 15px;
            background: white;
            border-radius: 8px;
            margin-top: 20px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        }
        
        .button {
            background: var(--primary);
            color: white;
            border: none;
            padding: 10px 20px;
            margin: 0 5px;
            border-radius: 5px;
            cursor: pointer;
            font-weight: bold;
        }
        
        .button:hover {
            background: var(--secondary);
        }
        
        .instructions {
            background-color: #f8f9fa;
            padding: 15px;
            border-radius: 5px;
            margin-bottom: 20px;
            border-left: 4px solid #3498db;
        }
