/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #00a86b;
    --primary-dark: #008a5a;
    --secondary-color: #ff6b35;
    --text-dark: #1a1a1a;
    --text-light: #666;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.15);
    --radius: 8px;
    --radius-lg: 12px;
    --transition: all 0.3s ease;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
}

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

/* Header */
.header {
    background: var(--bg-white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.header-nav {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.header-nav .nav-link {
    display: inline-flex;
    align-items: center;
    padding: 0.625rem 1.25rem;
    text-decoration: none;
    color: #495057;
    font-weight: 500;
    font-size: 0.9375rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    position: relative;
}

.header-nav .nav-link:hover {
    color: #00a86b;
    background: #f8f9fa;
}

.header-nav .nav-link.active {
    color: #00a86b;
    background: #e8f5e9;
    font-weight: 600;
}

.header-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background: #00a86b;
    border-radius: 2px 2px 0 0;
}

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

.logo h1 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.tagline {
    font-size: 0.875rem;
    color: var(--text-light);
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8f5e9 100%);
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.hero-subtitle {
    font-size: 1.25rem;
    text-align: center;
    color: var(--text-light);
    margin-bottom: 3rem;
}

.hero-cta {
    margin-bottom: 3rem;
    text-align: center;
}

.hero-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
    text-align: left;
}

.hero-features > div {
    display: flex;
    flex-direction: column;
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero-features h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.hero-features p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Calculation Wizard */
.calculation-wizard {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 2rem;
    margin-top: 2rem;
}

.wizard-step {
    display: none;
}

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

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

.step-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    font-weight: 700;
    font-size: 1.25rem;
}

.step-header h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-dark);
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 168, 107, 0.1);
}

.form-hint {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: var(--text-light);
}

.required {
    color: var(--secondary-color);
    font-weight: 600;
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 0.25rem;
    cursor: pointer;
}

.checkbox-label span {
    line-height: 1.5;
}

.legal-checkbox {
    font-size: 0.875rem;
}

.legal-checkbox a {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Map */
.map-container {
    width: 100%;
    height: 400px;
    margin-top: 1rem;
    border-radius: var(--radius);
    overflow: hidden;
    border: 2px solid var(--border-color);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background: var(--bg-light);
    color: var(--text-dark);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--border-color);
}

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

.btn-icon {
    font-size: 1.25rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
}

/* Paywall */
.paywall {
    text-align: center;
}

.paywall-content {
    max-width: 500px;
    margin: 0 auto;
}

.price-display {
    margin: 2rem 0;
}

.price-amount {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
}

.price-label {
    display: block;
    color: var(--text-light);
    margin-top: 0.5rem;
}

.paywall-description {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    color: var(--text-dark);
}

.paywall-features {
    list-style: none;
    text-align: left;
    margin: 2rem 0;
    padding: 0;
}

.paywall-features li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.disclaimer {
    margin-top: 2rem;
    padding: 1rem;
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    border-radius: var(--radius);
    font-size: 0.875rem;
    text-align: left;
}

/* Result Container */
.result-container {
    padding: 2rem 0;
}

.result-card {
    background: var(--bg-light);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.result-card h4 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.result-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
}

/* How it Works */
.how-it-works {
    padding: 4rem 0;
    background: var(--bg-white);
}

.section-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-dark);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.step-card {
    text-align: center;
    padding: 2rem;
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.step-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
}

