/* ============================================================
   DRUCKHAUS INTERACTIVE – Main Stylesheet
   ============================================================ */

/* --- Custom Properties --- */
:root {
    --color-primary:      #1c2b3a;
    --color-primary-mid:  #243547;
    --color-accent:       #0b7fc4;
    --color-accent-dark:  #0868a3;
    --color-red:          #c13333;
    --color-red-dark:     #a12a2a;
    --color-text:         #2d3748;
    --color-text-light:   #6b7a8f;
    --color-bg:           #ffffff;
    --color-bg-alt:       #f4f7f9;
    --color-border:       #e2e8f0;
    --color-dark:         #111c26;

    --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

    --shadow-sm:  0 1px 3px rgba(0,0,0,.07), 0 1px 2px rgba(0,0,0,.1);
    --shadow-md:  0 4px 12px rgba(0,0,0,.08), 0 2px 4px rgba(0,0,0,.06);
    --shadow-lg:  0 12px 32px rgba(0,0,0,.1), 0 4px 10px rgba(0,0,0,.06);

    --radius:     6px;
    --radius-lg:  14px;
    --container:  1160px;
    --pad:        88px;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: var(--font);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
img  { max-width: 100%; height: auto; display: block; }
a    { color: inherit; text-decoration: none; }
ul   { list-style: none; }

/* --- Container --- */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 28px;
}


/* ============================================================
   HEADER / NAVBAR
   ============================================================ */
#header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(28,43,58,.15);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transition: background .35s, box-shadow .35s;
}
#header.scrolled {
    background: var(--color-primary);
    box-shadow: var(--shadow-md);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 110px;
}

/* Logo */
.logo { display: flex; align-items: center; }
.logo img {
    height: 88px;
    width: auto;
    /* Weißes Logo für dunklen Header-Hintergrund */
    filter: brightness(0) invert(1);
}
.logo-fallback {
    display: none;
    line-height: 1.15;
    letter-spacing: -.01em;
    flex-direction: column;
}
.logo-fallback .lf-main {
    font-size: 1.25rem;
    font-weight: 700;
}
.logo-fallback .lf-d { color: #6d90a2; }
.logo-fallback .lf-int { color: var(--color-red); font-weight: 800; }
.logo-fallback .lf-sub {
    font-size: .65rem;
    font-weight: 400;
    color: #6d90a2;
    letter-spacing: .01em;
}
/* Show text logo if image fails */
.logo img[src="images/logo.png"]:not([src=""]) + .logo-fallback { display: none; }

/* Nav links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
}
.nav-links a {
    padding: 8px 15px;
    color: rgba(255,255,255,.88);
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--radius);
    transition: color .2s, background .2s;
    white-space: nowrap;
}
.nav-links a:hover { color: #fff; background: rgba(255,255,255,.1); }
.nav-links .btn-nav {
    background: var(--color-red);
    color: #fff;
    padding: 8px 22px;
    margin-left: 6px;
}
.nav-links .btn-nav:hover { background: var(--color-red-dark); }

/* Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    cursor: pointer;
    border: none;
    background: none;
}
.nav-toggle span {
    display: block;
    width: 23px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform .3s, opacity .3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* ============================================================
   HERO
   ============================================================ */
#hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--color-primary);
}
.hero-bg {
    position: absolute;
    inset: 0;
}
.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .38;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(28,43,58,.90) 0%,
        rgba(28,43,58,.70) 55%,
        rgba(11,127,196,.40) 100%
    );
}
.hero-content {
    position: relative;
    z-index: 1;
    padding: 130px 0 80px;
    max-width: 680px;
}
.hero-badge {
    display: inline-block;
    background: var(--color-accent);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: 5px 16px;
    border-radius: 20px;
    margin-bottom: 26px;
}
.hero-content h1 {
    font-size: clamp(2.4rem, 5.5vw, 4rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.12;
    margin-bottom: 22px;
    letter-spacing: -.02em;
}
.hero-sub {
    font-size: 1.1rem;
    color: rgba(255,255,255,.78);
    max-width: 580px;
    margin-bottom: 38px;
    line-height: 1.72;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }


/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary {
    display: inline-block;
    background: var(--color-accent);
    color: #fff;
    font-weight: 600;
    font-size: .95rem;
    padding: 14px 30px;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    font-family: var(--font);
    transition: background .2s, transform .15s, box-shadow .2s;
}
.btn-primary:hover {
    background: var(--color-accent-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(11,127,196,.35);
}
.btn-primary.full { width: 100%; text-align: center; padding: 14px; }
.btn-outline {
    display: inline-block;
    border: 2px solid rgba(255,255,255,.45);
    color: rgba(255,255,255,.9);
    font-weight: 600;
    font-size: .95rem;
    padding: 12px 28px;
    border-radius: var(--radius);
    transition: border-color .2s, background .2s, color .2s;
}
.btn-outline:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.1); }


