/*
Theme Name: Schuldenberatung Biberach
Theme URI: https://schuldenberatung-biberach.de
Description: Maßgeschneidertes Theme für Schuldenberatung Biberach
Author: Schuldenberatung Biberach
Author URI: https://schuldenberatung-biberach.de
Template: generatepress
Version: 1.0.0
Text Domain: schuldenberatung
*/

/* === Color System === */
:root {
    --sb-primary: #00ABE4;
    --sb-primary-dark: #0090C0;
    --sb-primary-light: #E9F1FA;
    --sb-white: #FFFFFF;
    --sb-text: #1A2B3C;
    --sb-text-light: #5A6B7C;
    --sb-accent: #FF8C42;
    --sb-success: #28A745;
    --sb-border: #E2E8F0;
    --sb-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --sb-radius: 12px;
}

/* === Global Styles === */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--sb-text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    color: var(--sb-text);
    line-height: 1.3;
}

a {
    color: var(--sb-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--sb-primary-dark);
}

/* === Buttons === */
.sb-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--sb-primary);
    color: var(--sb-white) !important;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.sb-btn-primary:hover {
    background: var(--sb-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 171, 228, 0.3);
    color: var(--sb-white) !important;
}

.sb-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: var(--sb-primary) !important;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    border: 2px solid var(--sb-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.sb-btn-secondary:hover {
    background: var(--sb-primary);
    color: var(--sb-white) !important;
}

.sb-btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #25D366;
    color: var(--sb-white) !important;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.sb-btn-whatsapp:hover {
    background: #1DA851;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
    color: var(--sb-white) !important;
}

/* === Cards === */
.sb-card {
    background: var(--sb-white);
    border-radius: var(--sb-radius);
    padding: 32px;
    box-shadow: var(--sb-shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--sb-border);
}

.sb-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.sb-card-icon {
    width: 64px;
    height: 64px;
    background: var(--sb-primary-light);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.sb-card-icon svg {
    width: 32px;
    height: 32px;
    color: var(--sb-primary);
}

/* === Schulden-Schnellcheck Wizard === */
.sb-schnellcheck {
    background: var(--sb-white);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
    max-width: 520px;
    width: 100%;
}

.sb-schnellcheck h3 {
    color: var(--sb-text);
    font-size: 22px;
    margin-bottom: 8px;
}

.sb-schnellcheck .sb-progress {
    display: flex;
    gap: 6px;
    margin-bottom: 28px;
}

.sb-schnellcheck .sb-progress-dot {
    height: 4px;
    flex: 1;
    background: var(--sb-border);
    border-radius: 4px;
    transition: background 0.3s ease;
}

.sb-schnellcheck .sb-progress-dot.active {
    background: var(--sb-primary);
}

.sb-schnellcheck .sb-step {
    display: none;
}

.sb-schnellcheck .sb-step.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

.sb-schnellcheck label {
    display: block;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 16px;
    color: var(--sb-text);
}

.sb-option-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sb-option {
    display: flex;
    align-items: center;
    padding: 14px 18px;
    background: var(--sb-primary-light);
    border: 2px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 15px;
    font-weight: 500;
}

.sb-option:hover {
    border-color: var(--sb-primary);
}

.sb-option.selected {
    border-color: var(--sb-primary);
    background: rgba(0, 171, 228, 0.1);
}

.sb-option input[type="radio"] {
    display: none;
}

.sb-option-check {
    width: 22px;
    height: 22px;
    border: 2px solid var(--sb-border);
    border-radius: 50%;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.sb-option.selected .sb-option-check {
    border-color: var(--sb-primary);
    background: var(--sb-primary);
}

.sb-option.selected .sb-option-check::after {
    content: '';
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
}

.sb-schnellcheck .sb-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 24px;
}

.sb-schnellcheck .sb-nav-back {
    background: none;
    border: none;
    color: var(--sb-text-light);
    font-size: 15px;
    cursor: pointer;
    padding: 10px 0;
}

.sb-schnellcheck .sb-nav-next {
    background: var(--sb-primary);
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sb-schnellcheck .sb-nav-next:hover {
    background: var(--sb-primary-dark);
}

.sb-schnellcheck .sb-result {
    text-align: center;
    padding: 20px 0;
}

.sb-schnellcheck .sb-result-icon {
    width: 64px;
    height: 64px;
    background: var(--sb-primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

/* === Floating WhatsApp Button === */
.sb-whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
}

.sb-whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.5);
}

.sb-whatsapp-float svg {
    width: 32px;
    height: 32px;
    fill: white;
}

.sb-whatsapp-float .sb-wa-tooltip {
    position: absolute;
    right: 72px;
    background: var(--sb-text);
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.sb-whatsapp-float:hover .sb-wa-tooltip {
    opacity: 1;
}

/* === Section Styles === */
.sb-section {
    padding: 80px 0;
}

.sb-section-light {
    background: var(--sb-primary-light);
}

.sb-section-title {
    text-align: center;
    margin-bottom: 48px;
}

.sb-section-title h2 {
    font-size: 36px;
    margin-bottom: 16px;
}

.sb-section-title p {
    font-size: 18px;
    color: var(--sb-text-light);
    max-width: 600px;
    margin: 0 auto;
}

.sb-badge {
    display: inline-block;
    background: var(--sb-primary-light);
    color: var(--sb-primary);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
}

/* === Trust Bar === */
.sb-trust-bar {
    display: flex;
    justify-content: center;
    gap: 40px;
    padding: 20px 0;
    flex-wrap: wrap;
}

.sb-trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--sb-text-light);
    font-size: 14px;
    font-weight: 500;
}

.sb-trust-item svg {
    width: 20px;
    height: 20px;
    color: var(--sb-success);
}

/* === FAQ Accordion === */
.sb-faq-item {
    background: var(--sb-white);
    border: 1px solid var(--sb-border);
    border-radius: var(--sb-radius);
    margin-bottom: 12px;
    overflow: hidden;
}

.sb-faq-question {
    padding: 20px 24px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 16px;
    transition: background 0.2s ease;
}

.sb-faq-question:hover {
    background: var(--sb-primary-light);
}

.sb-faq-question .sb-faq-icon {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
    color: var(--sb-primary);
    flex-shrink: 0;
}

.sb-faq-item.open .sb-faq-icon {
    transform: rotate(180deg);
}

.sb-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.sb-faq-item.open .sb-faq-answer {
    max-height: 500px;
    padding: 0 24px 20px;
}

/* === Hero === */
.sb-hero {
    padding: 100px 0 80px;
    background: linear-gradient(135deg, var(--sb-primary-light) 0%, var(--sb-white) 100%);
    position: relative;
    overflow: hidden;
}

.sb-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 171, 228, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.sb-hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.sb-hero-text h1 {
    font-size: 44px;
    line-height: 1.2;
    margin-bottom: 20px;
}

.sb-hero-text h1 span {
    color: var(--sb-primary);
}

.sb-hero-text p {
    font-size: 18px;
    color: var(--sb-text-light);
    margin-bottom: 32px;
    line-height: 1.7;
}

/* === Responsive === */
@media (max-width: 768px) {
    .sb-hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 0 16px;
    }

    .sb-hero {
        padding: 60px 0 40px;
    }

    .sb-hero-text h1 {
        font-size: 30px;
    }

    .sb-section {
        padding: 48px 0;
    }

    .sb-section-title h2 {
        font-size: 26px;
    }

    .sb-schnellcheck {
        padding: 24px;
    }

    .sb-trust-bar {
        gap: 20px;
    }

    .sb-card {
        padding: 24px;
    }
}

