/* =========================================
   Prinz Robotics - Stylesheet
   Apple-inspired: greys + light blue accent
   ========================================= */

:root {
    /* Lighter warm-cream palette - clean studio-light feel */
    --bg: #F4F2EA;
    --bg-elevated: #EDEAE0;
    --surface: #ffffff;
    --surface-2: #FBFAF4;
    /* Glass cards stay white-translucent */
    --section-tint: rgba(255, 255, 255, 0.22);
    --glass-bg: rgba(255, 255, 255, 0.55);
    --glass-bg-hover: rgba(255, 255, 255, 0.72);
    --border: rgba(57, 56, 52, 0.08);
    --border-strong: rgba(57, 56, 52, 0.16);
    --border-hover: rgba(57, 56, 52, 0.28);
    --card-shadow:
        0 1px 2px rgba(0, 0, 0, 0.04),
        0 14px 36px rgba(0, 0, 0, 0.08);
    --card-shadow-hover:
        0 2px 4px rgba(0, 0, 0, 0.06),
        0 22px 50px rgba(0, 0, 0, 0.12);
    /* Logo black (primary text) */
    --text: #393834;
    /* Lighter variant for body/sub text */
    --text-dim: #6E6C66;
    --text-dimmer: #97958E;
    /* Hero copy */
    --hero-heading: #393834;
    --hero-eyebrow: #6E6C66;
    /* Darker gold accent — readable on silver/light video footage */
    --accent: #A8801C;
    --accent-hover: #C49623;
    --accent-strong: #82620F;
    --accent-glow: rgba(168, 128, 28, 0.32);
    --accent-tint-bg: rgba(168, 128, 28, 0.16);
    --accent-gradient: #393834;
    --accent-gradient-bg: #393834;
    /* Canvas grid - dots default to logo black (overridden via gradient per-dot) */
    --dot-color: 57, 56, 52;
    --dot-color-top: 168, 128, 28;        /* darker gold at peaks */
    --dot-color-bottom: 145, 152, 138;    /* cool grey-green at the bottom */
    --radius: 14px;
    --radius-sm: 10px;
    --max: 1180px;
    --font: 'Space Grotesk', system-ui, 'Segoe UI', Roboto, Ubuntu, sans-serif;
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img, svg, video, iframe { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--transition); }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; position: relative; z-index: 3; }

/* =========================================
   Hero video (scrolls along with the page)
   ========================================= */
.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    z-index: 0;
}

/* =========================================
   Dot-grid background (canvas)
   ========================================= */
#dotgrid {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 1;
}

/* =========================================
   Header
   ========================================= */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: none;
    pointer-events: none;
}
/* Header bar spans full viewport width - logo flush left, actions flush right */
.site-header .nav-container {
    pointer-events: auto;
    max-width: none;
    padding-left: clamp(20px, 3vw, 48px);
    padding-right: clamp(20px, 3vw, 48px);
}
.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}
.logo {
    display: inline-block;
    font-weight: 600;
    font-size: 18px;
    color: var(--text);
    letter-spacing: -0.2px;
    text-transform: lowercase;
    transition: color var(--transition);
}
.logo:hover { color: var(--accent); }
.main-nav {
    display: flex;
    gap: 32px;
}
.main-nav a {
    font-size: 14px;
    color: var(--text-dim);
    font-weight: 400;
    letter-spacing: -0.1px;
}
.main-nav a:hover { color: var(--text); }

.nav-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}
.lang-switch {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-dim);
    padding: 7px 12px;
    border: 1px solid var(--border-strong);
    border-radius: 6px;
    transition: all var(--transition);
    letter-spacing: 0.6px;
}

.lang-switch:hover { border-color: var(--accent); color: var(--text); }
.lang-switch .lang-active { color: var(--accent); font-weight: 600; }
.lang-switch.de .lang-active { color: var(--text-dim); font-weight: 500; }
.lang-switch.de .lang-inactive { color: var(--accent); font-weight: 600; }

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}
.menu-toggle span {
    width: 22px; height: 1.5px;
    background: var(--text);
    transition: all var(--transition);
}

/* Social icons (header + footer) */
.social-icons {
    display: flex;
    align-items: center;
    gap: 8px;
}
.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px; height: 34px;
    border-radius: 50%;
    color: var(--text-dim);
    transition: all var(--transition);
}
.social-icons a:hover {
    color: var(--accent);
    background: var(--accent-tint-bg);
}
.social-icons svg {
    width: 17px; height: 17px;
}

