/* =========================================
   GRUNDEINSTELLUNGEN
   ========================================= */

:root {
    --green: #087f6a;
    --dark: #123b3a;
    --mint: #e9f6f1;
    --gold: #d9aa4e;
    --ink: #173b3a;
    --background: #f8fbfa;
    --border: #dce9e5;

    --layout-width: 95%;
    --layout-max-width: 1440px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--background);
    font-family: Arial, Helvetica, sans-serif;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--green);
}

/* =========================================
   BARRIEREFREIHEIT
   ========================================= */

.skip-link {
    position: absolute;
    left: -9999px;
}

.skip-link:focus {
    top: 12px;
    left: 12px;
    z-index: 9999;
    padding: 12px 16px;
    color: var(--dark);
    background: #ffffff;
    border-radius: 6px;
}

/* =========================================
   HEADER
   ========================================= */

.site-header {
    position: relative;
    z-index: 20;
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid #dfeae7;
    box-shadow: 0 4px 18px rgba(20, 65, 58, 0.06);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    width: var(--layout-width);
    max-width: var(--layout-max-width);
    min-height: 88px;
    margin: 0 auto;
}

.site-branding {
    flex: 0 0 auto;
}

.custom-logo-link {
    display: block;
}

.custom-logo {
    display: block;
    width: auto;
    max-width: 320px;
    max-height: 65px;
}

.text-logo {
    display: block;
    color: var(--dark);
    font-size: 20px;
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none;
}

.text-logo small {
    display: block;
    margin-top: 4px;
    color: var(--green);
    font-size: 12px;
    font-weight: 600;
}

/* =========================================
   HAUPTNAVIGATION
   ========================================= */

.main-navigation {
    display: block;
}

.qaderi-menu {
    display: flex;
    align-items: center;
    gap: 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.qaderi-menu ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.qaderi-menu li {
    position: relative;
    margin: 0;
}

.qaderi-menu a {
    display: block;
    padding: 10px 0;
    color: var(--dark);
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s ease;
}

.qaderi-menu a:hover,
.qaderi-menu a:focus,
.qaderi-menu .current-menu-item > a,
.qaderi-menu .current_page_item > a {
    color: var(--green);
}

/* Untermenüs */

.qaderi-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 30;
    display: none;
    min-width: 230px;
    padding: 10px 0;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 12px 30px rgba(20, 65, 58, 0.12);
}

.qaderi-menu .sub-menu a {
    padding: 10px 18px;
    white-space: nowrap;
}

.qaderi-menu li:hover > .sub-menu,
.qaderi-menu li:focus-within > .sub-menu {
    display: block;
}

.menu-toggle {
    display: none;
}

/* =========================================
   HERO MIT SMART SLIDER
   ========================================= */

.hero {
    position: relative;
    width: 100%;
    min-height: 600px;
    overflow: hidden;
    background-color: var(--green);
}

/* Slider füllt den gesamten Hero-Bereich */
.hero-slider {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1600px;
    min-width: 0;
    margin: 0 auto;
    padding: 0;

    overflow: hidden;
}

.hero-slider .n2-section-smartslider {
    width: 100%;
    height: 600px;
    margin: 0;
    padding: 0;
}

/*
 * Textbox über dem Slider
 */
.hero-inner {
    position: absolute;
    top: 70%;
    left: max(3%, calc((100% - var(--layout-max-width)) / 2));
    z-index: 5;

    width: min(680px, 88%);
    max-width: 680px;
    margin: 0;
    padding: 28px 32px;

    color: #ffffff;

    /*
     * Durchsichtiger hellgrüner Hintergrund
     */
    background: rgba(174, 225, 207, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 16px;
    box-shadow: 0 14px 38px rgba(3, 48, 41, 0.2);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);

    transform: translateY(-50%);

    /*
     * Slider-Navigation bleibt durch die Textbox hindurch bedienbar.
     */
    pointer-events: none;
}

.hero .eyebrow {
    max-width: 100%;
    margin: 0 0 12px;
    color: #123b3a;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.4;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    text-shadow: none;
}

.hero .hero-lead {
    max-width: 100%;
    margin-top: 0;
    color: #123b3a;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.6;
    text-shadow: none;
}

/* Nur der Button soll Klicks entgegennehmen */
.hero .primary-button {
    pointer-events: auto;
}

/* =========================================
   BUTTON
   ========================================= */

.primary-button {
    display: flex;
    align-items: center;
    gap: 12px;
    width: max-content;
    margin-top: 30px;
    padding: 16px 21px;

    color: var(--dark);
    font-weight: 700;
    line-height: 1.3;
    text-decoration: none;

    background: #ffffff;
    border: 2px solid #ffffff;
    border-radius: 10px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.27);

    transition:
        color 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.primary-button:hover,
.primary-button:focus-visible {
    color: var(--dark);
    background: #ffffff;
    border-color: var(--gold);
    transform: translateY(-2px);
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.3);
}

.primary-button:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.75);
    outline-offset: 4px;
}

