/* MoinCall - Hauptstyles */
/* Generiert am: 15.08.2025 */

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

/* Ad Container Styles */
.ad-container {
    margin: 15px 0;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #e0e0e0;
}

.ad-container .ad-label {
    font-size: 10px;
    color: #888;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Responsive ad sizing */
@media (max-width: 480px) {
    .ad-container {
        margin: 10px -10px;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    background-color: white;
    color: #333;
    padding: 2vh 5vw;
    min-height: 100vh;
    user-select: none;
    -webkit-user-select: none;
    overflow-x: hidden;
}

.container {
    max-width: 400px;
    margin: 0 auto;
    padding-bottom: 60px;
}

h1 {
    color: #26a69a;
    text-align: center;
    margin-bottom: 20px;
    font-size: 24px;
    font-weight: bold;
}

.row {
    display: flex;
    gap: 2vw;
    margin-bottom: 2vh;
}

.row.single {
    gap: 0;
}

select, input, button {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

select {
    background: white;
    color: #333;
    flex: 1;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 40px;
}

input {
    width: 100%;
    background: #f0f0f0;
    color: black;
}

input::placeholder {
    color: #888;
}

.button {
    background: #26a69a;
    color: white;
    border: none;
    cursor: pointer;
    text-align: center;
    font-weight: bold;
    transition: all 0.2s ease;
    flex: 1;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.button:hover {
    background: #4dd0c4;
    transform: translateY(-1px);
}

.button:active {
    transform: translateY(0);
}

.button.orange {
    background: #ff9800;
}

.button.orange:hover {
    background: #ffb74d;
}

.button.full-width {
    width: 100%;
    margin-bottom: 2vh;
}

.button.half-width {
    flex: 1;
}

.deactivation-section {
    margin-top: 3vh;
    padding-top: 2vh;
    border-top: 2px solid #f0f0f0;
}

.info-label {
    text-align: center;
    color: #888;
    font-size: 11px;
    margin-top: 4vh;
    margin-bottom: 2vh;
}

/* Counter Stats */
.counter-stats {
    text-align: center;
    color: #999;
    font-size: 10px;
    margin-top: 1vh;
    margin-bottom: 1vh;
}

.counter-stats .stat-item {
    display: inline-block;
    margin: 0 8px;
}

.counter-stats .stat-value {
    font-weight: bold;
    color: #26a69a;
}

.toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
    max-width: 90vw;
    text-align: center;
}

.toast.show {
    opacity: 1;
}

.hidden {
    display: none !important;
}

/* PWA Install Banner */
.install-banner {
    background: linear-gradient(135deg, #26a69a, #4dd0c4);
    color: white;
    padding: 16px;
    text-align: center;
    border-radius: 12px;
    margin-bottom: 20px;
    cursor: pointer;
    display: none;
    position: relative;
    box-shadow: 0 4px 12px rgba(38, 166, 154, 0.3);
    transition: all 0.3s ease;
}

.install-banner.show {
    display: block;
    animation: slideDown 0.5s ease;
}

.install-banner:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(38, 166, 154, 0.4);
}

.install-banner .install-icon {
    font-size: 24px;
    margin-bottom: 8px;
    display: block;
}

.install-banner .install-title {
    font-weight: bold;
    margin-bottom: 4px;
}

.install-banner .install-subtitle {
    font-size: 14px;
    opacity: 0.9;
}

.install-banner .close-btn {
    position: absolute;
    top: 8px;
    right: 12px;
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s ease;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.install-banner .close-btn:hover {
    opacity: 1;
    background: rgba(255,255,255,0.2);
}

/* iOS specific install banner */
.ios-install-banner {
    background: linear-gradient(135deg, #007AFF, #5AC8FA);
    color: white;
    padding: 16px;
    text-align: left;
    border-radius: 12px;
    margin-bottom: 20px;
    display: none;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
}

.ios-install-banner.show {
    display: block;
    animation: slideDown 0.5s ease;
}

.ios-install-banner .ios-steps {
    margin-top: 10px;
}

.ios-install-banner .ios-step {
    display: flex;
    align-items: center;
    margin: 8px 0;
    font-size: 14px;
}

.ios-install-banner .ios-step-icon {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    background: rgba(255,255,255,0.2);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    body {
        padding: 1vh 3vw;
    }
    
    .row {
        gap: 1vw;
    }
    
    .button {
        font-size: 14px;
        min-height: 44px;
    }
    
    h1 {
        font-size: 20px;
    }

    .install-banner, .ios-install-banner {
        padding: 12px;
        font-size: 14px;
    }
}

/* Cookie Banner Styles */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #333;
    color: white;
    padding: 20px;
    z-index: 2000;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.3);
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.cookie-text {
    margin-bottom: 15px;
    font-size: 14px;
    line-height: 1.4;
}

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

.cookie-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
    transition: all 0.2s ease;
}

.cookie-btn.accept {
    background: #26a69a;
    color: white;
}

.cookie-btn.accept:hover {
    background: #4dd0c4;
}

.cookie-btn.decline {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.cookie-btn.decline:hover {
    background: white;
    color: #333;
}

@media (max-width: 480px) {
    .cookie-banner {
        padding: 15px;
    }
    
    .cookie-buttons {
        flex-direction: column;
    }
    
    .cookie-btn {
        width: 100%;
        margin-bottom: 5px;
    }
}

.cookie-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.cookie-overlay.show {
    opacity: 1;
    visibility: visible;
}