/* =========================================
   Hero
   ========================================= */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    padding: 120px 0 64px;
}
/* Hero block stretches to viewport edges, padding aligned with header */
.hero > .container {
    max-width: none;
    padding-left: clamp(20px, 3vw, 48px);
    padding-right: clamp(20px, 3vw, 48px);
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 760px;
}

/* After-hero block (subtitle + CTAs) - appears after a small scroll */
.hero-cta-section {
    padding: 32px 0 80px;
    position: relative;
    z-index: 2;
}
.hero-cta-section > .container {
    max-width: none;
    padding-left: clamp(20px, 3vw, 48px);
    padding-right: clamp(20px, 3vw, 48px);
}
.hero-cta-section .hero-subtitle {
    margin-bottom: 28px;
    max-width: 720px;
}
.hero-cta-section .hero-cta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}
.hero-eyebrow {
    color: var(--hero-eyebrow);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.4px;
    margin-bottom: 18px;
    text-transform: none;
}
.hero-title {
    font-size: clamp(2rem, 4.2vw, 3.4rem);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.5px;
    max-width: 860px;
    margin-bottom: 0;
    color: var(--hero-heading);
}
.hero-title .accent-word {
    /* Accent yellow for the highlighted phrase */
    color: var(--accent);
    background: none;
    -webkit-background-clip: initial;
    background-clip: initial;
    -webkit-text-fill-color: currentColor;
}
.hero-subtitle {
    font-size: clamp(1rem, 1.3vw, 1.18rem);
    color: var(--hero-eyebrow);
    max-width: 700px;
    margin-bottom: 32px;
    line-height: 1.55;
}
.hero-cta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 24px;
    border-radius: 18px;       /* squircle */
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.2px;
    transition: all var(--transition);
    cursor: pointer;
}
.btn-primary {
    background: rgba(40, 44, 52, 0.18);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--text-dim);
    border: 1px solid rgba(0, 0, 0, 0.06);
}
.btn-primary:hover {
    background: rgba(40, 44, 52, 0.28);
    transform: translateY(-1px);
}
.btn-secondary {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border-strong);
    border-radius: 18px;
}
.btn-secondary:hover {
    border-color: var(--text);
    background: rgba(0, 0, 0, 0.04);
}

/* =========================================
   Sections
   ========================================= */
.section {
    padding: 110px 0;
    position: relative;
    z-index: 2;
    background: transparent;
}
/* Sections share the body background; visual separation comes from glass cards (about-facts, contact-glass) */
.section-about,
.section-services,
.section-projects,
.section-contact,
.section-do { background: transparent; }

.section-header {
    text-align: center;
    margin-bottom: 64px;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}
.section-eyebrow {
    display: inline-block;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.3px;
    margin-bottom: 14px;
}
.section-title {
    font-size: clamp(1.9rem, 3.5vw, 2.8rem);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.5px;
    margin-bottom: 14px;
}
.section-lead {
    color: var(--text-dim);
    font-size: 1.05rem;
    line-height: 1.5;
}

/* =========================================
   About
   ========================================= */
.about-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 60px;
    align-items: start;
}
.about-text p {
    color: var(--text-dim);
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 20px;
}
.about-text strong {
    color: var(--text);
    font-weight: 500;
}
.about-facts {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: var(--radius);
    border: none;
    box-shadow: var(--card-shadow);
    padding: 28px;
}
.fact {
    display: flex;
    flex-direction: column;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}
.fact:last-child { border-bottom: none; padding-bottom: 0; }
.fact:first-child { padding-top: 0; }
.fact-label {
    color: var(--text-dimmer);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 4px;
    font-weight: 500;
}
.fact-value {
    color: var(--text);
    font-weight: 400;
    font-size: 0.95rem;
}

/* =========================================
   Services
   ========================================= */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}