.primary-button strong {
    color: var(--green);
}

/* =========================================
   STARTSEITE
   ========================================= */

.home-content {
    position: relative;
    z-index: 3;
    width: var(--layout-width);
    max-width: var(--layout-max-width);
    margin: -42px auto 0;
    padding-bottom: 70px;
}

.status-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 28px;
    align-items: center;
    padding: 34px 40px;
    background: #ffffff;
    border-top: 4px solid var(--gold);
    border-radius: 18px;
    box-shadow: 0 18px 55px rgba(20, 65, 58, 0.14);
}

.status-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 74px;
    height: 74px;
    background: var(--mint);
    border-radius: 50%;
}

.status-dots i {
    display: block;
    width: 8px;
    height: 8px;
    background: var(--green);
    border-radius: 50%;
}

.status-label {
    margin: 0 0 8px;
    color: var(--green);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.status-card h2 {
    margin: 0 0 8px;
    color: var(--dark);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(26px, 4vw, 38px);
    line-height: 1.15;
}

.status-card p:last-child {
    margin: 0;
    line-height: 1.65;
}

/* =========================================
   KONTAKTKARTEN
   ========================================= */

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    margin-top: 28px;
}

.contact-grid article {
    min-width: 0;
    padding: 28px 26px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 10px 28px rgba(20, 65, 58, 0.06);
}

.contact-grid h3 {
    margin: 0 0 10px;
    color: var(--dark);
}

.contact-grid p {
    margin: 0;
    line-height: 1.65;
}

.contact-grid a {
    font-weight: 700;
}

/* =========================================
   NORMALE SEITEN
   ========================================= */

.page-main {
    width: var(--layout-width);
    max-width: var(--layout-max-width);
    min-height: 55vh;
    margin: 55px auto 75px;
}

.page-article {
    width: 100%;
    max-width: none;
    margin: 0;
}

.page-title {
    margin: 0 0 32px;
    color: var(--dark);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(38px, 6vw, 64px);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.025em;
}

.page-image {
    margin: 0 0 28px;
}

.page-image img {
    display: block;
    width: 100%;
    border-radius: 16px;
}

.editor-content {
    width: 100%;
    max-width: none;
    margin-top: 28px;
    padding: clamp(24px, 3vw, 44px);
    line-height: 1.75;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 14px;
}

.page-main .editor-content {
    width: 100%;
    max-width: none;
    margin-top: 0;
}

.editor-content > :first-child {
    margin-top: 0;
}

.editor-content > :last-child {
    margin-bottom: 0;
}

.page-main .q-contact {
    width: 100%;
    max-width: none;
    margin: 0;
}

/* =========================================
   ELEMENTOR-BREITE
   ========================================= */

.page-main .elementor,
.page-main .elementor-inner,
.page-main .elementor-section-wrap,
.page-main .elementor-widget-wrap,
.page-main .elementor-widget,
.page-main .elementor-widget-container,
.page-main .elementor-widget-html {
    width: 100%;
    max-width: none;
}

.page-main .elementor > .e-con,
.page-main .elementor > .e-con-full,
.page-main .elementor .e-con,
.page-main .elementor .e-con-inner {
    width: 100%;
    max-width: none;
}

.page-main .elementor-section,
.page-main .elementor-section.elementor-section-boxed {
    width: 100%;
    max-width: none;
}

.page-main
    .elementor-section.elementor-section-boxed
    > .elementor-container {
    width: 100%;
    max-width: none;
}

body.elementor-page .page-main {
    width: var(--layout-width);
    max-width: var(--layout-max-width);
}

/* =========================================
   BEITRÄGE
   ========================================= */

.post-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.post-card {
    min-width: 0;
    padding: 28px 26px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 10px 28px rgba(20, 65, 58, 0.06);
}

.post-card h2 {
    margin: 0 0 16px;
}

.post-card h2 a {
    color: var(--dark);
    text-decoration: none;
}

.post-card h2 a:hover,
.post-card h2 a:focus {
    color: var(--green);
}

/* =========================================
   FOOTER
   ========================================= */

.site-footer {
    width: 100%;
    color: #dbeee8;
    background: var(--dark);
}

.footer-grid {
    display: grid;
    grid-template-columns:
        minmax(210px, 1.2fr)
        minmax(210px, 1fr)
        minmax(190px, 1fr)
        minmax(190px, 1fr);
    gap: 42px;
    width: var(--layout-width);
    max-width: var(--layout-max-width);
    margin: 0 auto;
    padding: 52px 0;
}

.footer-grid > section,
.footer-grid > nav {
    min-width: 0;
}

.site-footer h2,
.footer-navigation h2 {
    margin: 0 0 14px;
    color: #ffffff;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
}

.site-footer p {
    margin: 0;
    color: #dbeee8;
    font-size: 15px;
    line-height: 1.75;
}

