/*
Theme Name: Nordfunk Design
Version: 1.0
Author: Dennis Ratzlaff | Typoindex
Author URI: https://www.typoindex.de/
Template: enfold
*/



/*Add your own styles here:*/

/* =========================================================
   NORDFUNK SYSTEMTECHNIK – CUSTOM CSS
   Child Theme: style.css
   ========================================================= */


/* =========================================================
   01 – TYPOGRAFIE
   ========================================================= */

/* Enfold: Sonderzeichen übernehmen die Textformatierung */
.special_amp {
    color: inherit !important;
    font-family: inherit;
    font-size: inherit;
    font-style: inherit;
    font-weight: inherit;
}

/* Subheading / Oberzeile */
.av-subheading {
    color: #1C9CD8;
    text-transform: uppercase;
    font-size: 16px !important;
    font-weight: 600 !important;
    letter-spacing: 0.07em;
}

.av-subheading_above {
    margin-bottom: 0.7em;
}

/* Letterspacing für alle Überschriften entfernen */
#top h1,
#top h2,
#top h3,
#top h4,
#top h5,
#top h6 {
    letter-spacing: normal !important;
}

/* Mobile: Silbentrennung für Überschriften */
@media only screen and (max-width: 767px) {

    #top h1,
    #top h2,
    #top h3,
    #top h4,
    #top h5,
    #top h6 {
        hyphens: auto;
        -webkit-hyphens: auto;

        /* Chrome, Firefox: erst ab 10 Zeichen trennen, je mindestens 5 vor und nach dem Trennstrich */
        hyphenate-limit-chars: 10 5 5;

        /* Safari: dasselbe über eigene Eigenschaften, höchstens 1 Trennstrich in Folge */
        -webkit-hyphenate-limit-before: 5;
        -webkit-hyphenate-limit-after: 5;
        -webkit-hyphenate-limit-lines: 1;

        /* Zeilen ausgleichen, das reduziert Trennungen zusätzlich */
        text-wrap: balance;

        overflow-wrap: normal;
        word-break: normal;
    }
}

/* =========================================================
   02 – LISTEN
   ========================================================= */

/* Häkchenliste – nordfunk */
#top ul.mj-checklist {
    list-style: none !important;
    margin: 0;
    padding: 0;
}

#top ul.mj-checklist li {
    list-style: none !important;
    position: relative;
    margin: 0 0 14px;
    padding: 0 0 0 34px;
}

#top ul.mj-checklist li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    font-family: "Inter", sans-serif;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.3;
    color: #1C9CD8;
}

/* Quadratliste – nordfunk */
#top ul.mj-squarelist {
    list-style: none !important;
    margin: 0;
    padding: 0;
}

#top ul.mj-squarelist li {
    list-style: none !important;
    position: relative;
    margin: 0;
    padding: 13px 0 13px 24px;
    border-top: 1px solid #D5DCE3;
}

#top ul.mj-squarelist li::before {
    content: "";
    position: absolute;
    left: 0;
    top: calc(13px + 0.8em - 4px);
    width: 8px;
    height: 8px;
    border-radius: 1px;
    background: #F4C133;
}


/* =========================================================
   03 – LINKS UND FARBIGE ELEMENTE
   ========================================================= */

/* Farbige Balken direkt am Enfold-Element */
#top .mj-colorbar-grey {
    border-left: 4px solid #74797C;
    border-radius: 3px;
    padding-left: 16px;
}

#top .mj-colorbar-blue {
    border-left: 4px solid #1C9CD8;
    border-radius: 3px;
    padding-left: 16px;
}

#top .mj-colorbar-yellow {
    border-left: 4px solid #F4C133;
    border-radius: 3px;
    padding-left: 16px;
}

/* Pfeil-Link „→ Mehr zu …“ */
#top .nf-pfeil {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    margin-top: 12px;
    font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.3;
    color: #2B4B92;
    text-decoration: none;
}

#top .nf-pfeil::before {
    content: "→";
}

#top .nf-pfeil:hover {
    color: #021B37;
    text-decoration: underline;
    text-underline-offset: 3px;
}

#top .nf-pfeil:focus-visible {
    outline: 2px solid #2B4B92;
    outline-offset: 2px;
}