.service-card {
    position: relative;
    background: linear-gradient(135deg, #ffffff 0%, #FBF8F0 100%);
    border: none;
    border-radius: var(--radius);
    box-shadow: var(--card-shadow);
    overflow: hidden;
    min-height: 440px;
    display: flex;
    align-items: flex-end;
    transition: transform var(--transition), box-shadow var(--transition);
}
.service-card:hover {
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-3px);
}
/* Background image fills the whole card */
.service-media {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}
.service-media::after {
    content: attr(data-label);
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dimmer);
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    text-align: center;
    padding: 24px;
    opacity: 0.5;
    z-index: 0;
}
.service-media img,
.service-media video {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
/* Plot-style media: keep the full plot visible (no cropping) */
.service-card--plot .service-media img {
    object-fit: contain;
    object-position: center top;
    padding: 28px 32px 96px;
}
/* Text overlay sitting on the bottom of the card */
.service-body {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 40px 44px 36px;
    background: linear-gradient(0deg, rgba(255, 255, 255, 0.62) 0%, rgba(255, 255, 255, 0.38) 65%, rgba(255, 255, 255, 0) 100%);
}
.service-body h3 {
    color: var(--text-dim); /* near-black */
}
.service-body p {
    color: var(--text);
    max-width: 720px;
}
.service-card h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
    font-weight: 600;
    letter-spacing: -0.2px;
}
.service-card p {
    color: var(--text-dim);
    font-size: 0.94rem;
    line-height: 1.55;
}

/* =========================================
   What we do – tile-row layout (combined services)
   ========================================= */

.do-rows {
    display: flex;
    flex-direction: column;
    gap: 72px;
}
.do-row {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 56px;
    align-items: center;
}
/* Alternating: even rows have the tile on the right */
.do-row:nth-child(even) > .do-tile { order: 2; }
.do-row:nth-child(even) > .do-text { order: 1; }

.do-tile {
    position: relative;
    aspect-ratio: 4 / 3;
    border-radius: 36px;
    overflow: hidden;
    background: var(--bg-elevated);
    box-shadow: var(--card-shadow);
    isolation: isolate;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.do-row:hover .do-tile { box-shadow: var(--card-shadow-hover); }
/* Carousel slides container — slides flow horizontally, transform moves between them */
.do-slides {
    position: absolute;
    inset: 0;
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}
.do-slide {
    position: relative;
    flex: 0 0 100%;
    height: 100%;
    overflow: hidden;
}
.do-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.9s cubic-bezier(0.4, 0, 0.2, 1);
}
.do-row:hover .do-slide.is-active .do-media { transform: scale(1.04); }

/* Plot-style slide gets the cream background and contained sizing */
.do-slide--plot {
    background: linear-gradient(135deg, #ffffff 0%, #FBF8F0 100%);
}
.do-slide--plot .do-media {
    object-fit: contain;
    padding: 18px 22px;
}

/* Arrow nav buttons (light line arrows, subtle frosted glass background) */
.do-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(15, 14, 12, 0.18);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0.82;
    z-index: 3;
    transition: opacity 0.2s ease, background 0.2s ease, transform 0.25s ease;
}
.do-arrow:hover {
    opacity: 1;
    background: rgba(15, 14, 12, 0.34);
}
.do-arrow:active { transform: translateY(-50%) scale(0.94); }
.do-arrow svg { width: 18px; height: 18px; }
.do-arrow-prev { left: 14px; }
.do-arrow-next { right: 14px; }
/* Plot tile arrows: dark line on light bg */
.do-tile:has(.do-slide.is-active.do-slide--plot) .do-arrow,
.do-tile.is-plot-active .do-arrow {
    color: var(--text);
    background: rgba(255, 255, 255, 0.45);
    border-color: rgba(57, 56, 52, 0.18);
}
.do-tile:has(.do-slide.is-active.do-slide--plot) .do-arrow:hover,
.do-tile.is-plot-active .do-arrow:hover {
    background: rgba(255, 255, 255, 0.7);
}

/* Slide indicator dots (bottom centre) */
.do-dots {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 3;
    pointer-events: none;
}
.do-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    transition: width 0.35s ease, background 0.25s ease;
}
.do-dot.is-active {
    width: 18px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.9);
}
.do-tile.is-plot-active .do-dot { background: rgba(57, 56, 52, 0.35); }
.do-tile.is-plot-active .do-dot.is-active { background: var(--accent); }

.do-text {
    padding: 4px 0;
}
.do-tag {
    display: inline-block;
    font-family: var(--font);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1.2px;
    color: var(--accent);
    margin-bottom: 14px;
}
.do-text h3 {
    font-size: clamp(1.4rem, 2vw, 1.7rem);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.4px;
    margin-bottom: 12px;
    color: var(--text);
}
.do-text p {
    color: var(--text-dim);
    font-size: 1.02rem;
    line-height: 1.6;
    max-width: 520px;
}