.site-footer a {
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus {
    text-decoration: underline;
}

/* Footer-Navigation */

.footer-navigation {
    min-width: 0;
}

.footer-menu {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
}

.footer-menu li {
    width: 100%;
    margin: 0;
    padding: 0;
}

.footer-menu a {
    position: relative;
    display: inline-block;
    padding: 3px 0 3px 17px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    text-decoration: none;
}

.footer-menu a::before {
    position: absolute;
    top: 3px;
    left: 0;
    color: var(--gold);
    content: "›";
}

.footer-menu a:hover,
.footer-menu a:focus,
.footer-menu .current-menu-item > a {
    color: #ffffff;
    text-decoration: underline;
}

/* Copyright */

.footer-bottom {
    padding: 18px 20px;
    color: #b9d5cd;
    font-size: 13px;
    line-height: 1.5;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.13);
}

/* =========================================
   KLEINERE DESKTOPS
   ========================================= */

@media (max-width: 1100px) {
    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 38px 50px;
    }

    .post-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* =========================================
   TABLET UND MOBILE NAVIGATION
   ========================================= */

@media (max-width: 820px) {
    :root {
        --layout-width: calc(100% - 32px);
    }

    .header-inner {
        min-height: 76px;
    }

    .custom-logo {
        max-width: 230px;
        max-height: 55px;
    }

    .menu-toggle {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 10px 12px;
        color: var(--dark);
        font-weight: 700;
        background: var(--mint);
        border: 0;
        border-radius: 8px;
        cursor: pointer;
    }

    .main-navigation {
        position: absolute;
        top: 100%;
        left: 0;
        display: none;
        width: 100%;
        padding: 20px;
        background: #ffffff;
        border-top: 1px solid #dfeae7;
        box-shadow: 0 12px 25px rgba(20, 65, 58, 0.1);
    }

    .main-navigation.is-open {
        display: block;
    }

    .qaderi-menu {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .qaderi-menu li {
        width: 100%;
    }

    .qaderi-menu a {
        width: 100%;
        padding: 10px 0;
    }

    .qaderi-menu .sub-menu {
        position: static;
        display: block;
        min-width: 0;
        padding: 0 0 0 20px;
        background: transparent;
        border: 0;
        box-shadow: none;
    }

    .contact-grid,
    .post-list {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 34px;
    }

    .status-card {
        padding: 28px;
    }

    .page-main,
    body.elementor-page .page-main {
        width: var(--layout-width);
        max-width: none;
        margin-top: 40px;
        margin-bottom: 60px;
    }
}

/* =========================================
   SMARTPHONE
   ========================================= */

@media (max-width: 520px) {
    :root {
        --layout-width: calc(100% - 24px);
    }

    .header-inner {
        gap: 14px;
    }

    .custom-logo {
        max-width: 185px;
        max-height: 50px;
    }

    .text-logo {
        font-size: 17px;
    }

    /* Hero bleibt auch mobil 600px hoch */
    .hero,
    .hero-slider,
    .hero-slider .n2-section-smartslider {
        height: 350px;
        min-height: 350px;
    }

    .hero-slider .n2-ss-align,
    .hero-slider .n2-ss-slider,
    .hero-slider .n2-ss-slider-wrapper-inside,
    .hero-slider .n2-ss-slider-1,
    .hero-slider .n2-ss-slider-2,
    .hero-slider .n2-ss-slider-3,
    .hero-slider .n2-ss-slide,
    .hero-slider .n2-ss-slide-background,
    .hero-slider .n2-ss-slide-background-image {
        height: 350px !important;
        min-height: 350px !important;
    }

    .hero-inner {
        top: 72%;
        left: 16px;
        width: calc(100% - 32px);
        max-width: none;
        padding: 20px 18px;
        border-radius: 12px;
        transform: translateY(-50%);
    }

    .hero .eyebrow {
        max-width: 100%;
        margin-bottom: 9px;
        font-size: 11px;
        line-height: 1.35;
        letter-spacing: 0.1em;
    }

    .hero .hero-lead {
        max-width: 100%;
        font-size: 15px;
        line-height: 1.45;
    }

    .hero .primary-button {
        justify-content: center;
        flex-wrap: wrap;
        width: 100%;
        max-width: 100%;
        margin-top: 18px;
        padding: 12px 15px;
        font-size: 14px;
    }

    .home-content {
        width: calc(100% - 24px);
        margin-top: 35px;
    }

    .status-card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .status-dots {
        margin: 0 auto;
    }

    .page-main,
    body.elementor-page .page-main {
        width: calc(100% - 24px);
        margin-top: 30px;
        margin-bottom: 45px;
    }

    .page-title {
        margin-bottom: 24px;
    }

    .editor-content {
        padding: 20px 16px;
        border-radius: 10px;
    }

    .contact-grid article,
    .post-card {
        padding: 22px 18px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        width: calc(100% - 28px);
        padding: 40px 0;
    }

    .footer-menu {
        gap: 8px;
    }

    .footer-bottom {
        padding: 16px 20px;
    }
}

/* =========================================
   BEWEGUNGEN REDUZIEREN
   ========================================= */

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

    .primary-button,
    .qaderi-menu a {
        transition: none;
    }
}