:root {
    --primary: #609966;
    --primary-rgb: 96, 153, 102; /* RGB-Äquivalent von #609966 für Transparenzeffekte */
    --secondary: #9DC08B;
    --accent: #7EAA7E;
    --light: #EDF1D6;
    --dark: #40513B;
    --footer-gradient-end: #546d54;
    --light-text-on-dark: #F5F5F5;
    --dark-text-on-light: #40513B;
    --grey-button: #757575;
    --grey-button-hover: #616161;
    --hero-btn-hover-bg: #d4dab8;
    --header-height: 120px; /* Erhöhte Header-Höhe */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--light);
    color: var(--dark-text-on-light);
    line-height: 1.6;
    padding-top: var(--header-height);
}

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

header {
    background: linear-gradient(to right, var(--primary), var(--secondary));
    padding: 0 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    height: var(--header-height);
    display: flex;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    margin-right: auto;
}

.logo img {
    max-height: calc(var(--header-height) - 10px);
    height: calc(var(--header-height) - 10px);
    width:  calc(var(--header-height) - 10px);
    display: block;
    border-radius: 50%;
    border: 5px solid var(--light);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    object-fit: contain;
}

.logo a {
    display: inline-block;
    line-height: 0;
}

nav {
    display: flex;
    align-items: center;
}

nav ul {
    display: flex;
    list-style: none;
    align-items: center;
    padding-left: 0;
    margin: 0;
}

nav ul li {
    margin-left: 30px;
}
nav ul li:first-child {
    margin-left: 0;
}

nav ul li a {
    color: var(--light-text-on-dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 8px 0;
    border-bottom: 2px solid transparent;
    position: relative;
    display: block;
    font-size: 18px;
}

nav ul li a:hover,
nav ul li a:focus {
    color: var(--light);
    border-bottom-color: transparent;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 50%;
    background-color: var(--light);
    transition: all 0.3s ease-out;
    transform: translateX(-50%);
}

nav ul li a:hover::after,
nav ul li a:focus::after {
    width: 100%;
}

#mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--light-text-on-dark);
    font-size: 32px;
    cursor: pointer;
    padding: 5px;
}

main#main-content {
    display: block;
}

#hero, #about, #services, #approach, #testimonials, #contact {
    scroll-margin-top: calc(var(--header-height) + 20px);
}

