/* MAIN */

@font-face {
    font-family: 'Google Sans Flex';
    font-style: normal;
    font-weight: 400;
    src: url('fonts/GoogleSansFlex-VariableFont.ttf') format('truetype');
}

main {
    flex: 1;
}

main p {
    text-align: center;
    margin-bottom: 0.6em;
}

main p:last-child {
    margin-bottom: 0;
}

p {
    line-height: 1.7;
}

:root {
    --bg-page: #f5f2e8;
    --bg-html: linear-gradient(135deg, #d4e0d8 0%, #c2d4ca 100%);
    --text_primary: #4a6b5c;
    --text_header: #83b3b1;
    --acent: #aec2c1;
    --nav_bg: rgba(74, 107, 92, 0.1);
    --nav_element: #4a6b5c;
    --nav_hover: #f5f2e8;
    --nav_hover_bg: #4a6b5c;
    --bg: rgba(74, 107, 92, 0.07);
    --bg_darker: rgba(74, 107, 92, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    background: var(--bg-html);
}

body {
    font-family: "Google Sans Flex", sans-serif;
    color: var(--text_primary);
    max-width: 1100px;
    margin: 0 auto;
    padding: 30px 40px;
    background: var(--bg-page);
    min-height: 100vh;
    line-height: 1.7;
    font-size: 17px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.05);
}

body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 20% 30%, rgba(74, 107, 92, 0.04) 1px, transparent 1px);
    background-size: 35px 35px;
    pointer-events: none;
}

/* NAVIGATION */
nav {
    background: var(--nav_bg);
    backdrop-filter: blur(12px);
    padding: 12px 20px;
    border-radius: 60px;
    margin-bottom: 60px;
    border: 1px solid rgba(74, 107, 92, 0.2);
    text-align: center;
    white-space: nowrap;
    overflow-x: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

nav a {
    color: var(--nav_element);
    text-decoration: none;
    display: inline-block;
    margin: 0 15px;
    padding: 6px 14px;
    border-radius: 40px;
    transition: all 0.3s ease;
    font-size: 15px;
}

nav a:hover {
    background-color: var(--nav_hover_bg);
    color: var(--nav_hover);
}

nav a.active {
    background-color: var(--nav_hover_bg);
    color: var(--nav_hover);
}

/* BRAND */
.brand {
    color: var(--acent);
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 12px;
    margin-top: 0px;
    margin-bottom: 15px;
}

.brand-name {
    font-size: 1.3em;
    font-weight: 500;
}

.brand-separator {
    font-size: 0.9em;
}

.brand-title {
    font-size: 0.95em;
}

/* HEADER */
h1 {
    color: var(--text_header);
    font-size: 2.8em;
    font-weight: 500;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
    text-align: center;
    position: relative;
}

h2 {
    color: var(--text_header);
    font-size: 1.5em;
    font-weight: 500;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
    text-align: center;
    position: relative;
}

.subtitle {
    color: var(--text_primary);
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 40px;
}

/* TABLE */
.two-columns,
.two-columns-bordered {
    background: var(--bg);
    display: flex;
    gap: 40px;
    justify-content: center;
    padding: 35px;
    border-radius: 32px;
}

.two-columns-bordered {
    border-left: 3px solid #4a6b5c;
}

/* Nur für Listen in .two-columns und .two-columns-bordered */
.two-columns ul,
.two-columns-bordered ul {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
}

.two-columns li,
.two-columns-bordered li {
    padding: 6px 0 6px 18px;
    position: relative;
    word-break: normal;
    white-space: normal;
    line-height: 1.5;
}

.two-columns li::before,
.two-columns-bordered li::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 9px;
    font-size: 14px;
}

footer {
    text-align: center;
    margin-top: 60px;
    padding-top: 25px;
    border-top: 1px solid rgba(74, 107, 92, 0.2);
}

footer p {
    margin-bottom: 8px;
}

.signature {
    font-size: 0.9em;
    letter-spacing: 0.5px;
}

