* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #6B9B5F;
    --primary-dark: #4F7A45;
    --secondary: #7FA874;
    --accent: #D4E8D0;
    --cream: #F5F9F4;
    --text-dark: #2F4129;
    --text-medium: #5D6B58;
    --white: #FFFFFF;
}

body {
    font-family: 'Lato', sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--cream);
}

/* Header & Navigation */
header {
    background: var(--white);
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 0.8rem 0;
    font-size: 0.9rem;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.header-top.hidden {
    transform: translateY(-100%);
    opacity: 0;
    height: 0;
    padding: 0;
    overflow: hidden;
}

.header-top-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-quick a {
    color: var(--white);
    text-decoration: none;
    margin-left: 2rem;
    transition: opacity 0.3s;
}

.contact-quick a:hover {
    opacity: 0.8;
}

nav {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.2rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-area {
    display: flex;
    flex-direction: column;
}

.logo {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    line-height: 1;
}

.logo-main {
    display: flex;
    align-items: baseline;
    color: var(--primary);
    font-weight: 700;
    letter-spacing: 0.5px;
}

.logo-small {
    font-size: 1.4rem;
}

.logo-emphasized {
    font-size: 2rem;
    margin: 0 2px;
}

.logo-name {
    font-size: 1.1rem;
    color: var(--text-dark);
    font-weight: 600;
    margin-top: 0.7rem;
}

.logo-subtitle {
    font-size: 0.85rem;
    color: var(--text-medium);
    margin-top: 0.2rem;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s;
}

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

.nav-links a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--primary);
    cursor: pointer;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(107, 155, 95, 0.08) 0%, rgba(79, 122, 69, 0.12) 100%);
    padding: 6rem 2rem 4rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 800 600"><circle cx="600" cy="100" r="200" fill="%236B9B5F" opacity="0.1"/><circle cx="700" cy="400" r="150" fill="%234F7A45" opacity="0.08"/></svg>') no-repeat center;
    opacity: 0.3;
}

.hero-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 380px 1fr 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-image-left {
    position: relative;
}

.hero-image-left img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    object-fit: cover;
}

.hero-text h1 {
    font-size: 2.8rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-text .highlight {
    color: var(--primary);
    display: block;
    font-size: 3.2rem;
}

.hero-text p {
    font-size: 1.3rem;
    color: var(--text-medium);
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
    padding: 1rem 2.5rem;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.3s;
    display: inline-block;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(201, 151, 91, 0.3);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary);
    border: 2px solid var(--primary);
}

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

.hero-image {
    position: relative;
}

.hero-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
}

.quote-box {
    font-style: italic;
    font-size: 1.2rem;
    color: var(--text-medium);
    line-height: 1.8;
    position: relative;
    padding-left: 2rem;
}

.quote-box::before {
    content: '"';
    position: absolute;
    left: 0;
    top: -10px;
    font-size: 4rem;
    color: var(--primary);
    opacity: 0.3;
}

.quote-author {
    margin-top: 1rem;
    font-weight: 600;
    color: var(--primary);
    font-style: normal;
}

/* Section Styling */
.section {
    padding: 5rem 2rem;
}

