/* ========================================
   SOLARHAMBURG - MAIN STYLESHEET
   ======================================== */

/* ========== CSS VARIABLES ========== */
:root {
    /* Colors - Based on SolarHamburg Logo */
    --solar-gold: #FBBC05;
    --solar-gold-light: #FDD835;
    --solar-gold-dark: #F5A623;
    --primary-dark: #2D3748;
    --primary-medium: #4A5568;
    --primary-light: #718096;
    --accent-blue: #3182CE;
    --success-green: #38A169;
    --white: #FFFFFF;
    --gray-50: #F7FAFC;
    --gray-100: #EDF2F7;
    --gray-200: #E2E8F0;
    --gray-300: #CBD5E0;
    --gray-400: #A0AEC0;
    --gray-500: #718096;
    --gray-600: #4A5568;
    --gray-700: #2D3748;
    --gray-800: #1A202C;
    --gray-900: #171923;
    
    /* Typography */
    --font-display: "Ubuntu", sans-serif;
    --font-body: 'DM Sans', sans-serif;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 25px 50px -12px rgb(0 0 0 / 0.25);
    
    /* Border Radius */
    --radius-sm: 0.5rem;
    --radius: 1rem;
    --radius-lg: 1.5rem;
    --radius-xl: 2rem;
}

/* ========== RESET & BASE ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--gray-800);
    line-height: 1.6;
    background: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.2;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ========== HEADER ========== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gray-100);
    transition: all 0.3s ease;
}

.header.scrolled {
    box-shadow: var(--shadow);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height:56px;
    width: auto;
    object-fit: contain;
}

@media (max-width: 768px) {
    .logo-img {
        height: 40px;
    }
}

@media (max-width: 430px) {
    .logo-img {
        height: 34px;
    }
}

/* ========== NAVIGATION ========== */
.nav-main {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.75rem 1rem;
    font-weight: 500;
    color: var(--gray-700);
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--solar-gold-dark);
    background: rgba(245, 158, 11, 0.08);
}

.nav-link svg {
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
}

.nav-item:hover .nav-link svg {
    transform: rotate(180deg);
}

/* Mega Menu */
.mega-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 1.5rem;
    min-width: 600px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
}

.nav-item:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.mega-menu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.mega-menu-section h4 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--gray-100);
}

.mega-menu-section h4 svg {
    width: 18px;
    height: 18px;
    color: var(--solar-gold);
}

