@charset "utf-8";

html {
  scroll-behavior: smooth;
}

/* ================================
   Globale Schriftdefinitionen
================================ */

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: clamp(0.95rem, 1.2vw, 1.05rem);
    line-height: 1.55;
    color: #1a202c;
    font-weight: 400;
    padding-top: 86px; /* 28 + ~58 * ✅ Topbar + Header */
}

p {
    font-size: clamp(1rem, 1.3vw, 1.08rem);
    line-height: 1.6;
    margin-bottom: 1rem;
    color: #1a202c;
}

li {
    font-size: clamp(0.95rem, 1.2vw, 1.05rem);
    line-height: 1.6;
}

a {
    font-size: 1rem;
    color: #005a9e;
    text-decoration: none;
    transition: color 0.25s ease-in-out;
}

a:hover {
    color: #0074cc;
}

/* ================================
   Überschriften
================================ */

h1 {
    font-size: clamp(1.6rem, 3.3vw, 2.2rem);
    font-weight: 700;
    line-height: 1.22;
    margin-bottom: 0.4rem;
    color: #1a202c;
}

h2 {
    font-size: clamp(1.4rem, 3.1vw, 2.0rem);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.4rem;
    color: #1a202c;
}

h3 {
    font-size: clamp(1.4rem, 2.6vw, 1.85rem);
    font-weight: 600;
    line-height: 1.35;
    margin-bottom: 0.4rem;
    color: #1a202c;
}

.slide-text h1,
.slide-text h2,
.slide-text h3 {
    font-size: clamp(1.9rem, 3.8vw, 3.0rem);
    font-weight: 900;
    color: white;
    line-height: 1.22;

    text-shadow:
        0 0 2px #000,
        0 0 4px #000,
        0 0 6px #000,
        0 0 8px #000,
        0 2px 4px rgba(0,0,0,0.8);
}

/* ================================
   Layoutcontainer
================================ */

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

/* Basis-Container */
.center-wrapper {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding-left: 10px;
    padding-right: 10px;
}

/* ✅ getrennte Flex-Definitionen */
.header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.topbar-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ================================
   Topbar
================================ */
.topbar {
    position: fixed;
    top: 0;
    left: 0;

    width: 100%;
    height: 28px;                    /* feste Höhe = wichtigste Grundlage */
    background: #23507B;
    color: white;

    display: flex;
    align-items: center;             /* zentriert alles vertikal */
    font-size: 11px;                 /* gut lesbar + sauberer Zeilenaufbau */
    line-height: 1;
    z-index: 8000;
}

.topbar .center-wrapper {
    height: 100%;
    padding-left: 5px;              /* Abstand links/rechts bleibt */
    padding-right: 1px;

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

/* Linke & rechte Seite */
.topbar-left,
.topbar-right {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 18px;
}

/* Einzelne Elemente */
.topbar-item {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 6px;
    color: white !important;
    text-decoration: none !important;
    white-space: nowrap;
    border-radius: 2px;
}

/* Icons */
.topbar-item img {
    display: block;
    height: 17px;                    /* gleichmäßige Icon-Größe */
}

/* Separator */
.topbar-separator {
    margin: 0 4px;
}

/* Hover */
.topbar-item:hover {
    background: rgba(255,255,255,0.15);
}

/* ✅ größeren Abstand zwischen Uhr‑Icon und Text */
.topbar-hours img.top-icon-time {
    margin-right: 5px; 
}

/* ✅ iOS iPad/iPhone Telefonnummern-Fix */
.topbar a[href^="tel"] {
    color: white !important;
    -webkit-text-fill-color: white !important;
    text-decoration: none !important;
}


/* ✅ Einheitliche Button-Breite (Mobile-Version) */
@media (max-width: 900px) {
	#section4 .button,
	#section5 .button {

        width: 100% !important;
        max-width: 360px;
        margin-left: auto;
        margin-right: auto;
        justify-content: flex-start !important;  /* auch mobil links */
        gap: 14px !important;
    }
}

/* Mobile: Topbar ausblenden */
@media (max-width: 900px) {
    .topbar {
        display: none;
    }
}


/* ================================
   Kleinere Icons (Mobile-Version)
================================ */
@media (max-width: 900px) {
    #section5 .contact-block.icons img {
        width: 14px !important;
        height: 14px !important;
    }

    #section5 .contact-block.icons p {
        gap: 6px !important;
    }

    #section5 .contact-block.icons a {
        font-size: 1rem !important;
    }
}

/* ================================
   Header / Navigation
================================ */
header {
    position: fixed;
    top: 28px;
    left: 0;
    width: 100%;
    z-index: 7000;
    padding: 10px 0;
    background: white;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.18);
}

