/* ==========================================================================
   1. SCHRIFTARTEN (100% DSGVO-konform von deinem Server)
   ========================================================================== */
@font-face {
    font-family: 'Inter';
    src: url('../fonts/Inter.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
}
@font-face {
    font-family: 'Inter';
    src: url('../fonts/Inter-Italic.ttf') format('truetype');
    font-weight: 100 900;
    font-style: italic;
}
@font-face {
    font-family: 'Comfortaa';
    src: url('../fonts/Comfortaa.ttf') format('truetype');
    font-weight: 300 700;
    font-style: normal;
}

/* ==========================================================================
   2. GLOBALE EINSTELLUNGEN
   ========================================================================== */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
    color: #434343;
    background-color: #dcf5ff;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

.container {
    max-width: 1050px;
    margin: 0 auto;
    padding: 0 25px;
}

/* ==========================================================================
   3. HEADER & NAVIGATION
   ========================================================================== */
header {
    background-color: #ffffff;
    box-shadow: 0 4px 25px rgba(9, 94, 161, 0.06);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom-left-radius: 25px;
    border-bottom-right-radius: 25px;
}

.nav-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 15px 25px;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-img {
    height: 90px;
    width: auto;
    border-radius: 10px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 50px;
}

.btn-header {
    font-size: 1rem;
    padding: 12px 28px;
}

.btn-hero {
    display: inline-block;
    background-color: #215267;
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05rem;
    padding: 14px 32px;
    border-radius: 25px;
    transition: background-color 0.25s ease;
}

.btn-hero:hover {
    background-color: #48b28d;
}

/* ==========================================================================
   4. HERO BANNER
   ========================================================================== */
.hero-wrapper {
    background: #dcf5ff;
    padding: 20px 0 15px 0;
    margin-bottom: 0;
    border-bottom-left-radius: 35px;
    border-bottom-right-radius: 35px;
}

.hero-split-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 50px;
}

.hero-left {
    flex: 1.2;
}

.hero-title-row {
    display: flex;
    align-items: center;
    gap: 30px;
}

.hero-seal {
    height: 150px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
    margin-left: auto;
}

.hero-main-title {
    font-family: 'Comfortaa', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 3.06rem;
    font-weight: 700;
    line-height: 1.15;
    margin: 0 0 25px 0;
    letter-spacing: -1px;
}

.text-blue     { color: #60a5fa; }
.text-lightblue { color: #48b28d; }
.text-darkblue  { color: #215267; }
.text-darkgrey  { color: #434343; }

.hero-lead-text {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #434343;
    max-width: 580px;
    margin-bottom: 40px;
    text-align: justify;
}

.hero-right {
    flex: 0.9;
    display: flex;
    justify-content: flex-end;
}

.features-card {
    background-color: #ffffff;
    border: 1px solid rgba(56, 189, 248, 0.2);
    padding: 40px;
    border-radius: 24px;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.30);
    backdrop-filter: blur(10px);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
}

.icon-shield {
    width: 24px;
    height: 24px;
    color: #434343;
}

.features-card h3 {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 700;
    color: #434343;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.features-list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.icon-check {
    width: 18px;
    height: 18px;
    color: #434343;
    margin-top: 3px;
    flex-shrink: 0;
}

.features-list span {
    font-size: 1.05rem;
    color: #434343;
    line-height: 1.4;
}

/* ==========================================================================
   5. SEKTIONEN & LEISTUNGS-KARTEN
   ========================================================================== */
section {
    padding: 20px 0;
}

.section-unternehmen {
    padding: 15px 20px 30px 20px;
}

.main-title {
    text-align: center;
    font-size: 2.2rem;
    color: #215267;
    margin-bottom: 10px;
    font-weight: 700;
}

.box-title {
    margin-top: 0;
    margin-bottom: 25px;
}

/* Leistungs-Karten */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 15px;
}

.service-card {
    background-color: #ffffff;
    border-radius: 20px;
    padding: 30px 25px;
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.30);
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 20px rgba(0, 0, 0, 0.30);
}

.service-icon-wrap {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: #dcf5ff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px auto;
}

.service-icon {
    width: 30px;
    height: 30px;
    color: #215267;
}

.service-card h3 {
    color: #215267;
    margin: 0 0 8px 0;
    font-size: 1.15rem;
    font-weight: 700;
}

.service-card p {
    margin: 0;
    color: #434343;
    font-size: 0.95rem;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .service-card h3,
    .service-card p {
        overflow-wrap: break-word;
        hyphens: auto;
    }
}

@media (max-width: 480px) {
    .services-grid {
        gap: 12px;
    }
}

/* Fotosammlung unter "Meine Leistungen" */
.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 180px;
    gap: 20px;
    margin-top: 60px;
}

.gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.30);
    display: block;
    position: relative;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Asymmetrische Anordnung */
.gallery img:nth-child(1) {
    grid-column: span 2;
    grid-row: span 2;
}
.gallery img:nth-child(2) {
    grid-column: span 1;
    grid-row: span 1;
}
.gallery img:nth-child(3) {
    grid-column: span 1;
    grid-row: span 1;
}
.gallery img:nth-child(7) {
    grid-column: span 3;
    grid-row: span 1;
}

.gallery img:hover {
    transform: scale(1.12);
    box-shadow: 0 18px 25px rgba(0, 0, 0, 0.35);
    z-index: 2;
}

/* Große Bilder sanfter zoomen, damit der Effekt gleichmäßig wirkt */
.gallery img:nth-child(1):hover {
    transform: scale(1.05);
}
.gallery img:nth-child(7):hover {
    transform: scale(1.04);
}

.gallery-note {
    margin: 12px 0 0 0;
    font-size: 0.85rem;
    color: #434343;
    opacity: 0.65;
    text-align: right;
    font-style: italic;
}

/* Über mich */
.about-container {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 30px;
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.30);
    border-left: 10px solid #48b28d;
    border-right: 10px solid #48b28d;
    margin-top: 60px;
}

.about-body::after {
    content: "";
    display: block;
    clear: both;
}

.about-photo {
    float: left;
    width: 220px;
    margin: 0 30px 15px 0;
}

.about-photo img {
    width: 220px;
    height: 220px;
    object-fit: cover;
    border-radius: 20px;
    display: block;
}

.about-text p {
    margin: 0 0 1em 0;
    font-size: 1.1rem;
    color: #434343;
    line-height: 1.7;
    text-align: justify;
}

.about-text p:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .about-body {
        text-align: center;
    }
    .about-photo {
        float: none;
        width: 180px;
        margin: 0 auto 20px auto;
    }
    .about-photo img {
        width: 180px;
        height: 180px;
    }
}

@media (max-width: 768px) {
    .gallery {
        grid-template-columns: 1fr;
        grid-auto-rows: 200px;
    }
    .gallery img:nth-child(1),
    .gallery img:nth-child(2),
    .gallery img:nth-child(3),
    .gallery img:nth-child(4),
    .gallery img:nth-child(7) {
        grid-column: span 1;
        grid-row: span 1;
    }
}

/* ==========================================================================
   6. KONTAKT-KARTE
   ========================================================================== */
.contact-box {
    background-color: #ffffff;
    padding: 45px;
    border-radius: 30px;
    text-align: center;
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.30);
    max-width: 500px;
    margin: 0 auto;
    border-left: 10px solid #48b28d;
    border-right: 10px solid #48b28d;
}

.contact-company-name {
    color: #215267;
    margin-top: 0;
    margin-bottom: 0;
    font-size: 1.6rem;
    font-weight: 800;
}

.contact-owner {
    font-weight: 400;
    margin: 0;
    font-size: 1.1rem;
}

.contact-address {
    color: #434343;
    margin: 0;
    font-size: 1.05rem;
}

.contact-tel,
.contact-mail {
    margin-top: 2px;
    font-size: 1.15rem;
    font-weight: 600;
}

.contact-tel {
    margin-top: 30px;
    margin-bottom: 0;
}

.contact-hours {
    margin-top: 25px;
    font-size: 1.05rem;
    color: #434343;
    line-height: 1.6;
}

.contact-hours strong {
    color: #215267;
}

.contact-lower {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin-top: 30px;
}

.contact-details {
    text-align: left;
}

.contact-details .contact-tel {
    margin-top: 0;
}

.contact-whatsapp {
    flex-shrink: 0;
    text-align: center;
    transform: rotate(-4deg);
}

.whatsapp-label {
    margin: 0 0 4px 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #215267;
    line-height: 1.25;
}

.whatsapp-qr {
    width: 150px;
    height: 150px;
    border-radius: 16px;
    display: block;
    margin: 0 auto;
    transition: transform 0.2s ease;
}

.whatsapp-qr:hover {
    transform: scale(1.04);
}

.whatsapp-hint {
    margin: 4px 0 0 0;
    font-size: 0.95rem;
    color: #434343;
}

@media (max-width: 576px) {
    .contact-lower {
        flex-direction: column;
        gap: 25px;
    }
    .contact-details {
        text-align: center;
    }
}

.contact-box a {
    color: #215267;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.2s;
}

.contact-box a:hover {
    color: #48b28d;
}

