@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    src: url('/fonts/inter-v20-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Inter';
    font-style: normal;
    font-weight: 500;
    src: url('/fonts/inter-v20-latin-500.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    src: url('/fonts/inter-v20-latin-600.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Inter';
    font-style: normal;
    font-weight: 700;
    src: url('/fonts/inter-v20-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

:root {
    --bg-light: #FFFFFF;
    --bg-offset: #F0F4F8;
    --text-dark-blue: #001957; /* Dunkelblau vom Logo */
    --text-medium: #5A677B;
    --primary-accent: #007BFF;
    --primary-accent-hover: #0056b3;
    --border-color: #E2E8F0;

    --header-height: 70px;
    --font-family: 'Inter', sans-serif;
    --border-radius: 6px;
    --transition-speed: 0.2s;
    --transition-speed-long: 0.4s;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    font-weight: 400;
    line-height: 1.65;
    color: var(--text-medium);
    background-color: var(--bg-light);
    padding-top: var(--header-height);
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    width: 90%;
    max-width: 1080px;
    margin: 0 auto;
}

h1, h2, h3, h4 {
    font-family: var(--font-family);
    color: var(--text-dark-blue);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.75em;
}

h1 {
    font-size: clamp(2.4rem, 5vw, 3.5rem);
    font-weight: 700;
}

h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 1.5em;
    text-align: center;
}

h3 {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    margin-bottom: 0.5em;
}

p {
    margin-bottom: 1.25rem;
}

a {
    color: var(--primary-accent);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

a:hover {
    color: var(--primary-accent-hover);
}

header {
    background-color: var(--bg-light);
    height: var(--header-height);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    transition: box-shadow 0.3s ease;
}

header.scrolled {
    box-shadow: 0 2px 10px rgba(45, 55, 72, 0.08);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0 20px;
    max-width: 1140px;
    margin: 0 auto;
}

.logo-container {
    flex-grow: 1;
}

nav .logo img {
    max-height: 40px;
    width: auto;
    display: block;
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links li a {
    color: var(--text-dark-blue);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 5px 0;
    position: relative;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-accent);
    transition: width 0.3s ease;
}

.nav-links li a:hover::after, .nav-links li a.active::after {
    width: 20px;
}

.nav-links li a:hover {
    color: var(--primary-accent);
    text-decoration: none;
}

.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 26px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1010;
}

.burger-bar {
    width: 26px;
    height: 2px;
    background-color: var(--text-dark-blue);
    border-radius: 1px;
    transition: all 0.3s linear;
}

.burger-menu:hover .burger-bar {
    background-color: var(--primary-accent);
}

.burger-menu.active .burger-bar {
    background-color: var(--primary-accent);
}

.burger-menu.active .burger-bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.burger-menu.active .burger-bar:nth-child(2) {
    opacity: 0;
}

.burger-menu.active .burger-bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

#hero {
    position: relative;
    min-height: calc(90vh - var(--header-height));
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 20px;
    color: var(--bg-light);
    background-image: url('hero-bg.webp');
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(13, 42, 95, 0.7), rgba(0, 123, 255, 0.5));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 850px;
}

.hero-h1-animate, .hero-h2-animate, .hero-p-animate, .hero-cta-animate {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease-out forwards;
}

.hero-h1-animate {
    color: var(--bg-light);
    margin-bottom: 0.3em;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.hero-h2-animate {
    animation-delay: 0.2s;
    color: var(--bg-offset);
    font-size: clamp(1.1rem, 2.5vw, 1.6rem);
    font-weight: 400;
    margin-bottom: 1em;
}

.hero-p-animate {
    animation-delay: 0.4s;
    color: var(--bg-offset);
    font-size: 1.05rem;
    margin-bottom: 2.5em;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta-animate {
    animation-delay: 0.6s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cta-button {
    display: inline-block;
    background: var(--primary-accent);
    color: var(--bg-light) !important;
    padding: 14px 32px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: background-color var(--transition-speed) ease, transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.2);
}

.cta-button:hover {
    background: var(--primary-accent-hover);
    color: var(--bg-light) !important;
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0, 123, 255, 0.35);
    text-decoration: none;
}

/* Allgemeine Sektionen */
section {
    padding: 80px 0;
}

section#about {
    background-color: var(--bg-light);
}

section#services {
    background-color: var(--bg-offset);
}

section#contact {
    background-color: var(--bg-light);
}

/* About Section */
.about-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 50px;
}

.about-text {
    flex: 1.5;
    min-width: 300px;
}

