/* =========================
   1. FONT LOCAL (Montserrat)
========================= */

@font-face {
    font-family: 'Montserrat';
    src: url('webfonts/montserrat-latin-400-normal.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Montserrat';
    src: url('webfonts/montserrat-latin-600-normal.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'Montserrat';
    src: url('webfonts/montserrat-latin-700-normal.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
}


body, .dokuwiki {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    letter-spacing: -0.02em;
    color: #2b2b2b;
    line-height: 1.6;
    margin: 0;
    color: #111;
    background: #eee;
    min-height: calc(100vh - 3em);
    padding-top:2em;
}

.dokuwiki input,
.dokuwiki textarea,
.dokuwiki select {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 15px;
}

.dokuwiki code,
.dokuwiki pre {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

h1, h2, h3, h4,
.dokuwiki h1,
.dokuwiki h2,
.dokuwiki h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.content h5 {
	font-weight: normal;
}

.content h5::before  {
    content: "\f007"; /* user icon */
    font-family: "Font Awesome 6 Free";
    font-weight: 400; /* regular */
    margin-right: 8px;
}

small {
	font-size: .9em;
}


/* =========================
   4. LINKS
========================= */

a {
    color: #1a73e8;
    text-decoration: none;
}

a:hover {
    text-decoration: none;
    color: #1E4FFF;
}

.special { color: #1E4FFF; }



/* TOP NAV CONTAINER */
.topbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 5em;
    background: #000;
    color: #fff;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* WIKI LISTE ZU HORIZONTALER NAV */
.topbar ul {
    list-style: none;
    margin: 0;
    padding: 0;
    padding-left:3em;
    display: flex;
    align-items: center;
    gap: 30px;
}

/* LIST ITEMS CLEAN */
.topbar li {
    margin: 0;
    padding: 0;
}

/* LINKS IM NAV DESIGN */
.topbar a, .footer a {
    text-decoration: none;
    color: #fff;
    transition: color 0.25s ease;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.3px;
    position: relative;
    
}

.topbar a:hover, .footer a:hover {
    color: #1558b0;
    text-decoration: none;
}

.footer a {margin: 1em; font-weight: bold;}
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3em;
    background: #000;
    color: #fff;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
    padding-left:3em;
    display: flex;
    align-items: center;
    gap: 30px;

}

.footer li {
    margin: 0;
    padding: 0;
}


/* ACTIVE LINK (DokuWiki current page) */
.topbar .active a,
.topbar a.wikilink1 {
    font-weight: 600;
}

.actions {
    position: absolute;
    top: 1em;
    right: 1em;

    z-index: 2000;

    display: flex;
    gap: 10px;
}



/* Content */
.content {
    padding: 4em auto;
    display: block; /* statt flex */
    text-align:center;
}


.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 5em 0;
    text-align:left;
}

/* Footer */
.footer {
    background: #111;
    color: #fff;
    padding: 0em auto;
}

.content .level1 ul {
    list-style: none;
    margin: 0;
    padding: 0;

    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: stretch;
}

.content .level1 ul li {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* DIE CARD */
.content .level1 ul li .li {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 20px;

    min-height: 10em;
    height: 100%;

    display: flex;
    flex-direction: column;
    justify-content: center;

    text-align: center;
    word-break: break-word;
    overflow-wrap: anywhere;
    box-sizing: border-box;

    transition: all .25s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

/* HOVER WIEDER HERSTELLEN */
.content .level1 ul li .li:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0,0,0,.14);
}

/* Firmennamen */
.content .level1 ul li .li strong {
    display: block;
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.3;
}




/* WRAP Plugin reparieren */
.dokuwiki .plugin_wrap.wrap_half {
    width: calc(50% - 15px) !important;
    display: inline-block !important;
    vertical-align: top;
    margin-right: 20px;
    box-sizing: border-box;
}

.dokuwiki .plugin_wrap.wrap_half:last-child {
    margin-right: 0;
}

/* Bilder in Half Columns */
.dokuwiki .plugin_wrap.wrap_half img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* mobil */
@media (max-width: 900px) {
    .dokuwiki .plugin_wrap.wrap_half {
        width: 100% !important;
        margin-right: 0;
    }
}




.dokuwiki .btn-primary, .btn-primarydown {
    display: inline-block;
}

.btn {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.2s ease;
}

.btn-primary, .btn-primarydown {
    background: #1a73e8;
    color: white;
    border: 1px solid #1a73e8;
}

.btn-primary:hover, .btn-primarydown:hover {
    background: #1558b0;
}

.btn-outline {
    background: transparent;
    border: 1px solid #1a73e8;
    color: #1a73e8;
}

.btn-outline:hover {
    background: #1a73e8;
    color: white
}


.wrap_btn-primary a.wikilink1, .wrap_btn-primarydown a.wikilink1{
    display: inline-block;
    padding: 10px 18px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;

    background: #1a73e8;
    color: #fff;
    border: 1px solid #1a73e8;

    transition: 0.2s ease;
    margin-right: 10px;
}

.wrap_btn-primary a.wikilink1:hover , .wrap_btn-primarydown a.wikilink1{
    background: #1558b0;
}


/* responsive */
@media (max-width: 992px) {
    .content .level1 ul {
        grid-template-columns: repeat(2, 1fr);
    }
    .dokuwiki .quarter {
        flex: 1 1 calc(50% - 20px);
    }
}

@media (max-width: 600px) {
    .content .level1 ul {
        grid-template-columns: 1fr;
    }
    .dokuwiki .quarter {
        flex: 1 1 100%;
    }
}

/* =====================================
   WRAP FIX (robust, DokuWiki-safe)
===================================== */

/* WRAP Plugin NICHT kaputt stylen */
.dokuwiki .plugin_wrap.wrap_half {
    box-sizing: border-box;
}

.dokuwiki .plugin_wrap.wrap_half img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Float Cleanup */
.dokuwiki .plugin_wrap.wrap_group::after {
    content: "";
    display: block;
    clear: both;
}

/* Group stabilisieren */
.dokuwiki .wrap_group,
.dokuwiki .plugin_wrap.wrap_group {
    display: block;
    font-size: 0; /* whitespace fix */
}

/* Reset für Inhalte */
.dokuwiki .wrap_group > *,
.dokuwiki .plugin_wrap.wrap_group > * {
    font-size: 15px;
}

/* Bilder IM WRAP korrekt */
.dokuwiki .wrap_half img,
.dokuwiki .plugin_wrap.wrap_half img {
    max-width: 100% !important;
    height: auto !important;
    display: inline-block;
    vertical-align: top;
}

/* Abstand sauber */
.dokuwiki .wrap_half:not(:last-child) {
    margin-right: 20px !important;
}


.dokuwiki .plugin_wrap.wrap_group,
.dokuwiki .plugin_wrap.group {
    font-size: 0;
    display: block;
}


/* Mobile */
@media (max-width: 900px) {
    .dokuwiki .wrap_half {
        width: 100% !important;
        margin-right: 0 !important;
        display: block !important;
    }
}


/* =====================================
   WRAP half/column endgültig reparieren
===================================== */

.content .group.plugin_wrap {
    display: flex !important;
    gap: 30px;
    align-items: flex-start;
}

/* beide Spalten */
.content .group.plugin_wrap > .wrap_half.wrap_column {
    flex: 1 1 50%;
    width: 50% !important;
    box-sizing: border-box;
    min-width: 0;
}

/* Bild sauber begrenzen */
.content .group.plugin_wrap > .wrap_half.wrap_column img {
    max-width: 100%;
    height: auto;
    display: block;
}


/*
*  Third coukma**
*/

.dokuwiki .plugin_wrap.group {
    display: block;
    width: 100%;
}



.plugin_wrap.wrap_third {
    width: 33.333%;
}

.plugin_wrap.wrap_third h3 {
    font-size: .95em;
}

.dokuwiki .plugin_wrap.group::after {
    content: "";
    display: block;
    clear: both;
}

.dokuwiki .plugin_wrap img {
    max-width: none;
    width: 100%;
    height: auto;
}

/*quarter column*/

.plugin_wrap.wrap_quarter {
    font-size: 0.90em;
    font-weight: bold;
    text-align: center;
    width: 25%;
}

.plugin_wrap.wrap_quarter ul {
    list-style: none;
    padding: 1em;
    margin: 0;
    color: #888;
}

.plugin_wrap.wrap_quarter li {
    list-style: none;
}

.plugin_wrap.wrap_quarter .li {
    text-align: center;
}



/* =====================================
   DARK HERO WRAP (DokuWiki spezifisch)
===================================== */

.wrap_darkherofull {
    position: relative;
    /*z-index: 1;*/
    padding: 0;
    width: 100vw;
    margin-top: -7em;
    padding-bottom: 5em;
    top:3em;
    min-height: calc(100vh - 13em);
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    /*text-align: center;*/
    color: #fff;
    background: url('/test/lib/exe/fetch.php?media=webseite:water-1330252_1920.jpg') center center / cover no-repeat;
}

.wrap_darkherofull::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.70);
    z-index: 0;
}

.wrap_darkherofull > * {
    position: relative;
    z-index: 1;
    width: 1200px;
    margin: 2em auto;
    padding-top: 5em;
    margin-bottom: -5em;
}


.wrap_darkhero {
    position: relative;
    padding: 80px 40px;
    color: #fff;
    text-align: center;
    /* Hintergrundbild (anpassen!) */
    background: url("/test/lib/exe/fetch.php?media=webseite:water-1330252_1920.jpg") center/cover no-repeat;
}

/* Abdunkelung (Overlay) */
.wrap_darkhero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.70);
    z-index: 0;
}