.logo {
    height: 45px;
	margin-top: 11px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 32px;
}

/* ================================
   ✅ MENÜ HOVER – TEXT & ICON GLOW
   ================================ */
.nav-links li a {
    position: relative;
    padding-left: 28px;    /* Icon-Abstand unverändert */
    font-size: 18px;
    color: black;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: color .25s ease;
}

/* ---- Unterstreichung, die von der Mitte wächst ---- */
.nav-links li a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6px;

    height: 2px;
    background: black;

    opacity: 0;
    transform: scaleX(0);
    transform-origin: center;    /* ✅ WICHTIG: Startpunkt = Mitte */

    transition:
        opacity .25s ease,
        transform .35s ease;
}

/* ---- Hover-Effekt: Linie wächst von der Mitte aus ---- */
.nav-links li a:hover::after {
    opacity: 1;
    transform: scaleX(1);        /* 100% Länge, aber ohne Layout-Shift */
}


/* ✅ Icon-Basis */
.nav-links li a::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

/* ✅ Icons */
.nav-links li:nth-child(1) a::before {
    background-image: url("/assets/img/icons/home.svg");
}
.nav-links li:nth-child(2) a::before {
    background-image: url("/assets/img/icons/service.svg");
}
.nav-links li:nth-child(3) a::before {
    background-image: url("/assets/img/icons/team.svg");
}
.nav-links li:nth-child(4) a::before {
    background-image: url("/assets/img/icons/remote.svg");
}
.nav-links li:nth-child(5) a::before {
    background-image: url("/assets/img/icons/contact.svg");
}

/* ================================
   Ankerpunkte zwischen Section und Textbox
================================ */
.anchor-offset {
    position: relative;
    top: -115px; /* Höhe von Topbar + Header */
    height: 0;
}

/* ================================
   Textbox / Inhalte
================================ */

.text-box {
  max-width: 1175px;
  width: calc(100% - 32px);
  margin: 5px auto 40px auto; /* oben | rechts | unten | links */
  padding: 35px 30px;
  background: #ffffff;
  border-radius: 12px;
}


/* =======================================
   ✅ NEW HERO SLIDER (JS gesteuert)
======================================= */

.hero-slider {
    position: relative;
    width: 100%;
    height: 90vh;
    min-height: 420px;
    overflow: hidden;
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
	visibility: hidden;
}

.slide.active {
    opacity: 1;
	visibility: visible;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: cinematicZoom 26s cubic-bezier(0.25, 0.1, 0.25, 1) infinite;
    transform-origin: center center;
}

@keyframes cinematicZoom {
    0%   { transform: scale(1.05) translateX(0); }
    40%  { transform: scale(1.16) translateX(-20px); }
    80%  { transform: scale(1.12) translateX(15px); }
    100% { transform: scale(1.05) translateX(0); }
}

.slide-text {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 90%;
    max-width: 900px;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
}

/* ============================================================
   Text Animation (für Slider)
============================================================ */
.slide-text {
    opacity: 0;
    transform: translate(-50%, -60%) scale(0.96);
    transition: opacity .9s ease-out, transform 1.2s ease-out;
}

.slide.active .slide-text {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Wenn Slide inaktiv wird → Text ausblenden */
.slide.fade-out .slide-text {
    opacity: 0 !important;
    transform: translate(-50%, -58%) scale(0.92);
    transition: opacity .35s ease-out, transform .35s ease-out;
}


/* ================================
   Services Grid
================================ */

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 30px;
}

.service-card {
  background: #ffffff;
  padding: 22px;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.14);
}

.service-card h3 {
  color: #0A284B;
}

.service-card ul {
  padding-left: 18px;
}

@media (max-width: 1100px) {
  .services-grid {
    grid-template-columns: repeat(1, 1fr);
  }
}

@media (max-width: 650px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
  .text-box {
    padding: 25px 18px;
  }
}

/* ================================
   Hintergrundbilder
================================ */

.section-bg {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding-top: 10px;
	padding-bottom: 450px;
    margin-top: 4px;
}

#section2.section-bg {
    background-image: url("/assets/img/back/back02.jpg");
}

#section3.section-bg {
    background-image: url("/assets/img/back/back26.jpg");
}

#section4.section-bg {
    background-image: url("/assets/img/back/back27.jpg");
}

#section5.section-bg {
    background-image: url("/assets/img/back/back11.jpg");
	padding-bottom: 50px;
}

#landingpage.section-bg {
    background-image: url("/assets/img/back/back27.jpg");
}

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

