/* =============================================================
   OLIVARES — Elektrotechnik
   Design system: Editorial Albero (luminoso, oficio premium)
   ============================================================= */

/* ----- Tokens ------------------------------------------------ */
:root {
    /* Surfaces (albero / hueso / arena) */
    --paper:        #F5F0E8;   /* fondo principal (color albero, arena del ruedo) */
    --paper-soft:   #FBF8F1;   /* cards y elementos elevados */
    --paper-deep:   #EBE4D4;   /* fondo alterno, secciones */
    --paper-dark:   #DDD3BD;   /* fondos de mayor contraste */

    /* Tinta (tabaco viejo, no negro puro) */
    --ink:          #2C2419;
    --ink-soft:     #5A4D3C;
    --ink-mute:     #8B7E6B;
    --ink-faint:    rgba(44, 36, 25, 0.06);

    /* Líneas */
    --line:         rgba(44, 36, 25, 0.10);
    --line-strong:  rgba(44, 36, 25, 0.20);
    --line-gold:    rgba(184, 136, 78, 0.30);

    /* Acción (sangre de toro) */
    --sangre:       #7A1F2B;
    --sangre-hover: #921F33;
    --sangre-soft:  #B83B4F;
    --sangre-glow:  rgba(122, 31, 43, 0.18);

    /* Acento (oro viejo) */
    --oro:          #B8884E;
    --oro-deep:     #9A6F3A;
    --oro-soft:     #D3AF7C;
    --oro-glow:     rgba(184, 136, 78, 0.20);

    /* Estado */
    --success:      #5C8A6B;
    --warning:      #C68A2A;
    --danger:       #B23434;

    /* Tipografía — técnica industrial */
    --font-display: 'Space Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono:    'JetBrains Mono', 'IBM Plex Mono', 'Courier New', monospace;

    /* Tamaños base */
    --fs-12: 0.75rem;
    --fs-14: 0.875rem;
    --fs-16: 1rem;
    --fs-18: 1.125rem;
    --fs-20: 1.25rem;
    --fs-24: 1.5rem;
    --fs-32: 2rem;

    --fs-hero:    clamp(3rem, 9vw, 7.5rem);
    --fs-display: clamp(2.5rem, 6vw, 5rem);
    --fs-h1:      clamp(2.25rem, 5vw, 4rem);
    --fs-h2:      clamp(1.75rem, 3.5vw, 2.75rem);
    --fs-h3:      clamp(1.25rem, 2.2vw, 1.875rem);
    --fs-h4:      clamp(1.125rem, 1.5vw, 1.375rem);

    /* Espaciado escala 4 */
    --s-1:  0.25rem;
    --s-2:  0.5rem;
    --s-3:  0.75rem;
    --s-4:  1rem;
    --s-5:  1.5rem;
    --s-6:  2rem;
    --s-7:  3rem;
    --s-8:  4rem;
    --s-9:  6rem;
    --s-10: 8rem;
    --s-11: 12rem;

    /* Radii */
    --r-xs:   4px;
    --r-sm:   8px;
    --r-md:   12px;
    --r-lg:   20px;
    --r-xl:   28px;
    --r-pill: 999px;

    /* Sombras teñidas (cálidas, no negras puras) */
    --shadow-1: 0 1px 2px rgba(44, 36, 25, 0.05);
    --shadow-2: 0 4px 14px -4px rgba(44, 36, 25, 0.10);
    --shadow-3: 0 18px 40px -14px rgba(44, 36, 25, 0.18);
    --shadow-4: 0 32px 64px -20px rgba(44, 36, 25, 0.22);
    --shadow-glow-oro:    0 12px 32px -10px rgba(184, 136, 78, 0.35);
    --shadow-glow-sangre: 0 12px 32px -10px rgba(122, 31, 43, 0.32);

    /* Layout */
    --container: 1280px;
    --container-narrow: 880px;
    --gutter: clamp(1.25rem, 3vw, 2.5rem);

    /* Motion */
    --ease:         cubic-bezier(0.16, 1, 0.3, 1);
    --ease-soft:    cubic-bezier(0.2, 0.7, 0.2, 1);
    --dur-fast:     150ms;
    --dur-med:      280ms;
    --dur-slow:     500ms;
    --dur-reveal:   800ms;
}

/* ----- Reset moderno ----------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; }
html, body { height: 100%; }
body {
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}
img, picture, svg, video, canvas { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; padding: 0; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
:focus-visible {
    outline: 2px solid var(--oro);
    outline-offset: 3px;
    border-radius: var(--r-xs);
}
::selection { background: var(--sangre); color: var(--paper); }

/* ----- Base -------------------------------------------------- */
body {
    font-family: var(--font-body);
    font-size: var(--fs-16);
    font-weight: 400;
    color: var(--ink);
    background: var(--paper);
    background-image:
        radial-gradient(ellipse 80% 50% at 0% 0%, rgba(184, 136, 78, 0.08), transparent 50%),
        radial-gradient(ellipse 50% 40% at 100% 100%, rgba(122, 31, 43, 0.05), transparent 50%);
    background-attachment: fixed;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Tipografía base — Space Grotesk técnico */
h1, h2, h3, h4, h5 {
    font-family: var(--font-display);
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: -0.025em;
    color: var(--ink);
    text-wrap: balance;
}
h1 { font-size: var(--fs-hero); font-weight: 600; letter-spacing: -0.04em; line-height: 0.95; }
h2 { font-size: var(--fs-display); font-weight: 600; letter-spacing: -0.035em; }
h3 { font-size: var(--fs-h2); font-weight: 500; letter-spacing: -0.025em; }
h4 { font-size: var(--fs-h3); font-weight: 500; }
h5 { font-size: var(--fs-h4); font-weight: 500; letter-spacing: -0.015em; }

/* Énfasis sin italic — sustituido por color sangre + weight más fuerte */
h1 em, h2 em, h3 em, h4 em, h5 em {
    font-style: normal;
    color: var(--sangre);
    font-weight: 700;
}

p { color: var(--ink-soft); line-height: 1.65; max-width: 65ch; }
p.lead { font-size: var(--fs-20); color: var(--ink); line-height: 1.5; max-width: 56ch; }
p strong { color: var(--ink); font-weight: 600; }

a:not(.btn):not(.nav-link) {
    color: var(--sangre);
    transition: color var(--dur-fast) var(--ease);
    border-bottom: 1px solid transparent;
}
a:not(.btn):not(.nav-link):hover { color: var(--ink); border-bottom-color: var(--sangre); }

small { font-size: var(--fs-14); color: var(--ink-mute); }

/* Eyebrow / kicker */
.eyebrow {
    font-family: var(--font-body);
    font-size: var(--fs-12);
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--sangre);
    display: inline-flex;
    align-items: center;
    gap: var(--s-3);
}
.eyebrow::before {
    content: '';
    width: 24px;
    height: 1px;
    background: var(--sangre);
}
.eyebrow.no-rule::before { display: none; }
.eyebrow.gold { color: var(--oro-deep); }
.eyebrow.gold::before { background: var(--oro-deep); }