/* ============================================================
   USP STRIP
   ============================================================ */
#usp-strip {
    background: var(--color-accent);
    padding: 0;
    position: relative;
    z-index: 2;
}
.usp-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}
.usp-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 22px 24px;
    color: #fff;
    border-right: 1px solid rgba(255,255,255,.2);
}
.usp-item:last-child { border-right: none; }
.usp-item svg { width: 26px; height: 26px; flex-shrink: 0; opacity: .88; }
.usp-item span { font-size: .875rem; font-weight: 600; line-height: 1.35; }


/* ============================================================
   SECTION COMMON
   ============================================================ */
section { padding: var(--pad) 0; }

.section-header {
    text-align: center;
    margin-bottom: 60px;
}
.section-label {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--color-accent);
    background: rgba(11,127,196,.1);
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 14px;
}
.section-label.light {
    background: rgba(255,255,255,.18);
    color: rgba(255,255,255,.88);
}
.section-header h2 {
    font-size: clamp(1.85rem, 3.5vw, 2.7rem);
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 14px;
    line-height: 1.18;
    letter-spacing: -.02em;
}
.section-header p {
    font-size: 1.05rem;
    color: var(--color-text-light);
    max-width: 540px;
    margin: 0 auto;
}


/* ============================================================
   SERVICES
   ============================================================ */
#leistungen { background: var(--color-bg); }

.service-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: center;
    margin-bottom: 84px;
    padding-bottom: 84px;
    border-bottom: 1px solid var(--color-border);
}
.service-block:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}
.service-block.reverse .service-content { order: 2; }
.service-block.reverse .service-image   { order: 1; }

.service-number {
    font-size: 5rem;
    font-weight: 900;
    color: rgba(226,232,240,.8);
    line-height: 1;
    margin-bottom: 4px;
    font-variant-numeric: tabular-nums;
    letter-spacing: -.04em;
}
.service-text h3 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 14px;
    line-height: 1.2;
    letter-spacing: -.015em;
}
.service-lead {
    font-size: 1.05rem;
    color: var(--color-text-light);
    margin-bottom: 22px;
    line-height: 1.65;
}
.service-list { margin-bottom: 22px; }
.service-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 9px;
    font-size: .94rem;
    color: var(--color-text);
    line-height: 1.5;
}
.service-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-size: .82rem;
    top: 2px;
}
.service-tag {
    background: var(--color-bg-alt);
    border-left: 3px solid var(--color-accent);
    padding: 11px 16px;
    border-radius: 0 var(--radius) var(--radius) 0;
    font-size: .875rem;
    color: var(--color-text);
    line-height: 1.5;
}

.service-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: var(--color-bg-alt);
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 320px;
    border-radius: var(--radius-lg);
    display: block;
}


/* ============================================================
   TARGET CLIENTS
   ============================================================ */
#zielkunden {
    background: var(--color-primary);
}
#zielkunden .section-header h2 { color: #fff; }
#zielkunden .section-header p  { color: rgba(255,255,255,.65); }

.client-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}
.client-card {
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: var(--radius-lg);
    padding: 30px 18px;
    text-align: center;
    transition: background .25s, transform .25s, box-shadow .25s;
    cursor: default;
}
.client-card:hover {
    background: rgba(255,255,255,.1);
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,.25);
}
.client-icon {
    width: 58px;
    height: 58px;
    margin: 0 auto 18px;
    background: rgba(11,127,196,.25);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.client-icon svg { width: 30px; height: 30px; stroke: #5bb8f5; }
.client-card h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
    line-height: 1.3;
}
.client-card p {
    font-size: .82rem;
    color: rgba(255,255,255,.55);
    line-height: 1.55;
}


/* ============================================================
   VALUES / APPROACH
   ============================================================ */
#arbeitsweise { background: var(--color-bg-alt); }

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.value-item {
    background: var(--color-bg);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow .25s, transform .25s;
}
.value-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}
.value-icon {
    width: 52px;
    height: 52px;
    background: rgba(11,127,196,.1);
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}
.value-icon svg { width: 26px; height: 26px; stroke: var(--color-accent); }
.value-item h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 10px;
}
.value-item p {
    font-size: .9rem;
    color: var(--color-text-light);
    line-height: 1.65;
}