/* Inhalt über Overlay */
.wrap_darkhero > * {
    position: relative;
    z-index: 1;
}

/* Überschrift */
.wrap_darkhero h2 {
    color: #fff;
    font-weight: 600;
    margin-bottom: 20px;
    line-height: 1.4;
}

/* LISTE: keine Punkte + zentriert */
.wrap_darkhero ul {
    list-style: none;
    padding: 0;
    margin: 30px auto 0 auto;
    max-width: 900px;
}

/* LIST ITEMS */
.wrap_darkhero ul li {
    list-style: none;
    margin: 0.6em 0;
    line-height: 1.5;
    text-align: center;
}

/* Dein inneres <div class="li"> von DokuWiki */
.wrap_darkhero ul li .li {
    text-align: center;
    color: #fff;
}

/* optional: etwas bessere Lesbarkeit */
.wrap_darkhero ul li .li strong {
    color: #fff;
}

/* Paragraphen */
.wrap_darkhero p {
    line-height: 1.5;
    color: #fff;
}


.container .wrap_centeralign {
	text-align: center;
}

.container .wrap_leftalign {
	text-align: left;
}

.container .wrap_rightalign {
	text-align: right;
}

.container .wrap_middle {
    display: flex;
    flex-direction: column;
    justify-content: center;  /* vertikal */
    align-items: center;      /* horizontal */
    min-height: calc(100vh - 20em);
}