/* Pfeil-Link auf Navy-Hintergrund */
#top .nf-navy .nf-pfeil {
    color: #1C9CD8;
}

#top .nf-navy .nf-pfeil:hover {
    color: #FFFFFF;
}


/* =========================================================
   04 – PRÜFBEREICH-KACHELN
   Special Heading: Klasse nf-kachel-H3
   Textblock: Klasse nf-kachel-text
   Feste Höhen ab 768 px, mobil frei
   ========================================================= */

/* Überschrift */
#top #wrap_all .av-special-heading.nf-kachel-H3 .av-special-heading-tag {
    font-size: 24px;
    padding: 20px 0 0 0;
    line-height: 1.2em;
    min-height: 120px;
}

/* Teaser */
.avia_textblock.nf-kachel-text {
    clear: both;
    line-height: 1.5em;
    font-size: 17px;
    min-height: 85px;
}

/* Prüfbereich-Kacheln: Abstand zwischen den Reihen = Abstand zwischen den Kacheln */
@media only screen and (min-width: 768px) {
    #top .flex_column_table.sc-av_one_fifth + .flex_column_table.sc-av_one_fifth {
        margin-top: 2%;
    }
}
@media only screen and (max-width: 767px) {
    #top .flex_column_table.sc-av_one_fifth + .flex_column_table.sc-av_one_fifth {
        margin-top: 0;
    }
}

/* Prüfbereich-Kacheln: auf dem Handy Inhalt vertikal mittig */
@media only screen and (max-width: 767px) { 
    #top .sc-av_one_fifth > .flex_column.av-align-middle {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    #top .sc-av_one_fifth > .flex_column.av-align-middle > .iconbox {
        margin-top: 0;
    }
}


/* =========================================================
   05 – PRÜFBEREICHE ALS LISTE
   Alte Darstellung, zum Vergleich

   Farbsektion: CSS-Klasse nf-perfo
   Letzte Sektion zusätzlich: nf-perfo-ende
   Section Border: Keine
   ========================================================= */

/* Enfold-Padding der Farbsektion aus */
#top #wrap_all .avia-section.nf-perfo .content {
    padding-top: 0;
    padding-bottom: 0;
}

/* Gepunktete Linie oben */
#top .avia-section.nf-perfo .entry-content-wrapper {
    padding-top: 32px;
    padding-bottom: 32px;
    background-image: radial-gradient(circle, #9AA4AF 1px, transparent 1.2px);
    background-size: 5px 2px;
    background-position: left top;
    background-repeat: repeat-x;
}

/* Letzte Sektion: zusätzliche Linie unten */
#top .avia-section.nf-perfo.nf-perfo-ende .entry-content-wrapper {
    background-image:
        radial-gradient(circle, #9AA4AF 1px, transparent 1.2px),
        radial-gradient(circle, #9AA4AF 1px, transparent 1.2px);
    background-size: 5px 2px, 5px 2px;
    background-position: left top, left bottom;
    background-repeat: repeat-x, repeat-x;
}

/* Enfold-Abstände unten neutralisieren */
#top .avia-section.nf-perfo .flex_column,
#top .avia-section.nf-perfo .flex_column_table,
#top .avia-section.nf-perfo .iconbox,
#top .avia-section.nf-perfo .iconbox_content_container > :last-child {
    margin-bottom: 0;
}

/* Durchgezogene Enfold-Rahmen entfernen */
#top .avia-section.nf-perfo,
#top .avia-section.nf-perfo + .avia-section,
#top .avia-section.nf-perfo + .container_wrap {
    border-top: 0;
    border-bottom: 0;
}

/* Startseite: Prüfbereich-Kacheln 3 × 3, Reihenabstand = Kachelabstand */
@media only screen and (min-width: 768px) {
    #top .flex_column_table:has(.nf-kachel-H3) + .flex_column_table:has(.nf-kachel-H3) {
        margin-top: 2%;
    }
}
@media only screen and (max-width: 767px) {
    #top .flex_column_table:has(.nf-kachel-H3) + .flex_column_table:has(.nf-kachel-H3) {
        margin-top: 0;
    }
}

/* =========================================================
   06 – ICONS UND GRAFISCHE ELEMENTE
   ========================================================= */

/* SVG-Icons */
#top .av-icon-char svg {
    width: 1em;
    height: 1em;
    overflow: visible;
    display: block;
}