.hero {
    background: linear-gradient(rgba(96, 153, 102, 0.85), rgba(157, 192, 139, 0.85)), url('bilder/1.jpg') no-repeat center 40%/cover; /* Hier wurde der Pfad und die Position angepasst */
    color: white;
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero h1 {
    font-size: 52px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero p {
    font-size: 21px;
    max-width: 800px;
    margin: 0 auto 30px auto;
}

.btn {
    display: inline-block;
    background-color: var(--secondary);
    color: var(--dark-text-on-light);
    padding: 15px 35px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 18px;
    text-align: center;
}

.btn:hover {
    background-color: var(--accent);
    color: var(--light-text-on-dark);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.hero .btn {
    background-color: var(--light);
    color: var(--dark);
}

.hero .btn:hover {
    background-color: var(--hero-btn-hover-bg);
    color: var(--dark);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.about, .services, .testimonials, .contact {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-title h2 {
    font-size: 42px;
    display: inline-block;
    color: var(--primary);
}

.section-title h2::after {
    content: '';
    display: block;
    width: 70%;
    height: 4px;
    background: linear-gradient(to right, var(--secondary), var(--accent));
    margin: 12px auto 0;
    border-radius: 4px;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-img {
    flex: 1;
    text-align: center;
}

/* Stil für das Porträtbild in der "Über mich" Sektion (wie zuletzt angepasst) */
#about .about-img img {
    border-radius: 50%;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 5px solid var(--accent);
    height: 350px;
    width: 350px;
    max-width: 90%;
    object-fit: cover;
    object-position: center 60%; /* Hier der Wert für dein Porträtbild */
    aspect-ratio: 1 / 1;
}

/* NEU: Stil für das Bild im "Mein Ansatz" (Approach) Bereich */
#approach .about-img img {
    border-radius: 50%;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 5px solid var(--accent);
    height: 350px;
    width: 350px;
    max-width: 90%;
    object-fit: cover;
    object-position: center 10%; /* Diesen Wert anpassen, um das Bild nach unten zu schieben */
    aspect-ratio: 1 / 1;
}

.about-text {
    flex: 1.2;
}

.about-text h3 {
    margin-bottom: 25px;
    font-size: 30px;
    color: var(--primary);
}

.about-text p {
    margin-bottom: 18px;
    font-size: 18px;
}

.services {
    background-color: var(--light);
}

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

.service-card {
    background-color: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border-top: 5px solid var(--secondary);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-img {
    height: 180px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 64px;
}

.service-content {
    padding: 30px;
    flex-grow: 1;
}

.service-content h3 {
    color: var(--primary);
    margin-bottom: 20px;
    font-size: 24px;
}
.service-content ul {
    list-style: none;
    padding-left: 5px;
    margin-top: 10px;
}
.service-content li {
     margin-bottom: 8px;
     font-size: 18px;
     position: relative;
     padding-left: 25px;
}
.service-content li::before {
    content: '\2713';
    color: var(--dark);
    position: absolute;
    left: 0;
    top: 0;
    font-weight: bold;
}
		
.service-content p {
    font-size: 18px;
}

.testimonials {
    position: relative;
    overflow: hidden;
    background-color: var(--light);
}

.testimonials-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.testimonial-viewport {
    overflow: hidden;
    width: 100%;
    height: auto;
}

.testimonial-slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.testimonial-card {
    background-color: white;
    border-radius: 15px;
    padding: 30px 25px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    flex: 0 0 100%;
    box-sizing: border-box;
    position: relative;
    display: flex;
    flex-direction: column;
    height: auto;
    border-top: 4px solid var(--primary);
}

.testimonial-card::before {
    content: '“';
    font-size: 100px;
    color: rgba(96, 153, 102, 0.1);
    position: absolute;
    top: 15px;
    left: 15px;
    font-family: Georgia, serif;
    line-height: 1;
    z-index: 0;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 20px;
    font-size: 18px;
    position: relative;
    z-index: 1;
    flex-grow: 1;
    overflow-wrap: break-word;
    hyphens: auto;
    white-space: normal;
    max-height: 220px;
    overflow-y: auto;
    padding-right: 10px;
    box-sizing: border-box;
    color: var(--dark-text-on-light);
}

.testimonial-author {
    display: flex;
    align-items: center;
    margin-top: auto;
    padding-top: 20px;
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

.testimonial-author-img {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    color: var(--light-text-on-dark); 
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-weight: bold;
    font-size: 20px;
    flex-shrink: 0;
}

.testimonial-author-info h4 {
    margin-bottom: 3px;
    font-size: 18px;
    color: var(--dark-text-on-light);
}

.testimonial-author-info p {
    color: #555;
    font-size: 16px;
}

.testimonial-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(64, 81, 59, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    transition: background-color 0.3s ease;
}
.testimonial-arrow:hover {
    background-color: rgba(64, 81, 59, 0.8);
}
.testimonial-arrow.prev {
    left: -60px;
}
.testimonial-arrow.next {
    right: -60px;
}

.testimonial-dots {
    text-align: center;
    margin-top: 30px;
}

.testimonial-dot {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: #bbb;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 8px;
}

.testimonial-dot.active {
    background-color: var(--primary);
    transform: scale(1.2);
}

.contact {
    background-color: var(--light);
}

.contact-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 60px;
}

.contact-info h3, .contact-form h3 {
    color: var(--primary);
    margin-bottom: 25px;
    font-size: 26px;
}

.contact-info p {
    margin-bottom: 18px;
    font-size: 18px;
    color: var(--dark-text-on-light);
}
.contact-info p strong {
    color: var(--primary);
}

.form-group {
    margin-bottom: 25px;
}

.form-control {
    width: 100%;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 18px;
    transition: all 0.3s ease;
    background-color: white;
    color: var(--dark-text-on-light);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(96, 153, 102, 0.2);
}

textarea.form-control {
    min-height: 180px;
    resize: vertical;
}

.privacy-notice {
    font-size: 14px;
    color: #555;
    margin-top: 15px;
}
.privacy-notice a {
    color: var(--primary);
    text-decoration: underline;
}

footer {
    background: linear-gradient(to right, var(--dark), var(--footer-gradient-end));
    color: var(--light-text-on-dark);
    padding: 60px 0 20px;
    margin-top: 0;
}

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

.footer-column h3 {
    margin-bottom: 25px;
    font-size: 24px;
    color: var(--secondary);
}
.footer-column p {
    margin-bottom: 15px;
    font-size: 18px;
}

.footer-column ul {
    list-style: none;
    padding-left: 0;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a {
    color: #ccc;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 18px;
}

.footer-column ul li a:hover {
    color: var(--secondary);
    padding-left: 5px;
}

.copyright {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid rgba(245, 245, 245, 0.2);
    font-size: 14px;
    color: #bbb;
}

.cookie-settings-link {
    display: inline-block;
    color: #ccc;
    text-decoration: underline;
    cursor: pointer;
    font-size: 14px;
    vertical-align: middle;
}
.legal-separator {
    display: inline-block;
    margin: 0 5px;
    color: #ccc;
}
.legal-separator:empty::before {
    content: '|';
}

.cookie-settings-link:hover {
    color: var(--secondary);
}

#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--dark);
    color: var(--light-text-on-dark);
    padding: 15px 20px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
    z-index: 1001;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}
#cookie-banner.hidden {
    display: none;
}
#cookie-banner p {
    margin: 0;
    flex-grow: 1;
    font-size: 14px;
}
#cookie-banner a {
    color: var(--secondary);
    text-decoration: underline;
}
#cookie-banner a:hover {
    color: white;
}
#cookie-banner .cookie-buttons {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}
#cookie-banner button {
    padding: 10px 18px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease;
    font-size: 16px;
}
#cookie-banner button.accept {
    background-color: var(--secondary);
    color: var(--dark-text-on-light);
}
#cookie-banner button.accept:hover {
    background-color: var(--accent);
}
#cookie-banner button.decline {
    background-color: var(--grey-button);
    color: white;
}
#cookie-banner button.decline:hover {
    background-color: var(--grey-button-hover);
}