.footer {
    background-color: #0A284B;
    color: #ffffff;
    padding: 30px 0;
}

.footer-content {
    max-width: 1155px;
    margin: 0 auto;

    display: flex;
    justify-content: center;   /* Zentriert alle 5 Blöcke */
    align-items: flex-start;
    gap: 3.8rem;               /* Abstand zwischen den Spalten */
    flex-wrap: wrap;           /* Für Mobile automatisch umbrechen */
}

.footer-column {
    flex: 0 0 auto;            /* Jede Spalte nur so breit wie nötig */
    text-align: left;
}

.footer-column h4 {
    font-size: 1.1rem;
    margin-bottom: 0.9rem;   /* Abstand nach unten */
    color: #ffffff;
}

.footer-column p,
.footer-column a {
    color: rgba(255,255,255,0.7);
    margin: 3px 0;
    font-size: 0.95rem;
    text-decoration: none;
}

.footer-column a:hover {
    color: #ffffff;
	text-decoration: underline;
}

.footer-bottom {
    margin-top: 2.5rem;
    text-align: center;
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
}

.footer-bottom a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-weight: 500;
}

.footer-bottom a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.footer-copy {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-weight: 500;
}

.footer-copy:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* ================================
   Streifen im Footer
================================ */

.footer-bottom.elegant-line {
    position: relative;
    padding-top: 22px; /* etwas Abstand zur Linie */
}

.footer-bottom.elegant-line::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);

    width: 70%;       /* Breite der Linie */
    height: 2px;      /* Höhe der Linie */
    border-radius: 2px;

    /* Edler, moderner Blauton im Gradient */
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(117, 169, 219, 0.8) 50%,  /* leichtes hellblau, modern */
        rgba(255, 255, 255, 0) 100%
    );
}

@media (max-width: 900px) {
    .footer-content {
        display: block !important;
    }

    .footer-column {
        width: 100%;
        text-align: center;     /* ✅ Text im Block zentriert */
		margin-bottom: 38px;
    }
	
	.footer-column:last-child {   /* ✅ Letzter Block ohne unnötigen Abstand */
        margin-bottom: 0;
    }

}


/* ========================================
   Globale Buttons
======================================== */

.button {
    display: inline-flex;        /* horizontale Ausrichtung */
    align-items: center;         /* vertikale Zentrierung */
    gap: 8px;                    /* Abstand Icon ↔ Text */

    padding: 12px 20px;
    font-size: 1rem;
    font-weight: 600;

    background-color: #1f4f94;
    color: white !important;
    border: none;
    border-radius: 8px;
    cursor: pointer;

    margin: 6px 6px 6px 0;          /* Abstand zwischen Buttons */
    text-decoration: none;

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


/* ✅ Icon in Button: zuverlässig skalieren */
.button img {
    width: 18px;
    height: 18px;
    display: inline-block;
}

/* Hover */
.button:hover {
    background-color: #2d6ac7;
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* Optional: aktive Klick-Phase */
.button:active {
    transform: scale(0.97);
}


#section4 .button {
    width: 350px;
}


/* Contact */
.contact-block a {
    color: #005a9e !important;
    -webkit-text-fill-color: #005a9e !important;
}

.contact-block.icons p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 8px 0;
}

.contact-block.icons img {
    width: 20px;
    height: 20px;
}

.contact-block.icons a {
    color: #005a9e;
    font-size: 1.1rem;
    font-weight: 600;
}

.contact-block.icons a:hover {
    color: #2d6ac7;
    text-decoration: underline;
}





/* ============================================================
   MODERN NAVIGATION (sauber & layout‑sicher)
============================================================ */

/* Hamburger Icon (default: ausgeblendet auf Desktop) */
.mobile-menu-button {
    display: none;
}

.mobile-menu-button span {
    display: block;
    width: 28px;
    height: 3px;
    margin: 4px 0;
    background: #005a9e;
    border-radius: 3px;
    transition: 0.3s ease;
}

/* Hamburger → X Animation */
.mobile-menu-button.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.mobile-menu-button.active span:nth-child(2) {
    opacity: 0;
}
.mobile-menu-button.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile-Navigation (default: ausgeblendet) */
.mobile-nav {
    display: none;
}

