/* ===========================
   Grundeinstellungen
=========================== */

:root {
    --primary-color: #69b7ff;
    --primary-hover: #4fa8f5;
    --secondary-color: #4f5d75;
    --background-start: #dff5ff;
    --background-middle: #edfaff;
    --background-end: #ffffff;
    --surface-color: rgba(255, 255, 255, 0.9);
    --text-color: #2c3e50;
    --muted-text: #666666;
    --border-color: rgba(105, 183, 255, 0.18);
    --shadow-color: rgba(120, 170, 255, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    min-height: 100vh;
    font-family: "Poppins", Arial, sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    background: linear-gradient(135deg, var(--background-start), var(--background-middle), var(--background-end));
    transition: background 0.3s ease, color 0.3s ease;
}

img {
    display: block;
    max-width: 100%;
}

button,
a,
input,
textarea {
    font: inherit;
}

/* ===========================
   Header
=========================== */

.impressum-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 8px 8%;
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.brand,
.main-nav a,
.footer-links a {
    text-decoration: none;
}

.brand-name {
    color: var(--primary-color);
    font-size: 30px;
    font-weight: 700;
}

.main-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 22px;
}

.main-nav a {
    color: var(--secondary-color);
    font-weight: 600;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: var(--primary-color);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.logo-container img {
    width: 66px;
    height: 66px;
    object-fit: cover;
    border-radius: 14px;
    box-shadow: 0 10px 28px var(--shadow-color);
    transition: transform 0.3s ease;
}

.logo-container img:hover {
    transform: translateY(-3px);
}

#dark-mode-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: var(--primary-color);
    background: #eef8ff;
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}


/* ===========================
   Layout und Sections
=========================== */

main {
    width: min(1100px, calc(100% - 40px));
    margin: 0 auto;
    padding: 60px 0;
}

.content-section {
    margin-bottom: 48px;
    padding: 50px;
    border: 1px solid var(--border-color);
    border-radius: 28px;
    background: var(--surface-color);
    box-shadow: 0 15px 40px var(--shadow-color);
}

.impressum-content p + p {
    margin-top: 16px;
}

/* ===========================
   Slogan Section
=========================== */

.content-section.slogan-section {
    text-align: center;
    padding: 80px 50px;
    transition: background 0.3s ease, color 0.3s ease;
    font-size: clamp(22px, 4vw, 36px);
    font-family: "Poppins", Arial, sans-serif;
    font-weight: 900;
    color: transparent;
    -webkit-text-stroke: 2px var(--primary-color);
    text-transform: uppercase;
    line-height: 0.9;
}   

.content-section.slogan-section {
    color: var(--primary-color);
}


/* ===========================
   Dark Mode
=========================== */

body.dark-mode {
    --background-start: #17191d;
    --background-middle: #22262c;
    --background-end: #2d3239;
    --surface-color: rgba(38, 42, 49, 0.94);
    --text-color: #f4f7fa;
    --muted-text: #cbd2da;
    --secondary-color: #d4d9df;
    --border-color: rgba(141, 204, 255, 0.16);
    --shadow-color: rgba(0, 0, 0, 0.28);
}

body.dark-mode .impressum-header {
    background: rgba(30, 30, 35, 0.9);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

body.dark-mode #dark-mode-toggle {
    color: var(--primary-color);
    background: #2d3239;
}


/* ===========================
   Social Media
=========================== */

.social-card {
    min-width: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 20px;
    color: var(--secondary-color);
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}

.social-card:hover {
    transform: translateY(-4px);
    color: white;
    background: var(--primary-color);
}

.social-card i {
    font-size: 21px;
}


/*=============
    Footer
=============*/

.site-footer {
    padding: 25px;
    color: #777;
    text-align: center;
    background: white;
    box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.05);
}

.footer-content {
    width: min(1100px, calc(100% - 40px));
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.footer-links {
    display: flex;
    gap: 16px;
}

.footer-links a {
    color: inherit;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.impressum-content h2 {
    margin-top: 30px;
    margin-bottom: 10px;
}

.site-footer {
    padding: 25px;

    color: var(--muted-text);
    background: var(--surface-color);

    border-top: 1px solid var(--border-color);

    text-align: center;

    box-shadow: 0 -5px 25px var(--shadow-color);
}


/* ===========================
   Barrierefreiheit
=========================== */
a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 4px;
    border-radius: 10px;
}


/* ===========================
   Responsive Design
=========================== */
@media (max-width: 700px) {
    main {
        width: min(100% - 24px, 1100px);
        padding: 36px 0;
    }

    .impressum-header {
        padding: 10px 16px;
        gap: 14px;
    }

    .brand-name {
        font-size: 24px;
    }

    .main-nav {
        display: none;
    }

    .logo-container img {
        width: 52px;
        height: 52px;
    }

    #dark-mode-toggle {
        width: 44px;
        height: 44px;
    }

    .content-section {
        padding: 30px 22px;
        border-radius: 22px;
    }

    .content-section.slogan-section {
        padding: 50px 22px;
        line-height: 1.1;
    }

    .footer-content {
        width: 100%;
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }
}


/* ===========================
   Bewegungsanimationen
=========================== */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