/* Numeric display */
.numeral {
    font-family: var(--font-display);
    font-weight: 500;
    font-variant-numeric: lining-nums tabular-nums;
    letter-spacing: -0.04em;
    color: var(--ink);
}

/* ----- Layout helpers ---------------------------------------- */
.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--gutter);
}
.container-narrow {
    width: 100%;
    max-width: var(--container-narrow);
    margin-inline: auto;
    padding-inline: var(--gutter);
}
.section {
    padding-block: clamp(4rem, 10vw, 8rem);
    position: relative;
}
.section-tight { padding-block: clamp(3rem, 6vw, 5rem); }
.section-paper-deep { background: var(--paper-deep); }
.divider {
    height: 1px;
    background: var(--line);
    width: 100%;
    margin-block: var(--s-7);
}

/* ----- Botones ----------------------------------------------- */
.btn {
    --btn-bg: var(--paper-soft);
    --btn-ink: var(--ink);
    --btn-border: var(--line-strong);

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--s-3);
    padding: var(--s-4) var(--s-6);
    min-height: 52px;
    border-radius: var(--r-pill);
    background: var(--btn-bg);
    color: var(--btn-ink);
    border: 1px solid var(--btn-border);
    font-size: var(--fs-14);
    font-weight: 500;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: transform var(--dur-med) var(--ease),
                background var(--dur-med) var(--ease),
                border-color var(--dur-med) var(--ease),
                box-shadow var(--dur-med) var(--ease),
                color var(--dur-med) var(--ease);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}
.btn .icon { width: 16px; height: 16px; transition: transform var(--dur-med) var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn:hover .icon { transform: translateX(3px); }

.btn-primary {
    --btn-bg: var(--sangre);
    --btn-ink: var(--paper);
    --btn-border: var(--sangre);
    box-shadow: var(--shadow-glow-sangre);
}
.btn-primary:hover {
    --btn-bg: var(--sangre-hover);
    --btn-border: var(--sangre-hover);
    box-shadow: 0 18px 48px -12px rgba(122, 31, 43, 0.5);
}

.btn-gold {
    --btn-bg: transparent;
    --btn-ink: var(--oro-deep);
    --btn-border: var(--oro);
}
.btn-gold:hover {
    --btn-bg: var(--oro);
    --btn-ink: var(--paper);
    box-shadow: var(--shadow-glow-oro);
}

.btn-ghost {
    --btn-bg: transparent;
    --btn-ink: var(--ink);
    --btn-border: var(--line-strong);
}
.btn-ghost:hover {
    --btn-border: var(--ink);
    --btn-bg: var(--ink-faint);
}

.btn-sm { min-height: 40px; padding: var(--s-2) var(--s-5); font-size: var(--fs-12); }

/* Link with arrow */
.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: var(--s-3);
    color: var(--ink);
    font-size: var(--fs-14);
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border-bottom: 1px solid var(--line-strong);
    padding-bottom: var(--s-2);
    transition: color var(--dur-med) var(--ease), border-color var(--dur-med) var(--ease);
}
.link-arrow .icon {
    width: 18px;
    height: 12px;
    transition: transform var(--dur-med) var(--ease);
}
.link-arrow:hover {
    color: var(--sangre);
    border-bottom-color: var(--sangre);
}
.link-arrow:hover .icon { transform: translateX(5px); }

/* ----- Logo / marca "El Hierro" ------------------------------ */
.brand {
    display: inline-flex;
    align-items: center;
    gap: var(--s-4);
    color: var(--ink);
}
.brand-mark {
    width: 78px;
    height: 50px;
    color: var(--ink);
    flex-shrink: 0;
    transition: transform var(--dur-slow) var(--ease);
}
.brand:hover .brand-mark { transform: scale(1.04); }
.brand-mark .brand-arc { mix-blend-mode: normal; }
.brand-wordmark {
    font-family: var(--font-display);
    font-size: var(--fs-20);
    font-weight: 600;
    letter-spacing: 0.12em;
    color: var(--ink);
    line-height: 1;
}
.brand-tagline {
    font-family: var(--font-mono);
    font-size: 0.625rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--oro-deep);
    margin-top: 4px;
    line-height: 1;
}
.brand-stack { display: flex; flex-direction: column; }

