/* ================================================================
   TMH Projekte — Helles Brand-Theme (an tmh-holm.de angeglichen)
   ================================================================
   Brand-Farben:
   - TMH-Rot      #dd3832  (primär, CTA, Akzente)
   - Logo-Blau    #324c96  (sekundärer Akzent, Welle im Logo)
   - Tief-Navy    #071323  (Headlines, Footer-BG)
   - Weiß         #ffffff  (Body-BG)
   - Hellgrau     #f1f1f1 / #f7f9fa (Sektionen)
   - Body-Grau    #525558  (Body-Text)
   Schriften: Rubik (Body) + Barlow Condensed (Headlines)
   ================================================================ */

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

:root {
    /* Brand */
    --c-primary: #dd3832;
    --c-primary-dark: #b62a25;
    --c-primary-bright: #f04942;
    --c-primary-soft: rgba(221, 56, 50, 0.08);
    --c-primary-line: rgba(221, 56, 50, 0.25);

    --c-navy: #324c96;
    --c-navy-dark: #1f3370;

    --c-ink: #071323;
    --c-ink-2: #09162a;

    /* Backgrounds */
    --c-bg: #ffffff;
    --c-bg-soft: #f7f9fa;
    --c-bg-mid: #f1f1f1;
    --c-bg-dark: #071323;
    --c-bg-deepest: #050a13;

    /* Text */
    --c-text: #071323;
    --c-text-mid: #525558;
    --c-text-dim: #8b9099;
    --c-text-faint: #b8bcc3;
    --c-text-on-dark: #ffffff;
    --c-text-on-dark-mid: #c5cad3;

    /* Lines */
    --c-line: rgba(7, 19, 35, 0.08);
    --c-line-strong: rgba(7, 19, 35, 0.15);
    --c-line-dark: rgba(255, 255, 255, 0.1);

    /* Spacing */
    --section-pad: clamp(80px, 10vw, 140px);
    --container-max: 1320px;
    --gutter: clamp(24px, 4vw, 64px);

    /* Transitions */
    --t-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --t-base: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --t-slow: 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body {
    font-family: 'Rubik', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--c-bg);
    color: var(--c-text);
    line-height: 1.65;
    overflow-x: hidden;
    font-feature-settings: 'kern', 'liga', 'calt';
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul, ol { list-style: none; }
input, textarea, select { font-family: inherit; }

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5 {
    font-family: 'Barlow Condensed', 'Rubik', sans-serif;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.005em;
    color: var(--c-ink);
    text-transform: uppercase;
}

h1 {
    font-size: clamp(2.6rem, 6vw, 5rem);
    font-weight: 700;
    line-height: 1;
}

h2 {
    font-size: clamp(2rem, 4.5vw, 3.4rem);
    font-weight: 700;
}

h3 {
    font-size: clamp(1.4rem, 2.4vw, 1.85rem);
    font-weight: 700;
}

h4 {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    font-weight: 600;
    letter-spacing: 0.02em;
}

p {
    color: var(--c-text-mid);
    font-size: 1.02rem;
    line-height: 1.75;
    font-family: 'Rubik', sans-serif;
}

.lead {
    font-size: clamp(1.1rem, 1.6vw, 1.25rem);
    color: var(--c-text-mid);
    line-height: 1.65;
    font-weight: 400;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-family: 'Rubik', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--c-primary);
    margin-bottom: 22px;
}

.eyebrow::before {
    content: '';
    width: 36px;
    height: 2px;
    background: var(--c-primary);
}

/* ===== LAYOUT ===== */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--gutter);
    width: 100%;
}

section {
    padding: var(--section-pad) 0;
    position: relative;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(40px, 6vw, 80px);
    align-items: center;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(24px, 3vw, 40px);
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(24px, 3vw, 40px);
}