/**Bewegter Text auf der Startseite*/
.wrap_movingwords {
    position: relative;
    display: inline-block;
    font-size: 42px;
    font-weight: 700;
    min-height: 1.2em;
    white-space: nowrap;
    color: #fff;
}

.wrap_movingwords li {
    display: none;
}

.wrap_movingwords::after {
    content: "|";
    animation: blink 0.7s infinite;
    margin-left: 2px;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}


.wrap_optimierung {
    font-size:0.9em;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 20px;
    min-height: 33em;
    height: 100%;

    display: flex;
    flex-direction: column;

    text-align: center;
    word-break: break-word;
    overflow-wrap: anywhere;
    box-sizing: border-box;

    transition: all .25s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

/* HOVER WIEDER HERSTELLEN */
.wrap_optimierung:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0,0,0,.14);

}

.wrap_optimierung > * {
    margin: 0;
}

.wrap_optimierung ul {
    list-style: none;
    padding: 0;
    margin: 30px auto 0 auto;
}

.wrap_optimierung ul li {
    list-style: none;
    margin: 0.6em 0;
    line-height: 1.5;
    text-align: center;
}


.wrap_optimierung .wrap_centeralign {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.wrap_optimierung .wrap_btn-primarydown {
    margin-top: auto;
    display: block;
}





.footer-tools {
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    letter-spacing: -0.02em;
    color: #1a73e8;
    position: relative;
    text-align: center;
    padding: 2em 0;
}

.tools-dropdown {
    display: inline-block;
    position: relative;
}

.tools-toggle {
    background: inherit;
    cursor: pointer;
    border: 0px solid #333;
    text-decoration: none;
    color: #fff;
    transition: color 0.25s ease;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.3px;
    position: relative;
    margin-left:2em;
}

.tools-toggle:hover {
    color: #1a73e8;
}


/* Menü versteckt */
.tools-menu {
    display: none;
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    letter-spacing: -0.02em;
    color: #eee;
    background: inherit;
    border: 0px solid #333;
    padding: 10px;
    min-width: 180px;
    z-index: 999;
}

/* Hover oder JS Toggle */
.tools-dropdown:hover .tools-menu {
    display: block;
    color: #1a73e8;
}

.tools-menu a {
    display: block;
    color: #1a73e8;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    letter-spacing: -0.02em;
}

.tools-menu a:hover {
    background: #222;
    color: #1a73e8;

    color: #1a73e8;
}

.tools-menu {
    display: none;
}

.tools-menu.open {
    display: block;
}



.wrap_third .media img {
  border-top-left-radius: 1rem;
}


/* mobil */
@media (max-width: 900px) {
    .content .group.plugin_wrap {
        display: block !important;
    }

    .content .group.plugin_wrap > .wrap_half.wrap_column {
        width: 100% !important;
    }
}

/* =====================================
   MOBILE LAYOUT STACKING
===================================== */

@media (max-width: 900px) {

    .plugin_wrap.wrap_half,
    .plugin_wrap.wrap_third,
    .plugin_wrap.wrap_quarter {
        width: 100% !important;
        display: block !important;
        margin-right: 0 !important;
        margin-bottom: 20px;
    }

    .content .group.plugin_wrap {
        display: flex !important;
        flex-direction: column;
        gap: 20px;
    }

    .content .group.plugin_wrap > * {
        width: 100% !important;
    }
}

@media (max-width: 768px) {
    .wrap_movingwords {
        font-size: 28px;
        white-space: normal;
        text-align: center;
    }
}


@media (max-width: 900px) {

    .container {
        padding: 3em 20px 6em;
    }

    .content {
        padding: 0;
    }
}



@media (max-width: 768px) {

    .footer {
        height: auto;
        padding: 15px 0;
    }

    .footer ul {
        flex-direction: column;
        gap: 10px;
        padding: 0;
    }

    .footer a {
        margin: 0;
    }
}

@media (max-width: 900px) {

    .wrap_darkherofull {
        min-height: auto;
        margin-top: -5em;
        padding: 7em 20px 3em;
    }

    .wrap_darkherofull > * {
        width: auto;
        margin: 0 auto;
        padding-top: 0;
    }

    .wrap_darkhero {
        padding: 60px 20px;
    }

    .wrap_darkhero h2 {
        font-size: 1.8rem;
        line-height: 1.3;
    }
}


/* =====================================
   MOBILE NAVIGATION COMPACT
===================================== */

.menu-toggle {
    display: none;
    position: absolute;
    right: 16px;
    top: 12px;
    font-size: 26px;
    color: #fff;
    cursor: pointer;
    z-index: 3000;
    line-height: 1;
}

@media (max-width: 900px) {

    body,
    .dokuwiki {
        padding-top: 3.5em;
    }

    /* obere schwarze Leiste kleiner */
    .topbar {
        height: 3.5em;
        min-height: 3.5em;
        justify-content: flex-start;
        align-items: center;
        padding: 0;
    }

    /* Hamburger sichtbar */
    .menu-toggle {
        display: block;
    }

    /* Menü standardmäßig versteckt */
    .topbar ul {
        display: none;
        position: absolute;
        top: 3.5em;
        left: 0;
        width: 100%;
        background: #000;

        flex-direction: column;
        gap: 0;
        padding: 0;
        margin: 0;
        z-index: 2000;
    }

    .topbar ul.open {
        display: flex;
    }

    .topbar li {
        width: 100%;
        border-top: 1px solid rgba(255,255,255,.08);
    }

    /* kompaktere Menüpunkte */
    .topbar a {
        display: block;
        padding: 12px 18px;
        font-size: 14px;
        line-height: 1.2;
        text-align: center;
    }
}

@media (max-width: 900px) {
    .wrap_darkherofull {
        margin-top: -3.5em;
    }
}


/* =====================================
   MOBILE FOOTER FIX
===================================== */

@media (max-width: 768px) {

    /* Footer klein machen */
    .footer {
        position: fixed !important;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 46px !important;
        min-height: 46px !important;
        padding: 0 !important;

        display: flex;
        align-items: center;
        justify-content: center;

        background: #000;
        z-index: 9999;
    }

    .footer ul {
        width: 100%;
        height: 46px;

        margin: 0 !important;
        padding: 0 !important;

        display: flex !important;
        flex-direction: row !important;
        justify-content: space-around;
        align-items: center;

        gap: 0 !important;
    }

    .footer li {
        flex: 1;
        text-align: center;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Text ausblenden */
    .footer a {
        font-size: 0 !important;
        margin: 0 !important;
        padding: 0 !important;

        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Icons */
    .footer li:nth-child(1) a::before {
        content: "⌂";
    }

    .footer li:nth-child(2) a::before {
        content: "⚙";
    }

    .footer li:nth-child(3) a::before {
        content: "✉";
    }

    .footer li:nth-child(4) a::before {
        content: "ⓘ";
    }

    .footer a::before {
        font-size: 20px;
        color: #fff;
        line-height: 1;
    }

    /* Platz unten */
    body,
    .dokuwiki {
        padding-bottom: 52px !important;
    }
}



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