/* ============================================================
   ABOUT
   ============================================================ */
#ueber-uns { background: var(--color-bg); }

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 88px;
    align-items: center;
}
.about-text .section-label { margin-bottom: 14px; }
.about-text h2 {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 22px;
    line-height: 1.2;
    letter-spacing: -.02em;
}
.about-text > p {
    color: var(--color-text-light);
    line-height: 1.72;
    margin-bottom: 16px;
}
.not-list {
    margin-top: 30px;
    padding: 24px 26px;
    background: var(--color-bg-alt);
    border-radius: var(--radius-lg);
}
.not-list h4 {
    font-size: .78rem;
    font-weight: 700;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 14px;
}
.not-list ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 24px;
}
.not-list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: .88rem;
    color: var(--color-text);
    line-height: 1.4;
}
.not-list li::before {
    content: '✕';
    color: var(--color-red);
    font-size: .8rem;
    font-weight: 800;
    flex-shrink: 0;
    margin-top: 1px;
}

.about-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    min-height: 420px;
    background: var(--color-bg-alt);
}
.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 420px;
    display: block;
}


/* ============================================================
   CTA BOXES
   ============================================================ */
#cta-boxes {
    background: var(--color-bg-alt);
    padding: 0;
}
.cta-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}
.cta-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 52px 32px;
    transition: filter .2s;
    cursor: pointer;
}
.cta-box:hover { filter: brightness(1.1); }
.cta-teal  { background: #2c5364; }
.cta-blue  { background: #1a5d8f; }
.cta-red   { background: var(--color-red); }

.cta-icon {
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,.18);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}
.cta-icon svg { width: 28px; height: 28px; stroke: #fff; }
.cta-box h4 {
    font-size: 1.25rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 8px;
    letter-spacing: -.01em;
}
.cta-box p {
    font-size: .875rem;
    color: rgba(255,255,255,.75);
    line-height: 1.55;
    max-width: 240px;
}


/* ============================================================
   CONTACT
   ============================================================ */
#kontakt {
    background: var(--color-primary);
}
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}
.contact-text h2 {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 800;
    color: #fff;
    margin: 14px 0 20px;
    line-height: 1.2;
    letter-spacing: -.02em;
}
.contact-text > p {
    color: rgba(255,255,255,.65);
    line-height: 1.72;
    margin-bottom: 36px;
}
.contact-info { display: flex; flex-direction: column; gap: 18px; }
.contact-item { display: flex; align-items: center; gap: 14px; }
.contact-item svg { width: 18px; height: 18px; stroke: var(--color-accent); flex-shrink: 0; }
.contact-item span { font-size: .95rem; color: rgba(255,255,255,.78); }