@media (max-width: 968px) {
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 34px;
    font-family: 'Rubik', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: 2px;
    transition: all var(--t-base);
    cursor: pointer;
    white-space: nowrap;
    position: relative;
    border: 2px solid transparent;
}

.btn svg {
    width: 16px;
    height: 16px;
    transition: transform var(--t-base);
}

.btn:hover svg { transform: translateX(4px); }

/* Primary: TMH-Rot */
.btn-primary,
.btn-gold {  /* alias für Rückkompat */
    background: var(--c-primary);
    color: #fff;
    border-color: var(--c-primary);
}
.btn-primary:hover,
.btn-gold:hover {
    background: var(--c-primary-dark);
    border-color: var(--c-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(221, 56, 50, 0.32);
}

/* Outline: über dunklem Hintergrund (Hero/CTA) */
.btn-outline {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.5);
}
.btn-outline:hover {
    background: #fff;
    color: var(--c-ink);
    border-color: #fff;
    transform: translateY(-2px);
}

/* Outline für hellen Hintergrund */
.btn-outline-dark {
    background: transparent;
    color: var(--c-ink);
    border-color: var(--c-line-strong);
}
.btn-outline-dark:hover {
    background: var(--c-ink);
    color: #fff;
    border-color: var(--c-ink);
}

/* ===== MUTTER-BANNER (oben über Nav) ===== */
.mutter-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    background: var(--c-ink);
    color: rgba(255, 255, 255, 0.85);
    font-family: 'Rubik', sans-serif;
    font-size: 0.78rem;
    padding: 8px 0;
    border-bottom: 2px solid var(--c-primary);
}

.mutter-banner-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--gutter);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.mutter-banner-label {
    color: rgba(255, 255, 255, 0.65);
    letter-spacing: 0.04em;
}

.mutter-banner-link {
    color: #fff;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color var(--t-fast);
    letter-spacing: 0.02em;
}

.mutter-banner-link:hover {
    color: var(--c-primary-bright);
}

.mutter-banner-link svg {
    transition: transform var(--t-fast);
}

.mutter-banner-link:hover svg {
    transform: translate(2px, -2px);
}

@media (max-width: 640px) {
    .mutter-banner { font-size: 0.7rem; padding: 6px 0; }
    .mutter-banner-inner { gap: 6px; padding: 0 12px; flex-direction: column; line-height: 1.3; text-align: center; }
}

/* ===== NAVIGATION ===== */
.nav {
    position: fixed;
    top: 36px;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 18px 0;
    transition: all var(--t-base);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid transparent;
}

@media (max-width: 640px) {
    .nav { top: 56px; }
}

.nav.scrolled {
    padding: 12px 0;
    background: rgba(255, 255, 255, 0.98);
    border-bottom-color: var(--c-line);
    box-shadow: 0 6px 24px rgba(7, 19, 35, 0.06);
}

.nav-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--gutter);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

@media (max-width: 640px) {
    .nav-inner { gap: 8px; padding: 0 14px; }
    .nav-brand img { height: 36px; }
    .nav-actions { gap: 6px; }
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.nav-brand img {
    height: 52px;
    width: auto;
    display: block;
}

@media (max-width: 1100px) {
    .nav-brand img { height: 44px; }
}
@media (max-width: 768px) {
    .nav-brand img { height: 38px; }
}
@media (max-width: 640px) {
    .nav-brand img { height: 34px; }
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav-menu > li { position: relative; }

.nav-menu a {
    display: block;
    padding: 8px 0;
    font-family: 'Rubik', sans-serif;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--c-ink);
    transition: color var(--t-base);
    position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--c-primary);
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--c-primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 18px;
}

.nav-cta {
    padding: 12px 24px;
    font-family: 'Rubik', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    background: var(--c-primary);
    color: #fff;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 2px;
    transition: all var(--t-base);
}