.mega-menu-links {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.mega-menu-link {
    display: block;
    padding: 0.5rem 0.75rem;
    color: var(--gray-700);
    font-size: 0.95rem;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.mega-menu-link:hover {
    color: var(--solar-gold-dark);
    background: rgba(245, 158, 11, 0.08);
}

.mega-menu-link.view-all {
    color: var(--solar-gold-dark);
    font-weight: 600;
    margin-top: 0.5rem;
}

/* Single Dropdown */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 0.75rem;
    min-width: 250px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    transform: translateY(10px);
}

.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-link {
    display: block;
    padding: 0.625rem 1rem;
    color: var(--gray-700);
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.dropdown-link:hover {
    color: var(--solar-gold-dark);
    background: rgba(245, 158, 11, 0.08);
}

/* Header CTA */
.header-cta {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-phone {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-600);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.header-phone:hover {
    color: var(--primary-dark);
}

.header-phone svg {
    width: 20px;
    height: 20px;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    padding: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle svg {
    width: 28px;
    height: 28px;
    color: var(--gray-700);
}

/* ========== BUTTONS ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--solar-gold), var(--solar-gold-dark));
    color: var(--white);
    box-shadow: 0 4px 14px 0 rgba(245, 158, 11, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(245, 158, 11, 0.5);
}

.btn-secondary {
    background: var(--primary-dark);
    color: var(--white);
}

.btn-secondary:hover {
    background: var(--success-green);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--gray-300);
    color: var(--gray-700);
}

.btn-outline:hover {
    border-color: var(--solar-gold);
    color: var(--solar-gold-dark);
}

.btn-lg {
    padding: 1.125rem 2rem;
    font-size: 1.125rem;
}

.btn-sm {
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
}

/* ========== HERO SECTION ========== */
.hero {
    padding: 8rem 0 4rem;
    background: linear-gradient(180deg, var(--gray-50) 0%, var(--white) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(16, 185, 129, 0.1);
    color: var(--primary-dark);
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.6s ease;
}

.hero-badge svg {
    width: 18px;
    height: 18px;
}

.hero h1 {
    font-size: 3.5rem;
    color: var(--gray-900);
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.6s ease 0.1s both;
}

.hero h1 span {
    color: var(--solar-gold-dark);
    position: relative;
}

.hero h1 span::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0;
    right: 0;
    height: 8px;
    background: var(--solar-gold-light);
    opacity: 0.4;
    z-index: -1;
}

.hero-text {
    font-size: 1.25rem;
    color: var(--gray-600);
    margin-bottom: 2rem;
    animation: fadeInUp 0.6s ease 0.2s both;
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
    animation: fadeInUp 0.6s ease 0.3s both;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-700);
    font-weight: 500;
}

.hero-feature svg {
    width: 20px;
    height: 20px;
    color: var(--success-green);
}

/* ========== FORM CARD ========== */
.form-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-100);
    animation: fadeInUp 0.8s ease 0.3s both;
}

.form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.form-header h3 {
    font-size: 1.5rem;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.form-header p {
    color: var(--gray-500);
}

.form-steps {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.form-step {
    width: 40px;
    height: 4px;
    background: var(--gray-200);
    border-radius: 100px;
    transition: all 0.3s ease;
}

.form-step.active {
    background: var(--solar-gold);
    width: 60px;
}

.form-step.completed {
    background: var(--success-green);
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

.form-input {
    width: 100%;
    padding: 1rem 1.25rem;
    font-family: var(--font-body);
    font-size: 1rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    background: var(--gray-50);
    transition: all 0.2s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--solar-gold);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.1);
}

.form-input::placeholder {
    color: var(--gray-400);
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.25rem;
    padding-right: 3rem;
}

.form-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.form-option {
    position: relative;
}

.form-option input[type="radio"],
.form-option input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.form-option-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.25rem;
    background: var(--gray-50);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.form-option input:checked + .form-option-label {
    border-color: var(--solar-gold);
    background: rgba(245, 158, 11, 0.05);
}

.form-option-label:hover {
    border-color: var(--gray-300);
}

.form-option-icon {
    font-size: 1.75rem;
}

.form-option-text {
    font-weight: 600;
    color: var(--gray-700);
    font-size: 0.9rem;
}

.form-section {
    display: none;
}

.form-section.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.form-navigation {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.form-navigation .btn {
    flex: 1;
}

.form-trust {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-100);
}

.form-trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-500);
    font-size: 0.875rem;
}

.form-trust-item svg {
    width: 16px;
    height: 16px;
    color: var(--success-green);
}

/* ========== SECTION STYLES ========== */
.section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.section-tag {
    display: inline-block;
    padding: 0.375rem 1rem;
    background: rgba(245, 158, 11, 0.1);
    color: var(--solar-gold-dark);
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--gray-600);
}

/* ========== BENEFITS GRID ========== */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.benefit-card {
    padding: 2rem;
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-100);
    transition: all 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--solar-gold-light);
}

.benefit-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--solar-gold-light), var(--solar-gold));
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.benefit-card h3 {
    font-size: 1.25rem;
    color: var(--gray-900);
    margin-bottom: 0.75rem;
}

.benefit-card p {
    color: var(--gray-600);
    font-size: 0.95rem;
}

/* ========== HOW IT WORKS ========== */
.how-it-works {
    background: var(--primary-dark);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.how-it-works::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.how-it-works .section-tag {
    background: rgba(255, 255, 255, 0.1);
    color: var(--solar-gold-light);
}

.how-it-works .section-header h2 {
    color: var(--white);
}

.how-it-works .section-header p {
    color: rgba(255, 255, 255, 0.7);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    position: relative;
}

.step-card {
    text-align: center;
    padding: 2rem;
    position: relative;
}

.step-number {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--solar-gold), var(--solar-gold-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
    margin: 0 auto 1.5rem;
    position: relative;
    z-index: 1;
}

.step-card:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 40px;
    left: calc(50% + 50px);
    width: calc(100% - 100px);
    height: 3px;
    background: rgba(255, 255, 255, 0.2);
    z-index: 0;
}