/* ----- Header ------------------------------------------------ */
.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    padding-block: var(--s-4);
    transition: background var(--dur-med) var(--ease),
                backdrop-filter var(--dur-med) var(--ease),
                border-color var(--dur-med) var(--ease);
    border-bottom: 1px solid transparent;
}
.site-header.scrolled {
    background: rgba(245, 240, 232, 0.85);
    backdrop-filter: saturate(1.4) blur(16px);
    -webkit-backdrop-filter: saturate(1.4) blur(16px);
    border-bottom-color: var(--line);
}
.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--s-5);
}
.nav-primary {
    display: flex;
    align-items: center;
    gap: var(--s-2);
}
.nav-link {
    position: relative;
    padding: var(--s-3) var(--s-4);
    font-size: var(--fs-14);
    font-weight: 500;
    color: var(--ink-soft);
    transition: color var(--dur-med) var(--ease);
}
.nav-link::after {
    content: '';
    position: absolute;
    left: var(--s-4);
    right: var(--s-4);
    bottom: var(--s-2);
    height: 1px;
    background: var(--sangre);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--dur-med) var(--ease);
}
.nav-link:hover, .nav-link.is-active { color: var(--ink); }
.nav-link:hover::after, .nav-link.is-active::after { transform: scaleX(1); }

.nav-cta {
    display: flex;
    align-items: center;
    gap: var(--s-3);
}

/* Language switcher */
.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: var(--s-1);
    padding: var(--s-1) var(--s-3);
    border: 1px solid var(--line-strong);
    border-radius: var(--r-pill);
    background: var(--paper-soft);
}
.lang-switch a {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-mute);
    padding: var(--s-1) var(--s-2);
    border-radius: var(--r-pill);
    border-bottom: none !important;
    transition: all var(--dur-fast) var(--ease);
}
.lang-switch a:hover { color: var(--ink); }
.lang-switch a.is-active {
    color: var(--paper);
    background: var(--ink);
}

.notdienst-pill {
    display: inline-flex;
    align-items: center;
    gap: var(--s-2);
    padding: var(--s-2) var(--s-4);
    border-radius: var(--r-pill);
    background: var(--paper-soft);
    border: 1px solid var(--line);
    font-size: var(--fs-12);
    color: var(--ink-soft);
    transition: all var(--dur-med) var(--ease);
}
.notdienst-pill:hover {
    border-color: var(--sangre);
    color: var(--ink);
}
.notdienst-pill .dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--sangre);
    animation: pulse-dot 2s var(--ease) infinite;
}
@keyframes pulse-dot {
    0%, 100% { box-shadow: 0 0 0 0 rgba(122, 31, 43, 0.5); }
    50%      { box-shadow: 0 0 0 8px rgba(122, 31, 43, 0); }
}

.hamburger {
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: var(--r-pill);
    border: 1px solid var(--line-strong);
    color: var(--ink);
    background: var(--paper-soft);
}
.hamburger svg { width: 18px; height: 18px; }

@media (max-width: 1024px) {
    .nav-primary { display: none; }
    .nav-cta .notdienst-pill span:not(.dot) { display: none; }
    .hamburger { display: inline-flex; }
}
@media (max-width: 760px) {
    .nav-cta .btn:not(.always-visible) { display: none; }
}

/* Mobile menu */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: var(--paper);
    display: flex;
    flex-direction: column;
    padding: var(--s-7) var(--gutter);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--dur-med) var(--ease), visibility var(--dur-med);
}
.mobile-menu.is-open { opacity: 1; visibility: visible; }
.mobile-menu-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.mobile-menu nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: var(--s-5);
}
.mobile-menu nav a {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: 600;
    color: var(--ink);
    letter-spacing: -0.03em;
    line-height: 1;
}
.mobile-menu nav a:hover { color: var(--sangre); }
.mobile-menu .footer-mini {
    color: var(--ink-mute);
    font-size: var(--fs-14);
    border-top: 1px solid var(--line);
    padding-top: var(--s-5);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ----- Hero -------------------------------------------------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-block: clamp(8rem, 16vw, 12rem) clamp(4rem, 8vw, 6rem);
    overflow: hidden;
}
.hero-bg-mark {
    position: absolute;
    top: 50%;
    right: -10%;
    transform: translateY(-50%);
    width: clamp(500px, 70vw, 1100px);
    color: var(--ink);
    opacity: 0.06;
    pointer-events: none;
    z-index: 0;
}
.page-hero-mark {
    color: var(--ink);
    opacity: 0.05;
}
.hero-inner { position: relative; z-index: 2; max-width: 920px; }
.hero h1 {
    font-weight: 400;
    margin-block: var(--s-5) var(--s-6);
}
.hero h1 em {
    font-style: normal;
    color: var(--sangre);
    font-weight: 700;
}
.hero-lead {
    font-size: clamp(1.125rem, 1.6vw, 1.375rem);
    color: var(--ink-soft);
    max-width: 56ch;
    line-height: 1.55;
    margin-bottom: var(--s-7);
}
.hero-actions {
    display: flex;
    align-items: center;
    gap: var(--s-4);
    flex-wrap: wrap;
}
.hero-meta {
    display: flex;
    align-items: center;
    gap: var(--s-5);
    margin-top: var(--s-9);
    padding-top: var(--s-5);
    border-top: 1px solid var(--line);
    font-size: var(--fs-12);
    color: var(--ink-mute);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    flex-wrap: wrap;
}
.hero-meta strong { color: var(--ink); font-weight: 500; }
.hero-meta .sep { color: var(--line-strong); }

/* ----- Three pillars ---------------------------------------- */
.pillars { background: var(--paper-deep); border-block: 1px solid var(--line); }
.pillars-head {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: var(--s-7);
    margin-bottom: var(--s-9);
}
.pillars-head p { max-width: 38ch; }
.pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border-top: 1px solid var(--line);
}
.pillar {
    padding: var(--s-7) var(--s-6) var(--s-7) 0;
    border-right: 1px solid var(--line);
    position: relative;
    transition: background var(--dur-med) var(--ease);
}
.pillar:last-child { border-right: none; padding-right: 0; }
.pillar-num {
    font-family: var(--font-mono);
    font-size: var(--fs-12);
    font-weight: 500;
    color: var(--sangre);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-bottom: var(--s-5);
}
.pillar h3 {
    font-weight: 600;
    margin-bottom: var(--s-4);
}
.pillar h3 .roman { font-weight: 600; }
.pillar p { margin-bottom: var(--s-6); }
.pillar ul {
    display: flex;
    flex-direction: column;
    gap: var(--s-2);
    margin-bottom: var(--s-6);
    font-size: var(--fs-14);
    color: var(--ink-soft);
}
.pillar ul li {
    padding-left: var(--s-4);
    position: relative;
}
.pillar ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.7em;
    width: 6px; height: 1px;
    background: var(--oro);
}
@media (max-width: 960px) {
    .pillars-head { grid-template-columns: 1fr; align-items: start; }
    .pillars-grid { grid-template-columns: 1fr; }
    .pillar { border-right: none; border-bottom: 1px solid var(--line); padding: var(--s-6) 0; }
    .pillar:last-child { border-bottom: none; }
}