/* Enfold Iconbox ohne Hintergrund */
#top .iconbox.av-no-box .iconbox_icon {
    border-style: none;
    width: 60px;
    height: 60px;
    line-height: 60px;
    font-size: 60px;
}

#top .iconbox.av-no-box .iconbox_icon.avia-svg-icon img[is-svg-img="true"],
#top .iconbox.av-no-box .iconbox_icon.avia-svg-icon svg:first-child {
    margin-top: 0;
}

/* Iconbox-Inhalt */
#top .iconbox_content_container {
    line-height: 1.4em;
    min-height: 5px;
    font-size: 17px;
    padding: 0 5px;
}


/* =========================================================
   07 – BUTTONS
   ========================================================= */

/* Button-Rahmen */
#top .avia-button.avia-color-dark,
#top .avia-button.avia-color-light {
    border: 2px solid;
}

/* Formular-Buttons */
.avia_ajax_form .button {
    font-weight: 500;
    font-size: 17px;
    border-radius: 100px;
}


/* =========================================================
   08 – FORMULARE
   ========================================================= */

/* Formular-Labels */
#top label {
    font-weight: 500;
    font-size: 17px;
}

/* Auswahlfelder */
#top .avia_ajax_form select {
    font-size: 17px;
}


/* =========================================================
   09 – TIMELINE
   ========================================================= */

/* Horizontale Timeline */
.avia-timeline-horizontal.av-milestone-placement-top .av-milestone-content-wrap {
    padding: 0 15px 10px 80px;
}

.av-milestone-content {
    line-height: 1.5em !important;
}

/* Mobile Navigation Pfeile */
/* Ablauf (Timeline): Weiter-Pfeil auffälliger */
#top .avia-timeline-container.av-slideshow-ui .avia-slideshow-arrows.av-visible-next > a.next-slide,
#top .avia-timeline-container.av-slideshow-ui .avia-slideshow-arrows.av-visible-prev > a.prev-slide {
    width: 48px;
    height: 48px;
    line-height: 48px;
    opacity: 1;
    background-color: #F4C133;
    box-shadow: 0 2px 8px rgba(2, 27, 55, .25);
}
#top .avia-timeline-container.av-slideshow-ui .avia-slideshow-arrows > a.av-nav-btn.avia-svg-icon svg:first-child {
    margin-top: 15px;
    fill: #021B37;
    stroke: #021B37;
}
@keyframes nf-nudge {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(8px); }
}
#top .avia-timeline-container.av-slideshow-ui:has(.avia_start_animation) .avia-slideshow-arrows.av-visible-next > a.next-slide {
    animation: nf-nudge .9s ease-in-out .6s 3;
}
@media (prefers-reduced-motion: reduce) {
    #top .avia-timeline-container .avia-slideshow-arrows > a { animation: none !important; }
}
#top .avia-timeline-container.av-slideshow-ui .av-timeline-nav {
    right: 10px;
}

/* =========================================================
   10 – HEADER UND LOGO
   ========================================================= */

/* Shrinking Header: Original-SVG ausblenden */
#header.header-scrolled .logo svg {
    visibility: hidden;
}

/* Neues Logo anzeigen */
#header.header-scrolled .logo a {
    background-image: url("../../uploads/2026/10/mike-jantzen-logo-header-02.svg");
    background-repeat: no-repeat;
    background-position: left center;
    background-size: contain;
}

/* scroll down pfeil */
/* Scroll-Pfeil im Kopf: nur Tablet und Desktop höher und größer */
@media only screen and (min-width: 768px) {
    #top .scroll-down-link {
        bottom: 40px;
        font-size: 80px;
    }
}

/* Scroll-Pfeil im Kopf: auf dem Handy ausblenden */
@media only screen and (max-width: 767px) {
    #top .scroll-down-link {
        display: none;
    }
}

/* =========================================================
   11 – RESPONSIVE ANPASSUNGEN
   ========================================================= */

/* Mobile: Keine festen Höhen bei Prüfbereich-Kacheln */
@media only screen and (max-width: 767px) {

    #top #wrap_all .av-special-heading.nf-kachel-H3 .av-special-heading-tag,
    #top #wrap_all .avia_textblock.nf-kachel-text {
        min-height: 0;
    }
}