.step-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.step-card p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

/* ========== STATS ========== */
.stats {
    background: var(--gray-50);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

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

.stat-number {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    color: var(--solar-gold-dark);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--gray-600);
    font-weight: 500;
}

/* ========== TESTIMONIALS ========== */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.testimonial-card {
    padding: 2rem;
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    border-color: var(--solar-gold-light);
    box-shadow: var(--shadow-md);
}

.testimonial-stars {
    color: var(--solar-gold);
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.testimonial-text {
    color: var(--gray-700);
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--success-green), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
    font-size: 1.125rem;
}

.testimonial-info h4 {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--gray-900);
}

.testimonial-info p {
    font-size: 0.875rem;
    color: var(--gray-500);
}

/* ========== FAQ ========== */
.faq {
    background: var(--gray-50);
}

.faq-grid {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    border-radius: var(--radius);
    margin-bottom: 1rem;
    border: 1px solid var(--gray-200);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gray-900);
    transition: all 0.2s ease;
}

.faq-question:hover {
    color: var(--solar-gold-dark);
}

.faq-icon {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

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

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

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer-content {
    padding: 0 1.5rem 1.5rem;
    color: var(--gray-600);
    line-height: 1.7;
}

/* ========== CTA SECTION ========== */
.cta-section {
    background: linear-gradient(135deg, var(--solar-gold), var(--solar-gold-dark));
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
    pointer-events: none;
}

.cta-section h2 {
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

.cta-section .btn {
    background: var(--white);
    color: var(--solar-gold-dark);
    box-shadow: var(--shadow-lg);
}

.cta-section .btn:hover {
    transform: translateY(-3px);
}

/* ========== FOOTER ========== */
.footer {
    padding: 4rem 0 2rem;
    background: var(--gray-900);
    color: var(--gray-400);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand .logo {
    display: inline-block;
    
    border-radius: var(--radius);
    margin-bottom: 1rem;
}

.footer-brand .logo-img {
    height: 64px;
}

.footer-brand p {
    margin-top: 0;
    font-size: 0.95rem;
    line-height: 1.7;
}

.footer h4 {
    color: var(--white);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--gray-400);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--solar-gold-light);
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-contact-item svg {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    color: var(--solar-gold);
    flex-shrink: 0;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--gray-800);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
}

.footer-legal {
    display: flex;
    gap: 2rem;
}

.footer-legal a {
    color: var(--gray-500);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-legal a:hover {
    color: var(--white);
}

/* ========== PAGE HEADER (for subpages) ========== */
.page-header {
    padding: 8rem 0 3rem;
    background: linear-gradient(180deg, var(--gray-50) 0%, var(--white) 100%);
    text-align: center;
}

.page-header h1 {
    font-size: 2.75rem;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.25rem;
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto;
}

.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    color: var(--gray-500);
}

.breadcrumb a {
    color: var(--gray-500);
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: var(--solar-gold-dark);
}

.breadcrumb svg {
    width: 16px;
    height: 16px;
}

/* ========== RATGEBER/ARTICLE STYLES ========== */
.article-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 0 5rem;
}

.article-content h2 {
    font-size: 1.75rem;
    color: var(--gray-900);
    margin: 2.5rem 0 1rem;
}

.article-content h3 {
    font-size: 1.375rem;
    color: var(--gray-900);
    margin: 2rem 0 0.75rem;
}

.article-content p {
    margin-bottom: 1.25rem;
    color: var(--gray-700);
    line-height: 1.8;
}

.article-content ul,
.article-content ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
    color: var(--gray-700);
}

.article-content li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

.info-box {
    padding: 1.5rem;
    background: rgba(245, 158, 11, 0.08);
    border-left: 4px solid var(--solar-gold);
    border-radius: 0 var(--radius) var(--radius) 0;
    margin: 2rem 0;
}

.info-box h4 {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    color: var(--solar-gold-dark);
    margin-bottom: 0.5rem;
}

.info-box p {
    margin-bottom: 0;
    color: var(--gray-700);
}

.cost-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.cost-table th,
.cost-table td {
    padding: 1rem 1.25rem;
    text-align: left;
}

.cost-table th {
    background: var(--primary-dark);
    color: var(--white);
    font-weight: 600;
}

