/* 
    Dr. Christoph Wagner - Stylesheet 2026
    Refactored to Mobile-First & WCAG 2.1 AA 
*/

/* ==========================================================================
   1. VARIABLES & DESIGN TOKENS
   ========================================================================== */
:root {
    /* Colors */
    --primary: #043B40;
    --primary-light: #043b4013;
    --primary-medium: #043b4073;
    --primary-popup: #043b404e;
    --text: #777777;
    --text-dark: #333333;
    --white: #ffffff;
    --gray-light: rgb(231, 231, 231);
    --gray-medium: #8c8c8c;
    --error: #8B1E1E;

    /* Spacing */
    --section-padding-y: 150px;
    --section-padding-x: 20px;
    --header-min-height: 600px;

    /* Fonts */
    --font-main: "termina", Montserrat, Arial, Helvetica, sans-serif;

    /* Breakpoints */
    --sm: 480px;
    --md: 768px;
    --lg: 1024px;
    --xl: 1280px;
}

@media (min-width: 768px) {
    :root {
        --section-padding-x: 60px;
        --header-min-height: 800px;
    }
}

@media (min-width: 1280px) {
    :root {
        --section-padding-x: 100px;
        --header-min-height: 1000px;
    }
}


/* ==========================================================================
   2. BASE STYLES & TYPOGRAPHY (Mobile First)
   ========================================================================== */
body {
    font-family: var(--font-main);
    font-size: 16px;
    font-weight: 400;
    color: var(--text);
    line-height: 1.75;
    overflow-x: hidden;
}

@media (min-width: 768px) {
    body {
        font-size: 18px;
    }
}

main {
    display: block;
}

section,
footer,
main.legal-content {
    padding-top: var(--section-padding-y);
    padding-bottom: var(--section-padding-y);
}

p {
    margin-bottom: 30px;
}

b,
strong {
    font-weight: 600;
}

h1,
h2,
h3 {
    font-weight: 400;
}

h1 {
    font-size: 40px;
    text-align: left;
    margin-bottom: 20px;
    text-transform: capitalize;
}

h2 {
    font-size: 30px;
    text-align: center;
    margin-bottom: 50px;
}

h3 {
    font-size: 22px;
    text-transform: capitalize;
}

.unterueberschrift {
    font-weight: 500;
    font-size: 20px;
    text-align: left;
    margin-bottom: 40px;
}

@media (min-width: 768px) {
    h1 {
        font-size: 60px;
    }

    h2 {
        font-size: 40px;
        margin-bottom: 80px;
    }

    h3 {
        font-size: 26px;
    }

    .unterueberschrift {
        font-size: 25px;
    }
}

@media (min-width: 1024px) {
    h1 {
        font-size: 75px;
    }
}

@media (min-width: 1280px) {
    h1 {
        font-size: 90px;
    }
}

/* Accessibility */
.visually-hidden,
.honeypot {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.skip-link {
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: var(--white);
    padding: 10px 20px;
    z-index: 10001;
    transition: top 0.3s;
    text-decoration: none;
    border-radius: 0 0 10px 10px;
    font-weight: 600;
}

.skip-link:focus {
    top: 0;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}


/* ==========================================================================
   3. COMPONENTS (Buttons & Forms)
   ========================================================================== */
.transparenter-button,
.button-dunkel {
    font-size: 14px;
    padding: 10px 25px;
    border-radius: 100px;
    text-decoration: none;
    transition: 0.5s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-sizing: border-box;
}

.transparenter-button {
    background-color: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

.transparenter-button:hover {
    background-color: var(--white);
    color: var(--primary);
}

.button-dunkel {
    background-color: var(--primary);
    border: 2px solid var(--primary);
    color: var(--white);
}

.button-dunkel:hover {
    background-color: var(--white);
    color: var(--primary);
}

@media (min-width: 768px) {

    .transparenter-button,
    .button-dunkel {
        width: fit-content;
    }
}

form {
    padding-top: 60px;
    width: 100%;
}

.reihe {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 10px;
}

.form-group {
    width: 100%;
}

input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 10px 20px;
    border-radius: 10px;
    border: 2px solid var(--gray-light);
    box-shadow: 0 0 5px 1px var(--gray-light);
    font-family: inherit;
    font-size: 16px;
}

input:focus,
textarea:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 5px 1px var(--primary-popup);
}

textarea {
    margin-bottom: 20px;
    resize: vertical;
}

.datenschutz-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    text-align: left;
}

