/**
 * styles.css - Stylesheet für Hear Me Now
 * 
 * Copyright (c) 2025 Martin Adrigan
 * Alle Rechte vorbehalten. Dieses Werk ist urheberrechtlich geschützt.
 * 
 * Geistiges Eigentum und Urheberrecht: Martin Adrigan
 */

:root {
            --green: #4CAF50;
            --blue: #2196F3;
            --dark-blue: #1976D2;
            --light-gray: #f5f5f5;
            --dark-gray: #333;
        }
        
        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }
        
        body {
            background-color: var(--light-gray);
            color: var(--dark-gray);
            line-height: 1.6;
        }
        
        .container {
            max-width: 800px;
            margin: 0 auto;
            padding: 20px;
        }
        
        header {
            text-align: center;
            margin-bottom: 30px;
            padding-bottom: 20px;
            border-bottom: 1px solid #ddd;
        }
        
        h1 {
            color: var(--dark-gray);
            margin-bottom: 10px;
        }
        
        .card {
            background-color: white;
            border-radius: 8px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
            padding: 20px;
            margin-bottom: 20px;
        }
        
        .form-group {
            margin-bottom: 15px;
        }
        
        label {
            display: block;
            margin-bottom: 5px;
            font-weight: 600;
        }
        
        input, textarea {
            width: 100%;
            padding: 10px;
            border: 1px solid #ddd;
            border-radius: 4px;
            font-size: 16px;
        }
        
        textarea {
            min-height: 100px;
            resize: vertical;
        }
        
        button {
            background-color: var(--green);
            color: white;
            border: none;
            padding: 12px 20px;
            border-radius: 4px;
            cursor: pointer;
            font-size: 16px;
            font-weight: 600;
            transition: background-color 0.3s;
        }
        
        button:hover {
            background-color: #3d8b40;
        }
        
        button:disabled {
            background-color: #cccccc;
            cursor: not-allowed;
        }
        
        .payment-section {
            background-color: #f9f9f9;
            padding: 15px;
            border-radius: 4px;
            margin-top: 15px;
        }
        
        .progress-container {
            margin: 30px 0;
        }
        
        .progress-bar {
            height: 40px;
            background-color: #e0e0e0;
            border-radius: 20px;
            overflow: hidden;
            position: relative;
        }
        
        .progress-fill {
            height: 100%;
            position: absolute;
            top: 0;
            left: 0;
            transition: width 0.5s ease;
        }
        
        .progress-green {
            background-color: var(--green);
            width: 50%;
        }
        
        .progress-blue {
            background-color: var(--dark-blue);
            width: 50%;
            left: 50%;
        }
        
        .vote-buttons {
            display: flex;
            justify-content: center;
            gap: 20px;
            margin-top: 20px;
        }
        
        .vote-btn {
            font-size: 24px;
            padding: 15px 30px;
            border-radius: 50px;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .vote-yes {
            background-color: var(--green);
        }
        
        .vote-no {
            background-color: var(--dark-blue);
        }
        
        .vote-count {
            text-align: center;
            margin-top: 10px;
            font-weight: 600;
        }
        
        .topics-list {
            list-style-type: none;
        }
        
        .topic-item {
            padding: 15px;
            border-bottom: 1px solid #eee;
            cursor: pointer;
            transition: background-color 0.2s;
        }
        
        .topic-item:hover {
            background-color: #f9f9f9;
        }
        
        .topic-item:last-child {
            border-bottom: none;
        }
        
        .login-form, .register-form {
            max-width: 400px;
            margin: 0 auto;
        }
        
        .tab-container {
            display: flex;
            margin-bottom: 20px;
        }
        
        .tab {
            flex: 1;
            text-align: center;
            padding: 10px;
            background-color: #eee;
            cursor: pointer;
        }
        
        .tab.active {
            background-color: white;
            font-weight: 600;
        }
        
        .hidden {
            display: none;
        }
        
        .message {
            padding: 10px;
            border-radius: 4px;
            margin-bottom: 15px;
        }
        
        .success {
            background-color: #dff0d8;
            color: #3c763d;
            border: 1px solid #d6e9c6;
        }
        
        .error {
            background-color: #f2dede;
            color: #a94442;
            border: 1px solid #ebccd1;
        }
        
        .payment-methods {
            display: flex;
            gap: 10px;
            margin-top: 10px;
        }
        
        .payment-method {
            flex: 1;
            text-align: center;
            padding: 10px;
            border: 1px solid #ddd;
            border-radius: 4px;
            cursor: pointer;
        }
        
        .payment-method.selected {
            border-color: var(--green);
            background-color: #f0fff0;
        }
        
        .loading {
            opacity: 0.6;
            pointer-events: none;
        }
        
        .welcome-section {
            text-align: center;
            padding: 40px 20px;
            background: linear-gradient(135deg, var(--green), var(--blue));
            color: white;
            margin-bottom: 30px;
        }
        
        .welcome-section h1 {
            font-size: 2.5em;
            margin-bottom: 10px;
        }
        
        .welcome-section p {
            font-size: 1.2em;
            opacity: 0.9;
        }
        
        .progress-container {
            margin: 30px 0;
            position: relative;
        }
        
        .progress-bar {
            height: 60px;
            background-color: #e0e0e0;
            border-radius: 30px;
            overflow: hidden;
            position: relative;
            border: 3px solid #ddd;
        }
        
        .progress-fill {
            height: 100%;
            position: absolute;
            top: 0;
            transition: width 0.8s ease, left 0.8s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
            font-size: 18px;
            color: white;
            text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
        }
        
        .progress-green {
            background-color: var(--green);
            border-radius: 30px 0 0 30px;
        }
        
        .progress-blue {
            background-color: var(--dark-blue);
            border-radius: 0 30px 30px 0;
        }
        
        .vote-count-display {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background: rgba(255,255,255,0.9);
            padding: 5px 15px;
            border-radius: 20px;
            font-weight: bold;
            font-size: 16px;
            color: var(--dark-gray);
            z-index: 10;
        }
        
        .back-to-welcome {
            background-color: var(--blue);
            margin-bottom: 20px;
        }
        
        .back-to-welcome:hover {
            background-color: var(--dark-blue);
        }
        
        /* Sponsoren-Bereich */
        .sponsors-section {
            background: white;
            padding: 15px;
            margin-bottom: 20px;
            border-radius: 8px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        }
        
        .sponsors-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
            gap: 15px;
            margin-top: 15px;
        }
        
        .sponsor-box {
            border: 2px dashed #ddd;
            border-radius: 8px;
            padding: 20px;
            text-align: center;
            cursor: pointer;
            transition: all 0.3s;
            position: relative;
            min-height: 150px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
        }
        
        .sponsor-box:hover {
            border-color: var(--green);
            background-color: #f9f9f9;
        }
        
        .sponsor-box.filled {
            border-style: solid;
            border-color: var(--green);
        }
        
        .sponsor-box img {
            max-width: 100%;
            max-height: 100px;
            object-fit: contain;
        }
        
        .sponsor-add {
            font-size: 48px;
            color: #ccc;
        }
        
        .sponsor-price {
            font-size: 12px;
            color: #666;
            margin-top: 5px;
        }
        
        /* Search-Bereich */
        .search-section {
            margin-bottom: 20px;
            background: white;
            padding: 15px;
            border-radius: 8px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        }
        
        .search-container {
            display: flex;
            gap: 10px;
        }
        
        .search-container input {
            flex: 1;
        }
        
        .search-container button {
            width: auto;
        }
        
        /* Inline Abstimmungsbalken */
        .topic-item-extended {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }
        
        .topic-progress {
            height: 30px;
            background-color: #e0e0e0;
            border-radius: 15px;
            overflow: hidden;
            position: relative;
            display: flex !important;
            flex-direction: row !important;
        }
        
        .topic-progress-fill {
            height: 100%;
            transition: width 0.5s ease;
            display: flex !important;
            align-items: center;
            justify-content: center;
            font-size: 12px;
            font-weight: bold;
            color: white;
            flex-shrink: 0 !important;
            flex-grow: 0 !important;
        }
        
        .topic-progress-green {
            background-color: #4CAF50 !important;
        }
        
        .topic-progress-blue {
            background-color: #1976D2 !important;
        }
        
        .topic-vote-count {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            font-size: 12px;
            font-weight: bold;
            color: white;
            text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
            z-index: 10;
        }
        
        .topic-vote-buttons {
            display: flex;
            gap: 10px;
            margin-top: 5px;
        }
        
        .topic-vote-btn {
            flex: 1;
            padding: 8px;
            font-size: 14px;
            border-radius: 5px;
        }
        
        .modal {
            display: none;
            position: fixed;
            z-index: 1000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0,0,0,0.5);
        }
        
        .modal-content {
            background-color: white;
            margin: 5% auto;
            padding: 30px;
            border-radius: 8px;
            width: 90%;
            max-width: 500px;
            box-shadow: 0 4px 20px rgba(0,0,0,0.3);
        }
        
        .modal-close {
            float: right;
            font-size: 28px;
            font-weight: bold;
            cursor: pointer;
            color: #999;
        }
        
        .modal-close:hover {
            color: #333;
        }
        
        /* AGB Overlay beim ersten Besuch */
        #agb-overlay {
            display: none;
            position: fixed;
            z-index: 9999;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0,0,0,0.3);
            backdrop-filter: blur(3px);
            overflow: hidden;
        }
        
        #agb-overlay-content {
            background-color: white;
            margin: 5% auto;
            padding: 30px;
            border-radius: 12px;
            width: 85%;
            max-width: 700px;
            height: 70vh;
            overflow-y: auto;
            box-shadow: 0 8px 32px rgba(0,0,0,0.5);
            position: relative;
        }
        
        #agb-accept-btn {
            display: none;
            position: sticky;
            bottom: 0;
            left: 0;
            right: 0;
            width: 100%;
            padding: 15px;
            font-size: 18px;
            background-color: var(--green);
            cursor: pointer;
            margin-top: 20px;
        }
        
        #agb-accept-btn.visible {
            display: block;
        }
        
        #agb-accept-btn:hover {
            background-color: #3d8b40;
        }
        
        #agb-scroll-indicator {
            text-align: center;
            padding: 12px;
            background: #fff3cd;
            border: 2px solid #ffc107;
            border-radius: 8px;
            margin-bottom: 15px;
            font-weight: 600;
            color: #856404;
            font-size: 14px;
        }
        
        #agb-overlay-content h2 {
            font-size: 22px;
            margin-bottom: 20px;
        }
        
        #agb-overlay-content h3 {
            font-size: 18px;
            margin-top: 20px;
            margin-bottom: 10px;
            color: var(--dark-blue);
        }
        
        #agb-overlay-content p,
        #agb-overlay-content ul {
            font-size: 14px;
            margin-bottom: 12px;
            line-height: 1.5;
        }
        
        #agb-overlay-content ul {
            padding-left: 20px;
        }
        
        #agb-overlay-content li {
            margin-bottom: 6px;
        }
        
        .agb-info-box {
            padding: 12px;
            border-radius: 6px;
            margin: 15px 0;
            font-size: 13px;
            line-height: 1.4;
        }
        
        /* Responsive Design für Mobile */
        @media (max-width: 768px) {
            .container {
                padding: 10px;
            }
            
            .welcome-section {
                padding: 30px 15px;
            }
            
            .welcome-section h1 {
                font-size: 1.8em;
            }
            
            .welcome-section p {
                font-size: 1em;
            }
            
            .sponsors-grid {
                grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
                gap: 10px;
            }
            
            .sponsor-box {
                min-height: 120px;
                padding: 15px;
            }
            
            .sponsor-box img {
                max-height: 80px;
            }
            
            .search-container {
                flex-direction: column;
            }
            
            .search-container button {
                width: 100%;
                margin-top: 10px;
            }
            
            .card {
                padding: 15px;
            }
            
            h2 {
                font-size: 1.5em;
            }
            
            h3 {
                font-size: 1.2em;
            }
            
            .topic-item {
                padding: 12px;
            }
            
            .topic-vote-buttons {
                flex-direction: column;
            }
            
            .topic-vote-btn {
                width: 100%;
            }
            
            .vote-buttons {
                flex-direction: column;
                gap: 10px;
            }
            
            .vote-btn {
                width: 100%;
                font-size: 18px;
                padding: 12px 20px;
            }
            
            .progress-bar {
                height: 50px;
            }
            
            .tab-container {
                flex-direction: column;
            }
            
            .tab {
                border-bottom: 1px solid #ddd;
            }
            
            .modal-content {
                width: 95%;
                margin: 10% auto;
                padding: 20px;
            }
            
            input, textarea, button {
                font-size: 16px; /* Verhindert Zoom beim Fokus auf iOS */
            }
            
            .payment-methods {
                flex-direction: column;
            }
            
            .payment-method {
                width: 100%;
            }
        }
        
        @media (max-width: 480px) {
            .welcome-section h1 {
                font-size: 1.5em;
            }
            
            .sponsors-grid {
                grid-template-columns: repeat(2, 1fr);
            }
            
            h2 {
                font-size: 1.3em;
            }
            
            .topic-progress {
                height: 25px;
            }
            
            .topic-progress-fill {
                font-size: 10px;
            }
            
            .topic-vote-count {
                font-size: 10px;
            }
            
            .progress-bar {
                height: 40px;
            }
            
            .vote-count-display {
                font-size: 12px;
                padding: 3px 10px;
            }
            
            .agb-section {
                padding: 15px;
            }
            
            .agb-section h3 {
                font-size: 1.1em;
            }
        }
        
        /* AGB Section */
        .agb-section {
            background: white;
            padding: 30px;
            margin-top: 30px;
            border-radius: 8px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
            font-size: 14px;
            line-height: 1.8;
        }
        
        .agb-section h3 {
            color: var(--dark-gray);
            margin-bottom: 15px;
            font-size: 1.4em;
        }
        
        .agb-section h4 {
            color: var(--dark-blue);
            margin-top: 20px;
            margin-bottom: 10px;
        }
        
        .agb-section ul {
            margin-left: 20px;
            margin-bottom: 15px;
        }
        
        .agb-section li {
            margin-bottom: 8px;
        }
        
        .agb-highlight {
            background-color: #fff3cd;
            padding: 15px;
            border-left: 4px solid #ffc107;
            margin: 15px 0;
            border-radius: 4px;
        }
        
        .agb-warning {
            background-color: #f8d7da;
            padding: 15px;
            border-left: 4px solid #dc3545;
            margin: 15px 0;
            border-radius: 4px;
            color: #721c24;
        }