/* ----- Stats band -------------------------------------------- */
.stats { border-block: 1px solid var(--line); background: var(--paper); }
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}
.stat {
    padding: var(--s-7) var(--s-5);
    border-right: 1px solid var(--line);
    text-align: left;
}
.stat:last-child { border-right: none; }
.stat-num {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 600;
    color: var(--ink);
    letter-spacing: -0.045em;
    line-height: 1;
    display: flex;
    align-items: baseline;
    gap: var(--s-2);
}
.stat-num .unit {
    font-size: var(--fs-20);
    color: var(--sangre);
    font-weight: 500;
}
.stat-label {
    margin-top: var(--s-4);
    font-size: var(--fs-12);
    color: var(--ink-mute);
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
@media (max-width: 760px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .stat:nth-child(2) { border-right: none; }
    .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

/* ----- Project cards ---------------------------------------- */
.work-head {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: var(--s-7);
    margin-bottom: var(--s-8);
}
.work-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: var(--s-5);
}
.project-card {
    position: relative;
    background: var(--paper-soft);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    overflow: hidden;
    transition: transform var(--dur-med) var(--ease),
                border-color var(--dur-med) var(--ease),
                box-shadow var(--dur-med) var(--ease);
    display: flex;
    flex-direction: column;
}
.project-card:hover {
    transform: translateY(-6px);
    border-color: var(--line-gold);
    box-shadow: var(--shadow-3);
}
.project-card.span-8 { grid-column: span 8; }
.project-card.span-4 { grid-column: span 4; }
.project-card.span-6 { grid-column: span 6; }
.project-media {
    aspect-ratio: 4/3;
    background: var(--paper-deep);
    overflow: hidden;
    position: relative;
}
.project-card.span-8 .project-media { aspect-ratio: 16/9; }
.project-media img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform var(--dur-slow) var(--ease);
}
.project-card:hover .project-media img { transform: scale(1.04); }
.project-placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    background:
        radial-gradient(ellipse at 70% 30%, rgba(184, 136, 78, 0.18), transparent 50%),
        var(--paper-dark);
    color: var(--ink-mute);
}
.project-placeholder svg { width: 80px; height: 80px; color: var(--sangre); opacity: 0.45; }
.project-body { padding: var(--s-6); }
.project-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: var(--fs-12);
    color: var(--ink-mute);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: var(--s-4);
}
.project-meta .cat { color: var(--sangre); font-family: var(--font-mono); font-weight: 500; font-size: var(--fs-12); letter-spacing: 0.10em; text-transform: uppercase; }
.project-card h3 {
    font-size: var(--fs-h3);
    font-weight: 600;
    margin-bottom: var(--s-3);
    letter-spacing: -0.02em;
}
.project-tags {
    display: flex;
    gap: var(--s-2);
    flex-wrap: wrap;
    margin-top: var(--s-5);
    padding-top: var(--s-5);
    border-top: 1px solid var(--line);
}
.tag {
    font-size: var(--fs-12);
    padding: var(--s-1) var(--s-3);
    border: 1px solid var(--line-strong);
    border-radius: var(--r-pill);
    color: var(--ink-soft);
}
@media (max-width: 960px) {
    .work-head { grid-template-columns: 1fr; align-items: start; }
    .work-grid { grid-template-columns: 1fr; }
    .project-card.span-8, .project-card.span-4, .project-card.span-6 { grid-column: span 1; }
}

/* ----- Services list (dual columns) ------------------------- */
.services-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border-top: 1px solid var(--line);
}
.service-item {
    padding: var(--s-5) 0;
    border-bottom: 1px solid var(--line);
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: var(--s-5);
    cursor: pointer;
    transition: padding var(--dur-med) var(--ease);
}
.service-item:nth-child(odd) { padding-right: var(--s-6); border-right: 1px solid var(--line); }
.service-item:nth-child(even) { padding-left: var(--s-6); }
.service-item:hover { padding-inline-start: var(--s-4); }
.service-item:nth-child(odd):hover { padding-right: calc(var(--s-6) - var(--s-4)); padding-left: var(--s-4); }
.service-num {
    font-family: var(--font-mono);
    font-size: var(--fs-12);
    color: var(--ink-mute);
    letter-spacing: 0.08em;
}
.service-name {
    font-family: var(--font-display);
    font-size: var(--fs-h4);
    font-weight: 400;
    color: var(--ink);
}
.service-arrow {
    width: 28px; height: 28px;
    border-radius: var(--r-pill);
    border: 1px solid var(--line-strong);
    display: flex; align-items: center; justify-content: center;
    color: var(--ink-soft);
    transition: all var(--dur-med) var(--ease);
}
.service-item:hover .service-arrow {
    background: var(--sangre);
    color: var(--paper);
    border-color: var(--sangre);
    transform: rotate(-45deg);
}
@media (max-width: 760px) {
    .services-list { grid-template-columns: 1fr; }
    .service-item, .service-item:nth-child(odd), .service-item:nth-child(even) {
        padding-inline: 0;
        border-right: none;
    }
}