.datenschutz-checkbox {
    margin-top: 6px;
    flex-shrink: 0;
    accent-color: var(--primary);
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.datenschutz-label {
    font-size: 14px;
    line-height: 1.5;
    cursor: pointer;
    color: var(--text-dark);
}

.submit-wrap {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

@media (min-width: 768px) {
    .reihe {
        flex-direction: row;
        gap: 20px;
    }

    .submit-wrap {
        justify-content: flex-start;
    }
}


/* ==========================================================================
   4. HEADER
   ========================================================================== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 25px 0;
    transition: transform 0.4s ease, background-color 0.4s ease;
}

.main-header .container {
    padding-left: 20px;
    padding-right: 20px;
}

.main-header.is-sticky {
    background-color: var(--primary);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
}

.main-header.is-hidden {
    transform: translateY(-100%);
}

.main-header .logo {
    justify-content: flex-start;
    margin-bottom: 0;
    padding: 0;
}

header svg {
    width: 300px;
    height: auto;
    max-width: 100%;
}

@media (min-width: 768px) {
    .main-header svg {
        width: 350px;
    }
}

@media (min-width: 1280px) {
    header svg {
        max-width: 500px;
    }

    .logo {
        margin-bottom: 150px;
    }
}

.language-switch {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
}

.lang-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    padding: 5px;
    transition: color 0.3s ease;
    font-family: inherit;
    font-size: 14px;
}

.lang-btn:hover {
    color: var(--white);
}

.lang-btn.active {
    color: var(--white);
    font-weight: 700;
}

.language-switch .separator {
    color: rgba(255, 255, 255, 0.4);
}


/* ==========================================================================
   5. HERO SECTION
   ========================================================================== */
.hero {
    position: relative;
    background-image: linear-gradient(to right, rgba(4, 59, 64, 0) 0%, rgba(4, 59, 64, 0.4) 30%, rgba(4, 59, 64, 0.9) 100%), url(../../Images/DCW_hero_image.webp);
    background-size: cover;
    background-position: left center;
    color: var(--white);
}

.hero-content {
    width: 100%;
    text-align: left;
}

.hero-content h1 {
    font-size: 45px;
    margin-bottom: 10px;
    line-height: 1.1;
    color: var(--white);
}

.hero-content .unterueberschrift {
    font-size: 22px;
    margin-bottom: 30px;
    color: var(--white);
    opacity: 0.9;
}

.hero-content p {
    margin-bottom: 40px;
    max-width: 600px;
    line-height: 1.6;
}

.justify-content-md-end {
    justify-content: flex-end !important;
    display: flex;
}

@media (min-width: 768px) {
    .hero-content {
        flex: 0 0 90%;
        max-width: 90%;
    }

    .hero-content h1 {
        font-size: 80px;
    }

    .hero-content .unterueberschrift {
        font-size: 32px;
    }
}

@media (min-width: 1024px) {
    .hero-content {
        flex: 0 0 70%;
        max-width: 70%;
    }
}

@media (min-width: 1280px) {
    .hero-content {
        flex: 0 0 60%;
        max-width: 60%;
    }
}


/* ==========================================================================
   6. INFO SECTION
   ========================================================================== */
.abschnitt-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background-image: url(../../Images/DWC_bild-marke_petrol.svg);
    background-color: rgba(255, 255, 255, 0.95);
    background-blend-mode: lighten;
    background-repeat: no-repeat;
    background-size: 400px auto;
    background-position: center;
}

.bildmarke {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.abschnitt-info svg {
    width: 80px;
    height: auto;
}

@media (min-width: 768px) {
    .abschnitt-info {
        flex-direction: row;
        justify-content: center;
        text-align: left;
        background-size: 600px auto;
        background-position: right 50px center;
    }

    .bildmarke {
        margin-right: 60px;
        margin-bottom: 40px;
    }

    .abschnitt-info svg {
        width: 120px;
    }
}

@media (min-width: 1024px) {
    .abschnitt-info {
        background-size: 700px auto;
        background-position: right 100px center;
    }
}

@media (min-width: 1280px) {
    .abschnitt-info svg {
        width: 150px;
    }

    .bildmarke {
        margin-right: 0;
    }
}


/* ==========================================================================
   7. LEISTUNGEN (Accordion)
   ========================================================================== */
.leistungen {
    background-image: url(../../Images/DWC_bild-marke_weiß.svg);
    background-color: var(--primary);
    background-repeat: no-repeat;
    background-size: 400px auto;
    background-position: center;
    color: var(--white);
    justify-content: center;
}

.button-column {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    position: relative;
}

.button-column::before {
    content: "";
    position: absolute;
    bottom: -25px;
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 999px;
}

.accordion-header {
    z-index: 2;
}

.accordion-button {
    background-color: transparent;
    color: rgba(255, 255, 255, 0.4);
    padding: 0;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none !important;
}

.accordion-button svg {
    width: 48px;
    height: 48px;
    padding: 8px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.4);
    transition: 0.3s;
}

.accordion-button:not(.collapsed) svg {
    border-color: transparent;
    background-color: var(--white);
    color: var(--primary);
}

.accordion-indicator {
    display: none;
}

.accordion-body p {
    margin-bottom: 40px;
}

@media (min-width: 768px) {
    .leistungen {
        background-size: 600px auto;
        background-position: left 50px top;
    }

    .button-column {
        flex-direction: column;
        justify-content: flex-start;
        margin-bottom: 0;
        gap: 0;
    }

    .button-column::before {
        bottom: 0;
        right: 0;
        top: 0;
        width: 3px;
        height: 100%;
    }

    .accordion-button {
        justify-content: flex-end;
        padding: 10px 25px 10px 0;
    }

    .accordion-button svg {
        width: 55px;
        height: 55px;
    }

    .accordion-indicator {
        display: block;
        position: absolute;
        right: 0;
        width: 3px;
        height: 80px;
        background: var(--white);
        border-radius: 999px;
        transition: transform 300ms ease;
        z-index: 2;
        top: 0;
    }
}

@media (min-width: 1024px) {
    .leistungen {
        background-size: 700px auto;
        background-position: left 100px top;
    }
}


/* ==========================================================================
   8. KONTAKT SECTION
   ========================================================================== */
.kontakt {
    text-align: center;
    justify-content: center;
}

.kontakt svg {
    width: 25px;
    height: 25px;
    fill: currentColor;
}

.kontakt .buttons {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}


/* ==========================================================================
   9. FOOTER
   ========================================================================== */
footer {
    background-color: var(--primary);
    text-align: center;
    color: var(--white);
}

footer p {
    margin-bottom: 30px;
}

footer svg {
    width: 250px;
    height: auto;
    margin-bottom: 40px;
}

footer a {
    text-decoration: none;
    color: var(--white);
    display: inline-block;
    margin-top: 10px;
    transition: 0.3s;
}

footer a:hover {
    color: var(--gray-light);
    text-decoration: underline;
}

@media (min-width: 768px) {
    footer svg {
        width: 300px;
    }

    footer a {
        margin-right: 20px;
    }
}

@media (min-width: 1280px) {
    footer svg {
        max-width: 500px;
    }
}


/* ==========================================================================
   10. POPUP (Hinweis)
   ========================================================================== */
.hinweis-popup {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.hinweis-popup.is-hidden {
    display: none;
}

.hinweis-popup__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(2px);
}

.hinweis-popup__box {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 600px;
    background: var(--white);
    border-radius: 10px;
    padding: 40px 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
    text-align: center;
}

.hinweis-popup__content h3 {
    color: var(--primary);
    margin-bottom: 25px;
    font-size: 18px;
}

.hinweis-popup__content p {
    font-size: 14px;
}

.hinweis-popup__content a {
    color: var(--primary);
    text-decoration: underline;
}

.hinweis-popup__close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    border: none;
    background: transparent;
    color: var(--gray-medium);
    font-size: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.hinweis-popup__close:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

body.popup-offen {
    overflow: hidden;
    padding-right: var(--scrollbar-width, 0);
}

@media (min-width: 768px) {
    .hinweis-popup__box {
        padding: 60px 70px;
    }

    .hinweis-popup__content h3 {
        font-size: 24px;
    }

    .hinweis-popup__content p {
        font-size: 16px;
    }
}


/* ==========================================================================
   11. LEGAL PAGES (Impressum & Datenschutz)
   ========================================================================== */
.legal-content {
    min-height: 60vh;
}

.legal-content h1,
.legal-content h2,
.legal-content h3,
.legal-content h4,
.legal-content h5 {
    text-align: left !important;
}

.legal-content a {
    color: var(--primary);
    text-decoration: none;
    transition: text-decoration 0.3s ease;
}

.legal-content a:hover {
    text-decoration: underline;
    color: var(--primary);
}

.main-header.is-legal {
    background-color: var(--primary);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
}