/* 
 * Arte-Q Rechner Styles
 * Custom premium design with glassmorphism and responsiveness.
 */

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #f59e0b;
    --text-main: #1f2937;
    --text-muted: #6b7280;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --radius: 12px;
    --transition: all 0.3s ease;
}

/* Base Styles */
.rechner-container {
    max-width: 900px;
    margin: 100px auto 40px;
    padding: 0 20px;
}


.rechner-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 30px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.rechner-header {
    text-align: center;
    margin-bottom: 40px;
}

.rechner-header h1 {
    color: var(--primary);
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.rechner-header p {
    color: var(--text-muted);
}

/* Tabs Navigation */
.rechner-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid #e2e8f0;
}

.tab-btn {
    padding: 12px 24px;
    border: none;
    background: none;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tab-btn i {
    font-size: 1.1rem;
}

.tab-btn:hover {
    color: var(--primary);
}

.tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

/* Tab Content Visibility */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

.section-title-wrap {
    margin-bottom: 25px;
}

.section-title-wrap h2 {
    margin-bottom: 5px;
    border-bottom: none;
    padding-bottom: 0;
}

.section-title-wrap p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* Sections */
.rechner-section {
    margin-bottom: 30px;
    padding-bottom: 0;
    border-bottom: none;
}

/* Grid Layout */
.input-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

/* Input Styles */
.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 8px;
}

.input-group input, 
.input-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
    outline: none;
    background: #fff;
}

.input-group input:focus, 
.input-group select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

/* Results Display */
.results-card {
    background: linear-gradient(135deg, #f0f7ff 0%, #e0efff 100%);
    border-radius: var(--radius);
    padding: 25px;
    border: 2px solid #bfdbfe;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    transition: var(--transition);
}

/* Dynamic Status Classes */
.results-card.status-normal {
    background: rgba(37, 99, 235, 0.05);
    border-color: var(--primary);
}
.results-card.status-normal .result-value { color: var(--primary); }
/* Floating Rechner Widget */
.floating-rechner {
    position: fixed;
    bottom: 100px;
    right: 30px;
    z-index: 1001;
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: var(--transition);
}

.floating-rechner .rechner-bubble {
    width: 60px;
    height: 60px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
    transition: var(--transition);
    animation: pulse-rechner 3s infinite;
}

.floating-rechner .rechner-label {
    background: white;
    padding: 8px 16px;
    border-radius: 20px;
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    white-space: nowrap;
    opacity: 0;
    transform: translateX(10px);
    transition: var(--transition);
}

.floating-rechner:hover .rechner-bubble {
    transform: scale(1.1);
    background: var(--secondary);
    animation: none;
}

.floating-rechner:hover .rechner-label {
    opacity: 1;
    transform: translateX(0);
}

@keyframes pulse-rechner {
    0% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(37, 99, 235, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); }
}

@media (max-width: 768px) {
    .floating-rechner {
        bottom: 90px;
        right: 20px;
    }
    .floating-rechner .rechner-bubble {
        width: 55px;
        height: 55px;
        font-size: 20px;
    }
    .floating-rechner .rechner-label {
        display: none;
    }
}

.results-card.status-mucho {
    background: rgba(245, 158, 11, 0.05);
    border-color: var(--secondary);
}
.results-card.status-mucho .result-value { color: var(--secondary); }

.results-card.status-messie {
    background: rgba(239, 68, 68, 0.05);
    border-color: #ef4444;
}
.results-card.status-messie .result-value { color: #ef4444; }

.result-item {
    text-align: center;
}

.result-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.result-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
}

.result-value.highlight {
    color: var(--secondary);
    font-size: 2.2rem;
}

.result-note {
    grid-column: 1 / -1;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-style: italic;
    margin-top: 15px;
    text-align: center;
}

/* Helper Badges */
.helper-box {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.helper-badge {
    background: var(--secondary);
    color: #fff;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}

/* Buttons */
.btn-cta {
    display: block;
    width: 100%;
    max-width: 400px;
    margin: 40px auto 0;
    background: var(--primary);
    color: #fff;
    padding: 16px 32px;
    border-radius: 50px;
    text-align: center;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

.btn-cta:hover {
    transform: translateY(-2px);
    background: var(--primary-dark);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

/* Utility */
.hidden {
    display: none !important;
}

/* Mobile Adjustments */
@media (max-width: 640px) {
    .rechner-card {
        padding: 20px;
    }
    .rechner-header h1 {
        font-size: 1.8rem;
    }
}