/* ----- Partners --------------------------------------------- */
.partners { border-block: 1px solid var(--line); background: var(--paper); }
.partners-head { text-align: center; margin-bottom: var(--s-7); }
.partners-head .eyebrow { justify-content: center; }
.partners-head .eyebrow::before { display: none; }
.partners-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: var(--s-5);
    align-items: stretch;
}
.partner-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink-soft);
    font-family: var(--font-display);
    font-size: var(--fs-18);
    font-weight: 500;
    letter-spacing: 0.02em;
    background: var(--paper-soft);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: var(--s-5) var(--s-4);
    min-height: 90px;
    transition: all var(--dur-med) var(--ease);
}
.partner-logo img {
    max-height: 44px;
    width: auto;
    object-fit: contain;
    filter: grayscale(1) contrast(0.85) brightness(0.9);
    opacity: 0.72;
    transition: filter var(--dur-med) var(--ease), opacity var(--dur-med) var(--ease);
    mix-blend-mode: multiply;
}
.partner-logo:hover { border-color: var(--line-gold); transform: translateY(-2px); }
.partner-logo:hover img { filter: grayscale(0); opacity: 1; }
.partner-logo:hover { color: var(--ink); }

/* ----- Notdienst band --------------------------------------- */
.notdienst {
    position: relative;
    background:
        radial-gradient(ellipse at 0% 50%, rgba(122, 31, 43, 0.10), transparent 60%),
        var(--paper-deep);
    border-block: 1px solid var(--line);
    overflow: hidden;
}
.notdienst-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: var(--s-7);
    align-items: center;
}
.notdienst h2 { font-weight: 600; }
.notdienst h2 strong { font-weight: 700; color: var(--sangre); }
.notdienst h2 em { font-weight: 700; color: var(--sangre); font-style: normal; }
.notdienst-phone {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: var(--s-3);
}
.notdienst-phone a {
    font-family: var(--font-mono);
    font-size: clamp(1.5rem, 2.6vw, 2.25rem);
    font-weight: 500;
    color: var(--ink);
    letter-spacing: -0.02em;
    border-bottom: 1px solid var(--sangre);
    padding-bottom: var(--s-2);
}
.notdienst-phone a:hover { color: var(--sangre); }
.notdienst-phone .label {
    font-size: var(--fs-12);
    color: var(--ink-mute);
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
@media (max-width: 760px) {
    .notdienst-grid { grid-template-columns: 1fr; }
    .notdienst-phone { align-items: flex-start; }
}

/* ----- Final CTA -------------------------------------------- */
.final-cta {
    text-align: center;
    padding-block: clamp(6rem, 14vw, 11rem);
}
.final-cta .eyebrow { justify-content: center; }
.final-cta .eyebrow::before { display: none; }
.final-cta h2 {
    font-size: clamp(2.5rem, 7vw, 6rem);
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.04em;
    margin-block: var(--s-5) var(--s-7);
}
.final-cta h2 .roman { font-weight: 600; }
.final-cta h2 em { font-style: normal; color: var(--sangre); font-weight: 700; }
.final-cta-actions {
    display: inline-flex;
    gap: var(--s-4);
    flex-wrap: wrap;
    justify-content: center;
}

/* ----- Footer ----------------------------------------------- */
.site-footer {
    border-top: 1px solid var(--line);
    background: var(--paper-dark);
    padding-block: var(--s-8) var(--s-6);
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: var(--s-7);
    margin-bottom: var(--s-8);
}
.footer-brand { max-width: 36ch; }
.footer-brand p { font-size: var(--fs-14); color: var(--ink-soft); margin-top: var(--s-4); }
.footer-col h5 {
    font-family: var(--font-body);
    font-size: var(--fs-12);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--sangre);
    margin-bottom: var(--s-4);
    font-weight: 600;
}
.footer-col ul { display: flex; flex-direction: column; gap: var(--s-3); }
.footer-col a { color: var(--ink-soft); font-size: var(--fs-14); transition: color var(--dur-fast) var(--ease); border-bottom: none !important; }
.footer-col a:hover { color: var(--ink); }
.footer-col p { font-size: var(--fs-14); color: var(--ink-soft); }
.footer-col p a { border-bottom: 1px solid var(--line-strong) !important; }
.footer-col p a:hover { border-bottom-color: var(--sangre) !important; }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--s-5);
    border-top: 1px solid var(--line);
    flex-wrap: wrap;
    gap: var(--s-4);
}
.footer-bottom small { color: var(--ink-mute); font-size: var(--fs-12); letter-spacing: 0.05em; }
.footer-legal { display: flex; gap: var(--s-5); }
.footer-legal a { font-size: var(--fs-12); color: var(--ink-mute); text-transform: uppercase; letter-spacing: 0.12em; border-bottom: none !important; }
.footer-legal a:hover { color: var(--ink); }
.footer-social { display: flex; gap: var(--s-3); }
.footer-social a {
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--line-strong);
    border-radius: var(--r-pill);
    color: var(--ink-soft);
    transition: all var(--dur-med) var(--ease);
    border-bottom: 1px solid var(--line-strong) !important;
}
.footer-social a:hover {
    color: var(--sangre);
    border-color: var(--sangre) !important;
    transform: translateY(-2px);
}
.footer-social svg { width: 16px; height: 16px; }
@media (max-width: 960px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: span 2; }
}
@media (max-width: 560px) {
    .footer-grid { grid-template-columns: 1fr; }
    .footer-brand { grid-column: span 1; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ----- Page hero (subpages) --------------------------------- */
.page-hero {
    padding-block: clamp(8rem, 14vw, 11rem) clamp(3rem, 6vw, 5rem);
    border-bottom: 1px solid var(--line);
    position: relative;
    overflow: hidden;
}
.page-hero-inner { max-width: 920px; position: relative; z-index: 2; }
.page-hero h1 {
    font-size: clamp(2.5rem, 7vw, 5.5rem);
    font-weight: 400;
    line-height: 1;
    margin-block: var(--s-5) var(--s-6);
}
.page-hero h1 em { font-style: normal; color: var(--sangre); font-weight: 700; }
.page-hero p { font-size: clamp(1.125rem, 1.6vw, 1.375rem); color: var(--ink-soft); max-width: 60ch; }
.page-hero-mark {
    position: absolute;
    top: 50%;
    right: -4%;
    transform: translateY(-50%);
    width: clamp(300px, 40vw, 600px);
    color: var(--sangre);
    opacity: 0.06;
    pointer-events: none;
    z-index: 0;
}
.breadcrumb {
    font-size: var(--fs-12);
    color: var(--ink-mute);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: var(--s-3);
}
.breadcrumb a { border-bottom: none !important; color: var(--ink-mute); }
.breadcrumb a:hover { color: var(--sangre); }
.breadcrumb .sep { color: var(--line-strong); }

/* ----- Two-column content ----------------------------------- */
.two-col {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--s-9);
    align-items: start;
}
.two-col .col-side {
    position: sticky;
    top: 120px;
}
.two-col .col-side h2 {
    font-size: var(--fs-h2);
    font-weight: 600;
}
.two-col .col-side h2 .roman { font-weight: 600; }
.prose p + p { margin-top: var(--s-4); }
.prose p + h3 { margin-top: var(--s-7); }
.prose h3 { font-size: var(--fs-h3); margin-bottom: var(--s-4); font-weight: 600; }
.prose h3 .roman { font-weight: 600; }
.prose ul { display: flex; flex-direction: column; gap: var(--s-3); margin-block: var(--s-4); }
.prose ul li {
    color: var(--ink-soft);
    padding-left: var(--s-5);
    position: relative;
}
.prose ul li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--oro-deep);
}
@media (max-width: 960px) {
    .two-col { grid-template-columns: 1fr; gap: var(--s-7); }
    .two-col .col-side { position: static; }
}

