/* ============================================================
   TECHNIK-WEBSEITE – RESPONSIVES DESIGN
   Hellerer Hintergrund und bessere Lesbarkeit
   ============================================================ */


/* 1. ZENTRALE FARBEN */

:root {
    --navy:   #071522;
    --cyan:   #55d7f2;
    --amber:  #ffb45b;

    --text:   #eaf4fa;
    --muted:  #c6d7e1;

    --panel:  rgba(7, 22, 35, 0.90);
    --border: rgba(126, 208, 231, 0.30);
}


/* Einheitliche Berechnung der Elementgrößen */

* {
    box-sizing: border-box;
}


/* 2. SEITENHINTERGRUND */

body {
    margin: 0;
    min-height: 100vh;

    color: var(--text);
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    line-height: 1.6;

    background-color: var(--navy);

    /* Hintergrundbild mit reduzierter Abdunklung */

    background-image:
        linear-gradient(
            rgba(3, 14, 25, 0.15),
            rgba(3, 14, 25, 0.35)
        ),
        url("../images/technik-hintergrund.png");

    background-position: center top;
    background-size: cover;
    background-attachment: fixed;
}


/* Allgemeine Links */

a {
    color: inherit;
}


/* 3. KOPFBEREICH */

.site-header {
    min-height: 270px;

    display: grid;
    place-items: center;

    padding: 42px 22px 28px;
}


/* Fläche mit Hauptüberschrift */

.hero-panel {
    width: min(100%, 1080px);
    padding: 30px 34px;

    border: 1px solid var(--border);
    border-radius: 18px;

    background: rgba(4, 17, 29, 0.88);

    backdrop-filter: blur(7px);

    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.25);
}


/* Kleine Überschrift */

.eyebrow {
    color: var(--cyan);

    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.18em;

    margin: 0 0 8px;
}


/* Hauptüberschrift */

h1 {
    color: var(--text);

    font-size: clamp(2rem, 5vw, 3.7rem);
    line-height: 1.1;

    margin: 0;

    letter-spacing: -0.04em;
}


/* Untertitel */

.subtitle {
    color: var(--muted);

    margin: 14px 0 0;
}


/* 4. NAVIGATION */

.navigation {
    width: min(1120px, 100%);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 12px 24px;
    background: rgba(4, 15, 25, 0.94);
    border: 1px solid var(--border);
    border-radius: 12px;
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 10;
}


/* Markenname in der Navigation */

.brand {
    color: var(--text);

    text-decoration: none;

    font-weight: 900;
    letter-spacing: 0.12em;

    white-space: nowrap;
}


/* Farbiger Bestandteil des Markennamens */

.brand span {
    color: var(--cyan);
}


/* Container für die Menüpunkte */

.nav-links {
    display: flex;

    gap: 6px;

    flex-wrap: wrap;

    justify-content: flex-end;
}


/* Einzelne Menüpunkte */

.nav-links a {
    color: var(--muted);

    text-decoration: none;

    padding: 8px 12px;

    border-radius: 8px;

    font-size: 0.92rem;

    transition: color 0.18s, background-color 0.18s;
}


/* Hover-Effekt und aktuelle Seite */

.nav-links a:hover,
.nav-links a[aria-current="page"] {
    color: #ffffff;

    background: rgba(85, 215, 242, 0.16);
}


/* 5. HAUPTINHALT */

.content-wrap {
    width: min(1120px, calc(100% - 36px));

    margin: 30px auto 54px;
}


/* Gemeinsame Gestaltung der Inhaltsflächen */

.panel,
.card {
    background: var(--panel);

    border: 1px solid var(--border);

    border-radius: 16px;

    backdrop-filter: blur(10px);

    box-shadow: 0 14px 38px rgba(0, 0, 0, 0.22);
}


/* Einleitungsbereich */

.intro {
    padding: clamp(24px, 5vw, 48px);

    margin-bottom: 22px;
}


/* Überschriften der zweiten Ebene */

h2 {
    color: var(--text);

    margin: 0 0 12px;

    font-size: clamp(1.55rem, 3vw, 2.2rem);

    line-height: 1.2;
}


/* Beschreibungstexte */

.intro p:last-child,
.page-panel > p:not(.eyebrow) {
    color: var(--muted);

    max-width: 780px;
}


/* 6. KACHELN DER STARTSEITE */

.card-grid {
    display: grid;

    grid-template-columns: repeat(4, minmax(0, 1fr));

    gap: 16px;
}


/* Einzelne Kachel */

.card {
    min-height: 230px;

    padding: 24px;

    text-decoration: none;

    transition:
        transform 0.18s,
        border-color 0.18s,
        background-color 0.18s;
}


/* Hervorhebung beim Überfahren mit der Maus */

.card:hover {
    transform: translateY(-4px);

    border-color: #55d7f2a6;

    background: rgba(8, 31, 48, 0.96);
}


/* Symbol in einer Kachel */

.card-icon {
    display: inline-grid;

    place-items: center;

    width: 44px;
    height: 44px;

    border-radius: 12px;

    color: var(--cyan);

    background: #55d7f21f;

    font-size: 1.25rem;
    font-weight: 800;
}


/* Kachelüberschrift */

.card h3 {
    color: var(--text);

    margin: 16px 0 6px;

    font-size: 1.15rem;
}


/* Beschreibung einer Kachel */

.card p {
    color: var(--muted);

    font-size: 0.93rem;

    margin: 0 0 16px;
}


/* Link am Ende einer Kachel */

.card-cta {
    color: var(--amber);

    font-size: 0.9rem;
    font-weight: 700;
}


/* 7. WEITERE INHALTSBEREICHE */


