
/* =========================================================
   TSL SOLUTIONS – GLOBALES STYLESHEET
   Gemeinsame Gestaltung aller Website-Seiten
========================================================= */


/* =========================================================
   00. GRUNDLAGEN
========================================================= */

/* 00.1 Einheitliches Box-Modell */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}


/* ---------------------------------------------------------
   00.2 ZENTRALE DESIGNWERTE
--------------------------------------------------------- */

:root {
    /* Farben */
    --color-background: #17191c;
    --color-surface: #202327;
    --color-footer: #101214;
    --color-accent: #168bd2;
    --color-text: #ffffff;
    --color-text-muted: #aeb3b8;

    /* Größen */
    --header-height: 110px;
    --page-padding: 42px;
    --content-padding: 8vw;
    --section-spacing: 60px;

    /* Desktop-Abstände */
    --page-padding-compact: 28px;
    --content-padding-compact: 5vw;
}


/* 00.3 Dokument und Schrift */
/* Lokale Schriftart Montserrat */
@font-face {
    font-family: 'Montserrat';
    src: url('./fonts/Montserrat-Variable.ttf') format('truetype');
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
}

html,
body {
    width: 100%;
    min-height: 100%;
}

body {
    font-family: Montserrat, Arial, sans-serif;
    background: var(--color-background);
    color: var(--color-text);
}


/* =========================================================
   00.4 HELLE INHALTSFLÄCHEN
   Dezente geschliffene Metallstruktur
========================================================= */

.light-content {
    background-image:
        linear-gradient(
            rgba(231, 232, 233, 0.65),
            rgba(231, 232, 233, 0.65)
        ),
        url("bilder/Metallstruktur_Hell_ExtraLang.webp");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    color: #17191c;
}



/* =========================================================
   00.5 EINLEITUNGSBEREICHE DER UNTERSEITEN
========================================================= */


.page-intro {
    position: relative;
    display: flex;
    align-items: flex-start;
    width: 100%;
    margin-left: 0;
    padding: 80px 0 48px;
    box-sizing: border-box;
    color: #ffffff;
}


.page-intro-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
}

.page-intro .eyebrow {
    display: block;
    margin-bottom: 14px;
    color: #168bd2;
    font-size: 0.95rem;
    line-height: 1.5;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.page-intro h1 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(2.4rem, 4vw, 3.4rem);
    line-height: 1.08;
    font-weight: 600;
    letter-spacing: -0.035em;
}

.page-intro p {
    max-width: 650px;
    margin-top: 22px;
    color: #ffffff;
    font-size: 1rem;
    line-height: 1.65;
    font-weight: 400;
}


/* =========================================================
   01. HEADER
   Gemeinsamer Kopfbereich aller Website-Seiten
========================================================= */


/* 01.1 Grundaufbau */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    isolation: isolate;

    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 var(--page-padding);
}


/* 01.2 Hintergrundbild und Abdunklung */

.site-header {
    background-image:
        linear-gradient(
            0deg,
            rgba(8, 10, 12, 0.92) 0%,
            rgba(8, 10, 12, 0.72) 42%,
            rgba(8, 10, 12, 0.20) 100%
        ),
        url("bilder/Banner_Homepage.webp");

    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;

    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.8);
}


/* 01.3 Logo */

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    display: block;
    height: 68px;
    width: auto;
}


/* 01.4 Slogan */


.header-slogan {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);

    width: max-content;
    max-width: 60%;

    text-align: center;
    white-space: normal;

    color: #ffffff;
    font-size: clamp(0.65rem, 1.1vw, 0.95rem);
    line-height: 1.45;
    font-weight: 600;
    letter-spacing: 0.12em;
}


.header-slogan span {
    color: #168bd2;
}


/* 01.5 Menü-Icon */

.menu-icon {
    width: 32px;
    height: 25px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    cursor: pointer;
}

.menu-icon span {
    display: block;
    width: 100%;
    height: 3px;
    background: #ffffff;
}



/* =========================================================
   02. FOOTER
   Gemeinsamer Fußbereich aller Website-Seiten
========================================================= */


/* ---------------------------------------------------------
   02.1 Grundaufbau
--------------------------------------------------------- */

.site-footer {
    padding: 32px 8vw 22px;

    background-image:
        linear-gradient(
            rgba(8, 10, 12, 0.48),
            rgba(8, 10, 12, 0.48)
        ),
        url("bilder/Metallstruktur_Footer.webp");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    color: #ffffff;
}

.site-footer {
    position: relative;
    isolation: isolate;
}

.site-footer::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: -1;
    pointer-events: none;
}

.footer-main {
    display: grid;
    grid-template-columns: 1fr 1.4fr 1fr;
    align-items: stretch;
    min-height: 125px;
}


/* ---------------------------------------------------------
   02.2 Markenbereich und Social Media
--------------------------------------------------------- */

.footer-brand {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-right: 50px;
}