/* ----- Quote / pullquote ------------------------------------ */
.pullquote {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 500;
    line-height: 1.25;
    color: var(--ink);
    padding: var(--s-7) 0 var(--s-7) var(--s-6);
    border-left: 2px solid var(--sangre);
    max-width: 28ch;
    margin-block: var(--s-7);
    letter-spacing: -0.02em;
}
.pullquote cite {
    display: block;
    margin-top: var(--s-4);
    font-family: var(--font-mono);
    font-style: normal;
    font-weight: 500;
    font-size: var(--fs-12);
    color: var(--ink-mute);
    letter-spacing: 0.10em;
    text-transform: uppercase;
}

/* ----- Hours block (kontakt) -------------------------------- */
.kontakt-hours {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: var(--s-2) var(--s-5);
    font-size: var(--fs-14);
}
.kontakt-hours .row { display: contents; }
.kontakt-hours .day { color: var(--ink-soft); }
.kontakt-hours .val { color: var(--ink); }
.kontakt-hours .text-mute { color: var(--ink-mute); font-weight: 400; }

/* ----- Forms ------------------------------------------------ */
.form { display: flex; flex-direction: column; gap: var(--s-5); }
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--s-5);
}
.form-field { display: flex; flex-direction: column; gap: var(--s-2); }
.form-field label {
    font-size: var(--fs-12);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-soft);
    font-weight: 500;
}
.form-field input,
.form-field textarea,
.form-field select {
    background: var(--paper-soft);
    border: 1px solid var(--line-strong);
    border-radius: var(--r-md);
    padding: var(--s-4) var(--s-5);
    color: var(--ink);
    font-size: var(--fs-16);
    transition: border-color var(--dur-med) var(--ease), background var(--dur-med) var(--ease), box-shadow var(--dur-med) var(--ease);
    min-height: 56px;
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--ink-mute); }
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
    outline: none;
    border-color: var(--sangre);
    background: var(--paper);
    box-shadow: 0 0 0 4px var(--sangre-glow);
}
.form-field textarea { resize: vertical; min-height: 160px; }
.form-field .hint { font-size: var(--fs-12); color: var(--ink-mute); }
.form-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
.form-consent {
    display: flex;
    align-items: flex-start;
    gap: var(--s-3);
    font-size: var(--fs-14);
    color: var(--ink-soft);
    line-height: 1.5;
}
.form-consent input[type="checkbox"] {
    appearance: none;
    width: 20px; height: 20px;
    border: 1px solid var(--line-strong);
    background: var(--paper-soft);
    border-radius: var(--r-xs);
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    margin-top: 2px;
}
.form-consent input[type="checkbox"]:checked {
    background: var(--sangre);
    border-color: var(--sangre);
}
.form-consent input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    inset: 4px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%23F5F0E8' stroke-width='2' stroke-linecap='round'><polyline points='2,6 5,9 10,3'/></svg>");
    background-size: contain;
}
.form-status {
    padding: var(--s-4) var(--s-5);
    border-radius: var(--r-md);
    border: 1px solid var(--line);
    font-size: var(--fs-14);
}
.form-status.success { background: rgba(92, 138, 107, 0.12); border-color: rgba(92, 138, 107, 0.45); color: #3F6B4F; }
.form-status.error   { background: rgba(178, 52, 52, 0.10); border-color: rgba(178, 52, 52, 0.40); color: #8B2828; }

@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }

/* ----- Team grid -------------------------------------------- */
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--s-6);
}
.team-card {
    background: var(--paper-soft);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    overflow: hidden;
    transition: all var(--dur-med) var(--ease);
}
.team-card:hover {
    border-color: var(--line-gold);
    transform: translateY(-4px);
    box-shadow: var(--shadow-3);
}
.team-photo {
    aspect-ratio: 1;
    background: var(--paper-deep);
    position: relative;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.team-photo .initial {
    font-family: var(--font-display);
    font-size: clamp(3rem, 6vw, 5rem);
    color: var(--sangre);
    opacity: 0.55;
    font-weight: 600;
    letter-spacing: -0.02em;
}
.team-photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.10); }
.team-body { padding: var(--s-5); }
.team-name { font-family: var(--font-display); font-size: var(--fs-h4); font-weight: 600; margin-bottom: var(--s-2); }
.team-role { color: var(--sangre); font-family: var(--font-mono); font-size: var(--fs-12); font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: var(--s-3); }
.team-email { color: var(--ink-mute); font-size: var(--fs-12); letter-spacing: 0.05em; border-bottom: none !important; }
.team-email:hover { color: var(--sangre); }
@media (max-width: 960px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .team-grid { grid-template-columns: 1fr; } }

