:root {
    --Farbe1: #464646;
    --Farbe2: #4c79f5;
    --Farbe3: #0095a0;
    --Farbe4: #09915d;
    --Farbe5: #ff8800;
    --Farbe6: #e01c5d;
    --Farbe7: #eb5050;
    --FarbeGrau: #858585;
    --FarbeLink: #eb5050;
}
/* montserrat-regular - latin */
@font-face {
    font-display: swap;
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 400;
    src: url('/fonts/montserrat-v31-latin-regular.woff2') format('woff2');
}

/* montserrat-600 - latin */
@font-face {
    font-display: swap;
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 600;
    src: url('/fonts/montserrat-v31-latin-600.woff2') format('woff2');
}

/* montserrat-700 - latin */
@font-face {
    font-display: swap;
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 700;
    src: url('/fonts/montserrat-v31-latin-700.woff2') format('woff2');
}

/* Editor */
.ql-snow .ql-editor a {
    color: var(--FarbeLink);
    text-decoration: none;
}
.ql-editor {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
}
.ql-snow .ql-editor h1 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1.3rem;
}

/* Basis-Stile */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html, body {
    overflow-x: hidden;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--Farbe1);
    text-align: center;
    line-height: 1.6;
    font-weight: 600;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
main {
    flex: 1;
}

a {
    color: var(--FarbeLink);
    font-weight: 600;
    text-decoration: none;
}

/* Bilder generell responsive */
img {
    max-width: 100%;
    height: auto;
}

/* Header & Menü */
header {
    background-color: rgb(255, 252, 248);
    padding: 30px 0;
    z-index: 10;
    position: relative;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 40px;
}

nav ul li {
    font-weight: 600;
    font-size: 1rem;
}
nav ul li a {
    color: var(--Farbe5);
}

/* Hintergrund-Fixierung */
.hero-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
    opacity: 0;
    transition: opacity 7s ease-in-out;
    will-change: opacity;
    /* smoother transitions */
}
.bg1 {
    opacity: 1;
    /* Startbild sichtbar */
}
.bg2 {
    opacity: 0;
    /* Start unsichtbar */
}

/* Hero-Inhalt */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 40px;
}

/* Content Section */
.section {
    padding: 30px 20px;
    max-width: 900px;
    margin: 0 auto;
    flex: 1;
}
.section img {
    border-radius: 8px;
}

.logo {
    margin: 0px;
}

/* Linie */
.line {
    width: 70px;
    height: 1px;
    background-color: var(--Farbe1);
    margin: 20px auto;
}

/* Überschriften */
.title-small {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 10px;
}

.title-large {
    font-size: 1.9rem;
    font-weight: 600;
    margin: 20px 0;
}

/* Text */
p {
    font-size: 1rem;
    font-weight: 600;
    margin: 17px 0;
}
.unterLogo {
    margin: 3px;
    font-size: 0.95rem;
}

/* Galerie */

.gallery {
    margin-top: 30px;
}

.gallery img {
    width: 575px;
    max-width: 100%;
    margin-bottom: 20px;
    border-radius: 8px;
}

/* Footer */

footer {
    width: 100%;
    background-color: rgb(255, 252, 248);
    padding: 17px 0;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--FarbeGrau);
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.05);
}
footer p {
    font-size: 0.85rem;
    margin: 1px 0;
}

footer a {
    margin: 0 10px;
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--FarbeGrau);
}

/* ---------------- */
/* Tablet Anpassung */
/* ---------------- */

@media (max-width: 900px) {

    .title-large {
        font-size: 2rem;
    }

    .title-small {
        font-size: 1.3rem;
    }

    .section {
        padding: 25px 15px;
    }

}

/* ---------------- */
/* Mobile Anpassung */
/* ---------------- */

@media (max-width: 600px) {

    header {
        padding: 10px 0;
    }

    nav ul {
        flex-direction: column;
        gap: 8px;
    }
    nav ul li {
        line-height: 1.2;   /* kleinerer Zeilenabstand */
        font-size: 1rem; /* optional etwas kleiner */
    }

    .hero {
        padding-top: 25px;
    }

    .title-large {
        font-size: 1.7rem;
    }

    .title-small {
        font-size: 1.2rem;
    }

    .gallery img {
        width: 100%;
    }

    footer {
        font-size: 0.9rem;
        padding: 15px 0;
    }

}

/* ---------------- */
/* Kleine Smartphones */
/* ---------------- */

@media (max-width: 400px) {

    .title-large {
        font-size: 1.5rem;
    }

    .line {
        width: 50px;
    }

}

/* KontaktForm */

.kontakt-form {
    max-width: 450px;
    margin: 0px auto;
    padding: 0px 20px 20px 20px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    font-family: 'Montserrat', sans-serif;
    color: var(--Farbe1);
    background-color: transparent;
    /* Hintergrund transparent */
    box-shadow: none;
    /* optional Schatten entfernen */
}

.kontakt-form label {
    margin-top: 10px;
    margin-bottom: 3px;
    font-weight: 600;
    text-align: left;
}

.kontakt-form input,
.kontakt-form textarea {
    background-color: #fff;
    /* nur die Felder weiß */
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    resize: vertical;
}

.kontakt-form textarea {
    min-height: 120px;
    /* größer als vorher */
}

.kontakt-form button {
    margin-top: 20px;
    padding: 12px;
    background-color: var(--Farbe2);
    color: #fff;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s;
}

.kontakt-form button:hover {
    background-color: var(--Farbe3);
}

/* Mobile Anpassung */
@media (max-width: 600px) {
    .kontakt-form {
        padding: 20px 15px;
    }
}