/* Grundlegendes Styling */
:root {
    --primary-color: rgb(67, 154, 34); /* Dein Grün */
    --text-color: #333;
    --bg-light: #f9f9f9;
    --white: #ffffff;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    scroll-behavior: smooth;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navigation */
nav {
    background: var(--white);
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);

    /* Moderne CSS-Scroll-Animation */
    animation: shrink-nav linear both;
    animation-timeline: scroll();
    animation-range: 0px 150px;
}

@keyframes shrink-nav {
    to {
        padding: 0.5rem 0;
    }
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-color);
}

.logo img {
    height: 60px;

    /* Moderne CSS-Scroll-Animation */
    transition: font-size 0.3s ease;
    animation: shrink-logo linear both;
    animation-timeline: scroll();
    animation-range: 0px 150px;
}

@keyframes shrink-logo {
    to {
        height: 40px;
    }
}

nav ul {
    display: flex;
    align-items: center;
    list-style: none;
}

nav ul.mobile {
    display: none;
}

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
}

nav ul li a:not(.btn):hover {
    color: var(--primary-color);
}

nav ul li a.btn {
    margin: 0;
}

/* Hero Section */
.hero {
    padding: 6rem 0 8rem 0; /* Sehr viel Platz nach oben und unten */
    background-color: var(--white);
    background-image: 
        radial-gradient(circle at 90% 10%, rgba(67, 154, 34, 0.03) 0%, transparent 40%),
        radial-gradient(circle at 10% 90%, rgba(67, 154, 34, 0.03) 0%, transparent 40%);
    text-align: center;
}

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

.hero-badge {
    display: inline-block;
    background: rgba(67, 154, 34, 0.08);
    color: var(--primary-color);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 2rem;
    text-transform: uppercase;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem); /* Responsive Schriftgröße */
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: #1a1a1a;
    font-weight: 800;
}

.text-green {
    color: var(--primary-color);
}

.hero-subline {
    font-size: 1.25rem;
    color: #666;
    max-width: 650px;
    margin: 0 auto 2rem auto;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.hero-actions a {
    margin-top: 0 !important;
}

.btn {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    padding: 0.6rem 1.5rem;
    text-decoration: none;
    border: 2px solid var(--primary-color);
    border-radius: 5px;
    margin-top: 2rem;
    transition: opacity 0.3s;
}

.btn-ghost {
    display: inline-block;
    background: transparent;
    color: var(--primary-color);
    padding: 0.6rem 1.5rem;
    text-decoration: none;
    border: 2px solid var(--primary-color);
    border-radius: 5px;
    margin-top: 2rem;
    transition: opacity 0.3s;
}

.btn:hover {
    opacity: 0.9;
}

/* Sektionen Allgemein */
section {
    padding: 6rem 0;
}

h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 3rem;
    position: relative;
    word-wrap: break-word;
}

h3 {
    margin-bottom: 1rem;
}

h2::after {
    content: '';
    width: 50px;
    height: 3px;
    background: var(--primary-color);
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

p {
    margin: 1rem 0rem;
}

/* Grundstyling für alle Links */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.15s ease-in-out;
    position: relative;
    font-weight: 500;
}

/* Spezielles Design für Links innerhalb von Textabsätzen (p) */
p a {
    border-bottom: 1px solid rgba(67, 154, 34, 0.2);
    padding-bottom: 1px;
    opacity: 0.8;
}

p a:hover {
    border-bottom: 1px solid var(--primary-color);
    opacity: 1;
}

/* Grid-Layout für Leistungen */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

#schwerpunkte {
    padding-bottom: 0;
}

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

.service-card {
    background: var(--white);
    padding: 3rem 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    transition: transform 0.3s ease;
    border-bottom: 3px solid transparent;
}

.service-card:hover {
    transform: translateY(-5px);
    border-bottom: 3px solid var(--primary-color);
}

.service-card .icon {
    height: 3rem;
    width: 3rem;
    margin-bottom: 1.5rem;
}

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

.service-card ul {
    list-style: none;
    margin-top: 1.5rem;
    text-align: left;
}

.service-card ul li {
    padding: 0.5rem 0;
    border-top: 1px solid #eee;
    font-size: 0.95rem;
    position: relative;
    padding-left: 1.5rem;
}

.service-card ul li::before {
    content: '✓';
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Honorar Tabelle */
.pricing {
    background: var(--bg-light);
}

.price-table-wrapper {
    margin: 0 auto;
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

.price-table {
    width: 100%;
    border-collapse: collapse;
}

.price-table th {
    text-align: left;
    padding: 1.5rem;
    border-bottom: 2px solid var(--primary-color);
    color: var(--text-color);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.price-table th:last-child {
    text-align: right;
}

.price-table td {
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid #eee;
}

.price-table tr:last-child td {
    border-bottom: none;
}

.price-table td:last-child {
    font-weight: bold;
    color: var(--primary-color);
    text-align: right;
}

.price-note {
    margin-top: 2rem;
    font-style: italic;
    color: #666;
    text-align: center;
    font-size: 0.9rem;
}

/* Mobile Anpassung für die Tabelle */
@media (max-width: 600px) {
    .price-table td {
        padding: 1rem 0.5rem;
        font-size: 0.9rem;
    }
}

/* Über mich */
.about {
    padding: 0;
    background: var(--white);
    max-width: 1920px;
    margin: 0 auto;
}

.about-flex {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    min-height: 600px;
}

.about-image, .about-text {
    flex: 0 0 50%;
    width: 50%;
}

.about-image {
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.about-image img {
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.about-text {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 5rem;
    background: var(--bg-light);
}

.text-content {
    max-width: 500px; /* Verhindert, dass die Zeilen zu lang werden */
}

.text-content span {
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: bold;
    font-size: 0.9rem;
}

.text-content h2 {
    text-align: left;
    margin: 1rem 0 2rem 0;
}

.text-content h2::after {
    left: 0;
    transform: none; /* Linie linksbündig */
}

/* Text Section */
.text-section {
    max-width: 850px;
    margin: 0 auto;
}

.padding-top-none {
    padding-top: 0rem;
}

.text-section h2 {
    margin-bottom: 6rem;
}

/* Footer */
footer {
    text-align: center;
    padding: 3rem 0;
    background: #333;
    color: var(--white);
}

footer p {
    margin-top: 0rem;
}

footer a {
    color: var(--white);
    text-decoration: none;
}

/* Mobil-Anpassung */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem !important;
    }
    h2 {
        font-size: 1.5rem !important;
    }
    nav {
        padding: 0.5rem 0;
    }
    nav ul {
        display: none; /* Vereinfacht für diesen Entwurf */
    }
    nav ul.mobile, nav ul.back {
        display: block !important;
    }
    .logo img {
        height: 40px;
    }
    .hero {
        padding: 4rem 0;
    }
    .hero-badge {
        font-size: 0.75rem;
        padding: 0.4rem 1rem;
        margin-bottom: 1.5rem;
    }
    .hero-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    .hero-subline {
        font-size: 1rem;
    }
    .about-flex {
        flex-direction: column;
    }
    .about-image, .about-text {
        flex: 0 0 100%;
        width: 100%;
    }
    .about-image {
        height: 400px;
    }
    .about-text, .contact-text {
        padding: 3rem 2rem;
    }
}