/* ============================================
   WirBrücke GbR
   Space Grotesk + Bridge theme
   ============================================ */

/* --- Self-hosted Fonts (DSGVO-konform) --- */
@font-face {
    font-family: 'Space Grotesk';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('fonts/space-grotesk-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Space Grotesk';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('fonts/space-grotesk-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 300 600;
    font-display: swap;
    src: url('fonts/inter-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 300 600;
    font-display: swap;
    src: url('fonts/inter-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

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

:root {
    --bg: #f5f3ee;
    --bg-dark: #141311;
    --text: #141311;
    --text-mid: #5c584f;
    --text-light: #9b9689;
    --accent: #c44b1b;
    --accent-light: #e8613c;
    --border: #dedad0;
    --font-head: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

.container {
    max-width: 1060px;
    margin: 0 auto;
    padding: 0 32px;
}

.label {
    display: block;
    font-family: var(--font-head);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 20px;
}

h2 {
    font-family: var(--font-head);
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.025em;
}

h3 {
    font-family: var(--font-head);
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

/* ---- Buttons ---- */
.btn-primary {
    display: inline-block;
    padding: 16px 36px;
    background: var(--bg-dark);
    color: #f5f0eb;
    font-family: var(--font-head);
    font-size: 0.88rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    border: none;
    cursor: pointer;
    transition: all 0.3s var(--ease);
}

.btn-primary:hover {
    background: var(--accent);
}

.btn-ghost {
    display: inline-block;
    padding: 16px 36px;
    color: var(--text-mid);
    font-family: var(--font-head);
    font-size: 0.88rem;
    font-weight: 500;
    border: 1px solid var(--border);
    transition: all 0.3s var(--ease);
}

.btn-ghost:hover {
    border-color: var(--text);
    color: var(--text);
}

/* ---- Navigation ---- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 20px 0;
    transition: all 0.4s var(--ease);
}

.nav.scrolled {
    background: rgba(245, 243, 238, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-family: var(--font-head);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

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

.nav-links a {
    font-size: 0.85rem;
    color: var(--text-mid);
    transition: color 0.3s;
}

.nav-links a:hover { color: var(--text); }

.nav-contact {
    font-family: var(--font-head);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
}

.nav-contact:hover { opacity: 0.7; }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 7px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px 0;
}

.nav-toggle span {
    display: block;
    width: 26px;
    height: 1.5px;
    background: var(--text);
    transition: all 0.3s var(--ease);
}

/* ---- Hero ---- */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 160px 32px 100px;
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-overline {
    font-family: var(--font-head);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 28px;
    animation: fadeUp 0.8s var(--ease-out) both;
}

.hero h1 {
    font-family: var(--font-head);
    font-size: clamp(2.6rem, 6vw, 4.8rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    max-width: 840px;
    animation: fadeUp 0.8s var(--ease-out) 0.1s both;
}

.hero-sub {
    margin-top: 32px;
    font-size: 1.05rem;
    color: var(--text-mid);
    max-width: 540px;
    line-height: 1.7;
    animation: fadeUp 0.8s var(--ease-out) 0.2s both;
}

.hero-actions {
    margin-top: 40px;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    animation: fadeUp 0.8s var(--ease-out) 0.3s both;
}

.hero-bridge {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    line-height: 0;
}

.hero-bridge svg {
    width: 100%;
    height: 80px;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ---- Values Section ---- */
.values {
    padding: 100px 0 80px;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.value-card {
    padding: 32px 24px;
    border: 1px solid var(--border);
    transition: border-color 0.3s var(--ease);
}

.value-card:hover {
    border-color: var(--accent);
}

.value-num {
    display: block;
    font-family: var(--font-head);
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.08em;
    margin-bottom: 16px;
}

.value-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.3;
}

.value-card p {
    font-size: 0.88rem;
    color: var(--text-mid);
    line-height: 1.65;
}

/* ---- Bridge Divider ---- */
.bridge-divider {
    width: 100%;
    line-height: 0;
    padding: 60px 0 40px;
}

.bridge-divider svg {
    width: 100%;
    height: 80px;
}

/* ---- About ---- */
.about {
    padding: 140px 0;
}

.about-intro {
    max-width: 720px;
    margin-bottom: 72px;
}

.about-intro h2 {
    margin-bottom: 28px;
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
}

.about-intro .lead {
    font-size: 1.1rem;
    color: var(--text);
    line-height: 1.65;
    margin-bottom: 20px;
}

.about-intro p {
    font-size: 0.95rem;
    color: var(--text-mid);
    line-height: 1.75;
}

/* Team Grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px;
    max-width: 700px;
    margin: 0 auto;
}

.team-member {
    text-align: center;
}

.member-photo {
    width: 140px;
    height: 140px;
    margin: 0 auto 20px;
    background: var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-head);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-light);
    border-radius: 50%;
}

.team-member h3 {
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.member-role {
    display: block;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--accent);
    margin-bottom: 12px;
}

.team-member p {
    font-size: 0.88rem;
    color: var(--text-mid);
    line-height: 1.65;
    max-width: 300px;
    margin: 0 auto;
}

/* ---- Services ---- */
.services {
    padding: 120px 0 140px;
    border-top: 1px solid var(--border);
}

.services h2 { margin-bottom: 56px; }

.services-list {
    display: flex;
    flex-direction: column;
}

.service-item {
    display: flex;
    gap: 40px;
    align-items: baseline;
    padding: 32px 0;
    border-bottom: 1px solid var(--border);
    transition: padding-left 0.4s var(--ease-out);
    cursor: default;
}

.service-item:first-child { border-top: 1px solid var(--border); }

.service-item:hover { padding-left: 20px; }

.service-num {
    font-family: var(--font-head);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-light);
    flex-shrink: 0;
    width: 28px;
}

.service-body h3 {
    margin-bottom: 6px;
    font-size: 1.25rem;
}

.service-body p {
    color: var(--text-mid);
    font-size: 0.95rem;
    line-height: 1.65;
    max-width: 600px;
}

/* ---- Projects ---- */
.projects {
    padding: 120px 0 140px;
    background: var(--bg-dark);
    color: #ede9e0;
}

.projects .label { color: var(--accent-light); }

.projects h2 {
    color: #ede9e0;
    margin-bottom: 64px;
}

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

.project-item {
    display: flex;
    gap: 48px;
    align-items: center;
    padding: 40px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.project-item:first-child {
    border-top: 1px solid rgba(255,255,255,0.06);
}

.project-info {
    flex: 1;
}

.project-type {
    display: inline-block;
    font-family: var(--font-head);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-light);
    margin-bottom: 12px;
}

.project-info h3 {
    font-size: 1.4rem;
    color: #ede9e0;
    margin-bottom: 12px;
}

.project-info p {
    font-size: 0.95rem;
    color: #8a857b;
    line-height: 1.7;
    margin-bottom: 16px;
    max-width: 520px;
}

.project-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.project-tags span {
    font-size: 0.7rem;
    font-weight: 500;
    color: #8a857b;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    padding: 4px 12px;
    border-radius: 100px;
}

.project-visual {
    flex-shrink: 0;
}

.project-mockup {
    width: 200px;
    height: 140px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-head);
    font-size: 0.8rem;
    font-weight: 600;
    color: #5c584f;
}

.projects-cta {
    margin-top: 56px;
    display: flex;
    align-items: center;
    gap: 28px;
}

.projects-cta p {
    font-size: 0.95rem;
    color: #8a857b;
    font-style: italic;
}

.projects-cta .btn-ghost {
    border-color: rgba(255,255,255,0.15);
    color: #ede9e0;
    flex-shrink: 0;
}

.projects-cta .btn-ghost:hover {
    border-color: var(--accent-light);
    color: var(--accent-light);
}

/* ---- Process ---- */
.process {
    padding: 160px 0;
    background: var(--bg-dark);
    color: #ede9e0;
}

.process .label { color: var(--accent-light); }

.process h2 {
    color: #ede9e0;
    margin-bottom: 72px;
}

.process-steps {
    padding-left: 40px;
    position: relative;
}

.process-steps::before {
    content: '';
    position: absolute;
    left: 5px;
    top: 10px;
    bottom: 10px;
    width: 1px;
    background: #333028;
}

.step {
    padding: 28px 0;
    position: relative;
    padding-left: 40px;
}

.step-marker {
    position: absolute;
    left: -40px;
    top: 36px;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    background: var(--bg-dark);
    z-index: 1;
}

.step-text h3 {
    color: #ede9e0;
    font-size: 1.15rem;
    margin-bottom: 8px;
}

.step-text p {
    color: #8a857b;
    font-size: 0.95rem;
    line-height: 1.7;
    max-width: 560px;
}

/* ---- Marquee ---- */
.marquee-section {
    padding: 64px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}

.marquee-track {
    display: flex;
    gap: 36px;
    align-items: center;
    white-space: nowrap;
    animation: marquee 22s linear infinite;
    width: max-content;
}

.marquee-track span {
    font-family: var(--font-head);
    font-size: clamp(1.3rem, 2.5vw, 2rem);
    font-weight: 600;
    color: var(--text);
    flex-shrink: 0;
    letter-spacing: -0.01em;
}

.mdot {
    width: 6px !important;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    display: inline-block;
    font-size: 0 !important;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ---- CTA ---- */
.cta {
    padding: 160px 0 120px;
    text-align: center;
}

.cta h2 { margin-bottom: 24px; }

.cta p {
    font-size: 1.05rem;
    color: var(--text-mid);
    max-width: 460px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

/* ---- Contact ---- */
.contact {
    padding: 120px 0 160px;
    border-top: 1px solid var(--border);
}

.contact-layout {
    display: flex;
    gap: 80px;
}

.contact-left { flex: 1; }

.contact-left h2 { margin-bottom: 48px; }

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 40px;
}

.contact-row {
    display: flex;
    gap: 16px;
    font-size: 0.95rem;
}

.contact-row a {
    color: var(--text);
    transition: color 0.3s;
}

.contact-row a:hover {
    color: var(--accent);
}

.contact-lbl {
    color: var(--text-light);
    width: 72px;
    flex-shrink: 0;
    font-weight: 500;
}

.contact-available {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: #2d7a42;
    font-weight: 500;
}

.avail-dot {
    width: 8px;
    height: 8px;
    background: #2d7a42;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* ---- Form ---- */
.contact-form {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 16px 0;
    font-size: 0.95rem;
    font-family: var(--font-body);
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    outline: none;
    transition: border-color 0.3s;
    border-radius: 0;
    -webkit-appearance: none;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--text-light);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-bottom-color: var(--accent);
}

.contact-form select { color: var(--text-light); cursor: pointer; }

.contact-form textarea { resize: vertical; min-height: 90px; }

.contact-form button {
    align-self: flex-start;
    margin-top: 12px;
    padding: 16px 40px;
    background: var(--bg-dark);
    color: #f5f0eb;
    border: none;
    font-family: var(--font-head);
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s var(--ease);
}

.contact-form button:hover { background: var(--accent); }

/* ---- Footer ---- */
.footer {
    padding: 56px 0 28px;
    border-top: 1px solid var(--border);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    margin-bottom: 48px;
}

.footer-logo {
    font-family: var(--font-head);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    display: block;
    margin-bottom: 12px;
}

.footer-left p {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.5;
}

.footer-right {
    display: flex;
    gap: 56px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col a {
    font-size: 0.85rem;
    color: var(--text-mid);
    transition: color 0.3s;
}

.footer-col a:hover { color: var(--text); }

.footer-bottom {
    padding-top: 20px;
    border-top: 1px solid var(--border);
    font-size: 0.72rem;
    color: var(--text-light);
}

/* ---- Scroll reveal ---- */
.reveal {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---- Legal Pages ---- */
.legal-page {
    padding: 160px 0 120px;
}

.legal-page h1 {
    font-family: var(--font-head);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    margin-bottom: 8px;
}

.legal-subtitle {
    font-size: 0.88rem;
    color: var(--text-light);
    margin-bottom: 56px;
}

.legal-content h2 {
    font-size: 1.3rem;
    margin-top: 48px;
    margin-bottom: 16px;
}

.legal-content h3 {
    font-size: 1.05rem;
    margin-top: 32px;
    margin-bottom: 12px;
}

.legal-content p {
    font-size: 0.95rem;
    color: var(--text-mid);
    line-height: 1.75;
    margin-bottom: 12px;
    max-width: 700px;
}

.legal-content ul {
    margin: 12px 0 12px 24px;
    max-width: 700px;
}

.legal-content li {
    font-size: 0.95rem;
    color: var(--text-mid);
    line-height: 1.75;
    margin-bottom: 4px;
}

.legal-content a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.legal-content a:hover {
    opacity: 0.7;
}

/* ---- Cookie Banner ---- */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 200;
    background: var(--bg-dark);
    color: #ede9e0;
    padding: 24px 32px;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.15);
}

.cookie-inner {
    max-width: 1060px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 32px;
}

.cookie-inner p {
    flex: 1;
    font-size: 0.88rem;
    line-height: 1.6;
    color: #9b9689;
}

.cookie-inner p a {
    color: var(--accent-light);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cookie-inner p a:hover {
    opacity: 0.8;
}

.cookie-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.cookie-btn {
    font-family: var(--font-head);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 12px 24px;
    border: none;
    cursor: pointer;
    transition: all 0.3s var(--ease);
    white-space: nowrap;
}

.cookie-accept {
    background: var(--accent);
    color: #fff;
}

.cookie-accept:hover {
    background: var(--accent-light);
}

.cookie-essential {
    background: transparent;
    color: #ede9e0;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.cookie-essential:hover {
    border-color: rgba(255, 255, 255, 0.4);
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .nav-links, .nav-contact { display: none; }

    .nav-toggle {
        display: flex;
        z-index: 1001;
    }

    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: fixed;
        inset: 0;
        background: var(--bg);
        justify-content: center;
        align-items: center;
        gap: 28px;
        z-index: 1000;
    }

    .nav-links.open a {
        font-family: var(--font-head);
        font-size: 1.6rem;
        font-weight: 600;
        color: var(--text);
    }

    .nav-toggle.active span:first-child {
        transform: rotate(45deg) translate(4px, 5px);
    }
    .nav-toggle.active span:last-child {
        transform: rotate(-45deg) translate(4px, -5px);
    }

    .hero { padding: 120px 24px 80px; }

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

    .team-grid { grid-template-columns: 1fr; gap: 40px; }
    .team-member { max-width: 320px; margin: 0 auto; }

    .project-item { flex-direction: column; gap: 24px; }
    .project-mockup { width: 100%; }
    .projects-cta { flex-direction: column; text-align: center; gap: 16px; }

    .contact-layout { flex-direction: column; gap: 48px; }

    .service-item { flex-direction: column; gap: 6px; }
    .service-item:hover { padding-left: 0; }

    .footer-inner { flex-direction: column; gap: 36px; }
    .footer-right { gap: 40px; }

    .cookie-inner { flex-direction: column; gap: 16px; text-align: center; }
    .cookie-actions { justify-content: center; }

    .process-steps { padding-left: 32px; }
    .bridge-divider { padding: 40px 0 20px; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 2.2rem; }
    .hero-actions { flex-direction: column; }
    .hero-actions a { text-align: center; }
}