.nav-cta:hover {
    background: var(--c-primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(221, 56, 50, 0.28);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    padding: 10px;
}

.hamburger span {
    width: 26px;
    height: 2px;
    background: var(--c-ink);
    transition: var(--t-base);
}

.nav-mobile-mutter { display: none; }

@media (max-width: 1024px) {
    .nav-menu {
        display: none;
        position: fixed;
        top: 110px;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        align-items: stretch;
        padding: 16px var(--gutter);
        gap: 0;
        border-bottom: 1px solid var(--c-line);
        box-shadow: 0 20px 40px rgba(7, 19, 35, 0.1);
        max-height: calc(100vh - 110px);
        overflow-y: auto;
    }
    .nav-menu.open { display: flex; }
    .nav-menu > li { border-bottom: 1px solid var(--c-line); }
    .nav-menu > li:last-child { border-bottom: none; }
    .nav-menu > li > a { padding: 18px 0; font-size: 1rem; }
    .nav-mobile-mutter { display: block; }
    .nav-mobile-mutter > a { color: var(--c-primary) !important; font-weight: 700; }
    .nav-cta { display: none; }
    .hamburger { display: flex; }
}

/* ===== HERO ===== */
.hero-premium {
    min-height: 92vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 180px 0 100px;
    overflow: hidden;
    background: var(--c-ink);
}

/* Page-Hero (Sub-Pages, kleiner als Landing) */
.page-hero {
    min-height: 60vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 180px 0 80px;
    overflow: hidden;
    background: var(--c-ink);
    color: #fff;
}
.page-hero-sm { min-height: 48vh; padding: 170px 0 70px; }

.page-hero .hero-bg,
.page-hero .hero-overlay { /* shared with hero-premium */ }

.page-hero .hero-title {
    font-size: clamp(2rem, 4.5vw, 3.6rem);
    color: #fff;
    margin: 14px 0 22px;
}

.page-hero .hero-sub {
    color: rgba(255, 255, 255, 0.85);
    font-size: clamp(1rem, 1.4vw, 1.15rem);
    max-width: 720px;
    margin-bottom: 0;
}

/* Breadcrumb */
.breadcrumb {
    font-family: 'Rubik', sans-serif;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.breadcrumb a {
    color: rgba(255, 255, 255, 0.7);
    transition: color var(--t-fast);
}
.breadcrumb a:hover { color: var(--c-primary-bright); }
.breadcrumb .sep { color: rgba(255, 255, 255, 0.4); }
.breadcrumb .current { color: var(--c-primary-bright); font-weight: 600; }

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(7, 19, 35, 0.78) 0%, rgba(7, 19, 35, 0.55) 50%, rgba(7, 19, 35, 0.85) 100%),
        linear-gradient(180deg, transparent 50%, rgba(7, 19, 35, 0.35) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 var(--gutter);
    width: 100%;
}

.hero-content .eyebrow {
    color: #fff;
}

.hero-content .eyebrow::before {
    background: var(--c-primary);
}

.hero-title {
    font-size: clamp(2.5rem, 5.8vw, 4.8rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.005em;
    margin: 18px 0 26px;
    color: #fff;
    text-transform: uppercase;
}

.hero-sub {
    font-size: clamp(1.05rem, 1.5vw, 1.2rem);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.88);
    max-width: 720px;
    margin-bottom: 40px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* ===== STATS ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    text-align: center;
}

.stat-num {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: clamp(2.5rem, 5vw, 3.8rem);
    font-weight: 700;
    color: var(--c-primary);
    line-height: 1;
    margin-bottom: 10px;
    letter-spacing: -0.005em;
}

.stat-label {
    font-family: 'Rubik', sans-serif;
    color: var(--c-text-mid);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.78rem;
    font-weight: 600;
}

@media (max-width: 768px) {
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

/* ===== SECTION HEAD ===== */
.section-head {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 56px;
}

.section-head .eyebrow {
    justify-content: center;
}

.section-head h2 {
    margin: 14px 0 18px;
}

.section-head p {
    color: var(--c-text-mid);
    font-size: 1.08rem;
}

/* ===== IMAGE FRAME ===== */
.image-frame {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid var(--c-line);
    background: var(--c-bg-mid);
}

.image-frame::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 60%, rgba(221, 56, 50, 0.06) 100%);
    pointer-events: none;
}