@media (max-width: 992px) {
    .testimonial-arrow.prev { left: -20px; }
    .testimonial-arrow.next { right: -20px; }
    .about-img img { width: 300px; height: 300px; }
    nav ul li { margin-left: 20px; }
     .hero h1{
        font-size: 48px;
    }
     .hero p{
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    body { padding-top: 60px; }
    header { height: 60px; padding: 0 15px; }
    .logo { margin-right: 10px; }
    .logo img { max-height: calc(60px - 10px); }
    #main-nav-list {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        background: var(--dark);
        width: 100%;
        padding: 10px 0;
        box-shadow: 0 4px 8px rgba(0,0,0,0.2);
        max-height: calc(100vh - 60px);
        overflow-y: auto;
        z-index: 1100;
    }
    #main-nav-list.active { display: flex; }
    nav { justify-content: flex-end; }
    nav ul { flex-direction: column; width: 100%; }
    nav ul li { margin: 5px 0; width: 100%; text-align: center; }
    nav ul li:first-child { margin-left: 0; }
    nav ul li a { display: block; padding: 12px 20px; border-bottom: 0; color: var(--light-text-on-dark); font-size: 20px;}
    nav ul li a:hover { background-color: rgba(237, 241, 214, 0.1); border-bottom: 0; color: var(--secondary); }
    nav ul li a::after { display: none; }
    #mobile-menu-toggle { display: block; color: var(--light-text-on-dark); font-size: 36px; }
    .container { padding: 0 15px; }
    .hero { padding: 80px 0; }
    .hero h1 { font-size: 42px; }
    .hero p { font-size: 18px; max-width: 95%; }
    .about-content { flex-direction: column; text-align: center; }
    .about-img { margin-bottom: 20px; }
    .about-img img { width: 90%; max-width: 350px; height: auto; }
    .services-grid { grid-template-columns: 1fr; }
    .testimonial-card { padding: 20px; }
    .testimonial-text { font-size: 16px; }
    .contact-content { grid-template-columns: 1fr; }
    .footer-content { grid-template-columns: 1fr; text-align: center; }
    .footer-column { margin-bottom: 30px; }
    #cookie-banner { flex-direction: column; align-items: flex-start; text-align: left; }
    #cookie-banner .cookie-buttons { width: 100%; justify-content: flex-end; margin-top: 10px; }
     #hero, #about, #services, #approach, #testimonials, #contact {
        scroll-margin-top: calc(60px + 20px);
    }
}