/* Tablet — slightly tighter */
@media (max-width: 1100px) and (min-width: 881px) {
    .do-rows { gap: 60px; }
    .do-row { gap: 40px; }
}

/* Mobile / tablet portrait — stack vertically with media on top */
@media (max-width: 880px) {
    .do-rows { gap: 48px; }
    .do-row {
        grid-template-columns: 1fr;
        gap: 22px;
    }
    .do-row:nth-child(even) > .do-tile { order: 0; }
    .do-row:nth-child(even) > .do-text { order: 1; }
    .do-tile { aspect-ratio: 16 / 10; border-radius: 28px; }
}

@media (max-width: 500px) {
    .do-tile { border-radius: 24px; }
    .do-text h3 { font-size: 1.25rem; }
    .do-text p { font-size: 0.95rem; }
}

/* =========================================
   Legacy: Workshop tiles (kept for compatibility if needed)
   ========================================= */
.section-workshop { background: rgba(255, 255, 255, 0.30); }

.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 18px;
}
.work-tile {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: 32px;
    overflow: hidden;
    background: var(--bg-elevated);
    box-shadow: var(--card-shadow);
    cursor: default;
    isolation: isolate;
    transition:
        transform 0.45s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}
.work-tile:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-shadow-hover);
}
.work-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    z-index: 0;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1), filter var(--transition);
}
.work-tile:hover .work-media {
    transform: scale(1.05);
}
.work-tile-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 22px 22px 20px;
    color: #ffffff;
    background: linear-gradient(180deg,
        rgba(15, 14, 12, 0) 0%,
        rgba(15, 14, 12, 0) 40%,
        rgba(15, 14, 12, 0.55) 78%,
        rgba(15, 14, 12, 0.82) 100%);
    pointer-events: none;
}
.work-tag {
    display: inline-block;
    align-self: flex-start;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--accent);
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    padding: 5px 10px;
    border-radius: 999px;
    margin-bottom: auto;
}
.work-tile-overlay h3 {
    font-size: 1.08rem;
    font-weight: 600;
    letter-spacing: -0.2px;
    margin-bottom: 4px;
    margin-top: 0;
}
.work-tile-overlay p {
    font-size: 0.84rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.82);
    margin: 0;
}
/* Smaller tiles on tablets */
@media (max-width: 880px) {
    .work-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 14px;
    }
    .work-tile { border-radius: 26px; }
    .work-tile-overlay { padding: 16px 16px 14px; }
    .work-tile-overlay h3 { font-size: 0.98rem; }
    .work-tile-overlay p { font-size: 0.78rem; }
}
@media (max-width: 500px) {
    .work-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .work-tile { border-radius: 22px; }
}

/* =========================================
   Projects
   ========================================= */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}
.project-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: none;
    border-radius: var(--radius);
    box-shadow: var(--card-shadow);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
}
.project-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-shadow-hover);
}
.project-media {
    aspect-ratio: 16 / 10;
    background: #000;
    position: relative;
    overflow: hidden;
}
.project-media iframe,
.project-media video,
.project-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: none;
}
.project-card.is-short .project-media {
    aspect-ratio: 16 / 10;
    background: #000;
}
.project-card.is-short .project-media iframe {
    /* For a 9:16 short shown in 16:10 container, scale & center */
    aspect-ratio: 9 / 16;
    height: 100%;
    width: auto;
    margin: 0 auto;
    display: block;
}

.project-body { padding: 24px 24px 26px; }
.project-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    margin-bottom: 10px;
}
.project-body h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
    font-weight: 600;
    letter-spacing: -0.2px;
}
.project-body p {
    color: var(--text-dim);
    font-size: 0.94rem;
    line-height: 1.55;
}
.project-link {
    display: inline-block;
    margin-top: 14px;
    color: var(--accent);
    font-size: 0.88rem;
    font-weight: 500;
    transition: color var(--transition);
}
.project-link:hover { color: var(--accent-hover); }

/* Channel CTA below projects */
.channel-cta {
    margin-top: 64px;
    text-align: center;
    padding: 56px 32px;
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: none;
    border-radius: var(--radius);
    box-shadow: var(--card-shadow);
}
.channel-cta h3 {
    font-size: 1.7rem;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}