.step-card h3 {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

/* FAQ */
.faq {
    padding: 4rem 0;
    background: var(--bg-light);
}

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

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

.faq-question {
    width: 100%;
    padding: 1.5rem;
    text-align: left;
    background: none;
    border: none;
    font-size: 1.125rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

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

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.faq-question.active::after {
    content: '−';
}

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

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

.faq-answer p {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-light);
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* Modal */
.modal {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    backdrop-filter: blur(4px);
}

.modal-content {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-large {
    max-width: 800px;
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h2 {
    margin: 0;
    color: var(--text-dark);
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.cookie-category {
    margin-bottom: 2rem;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: var(--radius);
}

.cookie-category-header {
    margin-bottom: 0.5rem;
}

.cookie-description {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-left: 2rem;
}

.legal-links {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 1rem;
}

.legal-links a {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Top Cities Section */
.top-cities {
    padding: 4rem 0;
    background: var(--bg-light);
}

.cities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.city-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text-dark);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.city-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: var(--primary-color);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.city-link:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.city-link:hover::before {
    transform: scaleY(1);
}

.city-name {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-dark);
}

.city-link:hover .city-name {
    color: var(--primary-color);
}

.city-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    background: var(--primary-color);
    color: white;
    border-radius: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Hamburger Menu Button */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    flex-direction: column;
    gap: 0.375rem;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-dark);
    transition: var(--transition);
    border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Responsive */
@media (max-width: 1024px) {
    .container {
        padding: 0 16px;
    }

    .hero {
        padding: 3rem 0;
    }

    .hero-title {
        font-size: clamp(1.75rem, 4vw, 2.5rem);
    }

    .section-title {
        font-size: clamp(1.5rem, 4vw, 2rem);
    }

    .steps-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.5rem;
    }

    .cities-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
}

@media (max-width: 768px) {
    /* Header & Navigation */
    .header-content {
        flex-wrap: wrap;
    }

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

    .header-nav {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 0;
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid var(--border-color);
    }

    .header-nav.active {
        display: flex;
    }

    .header-nav .nav-link {
        width: 100%;
        padding: 1rem;
        border-radius: var(--radius);
        justify-content: flex-start;
    }

    .header-nav .nav-link.active::after {
        display: none;
    }

    /* Hero Section */
    .hero {
        padding: 2rem 0;
    }

    .hero-content {
        padding: 0 1rem;
    }

    .hero-title {
        font-size: clamp(1.5rem, 5vw, 2rem);
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: clamp(0.9375rem, 3vw, 1.125rem);
        margin-bottom: 2rem;
    }

    /* Features Grid in Hero */
    .hero-features {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 2rem;
    }

    .hero-features > div {
        text-align: center;
    }

    .feature-icon {
        font-size: 2rem;
    }

    .hero-features h3 {
        font-size: 1.125rem;
    }

    /* Calculator Section */
    .calculation-wizard {
        padding: 1.5rem;
        margin-top: 1.5rem;
    }

    .step-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .step-header h2,
    .step-header h3 {
        font-size: 1.25rem;
    }

    .step-number {
        width: 36px;
        height: 36px;
        font-size: 1.125rem;
    }

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

    .form-control {
        padding: 0.625rem 0.875rem;
        font-size: 0.9375rem;
    }

    .map-container {
        height: 300px;
    }

    .form-actions {
        flex-direction: column;
        gap: 0.75rem;
    }

    .form-actions .btn {
        width: 100%;
        justify-content: center;
    }

    /* Buttons */
    .btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.9375rem;
    }

    .btn-large {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
        width: 100%;
    }

    /* How it Works */
    .how-it-works {
        padding: 3rem 0;
    }

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

    .step-card {
        padding: 1.5rem;
    }

    /* Top Cities */
    .top-cities {
        padding: 3rem 0;
    }

    .cities-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 0.75rem;
    }

    .city-link {
        padding: 0.875rem 1rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .city-name {
        font-size: 0.9375rem;
    }

    .city-badge {
        align-self: flex-start;
        font-size: 0.6875rem;
    }

    /* FAQ */
    .faq {
        padding: 3rem 0;
    }

    .faq-question {
        padding: 1.25rem;
        font-size: 1rem;
    }

    .faq-answer p {
        padding: 0 1.25rem 1.25rem;
        font-size: 0.9375rem;
    }

    /* Footer */
    .footer {
        padding: 2rem 0 1rem;
    }

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

    .footer-section {
        text-align: center;
    }

    /* Modal */
    .modal-content {
        width: 95%;
        max-height: 95vh;
    }

    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 1.25rem;
    }

    .modal-footer {
        flex-direction: column;
    }

    .modal-footer .btn {
        width: 100%;
    }

    /* SEO Hero (pv-ertrag-berechnen.php) */
    .seo-hero {
        padding: 1.5rem 0 2rem;
    }

    .seo-hero h1 {
        font-size: clamp(1.5rem, 5vw, 2rem);
        margin-bottom: 0.75rem;
    }

    .seo-hero .subtitle {
        font-size: clamp(0.9375rem, 3vw, 1.0625rem);
        margin-bottom: 1.5rem;
    }

    .calculator-section {
        padding: 1.25rem;
        margin-bottom: 2rem;
    }

    .result-preview {
        padding: 1.5rem;
    }

    .result-preview h3 {
        font-size: 1.25rem;
        margin-bottom: 1.25rem;
    }

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

    .result-item {
        padding: 1.25rem;
    }

    .result-item .value {
        font-size: 1.75rem;
    }

    .content-section {
        padding: 0 1rem;
        margin-bottom: 2rem;
    }

    .content-section h2 {
        font-size: clamp(1.25rem, 4vw, 1.5rem);
        margin-top: 2rem;
        margin-bottom: 0.75rem;
    }

    .content-section p {
        font-size: 0.9375rem;
        margin-bottom: 1.25rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }

    .header-content {
        padding: 0.75rem 0;
    }

    .logo h1 {
        font-size: 1.25rem;
    }

    .hero {
        padding: 1.5rem 0;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .calculation-wizard {
        padding: 1.25rem;
    }

    .step-header h2,
    .step-header h3 {
        font-size: 1.125rem;
    }

    .cities-grid {
        grid-template-columns: 1fr;
    }

    .city-link {
        padding: 1rem;
    }

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }

    .steps-grid {
        gap: 1rem;
    }

    .step-card {
        padding: 1.25rem;
    }

    .calculator-section {
        padding: 1rem;
    }

    .result-preview {
        padding: 1.25rem;
    }

    .result-item .value {
        font-size: 1.5rem;
    }
}