/* Bereich "Aus der Werkstatt" */

.note {
    padding: 24px 28px;

    margin-top: 22px;
}


.note p {
    color: var(--muted);

    margin-bottom: 0;
}


/* Inhaltsfläche einer Unterseite */

.page-panel {
    padding: clamp(24px, 5vw, 42px);

    min-height: 300px;
}


/* Platzhalter für noch nicht vorhandene Inhalte */

.placeholder {
    margin-top: 28px;

    padding: 18px;

    border: 1px dashed #b6c9d559;

    border-radius: 10px;

    color: var(--muted);
}


/* Liste von Schlagwörtern */

.tag-list {
    display: flex;

    flex-wrap: wrap;

    gap: 8px;

    margin-top: 20px;
}


/* Einzelnes Schlagwort */

.tag-list span {
    border: 1px solid var(--border);

    border-radius: 999px;

    padding: 5px 12px;

    color: var(--cyan);

    background: #55d7f214;

    font-size: 0.88rem;
}


/* Schaltflächen */

.button {
    display: inline-block;

    margin-top: 12px;

    padding: 10px 16px;

    background: var(--cyan);

    color: var(--navy);

    border-radius: 8px;

    text-decoration: none;

    font-weight: 800;
}


/* 8. FUSSZEILE */

.site-footer {
    width: min(1120px, 100%);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 22px 24px;
    color: #c6d7e1;
    background: rgba(3, 12, 21, 0.94);
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 0.86rem;
}


/* 9. TABLETS: BIS 900 PIXEL */

@media (max-width: 900px) {

    /* Zwei statt vier Kacheln pro Zeile */

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

    /* Navigation untereinander */

    .navigation {
        align-items: flex-start;

        flex-direction: column;
    }

    .nav-links {
        justify-content: flex-start;
    }

}


/* 10. SMARTPHONES: BIS 560 PIXEL */

@media (max-width: 560px) {

    .site-header {
        min-height: 220px;

        padding: 22px 14px;
    }

    .hero-panel {
        padding: 24px 20px;
    }

    .content-wrap {
        width: calc(100% - 24px);

        margin-top: 16px;
    }

    /* Kacheln untereinander */

    .card-grid {
        grid-template-columns: 1fr;
    }

    .card {
        min-height: auto;
    }

    .navigation {
        padding: 12px 16px;
    }

    .nav-links a {
        padding: 7px 9px;
    }

    /* Auf Mobilgeräten flüssiger scrollen */

    body {
        background-attachment: scroll;
    }

}

/* ============================================================
   PROJEKTSEITE
   ============================================================ */

.projects-list {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.project-card {
    display: grid;
    grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.1fr);
    gap: 28px;
    align-items: stretch;
    padding: 24px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    box-shadow: 0 14px 38px rgba(0, 0, 0, 0.22);
}

.project-image-wrap {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-image {
    display: block;
    width: 100%;
    height: auto;
    max-height: 100%;
    aspect-ratio: 4 / 5;
    object-fit: contain;
    object-position: center;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(4, 17, 29, 0.7);
}

.project-information {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.project-description .eyebrow {
    margin-bottom: 6px;
}

.project-title {
    color: var(--text);
    margin: 0 0 14px;
    font-size: clamp(1.45rem, 2.4vw, 2rem);
    line-height: 1.2;
}

.project-description p:not(.eyebrow) {
    color: var(--muted);
    margin: 0 0 12px;
}

.project-downloads {
    margin-top: 12px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
}

.downloads-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 12px;
    color: var(--text);
    font-size: 1.15rem;
}

.downloads-title span {
    color: var(--cyan);
    font-size: 1.5rem;
    font-weight: 800;
}

.download-list {
    display: flex;
    flex-direction: column;
    gap: 9px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.download-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 13px 14px;
    border: 1px solid rgba(126, 208, 231, 0.2);
    border-radius: 10px;
    background: rgba(85, 215, 242, 0.055);
}

.download-details {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.download-details strong {
    color: var(--text);
    font-size: 0.96rem;
}

.download-details span {
    color: var(--muted);
    font-size: 0.86rem;
}

.download-button {
    flex: 0 0 auto;
    display: inline-block;
    padding: 9px 12px;
    border: 1px solid rgba(85, 215, 242, 0.55);
    border-radius: 8px;
    background: rgba(85, 215, 242, 0.12);
    color: var(--cyan);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 800;
    transition: background-color 0.18s, color 0.18s;
}

.download-button:hover {
    background: var(--cyan);
    color: var(--navy);
}

.download-button:focus-visible {
    outline: 2px solid var(--amber);
    outline-offset: 3px;
}

@media (max-width: 760px) {
    .project-card {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 18px;
    }

    .project-image {
        aspect-ratio: 16 / 10;
        max-height: 420px;
    }
}

@media (max-width: 480px) {
    .download-item {
        align-items: flex-start;
        flex-direction: column;
    }

    .download-button {
        align-self: flex-start;
    }
}


/* ============================================================
   RECHTLICHE SEITEN: IMPRESSUM UND DATENSCHUTZ
   ============================================================ */

.legal-page {
    color: var(--muted);
}

.legal-page h2,
.legal-page h3 {
    color: var(--text);
}

.legal-page h2 {
    margin-bottom: 24px;
}

.legal-page h3 {
    margin: 28px 0 8px;
    font-size: 1.12rem;
}

.legal-page p {
    max-width: 900px;
}

.legal-page a {
    color: var(--cyan);
    overflow-wrap: anywhere;
}

.footer-legal {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-legal a {
    color: var(--cyan);
    text-decoration: none;
}

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

@media (max-width: 560px) {
    .footer-legal {
        width: 100%;
    }
}