.image-gallery {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin: 30px 0;
    flex-wrap: wrap;
}

.gallery-image {
    width: 100%;
    height: 250px;
    object-fit: contain;
    border-radius: 20px;
    background-color: var(--bg-page);
}

.hero {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-bottom: 50px;
    background: var(--bg);
    padding: 35px;
    border-radius: 32px;
}

.hero-text {
    flex: 2;
}

.hero-text h1 {
    text-align: left;
    margin-bottom: 12px;
}

.lead {
    font-size: 1.15em;
    color: var(--text_primary);
    margin-bottom: 20px;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.badge {
    background: rgba(107, 158, 122, 0.12);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.8em;
    color: var(--text_primary);
    border: 1px solid rgba(107, 158, 122, 0.2);
}

.portrait {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
}

.card {
    padding: 25px;
    border-radius: 24px;
    transition: all 0.2s ease;
}

.col h2 {
    display: flex;
    align-items: center;
    border-bottom: 2px solid var(--acent);
}

.text-left,
.text-left p,
.text-left h1 {
    text-align: left;
}

.text-left h1 {
    border-bottom: 2px solid var(--acent);
}

h1.text-center {
    border-bottom: 2px solid var(--acent);
}

.text-left h1::after {
    margin: 8px 0 0 0;
}

.map-container {
    margin: 30px 0;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.map-preview {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

.map-attribution {
    text-align: center;
    font-size: 0.7em;
    color: rgba(74, 107, 92, 0.5);
    margin: -15px 0 20px 0;
}

.address-note {
    text-align: left;
    margin: 20px 0;
}

.map-links {
    text-align: center;
    margin-top: 25px;
}

.map-link {
    display: inline-block;
    background: var(--bg);
    color: var(--text_primary);
    text-decoration: none;
    padding: 12px 28px;
    border-radius: 50px;
    transition: all 0.3s ease;
    font-size: 1em;
    border: 1px solid rgba(74, 107, 92, 0.2);
}

.map-link:hover {
    background: var(--acent);
    color: var(--bg-page);
    transform: translateY(-2px);
}

.contact-card {
    background: var(--bg);
    border-radius: 24px;
    padding: 40px;
    margin: 20px 0;
    text-align: center;
}

.contact-intro {
    text-align: center;
    font-size: 1.1em;
    margin-bottom: 25px;
}

.email-box {
    margin: 25px 0;
}

.email-link {
    background: var(--bg);
    font-size: 1.3em;
    font-weight: 500;
    color: var(--text_primary);
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 60px;
    transition: all 0.3s ease;
    display: inline-block;
}

.email-link:hover {
    color: var(--acent);
    transform: translateY(-2px);
}

@keyframes smoothPop {
    0% {
        opacity: 0;
        transform: scale(0.95);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

main {
    animation: smoothPop 0.25s cubic-bezier(0.2, 0.9, 0.4, 1.1) forwards;
}

.brand, nav, footer {
    animation: none;
}

/* ============================================ */
/* ALLE MOBILE OPTIMIZATIONS (zusammengefasst) */
/* ============================================ */

/* Bis 1100px - kleinere Schrift und Padding */
@media (max-width: 1100px) {
    body {
        padding: 25px 30px;
    }

    h1 {
        font-size: 2.4em;
    }

    h2 {
        font-size: 1.3em;
    }
}

/* Bis 900px - Tablet */
@media (max-width: 900px) {
    body {
        padding: 20px 25px;
    }

    h1 {
        font-size: 2.2em;
    }

    .two-columns,
    .two-columns-bordered {
        flex-direction: column;
        gap: 20px;
        padding: 25px;
    }

    .two-columns-bordered {
        border-left: none;
        border-top: 3px solid #4a6b5c;
    }

    .hero {
        flex-direction: column-reverse;
        text-align: center;
        padding: 25px;
        gap: 25px;
    }

    .hero-text h1 {
        text-align: center;
    }

    .hero-badges {
        justify-content: center;
    }

    .portrait {
        width: 150px;
        height: 150px;
    }

    .image-gallery {
        gap: 15px;
    }

    .gallery-image {
        height: 200px;
    }

    .map-preview {
        height: 300px;
    }

    .contact-card {
        padding: 30px;
    }

    .email-link {
        font-size: 1.1em;
        padding: 10px 20px;
    }
}

/* Bis 768px - Mobile groß */
@media (max-width: 768px) {
    body {
        padding: 15px 20px;
        font-size: 16px;
    }

    nav {
        padding: 10px 15px;
        margin-bottom: 40px;
        white-space: normal;
        flex-wrap: wrap;
        gap: 5px;
    }

    nav a {
        margin: 3px 8px;
        padding: 5px 12px;
        font-size: 13px;
    }

    .brand {
        flex-wrap: wrap;
        text-align: center;
        gap: 8px;
        margin-bottom: 20px;
    }

    .brand-name {
        font-size: 1.1em;
    }

    .brand-title {
        font-size: 0.85em;
    }

    h1 {
        font-size: 1.8em;
    }

    h2 {
        font-size: 1.2em;
    }

    .subtitle {
        font-size: 1em;
        margin-bottom: 25px;
    }

    .hero {
        padding: 20px;
        margin-bottom: 30px;
    }

    .lead {
        font-size: 1em;
    }

    .badge {
        padding: 4px 10px;
        font-size: 0.75em;
    }

    .two-columns,
    .two-columns-bordered {
        padding: 20px;
        border-radius: 24px;
    }

    .two-columns li,
    .two-columns-bordered li {
        padding: 6px 0 6px 20px;
        font-size: 0.95em;
    }

    .map-preview {
        height: 250px;
    }

    .map-link {
        padding: 10px 20px;
        font-size: 0.9em;
    }

    .contact-card {
        padding: 25px;
    }

    .contact-intro {
        font-size: 1em;
    }

    footer {
        margin-top: 40px;
        padding-top: 20px;
    }

    footer p {
        font-size: 13px;
    }

    .signature {
        font-size: 12px;
    }
}

/* Bis 480px - Mobile klein */
@media (max-width: 480px) {
    body {
        padding: 12px 15px;
        font-size: 15px;
    }

    nav a {
        margin: 2px 5px;
        padding: 4px 10px;
        font-size: 10px;
    }

    .brand {
        gap: 5px;
    }

    .brand-name {
        font-size: 1em;
    }

    .brand-separator {
        font-size: 0.8em;
    }

    .brand-title {
        font-size: 0.75em;
    }

    h1 {
        font-size: 1.5em;
    }

    h2 {
        font-size: 1.1em;
    }

    .hero {
        padding: 15px;
    }

    .portrait {
        width: 120px;
        height: 120px;
    }

    .badge {
        padding: 3px 8px;
        font-size: 0.7em;
    }

    .two-columns,
    .two-columns-bordered {
        padding: 15px;
    }

    .two-columns li,
    .two-columns-bordered li {
        padding: 5px 0 5px 18px;
        font-size: 0.9em;
    }

    .two-columns li::before,
    .two-columns-bordered li::before {
        top: 7px;
        font-size: 12px;
    }

    .image-gallery {
        gap: 10px;
    }

    .gallery-image {
        height: 150px;
    }

    .map-preview {
        height: 200px;
    }

    .map-attribution {
        font-size: 0.6em;
        margin: -10px 0 15px 0;
    }

    .map-link {
        padding: 8px 16px;
        font-size: 0.85em;
    }

    .contact-card {
        padding: 20px;
    }

    .email-link {
        font-size: 1em;
        padding: 8px 16px;
    }

    .signature {
        font-size: 11px;
    }

    /* Verhindert horizontales Scrollen auf sehr kleinen Geräten */
    .two-columns ul,
    .two-columns-bordered ul {
        word-break: break-word;
    }
}