/* Page width limit */
.container {
    max-width: 1200px !important;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Navigation */
nav {
    height: auto;
    line-height: normal;
    box-shadow: 0 2px 4px rgba(155, 68, 74, 0.2);
}

.nav-inner {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
    text-align: center;
}

.nav-title {
    padding: 16px 0 10px;
}

.nav-title a {
    font-size: 1.8rem;
    font-weight: 500;
    color: #444;
    text-decoration: none;
    white-space: nowrap;
}

.nav-title a:hover {
    color: #9B444A;
}

ul.nav-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0 0 10px;
    gap: 4px;
}

ul.nav-links li a {
    color: #444;
    padding: 6px 14px;
    display: block;
    border-radius: 10px;
    transition: color 0.2s;
}

ul.nav-links li a:hover {
    color: #9B444A;
}

.sidenav-trigger {
    color: #444;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.sidenav-trigger i {
    font-size: 28px;
}

/* Mobile: hamburger + title in one flex row */
@media only screen and (max-width: 992px) {
    .nav-inner {
        display: flex;
        align-items: center;
        padding: 10px 16px;
    }

    .nav-title {
        flex: 1;
        text-align: center;
        padding: 0;
    }

    /* Invisible spacer to keep title truly centered */
    .nav-inner::after {
        content: '';
        display: block;
        width: 28px;
        flex-shrink: 0;
    }
}

/* Banner */
#index-banner {
    min-height: 280px;
}

.banner-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    text-align: center;
    z-index: 1;
    background: rgba(0, 0, 0, 0.35);
    padding: 16px 24px;
    border-radius: 4px;
}

.banner-text h2 {
    color: #fff;
    font-size: 1.2rem;
    margin: 0;
    line-height: 1.5;
}

/* Image containers */
.image-container {
    position: relative;
    min-height: 280px;
    line-height: 0;
    overflow: hidden;
    max-width: 1200px;
    margin: 0 auto;
}

.image-container .section {
    width: 100%;
}

.image-container .image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.image-container .image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Profile image */
.float {
    float: right;
    margin: 0 0 16px 24px;
    border-radius: 4px;
}

/* Heading size overrides */
h1 {
    font-size: 1.8rem;
    line-height: 110%;
    margin: auto;
}

h2 {
    font-size: 2.28rem;
    line-height: 1.3;
}

/* Text */
.text-red {
    color: #9B444A;
}

p.text {
    font-size: 1rem;
    line-height: 1.8;
}

/* Contact buttons */
.contact-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    padding: 20px 0;
}

.contact-buttons .btn-large {
    margin: 0;
    border-radius: 20px;
    border: 1px solid #9B444A;
    box-shadow: none;
    padding-inline: 18px;
    font-size: 13px;
}

@media only screen and (min-width: 390px) {
    .contact-buttons .btn-large {
        padding-inline: 28px;
        font-size: 15px;
    }
}

/* Icon block */
.icon-block {
    padding: 0 15px;
}

.icon-block .material-icons {
    font-size: inherit;
}

/* Footer */
.page-footer {
    padding-top: 50px;
    padding-bottom: 20px;
    background: #FFFFFF;
}


/* Footer-Links dezent gestalten */
footer a {
    font-family: inherit;
    color: rgba(0, 0, 0, 0.87);
    font-size: 0.85em;
    text-decoration: none;
}

/* Keine Hover- oder Visited-Farbanpassung */
footer a:hover,
footer a:visited {
    color: rgba(0, 0, 0, 0.87);
}


/* ── Mobile (≤600px) ── */
@media only screen and (max-width: 600px) {
    #index-banner {
        min-height: 220px;
    }

    .banner-text {
        padding: 10px 14px;
    }

    .banner-text h2 {
        font-size: 0.95rem;
    }

    .image-container {
        min-height: 200px;
    }

    .float {
        float: none;
        display: block;
        margin: 0 auto 20px;
        max-width: 180px;
    }

    p.text {
        font-size: 0.95rem;
    }
}

/* ── Tablet (601px–992px) ── */
@media only screen and (min-width: 601px) and (max-width: 992px) {
    #index-banner {
        min-height: 400px;
    }

    .banner-text h2 {
        font-size: 1.3rem;
    }

    .image-container {
        min-height: 380px;
    }

    p.text {
        font-size: 1.05rem;
    }
}

/* ── Desktop (≥993px) ── */
@media only screen and (min-width: 993px) {
    #index-banner {
        min-height: 620px;
    }

    .banner-text {
        max-width: 800px;
    }

    .banner-text h2 {
        font-size: 1.7rem;
    }

    .image-container {
        min-height: 580px;
    }

    p.text {
        font-size: 1.15rem;
    }
}