@media (max-width: 480px) {
    .sb-hero-text h1 {
        font-size: 26px;
    }

    .sb-schnellcheck {
        padding: 20px;
    }

    .sb-whatsapp-float {
        bottom: 16px;
        right: 16px;
        width: 56px;
        height: 56px;
    }
}

/* === Pfändungsrechner === */
.sb-rechner {
    background: var(--sb-white);
    border-radius: var(--sb-radius);
    padding: 32px;
    box-shadow: var(--sb-shadow);
    border: 1px solid var(--sb-border);
}

.sb-rechner label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 15px;
}

.sb-rechner input[type="number"],
.sb-rechner select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--sb-border);
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 20px;
    transition: border-color 0.2s ease;
}

.sb-rechner input:focus,
.sb-rechner select:focus {
    outline: none;
    border-color: var(--sb-primary);
}

.sb-rechner-result {
    background: var(--sb-primary-light);
    border-radius: var(--sb-radius);
    padding: 24px;
    margin-top: 20px;
    text-align: center;
}

.sb-rechner-result .amount {
    font-size: 36px;
    font-weight: 700;
    color: var(--sb-primary);
}

/* === Notfall Banner === */
.sb-notfall-banner {
    background: linear-gradient(135deg, #DC3545 0%, #C82333 100%);
    color: white;
    padding: 16px 24px;
    text-align: center;
    font-weight: 600;
}

.sb-notfall-banner a {
    color: white;
    text-decoration: underline;
}

/* === Team Section === */
.sb-team-card {
    text-align: center;
    padding: 40px 24px;
}

.sb-team-photo {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 4px solid var(--sb-primary-light);
}

.sb-team-name {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 4px;
}

.sb-team-role {
    color: var(--sb-primary);
    font-weight: 500;
    font-size: 15px;
}

/* === Step Process === */
.sb-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.sb-step-card {
    text-align: center;
    padding: 32px 24px;
    position: relative;
}

.sb-step-number {
    width: 48px;
    height: 48px;
    background: var(--sb-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    margin: 0 auto 16px;
}

/* === Language Switcher === */
.sb-lang-switcher {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.sb-lang-flag {
    width: 28px;
    height: 20px;
    border-radius: 3px;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.sb-lang-flag:hover,
.sb-lang-flag.active {
    opacity: 1;
}

/* === Remove default widgets and sidebar === */
.sidebar, #secondary, .widget-area {
    display: none !important;
}

/* Full width content */
.site-content {
    width: 100% !important;
}

.content-area {
    width: 100% !important;
    float: none !important;
}

/* Remove GeneratePress footer credit */
.site-info .copyright-bar,
.site-info a[href*="flavor"],
.site-info a[href*="flavor"],
.footer-bar .container {
    display: none !important;
}

.site-info {
    text-align: center;
    padding: 20px 0;
}

/* Remove search widget styling */
.widget_search,
.widget_recent_entries,
.widget_recent_comments,
.widget_archives,
.widget_categories,
.widget_meta {
    display: none !important;
}

/* Ensure page content is full width */
body.page .site-main {
    width: 100%;
    max-width: 100%;
}

body.page .inside-article {
    max-width: 100%;
    padding: 0;
}

/* Remove default page title since we use our own h1 */
body.page .entry-header {
    display: none;
}

/* Clean container */
.inside-article {
    padding: 0;
}

.site-main .entry-content {
    max-width: 100%;
}