/* ============================================================
   MOBILE VIEW
============================================================ */
@media (max-width: 900px) {

    /* Desktop-Menü ausblenden */
    .main-nav {
        display: none !important;
    }

    /* Burger-Menü einblenden */
    .mobile-menu-button {
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        cursor: pointer;
        z-index: 1000;
    }

    /* Mobile Navigation Container */
    .mobile-nav {
        display: block !important;
        position: fixed;
        top: 58px;
        right: 0;
        width: 260px;
        background: #ffffff;
        box-shadow: -2px 0 20px rgba(0,0,0,0.15);
        padding: 20px 0;
        border-radius: 0;
        transform: translateX(100%);
        opacity: 0;
        pointer-events: none;
        transition: transform .35s ease, opacity .2s ease;
        z-index: 900;
    }

    /* Menü offen */
    .mobile-nav.open {
        transform: translateX(0);
        opacity: 1;
        pointer-events: auto;
    }

    /* Navigation Items */
    .mobile-nav ul {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .mobile-nav li {
        border-bottom: 1px solid #eee;
    }
	

    .mobile-nav a {
        display: flex;                  /* ✅ horizontal sauber */
        align-items: center;            /* ✅ vertikal zentriert */
        gap: 14px;                      /* ✅ MEHR Abstand Icon ↔ Text */

        padding: 16px 22px;
        font-size: 18px;
        color: #005a9e;
        font-weight: 600;
    }

    .mobile-nav a img {
        width: 20px;
        height: 20px;
        flex-shrink: 0;      /* ✅ verhindert Zusammendrücken */
        display: block;      /* ✅ kein Baseline-Versatz */
    }

    .mobile-nav a svg,
    .mobile-nav a i {
        font-size: 20px;
        line-height: 1;
        flex-shrink: 0;
    }


    /* Header nach oben */
    header {
        top: 0 !important;
    }

    /* Body spacing */
    body {
        padding-top: 58px !important;
    }
}

/* ============================================
   ✅ iPad Pro Fix (12.9", alle Modi)
   ============================================ */
/* ===========================================================
   ✅ iPad & iPad Pro Ultra‑Breit-Layout
   – nutzt die fast volle Breite mit minimalem Rand
   =========================================================== */
@media (min-width: 768px) and (max-width: 1400px) {

    /* --- Globaler Content-Bereich --- */
    .center-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        padding-left: 18px !important;
        padding-right: 18px !important;
    }

    /* --- Textboxen extra breit --- */
    .text-box {
        max-width: 100% !important;
        width: calc(100% - 36px) !important;  /* nur 18px Rand pro Seite */
        padding-left: 22px !important;
        padding-right: 22px !important;
    }

    /* --- Service‑Grid extra breit --- */
    .services-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 26px !important;
        width: 100% !important;
    }

    .service-card {
        width: 100% !important;
    }

    /* --- Team und Remote ebenfalls vollbreit --- */
    .team-grid,
    .remote-grid {
        max-width: 100% !important;
        width: calc(100% - 36px) !important;
    }

    /* --- Hero Slider Text etwas breiter, aber nicht randlos --- */
    .slide-text {
        width: calc(100% - 120px) !important; 
        max-width: 100% !important;
    }

    /* --- Hintergrundsektionen sollen weit wirken --- */
    .section-bg {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    /* --- ✅ Footer etwas breiter (aber nicht randlos) --- */
    .footer-content {
		max-width: 100% !important;
		width: calc(100% - 52px) !important;
		padding-left: 6px;
		padding-right: 6px;
		gap: 4.5rem;
	}
}


/* ============================================
   ✅ Moderner Ladebildschirm
============================================ */

#loader-wrapper {
    position: fixed;
    inset: 0;
    background: #0A284B; /* dein Girlich-Blau */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100000;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

/* Runde pulsierende Animation */
.loader {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4fa8ff, #1f4f94);
    box-shadow: 0 0 20px rgba(0,0,0,0.25);
    animation: pulseLoader 1.1s infinite ease-in-out;
}

@keyframes pulseLoader {
    0%   { transform: scale(0.8); opacity: 0.6; }
    50%  { transform: scale(1.15); opacity: 1; }
    100% { transform: scale(0.8); opacity: 0.6; }
}

/* Ausblenden nach dem Laden */
#loader-wrapper.fade-out {
    opacity: 0;
    visibility: hidden;
}


/* ===========================================================
   ✅ iPad/iPhone Menü-Fix
   - verhindert Hover-Blockierung
   - behebt Touch-Probleme
   - gibt mobile-nav richtige Klick-Priorität
=========================================================== */

/* iOS Touch-Bug Fix */
.mobile-nav a {
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

/* Wichtig: Menü muss ÜBER dem Header liegen */
.mobile-nav {
    z-index: 9000 !important;
}

/* pointer-events aktivieren, sonst blockiert iOS den Klick */
.mobile-nav.open {
    pointer-events: auto !important;
}

/* doppelte Sicherheitsmaßnahme */
header {
    pointer-events: auto !important;
}