/* ===========================
   Lokale Schriftart Inter
   =========================== */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/Inter-Regular.woff2') format('woff2');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/Inter-Medium.woff2') format('woff2');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/Inter-SemiBold.woff2') format('woff2');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/Inter-Bold.woff2') format('woff2');
}

/* ===========================
   CSS Variables & Reset
   =========================== */
:root {
    --color-primary: #4f46e5;
    --color-primary-dark: #4338ca;
    --color-text: #ffffff;
    --color-text-light: #ffffffcc;
    --color-bg: #0d4544;
    --color-border: rgba(255, 255, 255, 0.2);
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --transition: 0.3s ease;
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    font-family: var(--font-family);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition);
}

/* ===========================
   Fester Termin-Link (rechte Seite)
   =========================== */
.appointment-link {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    background-color: #ffffff;
    color: var(--color-bg);
    padding: 0.85rem 1.25rem;
    border-radius: 0.5rem 0 0 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.9375rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: background-color var(--transition), padding-right var(--transition), box-shadow var(--transition);
    writing-mode: horizontal-tb;
}

.appointment-link:hover {
    background-color: #f0f0f0;
    padding-right: 1.75rem;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.appointment-link svg {
    flex-shrink: 0;
}

/* ===========================
   Hauptbereich – zentriertes Logo
   =========================== */
.main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-wrapper {
    text-align: center;
}

.logo-img {
    max-width: clamp(180px, 40vw, 500px);
    width: 100%;
    height: auto;
    margin: 0 auto;
}

/* ===========================
   Footer
   =========================== */
.footer {
    border-top: 1px solid var(--color-border);
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-align: center;
    width: 100%;
}

.footer__contact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    flex-wrap: wrap;
    color: rgba(255, 255, 255, 0.7);
}

.footer__contact a {
    color: rgba(255, 255, 255, 0.7);
}

.footer__contact a:hover {
    color: #ffffff;
}

.footer__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-size: 0.875rem;
}

.footer__inner a {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.footer__inner a:hover {
    color: #ffffff;
}

.footer__divider {
    color: rgba(255, 255, 255, 0.3);
    user-select: none;
}

/* ===========================
   Unterseiten (Impressum, Datenschutz)
   =========================== */
.back-link {
    position: fixed;
    top: 1.5rem;
    left: 1.5rem;
    z-index: 1000;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
    font-size: 0.9375rem;
    transition: color var(--transition);
}

.back-link:hover {
    color: #ffffff;
}

.page-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 5rem 1.5rem 3rem;
    color: var(--color-text);
}

.page-content h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.page-content h2 {
    font-size: 1.375rem;
    font-weight: 600;
    margin-top: 2.5rem;
    margin-bottom: 0.75rem;
}

.page-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.page-content p {
    color: var(--color-text-light);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.page-content a {
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.page-content a:hover {
    opacity: 0.8;
}

.page-content ul {
    color: var(--color-text-light);
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    line-height: 1.8;
}

.page-content ul li {
    list-style: disc;
    margin-bottom: 0.25rem;
}

/* ===========================
   Responsive
   =========================== */
@media (max-width: 600px) {
    .appointment-link span {
        display: none;
    }

    .appointment-link {
        padding: 0.75rem;
        border-radius: 0.5rem 0 0 0.5rem;
    }

    .logo-img {
        max-width: clamp(150px, 50vw, 220px);
    }

    .page-content {
        padding: 4rem 1rem 2rem;
    }

    .page-content h1 {
        font-size: 1.5rem;
    }
}