.cost-table tr:nth-child(even) {
    background: var(--gray-50);
}

.cost-table tr:hover {
    background: rgba(245, 158, 11, 0.05);
}

/* ========== CALCULATOR STYLES ========== */
.calculator-section {
    background: var(--gray-50);
    padding: 3rem 0 5rem;
}

.calculator-card {
    max-width: 700px;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
}

.calculator-card h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.calc-group {
    margin-bottom: 1.5rem;
}

.calc-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.calc-label span:first-child {
    font-weight: 600;
    color: var(--gray-700);
}

.calc-value {
    font-weight: 700;
    color: var(--solar-gold-dark);
}

.calc-slider {
    width: 100%;
    height: 8px;
    background: var(--gray-200);
    border-radius: 100px;
    appearance: none;
    cursor: pointer;
}

.calc-slider::-webkit-slider-thumb {
    appearance: none;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, var(--solar-gold), var(--solar-gold-dark));
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
}

.calc-results {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid var(--gray-100);
}

.calc-result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--gray-100);
}

.calc-result-item:last-child {
    border-bottom: none;
}

.calc-result-label {
    color: var(--gray-600);
}

.calc-result-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
}

.calc-result-value.highlight {
    color: var(--primary-dark);
    font-size: 1.5rem;
}

/* ========== RATGEBER OVERVIEW ========== */
.ratgeber-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.ratgeber-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    overflow: hidden;
    transition: all 0.3s ease;
}

.ratgeber-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--solar-gold-light);
}

.ratgeber-card-image {
    height: 180px;
    background: linear-gradient(135deg, var(--solar-gold-light), var(--solar-gold));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}

.ratgeber-card-content {
    padding: 1.5rem;
}

.ratgeber-card-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(245, 158, 11, 0.1);
    color: var(--solar-gold-dark);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.ratgeber-card h3 {
    font-size: 1.125rem;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.ratgeber-card p {
    font-size: 0.9rem;
    color: var(--gray-600);
    margin-bottom: 1rem;
}

.ratgeber-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--solar-gold-dark);
    font-weight: 600;
    font-size: 0.9rem;
}

.ratgeber-card-link svg {
    width: 16px;
    height: 16px;
    transition: transform 0.2s;
}

.ratgeber-card:hover .ratgeber-card-link svg {
    transform: translateX(4px);
}

/* ========== SUCCESS MESSAGE ========== */
.success-message {
    text-align: center;
    padding: 2rem;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--success-green), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--white);
    font-size: 2.5rem;
}

.success-message h3 {
    color: var(--gray-900);
    margin-bottom: 1rem;
}

.success-message p {
    color: var(--gray-600);
}

/* ========== ANIMATIONS ========== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

/* ========== MOBILE SLIDE-IN MENU ========== */
.mobile-nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(23, 25, 35, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1100;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.mobile-nav-overlay.open {
    display: block;
    opacity: 1;
}

.mobile-nav-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: min(300px, 85vw);
    height: 100%;
    background: var(--white);
    z-index: 1101;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(.4,0,.2,1);
    display: flex;
    flex-direction: column;
    box-shadow: -8px 0 30px rgba(0,0,0,0.15);
}
.mobile-nav-drawer.open {
    transform: translateX(0);
}

.mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--gray-100);
}

.mobile-nav-close {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-50);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s;
}
.mobile-nav-close:hover { background: var(--gray-200); }
.mobile-nav-close svg { width: 20px; height: 20px; color: var(--gray-700); }

.mobile-nav-links {
    flex: 1;
    padding: 1rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--gray-700);
    border-radius: var(--radius-sm);
    transition: all 0.2s;
    text-decoration: none;
}
.mobile-nav-link:hover,
.mobile-nav-link:active {
    color: var(--solar-gold-dark);
    background: rgba(245, 158, 11, 0.06);
}
.mobile-nav-link svg {
    width: 20px;
    height: 20px;
    color: var(--gray-400);
    flex-shrink: 0;
}

.mobile-nav-cta {
    padding: 1.25rem 1.5rem;
    border-top: 1px solid var(--gray-100);
}
.mobile-nav-cta .btn {
    width: 100%;
    justify-content: center;
}