/* ----- Cards de servicio ------------------------------------ */
.lstg-vert {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--s-6);
}
.lstg-card {
    position: relative;
    background: var(--paper-soft);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: var(--s-7);
    transition: all var(--dur-med) var(--ease);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 360px;
}
.lstg-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 100% 0%, var(--sangre-glow), transparent 50%);
    opacity: 0;
    transition: opacity var(--dur-med) var(--ease);
    pointer-events: none;
}
.lstg-card:hover {
    border-color: var(--line-gold);
    transform: translateY(-6px);
    box-shadow: var(--shadow-3);
}
.lstg-card:hover::before { opacity: 1; }
.lstg-num {
    font-family: var(--font-mono);
    font-size: var(--fs-12);
    color: var(--sangre);
    letter-spacing: 0.12em;
    margin-bottom: var(--s-5);
}
.lstg-card h3 {
    font-size: var(--fs-h2);
    font-weight: 600;
    margin-bottom: var(--s-4);
    letter-spacing: -0.03em;
}
.lstg-card h3 .roman { font-weight: 600; }
.lstg-card p { margin-bottom: var(--s-5); flex-grow: 1; }
.lstg-card .lstg-items {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s-2);
    margin-top: var(--s-4);
    padding-top: var(--s-4);
    border-top: 1px solid var(--line);
}
.lstg-card .lstg-items span {
    font-size: var(--fs-12);
    padding: var(--s-1) var(--s-3);
    border: 1px solid var(--line-strong);
    border-radius: var(--r-pill);
    color: var(--ink-soft);
}
@media (max-width: 760px) { .lstg-vert { grid-template-columns: 1fr; } }

/* ----- Service detail features ------------------------------ */
.feature-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--s-6);
    margin-block: var(--s-7);
}
.feature {
    padding: var(--s-6);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    background: var(--paper-soft);
    transition: all var(--dur-med) var(--ease);
}
.feature:hover { border-color: var(--line-gold); transform: translateY(-4px); }
.feature .icon-wrap {
    width: 48px; height: 48px;
    display: flex; align-items: center; justify-content: center;
    border-radius: var(--r-md);
    background: var(--paper-deep);
    border: 1px solid var(--line);
    color: var(--sangre);
    margin-bottom: var(--s-5);
}
.feature .icon-wrap svg { width: 22px; height: 22px; }
.feature h4 { font-size: var(--fs-h4); margin-bottom: var(--s-3); }
.feature p { font-size: var(--fs-14); }
@media (max-width: 760px) { .feature-row { grid-template-columns: 1fr; } }

/* ----- Stat ribbon for service page ------------------------- */
.stat-ribbon {
    background: var(--paper-deep);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: var(--s-7);
    margin-block: var(--s-7);
}
.stat-ribbon .big-num {
    font-family: var(--font-display);
    font-size: clamp(3.5rem, 8vw, 6rem);
    font-weight: 700;
    color: var(--sangre);
    letter-spacing: -0.05em;
    line-height: 0.9;
}
.stat-ribbon p { font-size: var(--fs-20); color: var(--ink); margin-top: var(--s-4); max-width: 48ch; }
.stat-ribbon cite { font-size: var(--fs-12); color: var(--ink-mute); display: block; margin-top: var(--s-3); letter-spacing: 0.05em; }

/* ----- Reveal animation ------------------------------------- */
[data-reveal] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity var(--dur-reveal) var(--ease), transform var(--dur-reveal) var(--ease);
    transition-delay: var(--reveal-delay, 0ms);
}
[data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ----- Reduced motion --------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    [data-reveal] { opacity: 1; transform: none; }
}

/* ----- Utility ---------------------------------------------- */
.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}
.text-sangre { color: var(--sangre); font-weight: 700; }
.text-gold   { color: var(--oro-deep); font-weight: 700; }
.text-soft   { color: var(--ink-soft); }
.text-mute   { color: var(--ink-mute); }
.italic { font-style: normal; font-weight: 700; color: var(--sangre); }
.mt-7 { margin-top: var(--s-7) !important; }
.mb-7 { margin-bottom: var(--s-7) !important; }

/* Smooth scroll */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* =============================================================
   RESPONSIVE REFINEMENTS
   Breakpoints: 1280 / 1100 / 1024 / 960 / 760 / 640 / 540 / 420
   ============================================================= */

html, body { overflow-x: hidden; max-width: 100%; }

/* Two-col variant for forms (kontakt) — más generoso que two-col base */
.two-col-form {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: var(--s-10);
    align-items: start;
}
@media (max-width: 960px) {
    .two-col-form {
        grid-template-columns: 1fr;
        gap: var(--s-7);
    }
    .two-col-form .col-side { position: static; }
}

/* ----- Tablet/laptop pequeño (1100px) ----- */
@media (max-width: 1100px) {
    :root { --container: 100%; }
    .hero-meta { gap: var(--s-3); }
    .hero-meta .sep { display: none; }
}

/* ----- Tablet (1024px) ----- */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr 1fr; gap: var(--s-6); }
    .footer-brand { grid-column: span 3; }
}