.about-image img {
    width: 250px;
    height: 250px;
    object-fit: cover;
    object-position: top;
    border-radius: 50% !important;

    border: 5px solid #ffffff;
    box-shadow:
            0 0 0 1px rgba(0,0,0,0.1),
            0 10px 25px rgba(45, 55, 72, 0.15); /* Weicher Schlagschatten für Tiefe */

    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Kleiner Hover-Effekt */
.about-image img:hover {
    transform: scale(1.05); /* Minimales Vergrößern */
    box-shadow:
            0 0 0 1px rgba(0,0,0,0.1),
            0 15px 35px rgba(45, 55, 72, 0.2);
}

.about-image img {
    max-width: 320px;
    border-radius: var(--border-radius);
    box-shadow: 0 8px 25px rgba(45, 55, 72, 0.1);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-item {
    background-color: var(--bg-light);
    padding: 35px 30px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(45, 55, 72, 0.05);
    transition: transform var(--transition-speed-long) ease, box-shadow var(--transition-speed-long) ease, border-color var(--transition-speed-long) ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.service-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(45, 55, 72, 0.12);
    border-color: var(--primary-accent);
}

.service-icon-wrapper {
    width: 65px;
    height: 65px;
    margin: 0 auto 25px auto;
    background-color: rgba(0, 123, 255, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color var(--transition-speed) ease;
}

.service-item:hover .service-icon-wrapper {
    background-color: rgba(0, 123, 255, 0.15);
}

.service-icon {
    width: 32px;
    height: 32px;
    color: var(--primary-accent);
    stroke-width: 1.5; /* Für Tabler Icons */
}

.service-item h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark-blue);
    margin-bottom: 0.75em;
}

.service-item p {
    font-size: 0.9rem;
}

#contact {
    text-align: center;
}

#contact p {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2em;
}

.contact-options {
    margin-top: 1.5em;
}

.contact-button {
    font-size: 1rem;
}

.social-media-links {
    margin-top: 50px;
    text-align: center;
}

.social-media-links p {
    margin-bottom: 20px;
    font-size: 0.95rem;
    color: var(--text-medium);
}

.social-icons-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.social-icon-link {
    color: var(--text-medium);
    display: inline-block;
    padding: 8px;
    border-radius: 50%;
    transition: color var(--transition-speed) ease, background-color var(--transition-speed) ease;
}

.social-icon-link:hover {
    color: var(--primary-accent);
    background-color: rgba(0, 123, 255, 0.08);
}

.social-svg-icon {
    width: 28px;
    height: 28px;
    vertical-align: middle;
}

/* KONTAKTFORMULAR STYLES */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
    background-color: var(--bg-light);
    padding: 20px;
    /* Optional: Ein leichter Rahmen, falls gewünscht */
    /* border: 1px solid var(--border-color); border-radius: var(--border-radius); */
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-dark-blue);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: var(--font-family), serif;
    font-size: 1rem;
    color: var(--text-dark-blue);
    background-color: var(--bg-offset);
    transition: border-color var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-accent);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
    background-color: var(--bg-light);
}

.form-actions {
    text-align: center;
}

.form-status {
    margin-top: 15px;
    text-align: center;
    font-weight: 500;
    padding: 10px;
    border-radius: var(--border-radius);
    display: none; /* Erst unsichtbar */
}

.form-status.success {
    display: block;
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-status.error {
    display: block;
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

footer {
    background-color: var(--bg-offset);
    color: var(--text-medium);
    text-align: center;
    padding: 30px 20px;
    font-size: 0.85rem;
    border-top: 1px solid var(--border-color);
}

footer p {
    color: var(--text-medium);
    margin-bottom: 0.5em;
}

footer a {
    color: var(--primary-accent);
    font-weight: 500;
}

footer a:hover {
    color: var(--primary-accent-hover);
}

.fade-in-section {
    opacity: 0;
    transform: translateY(80px);
    transition: opacity 0.5s ease-out, transform 1s ease-out;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .burger-menu {
        display: flex;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background-color: var(--bg-light);
        box-shadow: 0 4px 8px rgba(45, 55, 72, 0.08);
        padding: 10px 0;
        border-top: 1px solid var(--border-color);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 0;
        width: 100%;
        text-align: left;
    }

    .nav-links li a {
        display: block;
        padding: 12px 25px;
        border-bottom: 1px solid var(--border-color);
        color: var(--text-dark-blue);
    }

    .nav-links li:last-child a {
        border-bottom: none;
    }

    .nav-links li a:hover {
        color: var(--primary-accent);
        background-color: var(--bg-offset);
    }

    .nav-links li a::after {
        display: none;
    }

    #hero {
        padding: 60px 20px;
        min-height: calc(80vh - var(--header-height));
    }

    #hero h1 {
        font-size: 2rem;
    }

    #hero h2 {
        font-size: 1rem;
    }

    #hero p {
        font-size: 0.95rem;
    }

    .cta-button {
        font-size: 0.95rem;
        padding: 12px 28px;
    }

    .about-content {
        text-align: left;
    }

    .about-image img {
        width: 180px !important;
        height: 180px !important;

        display: block;
        margin: 0 auto;
    }

    .about-image {
        width: 100%;
        text-align: center;
        margin-top: 2rem;
    }
}

body.no-scroll {
    overflow: hidden;
}