/* ========== STICKY MOBILE CTA BAR ========== */
.mobile-cta-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--white);
    border-top: 1px solid var(--gray-200);
    padding: 0.75rem 1rem;
    padding-bottom: max(0.75rem, env(safe-area-inset-bottom, 0.75rem));
    box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
}

.mobile-cta-bar .btn {
    width: 100%;
    justify-content: center;
    font-size: 1rem;
    padding: 0.875rem;
    border-radius: var(--radius-sm);
}

/* ========== RESPONSIVE ========== */

/* Promise Grid: Desktop 2 Spalten */
.promise-grid {
    grid-template-columns: repeat(2, 1fr);
}

/* --------- Tablet (≤1024px) --------- */
@media (max-width: 1024px) {
    .nav-main {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 1rem 1.5rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-top: 1px solid var(--gray-100);
    z-index: 999;
}

.nav-main.mobile-open {
    display: flex;
}

.nav-main .nav-link {
    padding: 0.875rem 1rem;
    width: 100%;
    border-bottom: 1px solid var(--gray-100);
}

.nav-main .nav-link:last-child {
    border-bottom: none;
}

.header-cta {
    display: none;
}

body.menu-open {
    overflow: hidden;
}

    .mobile-menu-toggle {
        display: block;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .hero h1 { font-size: 2.75rem; }

    .benefits-grid,
    .steps-grid,
    .testimonials-grid {
        grid-template-columns: 1fr 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

/* --------- Mobile (≤768px) --------- */
@media (max-width: 768px) {
    .header-phone { display: none; }

    .mobile-cta-bar {
        display: block;
    }

    /* -- Grundlegende Typographie & Abstände -- */
    .section {
        padding: 2.5rem 0;
    }

    .section-header {
        margin-bottom: 1.75rem;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    .section-header p {
        font-size: 0.9rem;
    }

    .section-tag {
        font-size: 0.7rem;
        padding: 0.25rem 0.625rem;
        margin-bottom: 0.625rem;
    }

    /* -- Hero -- */
    .hero {
        padding: 5.5rem 0 1.5rem;
    }

    .hero h1 {
        font-size: 1.75rem;
        line-height: 1.25;
    }

    .hero-text {
        font-size: 0.9rem;
        margin-bottom: 1rem;
        line-height: 1.55;
    }

    .hero-badge {
        font-size: 0.75rem;
        padding: 0.35rem 0.75rem;
        margin-bottom: 0.875rem;
    }
    .hero-badge svg { width: 14px; height: 14px; }

    .hero-features {
        flex-direction: column;
        gap: 0.375rem;
        margin-bottom: 1.25rem;
    }

    .hero-feature {
        font-size: 0.825rem;
        gap: 0.375rem;
    }
    .hero-feature svg {
        width: 16px; height: 16px;
        flex-shrink: 0;
    }

    /* ============================================
       FORM CARD — Mobile Herzstück
       ============================================ */
    .form-card {
        padding: 1.25rem;
        border-radius: var(--radius);
        box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    }

    .form-header {
        margin-bottom: 1rem;
    }

    .form-header h3 {
        font-size: 1.2rem;
    }

    .form-header p {
        font-size: 0.825rem;
        color: var(--gray-500);
    }

    .form-steps {
        margin-bottom: 1.25rem;
        gap: 0.375rem;
    }

    .form-group {
        margin-bottom: 0.875rem;
    }

    .form-label {
        font-size: 0.85rem;
        margin-bottom: 0.375rem;
    }

    /* KRITISCH: 16px verhindert iOS Auto-Zoom */
    .form-input,
    .form-select,
    select,
    textarea {
        font-size: 16px !important;
        padding: 0.75rem 0.875rem;
    }

    .form-options {
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }

    .form-option-label {
        padding: 0.75rem 0.5rem;
        gap: 0.25rem;
        border-width: 2px;
        border-radius: var(--radius-sm);
    }

    .form-option-icon {
        font-size: 1.375rem;
    }

    .form-option-text {
        font-size: 0.75rem;
        line-height: 1.2;
    }

    .form-navigation {
        margin-top: 1rem;
        gap: 0.625rem;
    }

    .form-navigation .btn {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }

    .form-trust {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem 0.875rem;
        margin-top: 0.875rem;
        padding-top: 0.875rem;
    }

    .form-trust-item {
        font-size: 0.7rem;
        gap: 0.25rem;
    }
    .form-trust-item svg {
        width: 12px; height: 12px;
    }

    /* ============================================
       BENEFIT CARDS — Kompakte Karten, NICHT horizontal
       ============================================ */
    .benefits-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 0.625rem;
    }

    /* Promise Grid auch einspaltig */
    .promise-grid {
        grid-template-columns: 1fr !important;
    }

    .benefit-card {
        padding: 1rem 1.125rem;
        /* Vertikales Layout behalten, nicht horizontal */
        display: block;
        border-radius: var(--radius-sm);
    }

    .benefit-icon {
        width: 40px;
        height: 40px;
        font-size: 1.125rem;
        margin-bottom: 0.625rem;
        border-radius: 0.375rem;
    }

    .benefit-card h3 {
        font-size: 0.95rem;
        margin-bottom: 0.25rem;
    }

    .benefit-card p {
        font-size: 0.825rem;
        line-height: 1.45;
    }

    /* ============================================
       STEPS — Horizontal 3-Spaltig statt vertikal
       ============================================ */
    .steps-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }

    .step-card {
        padding: 0.75rem 0.375rem;
        text-align: center;
    }

    .step-card:not(:last-child)::after {
        display: none;
    }

    .step-number {
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
        margin: 0 auto 0.5rem;
    }

    .step-card h3 {
        font-size: 0.8rem;
        margin-bottom: 0.25rem;
        line-height: 1.2;
    }

    .step-card p {
        font-size: 0.7rem;
        line-height: 1.35;
        color: rgba(255,255,255,0.65);
    }

    /* ============================================
       STATS — 2×2 Grid kompakt
       ============================================ */
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }

    .stat-item {
        padding: 0.75rem 0.25rem;
    }

    .stat-number {
        font-size: 1.75rem;
        margin-bottom: 0.125rem;
    }

    .stat-label {
        font-size: 0.725rem;
        line-height: 1.25;
    }

    /* ============================================
       TESTIMONIALS — Kompakte Cards
       ============================================ */
    .testimonial-card {
        padding: 1rem 1.125rem;
        border-radius: var(--radius-sm);
    }

    .testimonial-stars {
        font-size: 0.875rem;
        margin-bottom: 0.5rem;
    }

    .testimonial-text {
        font-size: 0.85rem;
        margin-bottom: 0.75rem;
        line-height: 1.5;
    }

    .testimonial-author { gap: 0.625rem; }

    .testimonial-avatar {
        width: 36px; height: 36px;
        font-size: 0.8rem;
    }

    .testimonial-info h4 { font-size: 0.85rem; }
    .testimonial-info p { font-size: 0.725rem; }

    /* -- FAQ -- */
    .faq-question {
        padding: 0.875rem;
        font-size: 0.9rem;
        gap: 0.5rem;
    }
    .faq-icon { width: 18px; height: 18px; }
    .faq-answer-content {
        padding: 0 0.875rem 0.875rem;
        font-size: 0.825rem;
    }

    /* -- CTA Section -- */
    .cta-section { padding: 2rem 0; }
    .cta-section h2 {
        font-size: 1.375rem;
        margin-bottom: 0.5rem;
    }
    .cta-section p {
        font-size: 0.85rem;
        margin-bottom: 1.25rem;
    }
    .cta-section .btn {
        font-size: 0.85rem;
        padding: 0.75rem 1.25rem;
    }

    /* -- Footer -- */
    .footer {
        padding: 2rem 0 1.25rem;
        padding-bottom: 5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        text-align: left;
        gap: 1.5rem;
    }

    .footer-brand {
        grid-column: 1 / -1;
        text-align: center;
    }

    .footer-brand .logo {
        justify-content: center;
    }

    .footer-brand .logo-img { height: 44px; }
    .footer-brand p { font-size: 0.825rem; }

    .footer h4 {
        font-size: 0.825rem;
        margin-bottom: 0.625rem;
    }
    .footer-links li { margin-bottom: 0.5rem; }
    .footer-links a { font-size: 0.825rem; }

    .footer-contact-item {
        font-size: 0.825rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
        padding-top: 1.25rem;
        font-size: 0.75rem;
    }

    .footer-legal {
        justify-content: center;
        gap: 1.25rem;
    }

    /* -- Subpages -- */
    .page-header { padding: 5.5rem 0 1.5rem; }
    .page-header h1 { font-size: 1.5rem; }
    .page-header p { font-size: 0.9rem; }
    .breadcrumb { font-size: 0.75rem; }

    .article-content { padding: 1.25rem 0 2.5rem; }
    .article-content h2 { font-size: 1.25rem; }
    .article-content h3 { font-size: 1.05rem; }

    .cost-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .calculator-card { padding: 1.25rem; }
    .calc-result-value { font-size: 1rem; }
    .calc-result-value.highlight { font-size: 1.125rem; }

    .ratgeber-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    .ratgeber-card-image { height: 130px; }
    .ratgeber-card-content { padding: 1rem; }
    .ratgeber-card h3 { font-size: 0.95rem; }
    .ratgeber-card p { font-size: 0.825rem; }

    .legal-content { padding: 1.5rem 0 2.5rem; }
    .legal-content h1 { font-size: 1.5rem; }
    .legal-content h2 { font-size: 1rem; margin-top: 1.5rem; }
    .legal-content p, .legal-content li { font-size: 0.85rem; }

    /* Buttons allgemein */
    .btn { font-size: 0.85rem; padding: 0.75rem 1rem; }
    .btn-lg { padding: 0.8rem 1.25rem; font-size: 0.9rem; }
    .btn-sm { padding: 0.5rem 0.75rem; font-size: 0.75rem; }
}

/* --------- Small iPhone (≤430px) --------- */
@media (max-width: 430px) {
    .container {
        padding: 0 1rem;
    }

    .header-inner {
        padding: 0.625rem 0;
    }

    .hero {
        padding: 4.75rem 0 1rem;
    }

    .hero h1 {
        font-size: 1.5rem;
        letter-spacing: -0.01em;
    }

    .hero-text {
        font-size: 0.85rem;
    }

    .form-card {
        padding: 1rem;
    }

    .form-header h3 { font-size: 1.1rem; }

    .form-option-label {
        padding: 0.625rem 0.375rem;
    }
    .form-option-icon { font-size: 1.25rem; }
    .form-option-text { font-size: 0.7rem; }

    .section { padding: 2rem 0; }
    .section-header h2 { font-size: 1.3rem; }

    .benefit-card { padding: 0.875rem 1rem; }
    .benefit-icon { width: 36px; height: 36px; font-size: 1rem; margin-bottom: 0.5rem; }

    .step-number { width: 40px; height: 40px; font-size: 1rem; }
    .step-card h3 { font-size: 0.75rem; }
    .step-card p { font-size: 0.675rem; }

    .stat-number { font-size: 1.5rem; }
    .stat-label { font-size: 0.675rem; }

    .cta-section h2 { font-size: 1.2rem; }
}

/* --------- iPhone SE (≤375px) --------- */
@media (max-width: 375px) {
    .hero h1 { font-size: 1.375rem; }

    .form-options {
        grid-template-columns: 1fr;
    }

    .form-option-label {
        flex-direction: row;
        justify-content: flex-start;
        padding: 0.625rem 0.75rem;
        gap: 0.5rem;
    }

    .steps-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .step-card {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 0.75rem;
        text-align: left;
    }

    .step-number {
        margin: 0;
        flex-shrink: 0;
    }
}

/* ========== iOS SAFE AREAS ========== */
@supports (padding: max(0px)) {
    .mobile-cta-bar {
        padding-bottom: max(0.75rem, env(safe-area-inset-bottom));
    }
    .footer {
        padding-bottom: max(5rem, calc(4rem + env(safe-area-inset-bottom)));
    }
}

/* ========== TOUCH TARGET (Apple HIG: 44px min) ========== */
@media (pointer: coarse) {
    .btn,
    .nav-link,
    .faq-question,
    .form-option-label,
    .footer-links a,
    .mobile-nav-link {
        min-height: 44px;
    }
    .faq-pagination-btn,
    .faq-pagination-arrow {
        min-width: 44px;
        min-height: 44px;
    }
    input[type="checkbox"] {
        width: 20px;
        height: 20px;
    }
}

/* ========== REDUCED MOTION ========== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}