.image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--t-slow);
}

.image-frame:hover img {
    transform: scale(1.04);
}

/* ===== CTA SECTION ===== */
.cta-section {
    background-color: var(--c-ink);
    background-image: var(--bg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    padding: 130px 0;
    position: relative;
    color: #fff;
}

.section-bg-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(7, 19, 35, 0.86) 0%, rgba(7, 19, 35, 0.94) 100%);
    z-index: 1;
}

.cta-section .container {
    position: relative;
    z-index: 2;
}

.cta-section h2 {
    color: #fff;
    margin-bottom: 20px;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.08rem;
}

.cta-section .eyebrow {
    color: #fff;
}

.cta-section .eyebrow::before {
    background: var(--c-primary);
}

/* ===== FOOTER ===== */
.footer {
    background: var(--c-ink);
    color: var(--c-text-on-dark-mid);
    padding: 80px 0 30px;
    border-top: 4px solid var(--c-primary);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.4fr;
    gap: 50px;
    margin-bottom: 50px;
}

@media (max-width: 968px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 640px) {
    .footer-grid { grid-template-columns: 1fr; }
}

.footer img.footer-logo {
    height: 56px;
    width: auto;
    margin-bottom: 18px;
    background: #fff;
    padding: 10px 14px;
    border-radius: 3px;
    display: block;
}

.footer h4 {
    color: #fff;
    font-size: 0.9rem;
    margin-bottom: 18px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-family: 'Rubik', sans-serif;
    font-weight: 700;
}

.footer p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    line-height: 1.7;
}

.footer ul li {
    margin-bottom: 10px;
}

.footer ul li a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    transition: color var(--t-base);
}

.footer ul li a:hover { color: var(--c-primary-bright); }

.footer-bottom {
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.5);
    transition: color var(--t-base);
}

.footer-bottom a:hover { color: var(--c-primary-bright); }

/* ===== ANIMATIONS ===== */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.fade-in.is-visible,
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in.delay-1 { transition-delay: 0.08s; }
.fade-in.delay-2 { transition-delay: 0.16s; }
.fade-in.delay-3 { transition-delay: 0.24s; }
.fade-in.delay-4 { transition-delay: 0.32s; }

.section-head, .stat { opacity: 1; }

/* ===== UTILITIES ===== */
.text-center { text-align: center; }
.text-primary { color: var(--c-primary); }
.text-navy { color: var(--c-navy); }
.bg-soft { background: var(--c-bg-soft); }
.bg-mid { background: var(--c-bg-mid); }
.bg-dark { background: var(--c-ink); color: #fff; }
.bg-dark h2, .bg-dark h3, .bg-dark h4 { color: #fff; }
.bg-dark p { color: rgba(255, 255, 255, 0.85); }
.bg-dark .eyebrow { color: #fff; }
.bg-dark .eyebrow::before { background: var(--c-primary); }

/* ===== Lang-System (3 Sprachen: DE / EN / PL) ===== */
[data-lang-de], [data-lang-en] { display: none; }
html[lang="de"] [data-lang-de],
html[lang="en"] [data-lang-en] { display: revert; }

/* ===== PRINT ===== */
@media print {
    .nav, .footer, .cta-section, .lightbox, .project-modal { display: none !important; }
    body { color: #000; background: #fff; }
}

/* i18n-HOTFIX 2026-07-03: PL-Spans waren in der Familien-CSS nicht abgedeckt -> PL-Text war immer sichtbar */
[data-lang-pl] { display: none; }
html[lang="de"] [data-lang-de],
html[lang="en"] [data-lang-en],
html[lang="pl"] [data-lang-pl] { display: revert; }
