/* Lokale Schriftarten (100% DSGVO-konform ohne externe Server) */
@font-face {
    font-family: 'Roboto';
    src: url('../fonts/Roboto-Light.woff2') format('woff2'),
         url('../fonts/Roboto-Light.woff') format('woff');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Roboto';
    src: url('../fonts/Roboto-Regular.woff2') format('woff2'),
         url('../fonts/Roboto-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Roboto';
    src: url('../fonts/Roboto-Bold.woff2') format('woff2'),
         url('../fonts/Roboto-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Sedgwick Ave';
    src: url('../fonts/SedgwickAve-Regular.woff2') format('woff2'),
         url('../fonts/SedgwickAve-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    --color-green: #74b042;
    --color-blue: #34a0d7;
    --color-dark: #333333;
    --color-light: #f8f9fa;
    --color-white: #ffffff;
    --font-main: 'Roboto', sans-serif;
    --font-hero: 'Sedgwick Ave', cursive, sans-serif;
    --transition: all 0.3s ease;
}

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

body {
    font-family: var(--font-main);
    color: var(--color-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Headings Global Spacing & Typography */
h1, h2, h3, h4 {
    color: var(--color-dark);
    font-weight: 700;
}

h2 {
    font-size: 2.2rem;
    margin-bottom: 24px;
    line-height: 1.3;
}

h3 {
    font-size: 1.6rem;
    margin-bottom: 18px;
    line-height: 1.35;
}

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

.section-padding {
    padding: 100px 0;
}

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

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

.text-blue {
    color: var(--color-blue);
}

.text-muted {
    color: #6c757d;
}

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

.bg-green {
    background-color: var(--color-green);
    color: var(--color-white);
}

.bg-blue {
    background-color: var(--color-blue);
    color: var(--color-white);
}

.mt-4 {
    margin-top: 1.5rem;
}

.mt-5 {
    margin-top: 3rem;
}

.mb-3 {
    margin-bottom: 1rem;
}

.w-100 {
    width: 100%;
}

a {
    text-decoration: none;
    color: var(--color-blue);
    transition: var(--transition);
}

a:hover {
    color: var(--color-green);
}

/* Buttons */
.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 26px;
    border-radius: 30px;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.92rem;
    letter-spacing: 0.3px;
    line-height: 1;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    box-sizing: border-box;
}

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

.btn-primary:hover {
    background-color: #65a132;
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(121, 185, 64, 0.3);
}

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

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

/* Header */
.header {
    background-color: rgba(255, 255, 255, 0.95);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.nav-right {
    display: flex;
    align-items: center;
    gap: 25px;
}

.logo-group {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-dark);
}

.logo-img {
    height: 38px;
    width: auto;
    display: inline-block;
}

.logo-name-img {
    height: 30px;
    width: auto;
    display: inline-block;
}

.nav {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav a {
    color: var(--color-dark);
    font-weight: 500;
}

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

/* 24 Stunden Notdienst Badge (Vorlage) */
.notdienst-badge {
    background-color: var(--color-blue);
    color: #ffffff !important;
    padding: 6px 14px;
    border-radius: 9px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1.1;
    text-align: center;
    box-shadow: none;
    transform: rotate(-3deg);
    transform-origin: center;
    transition: transform 0.2s ease, background-color 0.2s ease;
    cursor: pointer;
    text-decoration: none !important;
    box-sizing: border-box;
}

.notdienst-badge:hover {
    background-color: #1a92c4;
    transform: rotate(0deg) scale(1.04);
    box-shadow: none;
    color: #ffffff !important;
}

.notdienst-sub,
.notdienst-main {
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: -0.2px;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero */
.hero {
    height: 100vh;
    min-height: 650px;
    background: url('../images/heroimg.webp') no-repeat center center/cover;
    position: relative;
    display: flex;
    align-items: stretch;
    padding-top: 80px;
    padding-bottom: 0;
    overflow: hidden;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 40px;
}

.hero-content {
    flex: 1;
    max-width: 580px;
    text-align: left;
    z-index: 2;
    padding: 35px 40px;
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1), inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}

.hero h1 {
    font-family: var(--font-hero);
    font-size: min(3em, 3.4rem);
    font-weight: 100;
    line-height: 1.2;
    margin-bottom: 16px;
    color: var(--color-dark);
    letter-spacing: 0.5px;
}

.hero p {
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 25px;
    font-weight: 600;
    color: #2c3e50;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.hero-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    z-index: 2;
    align-self: flex-end;
}

.hero-person-img {
    max-height: calc(100vh - 80px);
    height: auto;
    max-width: 100%;
    width: auto;
    object-fit: contain;
    display: block;
    vertical-align: bottom;
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.25));
}

/* Storytelling */
.story-text {
    font-size: 1.15rem;
    max-width: 820px;
    margin: 0 auto;
    line-height: 1.85;
    color: #4b5563;
}

.story-text a {
    font-weight: bold;
    text-decoration: underline;
    text-decoration-color: var(--color-green);
}

.story-text a:hover {
    color: var(--color-blue);
    text-decoration-color: var(--color-blue);
}

/* Service Icons under Welcome Text */
.intro-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin-top: 45px;
    flex-wrap: wrap;
}

.intro-icon-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 110px;
    height: 110px;
    padding: 16px;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.intro-icon-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.intro-icon-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

/* Testimonials Marquee */
.section-subtitle {
    color: #6b7280;
    font-size: 1.15rem;
    margin-top: 0;
    margin-bottom: 40px;
    letter-spacing: 0.3px;
}

.marquee-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 25px 0 35px;
    mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
}

.marquee-track {
    display: flex;
    gap: 30px;
    width: max-content;
    animation: marquee-scroll 45s linear infinite;
    cursor: grab;
    user-select: none;
}

/* Pause when hover or touch */
.marquee-wrapper:hover .marquee-track,
.marquee-track.is-paused {
    animation-play-state: paused;
}

@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.testimonial-card {
    flex: 0 0 380px;
    background: #ffffff;
    border-radius: 16px;
    padding: 26px 28px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.1);
}