/* ----- 760-960px refinements ----- */
@media (max-width: 960px) {
    .hero { min-height: auto; padding-block: clamp(7rem, 18vw, 10rem) clamp(3rem, 6vw, 5rem); }
    .hero-bg-mark { width: clamp(280px, 80vw, 500px); right: -20%; opacity: 0.04; }
    .page-hero-mark { width: clamp(220px, 60vw, 380px); right: -10%; opacity: 0.04; }
    .work-grid { gap: var(--s-4); }
    .pillars-head, .work-head { gap: var(--s-5); }
    .stat-ribbon { padding: var(--s-6); }
    .lstg-card { padding: var(--s-6); min-height: auto; }
    .feature { padding: var(--s-5); }
    .notdienst-phone a { font-size: clamp(1.4rem, 5vw, 2rem); }
}

/* ----- Tablet portrait + móvil grande (760px) ----- */
@media (max-width: 760px) {
    :root { --gutter: 1rem; }

    /* Header: header móvil = brand + lang-switch + hamburger */
    .nav-cta .lang-switch { padding: 2px var(--s-2); }
    .nav-cta .lang-switch a { padding: 4px 6px; font-size: 0.625rem; }
    .nav-cta .always-visible { display: none; }     /* quitar también btn Kontakt */
    .nav-cta .notdienst-pill { display: none; }
    .brand-tagline { display: none; }
    .brand-mark { width: 60px; height: 38px; }
    .brand-wordmark { font-size: var(--fs-16); letter-spacing: 0.10em; }
    .hamburger { display: inline-flex; }

    /* Hero meta más compacto */
    .hero-meta { font-size: 0.6875rem; gap: var(--s-2); }
    .hero-meta .sep { display: none; }

    /* Final CTA padding más razonable */
    .final-cta { padding-block: clamp(4rem, 10vw, 6rem); }

    /* Stats apilados verticales en 2x2 */
    .stat { padding: var(--s-5) var(--s-4); }
    .stat-num { font-size: clamp(2rem, 8vw, 2.5rem); }
    .stat-label { font-size: 0.6875rem; letter-spacing: 0.10em; }

    /* Notdienst phone en mobile más compacto */
    .notdienst-phone a { font-size: clamp(1.25rem, 6vw, 1.75rem); }

    /* Section padding más conservativo */
    .section { padding-block: clamp(3rem, 8vw, 5rem); }
}

/* ----- Móvil (540px) ----- */
@media (max-width: 540px) {
    /* Header aún más compacto */
    .site-header-inner { gap: var(--s-3); }
    .nav-cta { gap: var(--s-2); }
    .brand-wordmark { font-size: var(--fs-14); }
    .brand-mark { width: 52px; height: 34px; }

    /* Heroes más respiro */
    .hero { padding-block: clamp(6rem, 22vw, 8rem) clamp(2.5rem, 6vw, 4rem); }
    .page-hero { padding-block: clamp(6rem, 18vw, 9rem) clamp(2.5rem, 5vw, 4rem); }

    /* Hero CTA en column si no caben */
    .hero-actions { flex-direction: column; align-items: stretch; gap: var(--s-3); }
    .hero-actions .btn { width: 100%; }

    /* Final CTA actions también */
    .final-cta-actions { flex-direction: column; width: 100%; }
    .final-cta-actions .btn { width: 100%; }

    /* Notdienst-phone alineado a la izquierda y compacto */
    .notdienst-phone a { font-size: clamp(1.125rem, 7vw, 1.5rem); }

    /* Pullquote sin border-left lateral (lleva mucha indentación) */
    .pullquote {
        padding: var(--s-5) 0 var(--s-5) var(--s-5);
        font-size: clamp(1.25rem, 5vw, 1.75rem);
    }

    /* Cards más compactos */
    .lstg-card, .feature, .stat-ribbon, .project-body { padding: var(--s-5); }
    .lstg-card h3 { font-size: clamp(1.5rem, 6vw, 2rem); }

    /* Form más respiro */
    .form-field input, .form-field textarea, .form-field select { padding: var(--s-3) var(--s-4); min-height: 50px; }

    /* Lang switch un pelín más visible */
    .lang-switch { background: transparent; border: none; padding: 0; }

    /* Stats 2x2 cleaner */
    .stat { padding: var(--s-4) var(--s-3); }
    .stat-num { font-size: clamp(1.75rem, 9vw, 2.25rem); }

    /* Service items texto wrap */
    .service-name { font-size: var(--fs-16); }
}

/* ----- Móvil muy pequeño (420px) ----- */
@media (max-width: 420px) {
    /* Container sin padding apenas */
    :root { --gutter: 0.875rem; }

    /* Heroes h1 fluidos hasta ~32px mínimo */
    .hero h1 { font-size: clamp(2rem, 11vw, 3rem); }
    .page-hero h1 { font-size: clamp(1.75rem, 10vw, 2.5rem); }
    .final-cta h2 { font-size: clamp(2rem, 11vw, 3rem); }

    .hero-lead { font-size: var(--fs-16); }
    .page-hero p { font-size: var(--fs-16); }

    /* Card hover translateY desactivado para que no rebote en touch */
    .project-card:hover, .lstg-card:hover, .team-card:hover, .feature:hover { transform: none; }

    /* Mobile menu typography fits */
    .mobile-menu nav a { font-size: clamp(2rem, 9vw, 2.75rem); }

    /* Footer copyright + legal apilados */
    .footer-bottom { gap: var(--s-3); }
    .footer-legal { flex-wrap: wrap; gap: var(--s-3); }
}

/* ----- Tabla de horarios (kontakt) — fix overflow en móvil ----- */
@media (max-width: 540px) {
    .kontakt-hours { display: flex; flex-direction: column; gap: var(--s-2); font-size: var(--fs-14); }
    .kontakt-hours .row { display: flex; justify-content: space-between; gap: var(--s-3); }
    .kontakt-hours .day { color: var(--ink-soft); flex-shrink: 0; }
    .kontakt-hours .val { color: var(--ink); text-align: right; }
}

/* ----- Print styles (bonus, pocos kb) ----- */
@media print {
    .site-header, .site-footer, .notdienst, .final-cta, .lang-switch, .nav-cta { display: none; }
    body { background: white; color: black; }
    a { color: black; text-decoration: underline; }
}