.contact-seal {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-top: 5px;
    margin-bottom: 30px;
}

.seal-img {
    max-height: 117px;
    width: auto;
    object-fit: contain;
    display: block;
}

#kontakt {
    scroll-margin-top: 30px;
    padding: 30px 0;
}

/* ==========================================================================
   7. FOOTER & RECHTLICHES
   ========================================================================== */
footer {
    background-color: #215267;
    color: #ffffff;
    padding: 50px 0;
    text-align: center;
    font-size: 1rem;
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
    margin-top: 30px;
}

footer a {
    color: #ffffff;
    text-decoration: underline;
    opacity: 0.85;
    margin: 0 15px;
}

footer a:hover {
    opacity: 1;
}

.legal-title {
    color: #215267;
    margin-top: 0;
    font-weight: 800;
}

.legal-block {
    display: none;
    position: relative;
    background-color: #ffffff;
    color: #434343;
    padding: 40px;
    margin-top: 35px;
    border-radius: 25px;
    text-align: left;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.legal-block.open {
    display: block;
}

.legal-block a {
    color: #215267;
    text-decoration: underline;
    opacity: 1;
    margin: 0;
    font-weight: 600;
    word-break: break-word;
}

.legal-block a:hover {
    color: #48b28d;
}

.legal-close {
    position: sticky;
    top: 0;
    float: right;
    width: 38px;
    height: 38px;
    border: none;
    background-color: #dcf5ff;
    color: #215267;
    font-size: 1.6rem;
    line-height: 1;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1;
    transition: background-color 0.2s, color 0.2s;
}

.legal-close:hover {
    background-color: #48b28d;
    color: #ffffff;
}

.legal-block h4 {
    color: #215267;
    margin: 22px 0 8px 0;
    font-size: 1.05rem;
    font-weight: 700;
}

.legal-block ul {
    margin: 0 0 10px 0;
    padding-left: 20px;
}

.legal-block li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.widerruf-form {
    border: 1px solid rgba(33, 82, 103, 0.25);
    border-radius: 12px;
    padding: 20px 25px;
    margin-top: 10px;
    background-color: #f7fbfd;
}

.legal-date {
    margin-top: 30px;
    font-size: 0.9rem;
    color: #434343;
    opacity: 0.7;
    font-style: italic;
}

/* ==========================================================================
   8. RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 992px) {
    .hero-split-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 40px;
    }
    .hero-right {
        width: 100%;
        justify-content: center;
    }
    .features-card {
        max-width: 100%;
    }
    .hero-main-title {
        font-size: 2.38rem;
    }
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: row;
        gap: 15px;
    }
    .logo-img {
        height: 48px;
    }
}

@media (max-width: 576px) {
    .hero-main-title {
        font-size: 1.75rem;
    }
    .hero-title-row {
        gap: 15px;
    }
    .hero-seal {
        height: 82px;
    }
    .hero-lead-text {
        font-size: 1rem;
    }
    .main-title {
        font-size: 1.6rem;
    }
    .features-card h3 {
        font-size: 1.15rem;
    }
    .features-list li {
        font-size: 0.95rem;
    }
    .logo-img {
        height: 42px;
    }
    .seal-img {
        max-height: 85px;
    }
    .container {
        padding: 0 14px;
    }
    .section-unternehmen {
        padding-left: 0;
        padding-right: 0;
    }
    .contact-box {
        padding: 24px 16px;
        border-left-width: 6px;
        border-right-width: 6px;
    }
    .legal-block {
        padding: 24px 16px;
    }
    .contact-seal {
        flex-direction: column;
        gap: 20px;
    }
    .about-container {
        padding: 20px 14px;
        border-left-width: 5px;
        border-right-width: 5px;
    }
    .about-text p {
        font-size: 1rem;
        text-align: left;
    }
    .service-card {
        padding: 18px 12px;
    }
    .service-icon-wrap {
        width: 50px;
        height: 50px;
        margin-bottom: 12px;
    }
    .service-icon {
        width: 26px;
        height: 26px;
    }
    .service-card h3 {
        font-size: 1.02rem;
    }
    .service-card p {
        font-size: 0.85rem;
        line-height: 1.4;
    }
}

@media (max-width: 400px) {
    .hero-main-title {
        font-size: 1.55rem;
    }
    .hero-seal {
        height: 70px;
    }
    .main-title {
        font-size: 1.45rem;
    }
    .about-photo,
    .about-photo img {
        width: 150px;
        height: 150px;
    }
    .logo-img {
        height: 38px;
    }
    .seal-img {
        max-height: 72px;
    }
    .gallery {
        grid-auto-rows: 160px;
    }
}