.footer-logo {
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.footer-logo span {
    color: #168bd2;
}

.footer-social {
    display: flex;
    gap: 14px;
    margin-top: 16px;
}

.footer-social a {
    width: 40px;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #ffffff;
    text-decoration: none;

    transition: all 0.25s ease;
}

.footer-social a:hover {
    color: #168bd2;
    border-color: #168bd2;
}

.footer-social svg {
    width: 17px;
    height: 17px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.footer-social a:last-child svg {
    fill: currentColor;
    stroke: none;
}


/* ---------------------------------------------------------
   02.3 Kontaktbereich
--------------------------------------------------------- */

.footer-contact {
    border-left: 1px solid rgba(255, 255, 255, 0.14);
    border-right: 1px solid rgba(255, 255, 255, 0.14);

    padding: 0 50px;

    display: flex;
    flex-direction: column;
    justify-content: center;
}

.footer-heading {
    margin-bottom: 12px;

    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;

    margin-bottom: 8px;

    color: #c4c8cc;
    font-size: 0.8rem;
    text-decoration: none;

    transition: color 0.25s ease;
}

.footer-contact-item:hover {
    color: #ffffff;
}

.footer-contact-icon {
    width: 20px;
    height: 20px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #168bd2;
    font-size: 0.95rem;
}

.footer-contact-button {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;

    width: 220px;
    margin-top: 8px;
    padding: 10px 15px;

    background: #168bd2;
    color: #ffffff;

    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.03em;

    text-decoration: none;

    transition: background 0.25s ease;
}

.footer-contact-button:hover {
    background: #0f78b8;
}

.footer-contact-button span {
    font-size: 1rem;
}


/* ---------------------------------------------------------
   02.4 Rechtliche Links und Copyright
--------------------------------------------------------- */

.footer-right {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 50px;
}

.footer-links {
    display: flex;
    gap: 22px;
}

.footer-links a {
    color: #aeb3b8;
    font-size: 0.85rem;
    text-decoration: none;

    transition: color 0.25s ease;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-divider {
    width: 100%;
    max-width: 360px;
    height: 1px;

    margin: 22px 0 14px;

    background: rgba(255, 255, 255, 0.14);
}

.footer-copyright {
    color: #666c71;
    font-size: 0.75rem;
}



/* =========================================================
   03. RESPONSIVE DARSTELLUNG
   Gemeinsame Anpassungen für kleinere Bildschirme
========================================================= */


/* ---------------------------------------------------------
   03.1 Header auf kleineren Bildschirmen
--------------------------------------------------------- */


@media (max-width: 800px) {

    .site-header {
        height: 85px;
        padding: 0 6vw;
    }

    .logo img {
        height: 54px;
    }

}



/* ---------------------------------------------------------
   03.2 Footer auf kleineren Bildschirmen
--------------------------------------------------------- */

@media (max-width: 800px) {

    .site-footer {
        padding: 32px 6vw 24px;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .footer-brand {
        padding-right: 0;
    }

    .footer-contact {
        padding: 28px 0;
        border-left: none;
        border-right: none;
        border-top: 1px solid rgba(255, 255, 255, 0.14);
        border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    }

    .footer-right {
        padding-left: 0;
    }

    .footer-links {
        flex-wrap: wrap;
        gap: 14px 22px;
    }

    .footer-divider {
        margin: 18px 0 12px;
    }

}



/* =========================================================
   04. DESKTOP-RESPONSIVE LAYOUT
   Anpassungen für kleinere Desktopfenster
========================================================= */

@media (min-width: 801px) and (max-width: 1200px) {

    /* 04.1 Header */

    .site-header {
        padding-left: var(--page-padding-compact);
        padding-right: var(--page-padding-compact);
    }

    /* 04.2 Allgemeine Inhaltsabstände */

    .intro-start,
    .intro-section,
    .services-section,
    .contact-section {
        padding-left: var(--content-padding-compact);
        padding-right: var(--content-padding-compact);
    }

    /* 04.3 Footer */

    .site-footer {
        padding-left: var(--content-padding-compact);
        padding-right: var(--content-padding-compact);
    }

}



/* =========================================================
   05. STARTSEITE
   Überschriften auf dunklen Hintergründen
========================================================= */

.hero .panel h1,
.hero .panel h2,
.services-section .section-heading h2,
.contact-section h2 {
    color: #ffffff;
}



/* Hamburger-Button */
.menu-icon {
    background: transparent;
    border: none;
    padding: 0;
    appearance: none;
    cursor: pointer;
}

/* Navigation */
.main-navigation {
    display: none;
    position: absolute;
    top: 100%;
    right: var(--page-padding);
    z-index: 1001;

    flex-direction: column;
    gap: 20px;

    min-width: 240px;
    padding: 25px;

    background: #202327;
    border: 1px solid rgba(255,255,255,0.15);
    box-shadow: 0 8px 22px rgba(0,0,0,0.6);
}

/* Navigation geöffnet */
.site-header.menu-open .main-navigation {
    display: flex;
}

/* Navigationslinks */
.main-navigation a {
    color: #ffffff;
    text-decoration: none;
    font-size: 15px;
    transition: color 0.2s ease;
}

.main-navigation a:hover {
    color: #168bd2;
}


/* Telefonnummern: Farbe an das Website-Design anpassen */
a[href^="tel"] {
    color: inherit;
    text-decoration: none;
}