.section-alt {
    background: var(--white);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-tag {
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: 2.8rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.section-description {
    font-size: 1.2rem;
    color: var(--text-medium);
    max-width: 700px;
    margin: 0 auto;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 4rem;
    align-items: start;
}

.about-image-wrapper {
    position: relative;
}

.about-image {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.about-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--primary);
    color: var(--white);
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    text-align: center;
}

.about-badge-number {
    font-size: 2.5rem;
    font-weight: 700;
    display: block;
}

.about-badge-text {
    font-size: 0.9rem;
}

.about-content h3 {
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.about-content p {
    margin-bottom: 1.5rem;
    color: var(--text-medium);
    font-size: 1.05rem;
}

.about-highlights {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.highlight-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.highlight-text {
    font-size: 0.95rem;
    color: var(--text-dark);
    font-weight: 500;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.service-box {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 15px;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.service-box:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.service-box h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.service-box p {
    color: var(--text-medium);
    line-height: 1.7;
}

/* Focus Areas */
.focus-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
}

@media (min-width: 1200px) {
    .focus-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.focus-category {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.focus-category h3 {
    font-size: 1.4rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.focus-list {
    list-style: none;
}

.focus-list li {
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--accent);
    color: var(--text-medium);
    display: flex;
    align-items: start;
    gap: 0.8rem;
}

.focus-list li:last-child {
    border-bottom: none;
}

.focus-list li::before {
    content: '✓';
    color: var(--primary);
    font-weight: bold;
    flex-shrink: 0;
    margin-top: 2px;
}

/* What is Section */
.what-is-box {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 4rem;
    border-radius: 20px;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
}

.what-is-box h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.what-is-content {
    font-size: 1.15rem;
    line-height: 1.9;
    text-align: left;
}

.what-is-content p {
    margin-bottom: 1.5rem;
}

/* Contact Section */
.contact-wrapper {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
}

.contact-info-side {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 3rem;
}

.contact-info-side h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
}

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

.contact-icon {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-details strong {
    display: block;
    margin-bottom: 0.3rem;
    font-size: 0.9rem;
    opacity: 0.9;
}

.contact-details a {
    color: var(--white);
    text-decoration: none;
}

.contact-form-side {
    padding: 3rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

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

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.9rem;
    border: 2px solid var(--accent);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.submit-btn {
    background: var(--primary);
    color: var(--white);
    padding: 1rem 3rem;
    border: none;
    border-radius: 8px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
}

.submit-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(201, 151, 91, 0.3);
}

/* Footer */
footer {
    background: var(--text-dark);
    color: var(--accent);
    padding: 3rem 2rem 1.5rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}

.footer-logo {
    font-size: 1.8rem;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-content p {
    margin: 0.5rem 0;
}

.footer-bottom {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(228, 212, 200, 0.2);
    font-size: 0.9rem;
    opacity: 0.7;
}

.footer-links {
    margin-top: 1rem;
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary);
}

/* Hero CTA Button */
.hero-cta {
    margin-top: 2rem;
    display: block;
    text-align: center;
}

/* Flexible Beratungsformate Box */
.formats-box {
    background: linear-gradient(135deg, rgba(107, 155, 95, 0.1) 0%, rgba(79, 122, 69, 0.1) 100%);
    padding: 2.5rem;
    border-radius: 15px;
    margin-top: 3rem;
    text-align: center;
}

.formats-box h3 {
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.formats-box p:first-of-type {
    margin-bottom: 1rem;
}

.formats-grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.formats-grid > div {
    flex: 1;
    min-width: 200px;
}

.formats-note {
    margin-top: 2rem;
    font-size: 0.95rem;
    color: var(--text-medium);
}

/* Contact Form Heading */
.contact-form-heading {
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

/* Form Success Message */
.form-message {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    display: none;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.form-message.show {
    display: block;
}

/* Skip Navigation */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary);
    color: var(--white);
    padding: 0.5rem 1rem;
    text-decoration: none;
    z-index: 9999;
    font-weight: 600;
}

.skip-link:focus {
    top: 0;
}

/* Enhanced Focus States */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
}

.menu-toggle:focus {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
}

/* Visually hidden but accessible */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--primary);
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: all 0.3s;
    opacity: 0;
    visibility: hidden;
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

/* Mobile Touch Optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Larger touch targets for mobile */
    .nav-links a {
        padding: 1rem;
        display: block;
    }

    .btn-primary,
    .btn-secondary {
        min-height: 48px;
        padding: 1rem 2rem;
    }

    .submit-btn {
        min-height: 50px;
        font-size: 1.1rem;
    }

    .contact-quick a {
        padding: 0.5rem 0;
        display: inline-block;
    }

    .menu-toggle {
        min-width: 44px;
        min-height: 44px;
    }

    .back-to-top {
        width: 56px;
        height: 56px;
        bottom: 1.5rem;
        right: 1.5rem;
        font-size: 1.8rem;
    }

    /* Better spacing for form elements */
    .form-group input,
    .form-group textarea,
    .form-group select {
        min-height: 48px;
        font-size: 16px; /* Prevents zoom on iOS */
    }

    .form-group textarea {
        min-height: 120px;
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
    }

    .hero-image-left {
        max-width: 400px;
        margin: 0 auto;
    }

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

    .about-image-wrapper {
        max-width: 400px;
        margin: 0 auto;
    }

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

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

@media (max-width: 768px) {
    .header-top {
        padding: 0.4rem 0;
        font-size: 0.75rem;
        line-height: 1.3;
    }

    .header-top-content {
        flex-direction: column;
        gap: 0.15rem;
        padding: 0 1rem;
    }

    .header-top-content > div:first-child {
        margin-bottom: 0.15rem;
    }

    .contact-quick {
        display: flex;
        flex-direction: column;
        gap: 0.1rem;
    }

    .contact-quick a {
        margin-left: 0;
        font-size: 0.8rem;
        line-height: 1.4;
        padding: 0.1rem 0;
    }

    nav {
        padding: 0.8rem 1rem;
    }

    .logo-area {
        max-width: 70%;
    }

    .logo-small {
        font-size: 1.1rem;
    }

    .logo-emphasized {
        font-size: 1.6rem;
    }

    .logo-name {
        font-size: 0.95rem;
        margin-top: 0.4rem;
    }

    .logo-subtitle {
        font-size: 0.75rem;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        padding: 0.8rem 1rem;
        box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    }

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

    .nav-links a {
        padding: 0.6rem 0;
    }

    .menu-toggle {
        display: block;
        font-size: 1.5rem;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-text .highlight {
        font-size: 2.4rem;
    }

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

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

    .about-highlights {
        grid-template-columns: 1fr;
    }

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

    /* Reduziertes Padding für Kontaktformular auf Mobile */
    .contact-form-side,
    .contact-info-side {
        padding: 1.5rem;
    }

    .section {
        padding: 3rem 1rem;
    }

    .what-is-box {
        padding: 2rem 1.5rem;
    }
}