.channel-cta p {
    color: var(--text-dim);
    max-width: 600px;
    margin: 0 auto 28px;
    font-size: 1.02rem;
}
.channel-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}
.channel-buttons .btn {
    display: inline-flex;
    align-items: center;
}

/* =========================================
   Contact
   ========================================= */
.contact-glass {
    width: 100%;
    margin: 0 auto;
    padding: 56px 32px;
    border-radius: var(--radius);
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: var(--card-shadow);
}
.contact-glass .section-header {
    margin-bottom: 32px;
}
.contact-simple {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}
.email-cta {
    display: inline-block;
    font-size: clamp(1.5rem, 3.5vw, 2.4rem);
    font-weight: 600;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    letter-spacing: -0.5px;
    padding: 14px 24px;
    border-radius: 12px;
    transition: opacity var(--transition), transform var(--transition);
    text-decoration: none;
    word-break: break-all;
}
.email-cta:hover {
    opacity: 0.85;
    transform: translateY(-1px);
}
.contact-meta {
    margin-top: 48px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    text-align: center;
}
.contact-meta-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}
.contact-meta-item .contact-label {
    color: var(--text-dimmer);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 500;
}
.contact-meta-item > span:not(.contact-label) {
    color: var(--text-dim);
    font-size: 0.95rem;
}
.contact-meta-item .address-img {
    margin-top: 4px;
}
.contact-socials a {
    color: var(--accent);
    transition: color var(--transition);
}
.contact-socials a:hover { color: var(--accent-hover); }

@media (max-width: 700px) {
    .contact-meta {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* Legacy contact-grid (still used as no-op fallback) */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 48px;
    align-items: start;
    max-width: 980px;
    margin: 0 auto;
}
.contact-info {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: none;
    border-radius: var(--radius);
    box-shadow: var(--card-shadow);
    padding: 28px;
}
.contact-item {
    display: flex;
    flex-direction: column;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}
.contact-item:last-child { border-bottom: none; padding-bottom: 0; }
.contact-item:first-child { padding-top: 0; }
.contact-label {
    color: var(--text-dimmer);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 6px;
    font-weight: 500;
}
.contact-item a { color: var(--accent); font-weight: 400; }
.contact-item a:hover { color: var(--accent-hover); text-decoration: underline; }

/* Address image: non-selectable, non-draggable, non-saveable (best effort) */
.address-img {
    height: 17px;
    width: auto;
    margin-top: 2px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
    -webkit-touch-callout: none;
    pointer-events: none;
    image-rendering: -webkit-optimize-contrast;
    /* Slight opacity match with other body text */
    opacity: 0.92;
}
/* PNG was rendered in near-white - invert to dark grey for light page */
.address-img {
    filter: invert(1) brightness(0.45);
}
/* Inline variant for the imprint/privacy paragraph flow */
.address-img-legal {
    display: inline-block;
    vertical-align: -3px;
    margin-top: 0;
    opacity: 1;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.form-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.form-row label {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.6px;
}
.form-row input,
.form-row textarea {
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    color: var(--text);
    font-family: inherit;
    font-size: 15px;
    transition: border-color var(--transition);
}
.form-row input:focus,
.form-row textarea:focus {
    outline: none;
    border-color: var(--accent);
}
.form-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.88rem;
    color: var(--text-dim);
    line-height: 1.45;
}
.form-check input { margin-top: 4px; accent-color: var(--accent); }
.form-check a { color: var(--accent); text-decoration: underline; }
.form-note {
    font-size: 0.82rem;
    color: var(--text-dimmer);
    text-align: center;
}

/* =========================================
   Footer
   ========================================= */
.site-footer {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-top: none;
    padding: 60px 0 36px;
    position: relative;
    z-index: 2;
}
/* Footer bar spans full viewport - brand left, copy right */
.site-footer .footer-container {
    max-width: none;
    padding-left: clamp(20px, 3vw, 48px);
    padding-right: clamp(20px, 3vw, 48px);
}
.footer-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
}
.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}
.footer-brand strong { display: block; font-weight: 600; font-size: 1rem; text-transform: lowercase; letter-spacing: -0.2px; }
.footer-brand span {
    display: block;
    color: var(--text-dimmer);
    font-size: 0.82rem;
}
.footer-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}
.footer-nav {
    display: flex;
    gap: 24px;
}
.footer-nav a {
    color: var(--text-dim);
    font-size: 0.88rem;
}
.footer-nav a:hover { color: var(--text); }
.footer-socials a {
    width: 32px; height: 32px;
}
.footer-copy {
    color: var(--text-dimmer);
    font-size: 0.82rem;
}