/* Form */
.contact-form-wrap {
    background: var(--color-bg);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-lg);
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.form-group { margin-bottom: 18px; }
.form-group label {
    display: block;
    font-size: .845rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 7px;
}
.req { color: var(--color-red); }
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius);
    padding: 11px 14px;
    font-family: var(--font);
    font-size: .93rem;
    color: var(--color-text);
    background: var(--color-bg);
    outline: none;
    transition: border-color .2s, box-shadow .2s;
    appearance: none;
    -webkit-appearance: none;
}
.form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%236b7a8f' stroke-width='2'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 36px;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(11,127,196,.14);
}
.form-group textarea { resize: vertical; min-height: 110px; }
.form-feedback {
    margin-top: 14px;
    font-size: .875rem;
    font-weight: 600;
    text-align: center;
    min-height: 22px;
    transition: color .2s;
}
.form-feedback.success { color: #2d7d46; }
.form-feedback.error   { color: var(--color-red); }


/* ============================================================
   FOOTER
   ============================================================ */
#footer {
    background: var(--color-dark);
    padding-top: 64px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,.07);
}
.footer-logo {
    height: 80px;
    width: auto;
    margin-bottom: 16px;
    filter: brightness(0) invert(1);
}
.footer-logo-fallback {
    display: none;
    line-height: 1.15;
    margin-bottom: 16px;
    flex-direction: column;
}
.footer-logo-fallback .lf-main { font-size: 1.2rem; font-weight: 700; }
.footer-logo-fallback .lf-d   { color: #8fb4c6; }
.footer-logo-fallback .lf-int { color: #e05555; font-weight: 800; }
.footer-logo-fallback .lf-sub {
    font-size: .65rem;
    font-weight: 400;
    color: #8fb4c6;
    letter-spacing: .01em;
}
.footer-brand p {
    font-size: .85rem;
    color: rgba(255,255,255,.4);
    line-height: 1.65;
    max-width: 280px;
}
.footer-nav h5 {
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: rgba(255,255,255,.35);
    margin-bottom: 18px;
}
.footer-nav ul { display: flex; flex-direction: column; gap: 10px; }
.footer-nav a {
    font-size: .875rem;
    color: rgba(255,255,255,.5);
    transition: color .2s;
}
.footer-nav a:hover { color: #fff; }
.footer-bottom {
    padding: 22px 0;
}
.footer-bottom p {
    font-size: .78rem;
    color: rgba(255,255,255,.28);
    text-align: center;
}


/* ============================================================
   FADE-IN ANIMATION
   ============================================================ */
.fade-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .55s ease, transform .55s ease;
}
.fade-up.visible {
    opacity: 1;
    transform: none;
}


/* ============================================================
   RESPONSIVE – 1024px
   ============================================================ */
@media (max-width: 1024px) {
    :root { --pad: 72px; }
    .client-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .usp-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .usp-item { border-bottom: 1px solid rgba(255,255,255,.2); }
    .usp-item:nth-child(2) { border-right: none; }
    .usp-item:nth-child(3),
    .usp-item:nth-child(4) { border-bottom: none; }
    .usp-item:nth-child(3) { border-right: 1px solid rgba(255,255,255,.2); }
}

/* ============================================================
   RESPONSIVE – 900px
   ============================================================ */
@media (max-width: 900px) {
    :root { --pad: 60px; }

    .service-block,
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .service-block.reverse .service-content,
    .service-block.reverse .service-image { order: unset; }

    .service-image { min-height: 260px; }
    .service-image img { min-height: 260px; }
    .about-image { min-height: 300px; }
    .about-image img { min-height: 300px; }

    .values-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
    .footer-brand { grid-column: 1 / -1; }
    .not-list ul { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; gap: 0; }
}

/* ============================================================
   RESPONSIVE – 640px (mobile)
   ============================================================ */
@media (max-width: 640px) {
    :root { --pad: 48px; }

    /* Nav */
    .nav-toggle { display: flex; }
    .nav-links {
        display: none;
        position: absolute;
        top: 72px; left: 0; right: 0;
        background: var(--color-primary);
        flex-direction: column;
        align-items: stretch;
        padding: 12px 16px 20px;
        gap: 4px;
        box-shadow: var(--shadow-lg);
    }
    .nav-links.open { display: flex; }
    .nav-links a {
        padding: 13px 16px;
        border-radius: var(--radius);
    }
    .nav-links .btn-nav { margin: 8px 0 0; text-align: center; }

    /* USP */
    .usp-grid { grid-template-columns: 1fr; }
    .usp-item {
        border-right: none !important;
        border-bottom: 1px solid rgba(255,255,255,.2);
    }
    .usp-item:last-child { border-bottom: none; }

    /* Hero */
    .hero-actions { flex-direction: column; align-items: flex-start; }
    .btn-primary, .btn-outline { width: 100%; text-align: center; }

    /* Clients */
    .client-grid { grid-template-columns: repeat(2, 1fr); }

    /* Values */
    .values-grid { grid-template-columns: 1fr; }

    /* CTA */
    .cta-grid { grid-template-columns: 1fr; }

    /* Contact form */
    .contact-form-wrap { padding: 28px 22px; }

    /* Footer */
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .footer-logo { display: none; }
    .footer-logo-fallback { display: flex; }
}

@media (max-width: 400px) {
    .client-grid { grid-template-columns: 1fr; }
    .hero-content h1 { font-size: 2.1rem; }
}
