/* ================================================
   ZENTRALE STEUERELEMENTE - CONTROLS.CSS
   Einheitliche Button-Styles für die gesamte Website
   Basierend auf modernem, abgerundetem Design
   ================================================ */

/* ===== BASE BUTTON STYLES ===== */
.btn,
.cta-button,
.project-btn,
.toggle-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 50px;
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    line-height: 1.4;
    box-sizing: border-box;
}

/* ===== PRIMARY BUTTON (Blue Gradient) ===== */
.btn-primary,
.cta-button,
.project-btn.primary {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: 2px solid #3498db;
}

.btn-primary:hover,
.cta-button:hover,
.project-btn.primary:hover {
    background: linear-gradient(135deg, #2980b9, #1f5582);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(52, 152, 219, 0.3);
    color: white;
}

.btn-primary .material-icons,
.cta-button .material-icons,
.project-btn.primary .material-icons {
    color: white;
}

.btn-primary:hover .material-icons,
.cta-button:hover .material-icons,
.project-btn.primary:hover .material-icons {
    color: white;
}

/* ===== SECONDARY BUTTON (Outline) ===== */
.btn-secondary,
.cta-button-outline,
.project-btn.secondary {
    background: transparent;
    color: #3498db;
    border: 2px solid #3498db;
}

.btn-secondary:hover,
.cta-button-outline:hover,
.project-btn.secondary:hover {
    background: #3498db;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(52, 152, 219, 0.2);
}

.btn-secondary .material-icons,
.cta-button-outline .material-icons {
    color: #3498db;
}

.btn-secondary:hover .material-icons,
.cta-button-outline:hover .material-icons {
    color: white;
}

/* ===== TOGGLE BUTTONS ===== */
.toggle-btn {
    background: linear-gradient(135deg, #222, #1a1a1a);
    border: 2px solid #333;
    border-radius: 50px;
    color: #ccc;
    padding: 12px 24px;
}

.toggle-btn .material-icons {
    font-size: 20px;
    color: #ccc;
}

.toggle-btn:hover {
    border-color: #3498db;
    color: #3498db;
    transform: translateY(-2px);
}

.toggle-btn:hover .material-icons {
    color: #3498db;
}

.toggle-btn.active {
    background: linear-gradient(135deg, #3498db, #2980b9);
    border-color: #3498db;
    color: white;
    box-shadow: 0 8px 20px rgba(52, 152, 219, 0.3);
}

.toggle-btn.active .material-icons {
    color: white;
}

/* ===== SMALL BUTTONS ===== */
.btn-small,
.project-btn {
    padding: 10px 20px;
    font-size: 14px;
}

/* ===== LARGE BUTTONS ===== */
.btn-large {
    padding: 16px 32px;
    font-size: 18px;
}

/* ===== DISABLED STATE ===== */
.btn:disabled,
.cta-button:disabled,
.project-btn:disabled,
.toggle-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.btn:disabled:hover,
.cta-button:disabled:hover,
.project-btn:disabled:hover,
.toggle-btn:disabled:hover {
    transform: none !important;
    box-shadow: none !important;
    background: linear-gradient(135deg, #3498db, #2980b9);
}

/* ===== ICON-ONLY BUTTONS ===== */
.btn-icon {
    padding: 10px;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== MODAL BUTTONS ===== */
.modal-close {
    background: none;
    border: none;
    color: #ccc;
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transform: rotate(90deg);
}

.modal-fullpage-btn {
    background: linear-gradient(135deg, #3498db, #2980b9);
    border: none;
    color: white;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
}

.modal-fullpage-btn:hover {
    background: linear-gradient(135deg, #2980b9, #1e5a8a);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.modal-fullpage-btn .material-icons {
    font-size: 18px;
}

/* ===== COMING SOON CTA ===== */
.coming-soon-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.coming-soon-cta:hover {
    background: linear-gradient(135deg, #2980b9, #1f5582);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(52, 152, 219, 0.3);
}

/* ===== STRIPE PORTAL BUTTON ===== */
.stripe-portal-button {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: 2px solid #3498db;
    padding: 12px 24px;
    border-radius: 50px;
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.stripe-portal-button:hover {
    background: linear-gradient(135deg, #2980b9, #1f5582);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(52, 152, 219, 0.3);
}

/* ===== BUTTON GROUPS ===== */
.button-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

/* ===== STORE BUTTONS ===== */
.store-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.store-buttons .cta-button {
    min-width: 150px;
}

.store-buttons .cta-button-outline {
    min-width: 200px;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .btn,
    .cta-button,
    .project-btn,
    .toggle-btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    .btn-large {
        padding: 12px 24px;
        font-size: 16px;
    }

    .button-group,
    .buttons,
    .store-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .store-buttons .cta-button,
    .store-buttons .cta-button-outline {
        width: 100%;
        max-width: 300px;
    }
}

/* ===== CONTACT FORM BUTTON ===== */
.contact-form button.cta-button {
    width: 100%;
    max-width: 300px;
    margin-top: 10px;
    justify-content: center;
}

/* ===== SPECIAL VARIANTS FOR LEGACY SUPPORT ===== */
/* These ensure backward compatibility with existing pages */
.hero .buttons .cta-button,
.webdev-hero .buttons .cta-button {
    /* Inherits from main .cta-button styles */
}

/* Web Development color variant (can be overridden by webdev-style.css if needed) */
.webdev .cta-button {
    /* Inherits from main .cta-button styles */
}

.webdev .cta-button-outline {
    /* Inherits from main .cta-button-outline styles */
}