/* =========================================
   Legal pages (Impressum / Datenschutz)
   ========================================= */
.legal-page {
    padding: 130px 0 80px;
    min-height: 100vh;
    position: relative;
    z-index: 2;
}
.legal-content {
    max-width: 800px;
    margin: 0 auto;
}
.legal-content h1 {
    font-size: 2.2rem;
    margin-bottom: 32px;
    font-weight: 700;
    letter-spacing: -1px;
}
.legal-content h2 {
    font-size: 1.35rem;
    margin: 36px 0 14px;
    color: var(--text);
    font-weight: 600;
    letter-spacing: -0.3px;
}
.legal-content h3 {
    font-size: 1.05rem;
    margin: 22px 0 10px;
    font-weight: 600;
    color: var(--accent);
}
.legal-content p,
.legal-content li {
    color: var(--text-dim);
    margin-bottom: 12px;
    line-height: 1.65;
    font-size: 0.97rem;
}
.legal-content ul {
    padding-left: 22px;
    margin-bottom: 16px;
}
.legal-content a {
    color: var(--accent);
    text-decoration: underline;
}
.legal-content strong { color: var(--text); font-weight: 500; }

/* =========================================
   Responsive
   ========================================= */

/* Tablet landscape / small desktop (881-1100px) */
@media (min-width: 881px) and (max-width: 1100px) {
    .container { padding: 0 28px; }
    .section { padding: 90px 0; }
    .hero { padding: 110px 0 60px; }
    .projects-grid { grid-template-columns: repeat(3, 1fr); }
    .about-grid { gap: 48px; }
}

/* Tablet portrait + smaller (max 880px) */
@media (max-width: 880px) {
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .main-nav {
        display: none;
        position: absolute;
        top: 64px;
        left: 0; right: 0;
        flex-direction: column;
        background: var(--mobile-nav-bg);
        backdrop-filter: blur(20px);
        padding: 20px 24px;
        gap: 18px;
    }
    .main-nav.open { display: flex; }
    .menu-toggle { display: flex; }
    .section { padding: 72px 0; }
    .hero { padding: 100px 0 40px; min-height: 75vh; }
    .hero-title { font-size: clamp(2rem, 6vw, 3rem); letter-spacing: -0.5px; }
    .header-socials { display: none; }
    .footer-container {
        flex-direction: column;
        text-align: center;
    }
    .channel-cta { padding: 36px 20px; }
    .channel-cta h3 { font-size: 1.35rem; }
    /* 2-spaltige Project-Grids auf Tablet Portrait, Services bleiben einspaltig */
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }
    /* Service cards stack vertically (image on top, body below) on smaller screens */
    .service-card {
        grid-template-columns: 1fr;
    }
    .service-media {
        aspect-ratio: 16 / 10;
        min-height: 0;
    }
    .service-body {
        padding: 28px;
    }
}

/* Large phones / small tablets (max 700px) */
@media (max-width: 700px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
    .nav-container { height: 60px; }
    .main-nav { top: 60px; }
    .section-header { margin-bottom: 48px; }
    .hero { min-height: auto; }
}

/* Phones (max 500px) */
@media (max-width: 500px) {
    .hero-cta { flex-direction: column; }
    .hero-cta .btn { width: 100%; }
    .container { padding: 0 18px; }
    .service-body, .about-facts, .contact-info { padding: 22px; }
    .section { padding: 56px 0; }
    /* Hero on mobile: text sits bottom-left, video fills the rest of the viewport */
    .hero {
        padding: 88px 0 28px;
        min-height: 100vh;
        align-items: flex-end;
    }
    .hero-eyebrow { font-size: 12px; margin-bottom: 14px; }
    .hero-title { font-size: clamp(1.8rem, 7vw, 2.4rem); }
    .hero-subtitle { font-size: 1rem; }
    .btn { padding: 14px 22px; font-size: 15px; }
    .legal-content h1 { font-size: 1.8rem; }
    .legal-content h2 { font-size: 1.15rem; }
    .channel-cta h3 { font-size: 1.2rem; }
    .logo { font-size: 16px; }
    /* On phones the service-media aspect can be a bit tighter */
    .service-media { aspect-ratio: 16 / 9; }
}