.card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.card-top .stars {
    margin-bottom: 0;
    font-size: 1rem;
    color: #f59e0b;
}

.badge-service {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-green);
    background: rgba(121, 185, 64, 0.12);
    padding: 5px 12px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.testimonial-card .testi-text {
    font-size: 0.96rem;
    line-height: 1.6;
    color: #4b5563;
    font-style: italic;
    margin-bottom: 20px;
    flex-grow: 1;
}

.testi-author-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f1f3f5;
    padding-top: 12px;
}

.testi-author-info strong {
    font-size: 0.95rem;
    color: var(--color-dark);
}

.testi-author-info .location {
    font-size: 0.85rem;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 4px;
}

.testi-author-info .location i {
    color: var(--color-blue);
}

.testi-text {
    font-style: italic;
    margin-bottom: 15px;
}

.testi-author {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--color-blue);
}

/* Leistungen */
.category-title {
    font-size: 1.8rem;
    margin-top: 40px;
    margin-bottom: 30px;
    border-bottom: 2px solid #edf2f7;
    padding-bottom: 14px;
}

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

.service-card {
    background: var(--color-white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    border-bottom: 4px solid transparent;
}

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

.service-card:nth-child(odd) {
    border-bottom-color: var(--color-green);
}

.service-card:nth-child(even) {
    border-bottom-color: var(--color-blue);
}

.service-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.service-card h4 {
    margin-bottom: 15px;
    font-size: 1.2rem;
}

/* About Me */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-img {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.img-placeholder {
    width: 100%;
    height: 400px;
    background: #e9ecef;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-text h2 {
    margin-bottom: 12px;
}

.about-subtitle {
    font-size: 1.15rem;
    color: var(--color-green);
    margin-bottom: 18px;
}

.about-text p {
    margin-bottom: 16px;
    line-height: 1.7;
    color: #4b5563;
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.info-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: flex-start;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--color-green);
    margin-top: 5px;
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ced4da;
    border-radius: 5px;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-blue);
    box-shadow: 0 0 0 3px rgba(35, 168, 224, 0.2);
}

/* Footer */
.footer {
    background: var(--color-dark);
    color: var(--color-white);
    padding: 50px 0 25px;
}

.footer-logo-img {
    height: 104px;
    width: auto;
    max-width: 490px;
    display: inline-block;
    transition: transform 0.3s ease;
}

.footer-logo-img:hover {
    transform: scale(1.03);
}

.footer-links {
    margin-top: 15px;
}

.footer-links a {
    color: #adb5bd;
    margin: 0 10px;
}

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

/* Modals */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: var(--color-white);
    padding: 40px;
    border-radius: 14px;
    max-width: 680px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(-50px);
    transition: transform 0.3s ease;
}

.modal.show .modal-content {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
}

.modal-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.modal-icon.success {
    color: var(--color-green);
}

.modal-icon.error {
    color: #dc3545;
}

/* Animations */
.fade-in {
    opacity: 0;
    transition: opacity 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
}

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

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

.fade-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.8s ease;
}

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

.fade-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.8s ease;
}

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

/* Responsive */
@media (max-width: 768px) {
    .nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: var(--color-white);
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }

    .nav.active {
        display: flex;
    }

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

    .notdienst-badge {
        padding: 4px 10px;
    }

    .notdienst-sub,
    .notdienst-main {
        font-size: 0.85rem;
    }

    .hero {
        padding-top: 100px;
        padding-bottom: 20px;
        min-height: auto;
    }

    .hero-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 30px;
    }

    .hero-content {
        text-align: center;
        max-width: 100%;
        padding: 24px 20px;
    }

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

    .hero-buttons {
        justify-content: center;
        flex-direction: column;
    }

    .hero-person-img {
        max-height: 50vh;
    }

    .testimonial-card {
        flex: 0 0 300px;
        padding: 20px;
    }

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

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