/* --- NEUE STYLES / EFFEKTE --- */

/* Smooth scrolling animations / Fade-In Effekt */
.fade-in {
    opacity: 0;
    transform: translateY(80px); 
    transition: opacity 1.8s ease, transform 1.8s ease; 
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* VCard Exit Modal und Legal Content Modal Overlay (gemeinsam, falls das Styling passt) */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000; /* Wichtig, um über anderem Inhalt zu sein */
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}
.modal-overlay.visible {
    display: flex;
    opacity: 1;
}

/* Spezifische Styles für das vCard Exit Modal */
.modal-content-vcard {
    background: white;
    padding: 25px 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    max-width: 420px;
    width: 90%;
    transform: scale(0.9);
    transition: transform 0.3s ease-in-out;
}
.modal-overlay.visible .modal-content-vcard {
    transform: scale(1);
}
.modal-content-vcard h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--primary);
    font-size: 22px;
}
.modal-content-vcard p {
    margin-bottom: 25px;
    font-size: 16px;
    color: var(--dark-text-on-light);
}
.modal-content-vcard .btn-group {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}
.modal-content-vcard .btn { 
    min-width: 140px;
}
.modal-content-vcard .btn-secondary-modal { /* Für "Nein, danke" Button */
    background-color: var(--grey-button);
    color: white;
}
.modal-content-vcard .btn-secondary-modal:hover {
    background-color: var(--grey-button-hover);
}

/* Legal Content Modal Styles (Impressum/Datenschutz) */
.modal-content-legal {
    background: var(--light); 
    color: var(--dark-text-on-light);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.25);
    width: 90%;
    max-width: 850px; 
    height: 85vh;    
    max-height: 700px; 
    position: relative;
    display: flex;
    flex-direction: column;
    transform: scale(0.95); /* Für Animation */
    transition: transform 0.3s ease-in-out;
    overflow: hidden; /* Um border-radius korrekt anzuwenden */
}
.modal-overlay.visible .modal-content-legal {
    transform: scale(1);
}
.modal-close-btn { /* Gilt für beide Modals, falls gleiches Aussehen gewünscht */
    position: absolute;
    top: 15px;
    /* Für Legal Modal links, für vCard Modal rechts (oder einheitlich) */
    /* Hier als Standard rechts, kann per ID überschrieben werden, falls unterschiedlich */
    right: 15px; 
    background: none;
    border: none;
    font-size: 30px;
    font-weight: bold;
    color: var(--dark-text-on-light); /* Farbe an den Hintergrund des Modals anpassen */
    cursor: pointer;
    padding: 0;
    line-height: 1;
    z-index: 10;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}
.modal-close-btn:hover {
    opacity: 1;
}
.modal-body-legal {
    flex-grow: 1;
    overflow-y: auto; 
    padding-top: 30px; 
    font-size: 16px; 
}
.modal-body-legal .container {
    max-width: 100% !important;
    padding: 0 !important; 
    margin: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    background-color: transparent !important;
}
.modal-body-legal h1 {
    font-size: 26px; 
    color: var(--primary);
    margin-top: 0; 
    margin-bottom: 20px;
}
.modal-body-legal h2 {
    font-size: 22px;
    color: var(--primary);
    margin-top: 25px;
    margin-bottom: 15px;
}
.modal-body-legal h3 {
    font-size: 18px;
    color: var(--primary);
    margin-top: 20px;
    margin-bottom: 10px;
}
.modal-body-legal p, 
.modal-body-legal ul {
    margin-bottom: 15px;
    line-height: 1.7;
}
.modal-body-legal ul {
    padding-left: 25px; 
}
.modal-body-legal a { 
    color: var(--primary);
}
.modal-body-legal a:hover {
    color: var(--secondary);
}

/* Stil für den vCard Download Container und Button */
.vcard-download-container {
    margin-top: 25px;
}
.btn-vcard-download { /* Erbt von .btn und fügt Flexbox für Icon hinzu */
    display: inline-flex; 
    align-items: center;  
    justify-content: center; 
}
.vcard-icon-btn {
    margin-right: 10px;  
    font-size: 1.1em;    
    color: var(--accent); 
    line-height: 1;      
}