/* ============================================================
   OETLISBERG 22 · Zürich Witikon
   Diseño: blanco/claro + acento verde salvia (#6F7567)
   ============================================================ */

:root {
    --sage: #6F7567;
    --sage-dark: #575D50;
    --sage-light: #C0C9B4;
    --cream: #F6F4EF;
    --cream-dark: #EDEAE2;
    --ink: #2E322B;
    --ink-soft: #5C6156;
    --white: #FFFFFF;
    --frei: #6F7567;
    --reserviert: #B9995A;
    --verkauft: #A65A52;
    --radius: 2px;
    --header-h: 84px;
    --trans: 0.35s cubic-bezier(.4, 0, .2, 1);
}

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

html {
    scroll-behavior: smooth;
    /* impedir zoom por doble toque / pellizco y ajuste automático de texto */
    touch-action: pan-x pan-y;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Jost', 'Century Gothic', sans-serif;
    font-weight: 300;
    font-size: 17px;
    line-height: 1.7;
    color: var(--ink);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
}

img { max-width: 100%; display: block; }

a { color: var(--sage); text-decoration: none; transition: color var(--trans); }
a:hover { color: var(--sage-dark); }

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Tipografía de sección ---------- */
.section { padding: 110px 0; }
.section-alt { background: var(--cream); }

.section-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.28em;
    font-size: 0.78rem;
    font-weight: 400;
    color: var(--sage);
    margin-bottom: 10px;
}

.section-title {
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--ink);
    margin-bottom: 18px;
    position: relative;
    padding-bottom: 22px;
}
.section-title::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    width: 72px; height: 1px;
    background: var(--sage);
}

.section-intro {
    max-width: 720px;
    color: var(--ink-soft);
    margin-bottom: 56px;
}

/* ---------- Header ---------- */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    transition: background var(--trans), box-shadow var(--trans);
    background: transparent;
}
.site-header.scrolled {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
    box-shadow: 0 1px 0 rgba(46, 50, 43, 0.08);
}
.header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo-img { height: 96px; width: auto; }
.site-header .logo-dark { display: none; }
.site-header.scrolled .logo-dark { display: block; }
.site-header.scrolled .logo-light { display: none; }

.header-nav { display: flex; gap: 36px; align-items: center; }
.header-nav a {
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.82rem;
    font-weight: 400;
    position: relative;
    padding: 6px 0;
}
.header-nav a::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    width: 0; height: 1px;
    background: currentColor;
    transition: width var(--trans);
}
.header-nav a:hover::after { width: 100%; }
.site-header.scrolled .header-nav a { color: var(--ink); }
.site-header.scrolled .header-nav a:hover { color: var(--sage); }
.header-nav .nav-cta {
    border: 1px solid currentColor;
    padding: 8px 22px;
}
.header-nav .nav-cta::after { display: none; }
.header-nav .nav-cta:hover { background: var(--sage); border-color: var(--sage); color: var(--white) !important; }

.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}
.hamburger span {
    width: 26px; height: 1.5px;
    background: var(--white);
    transition: var(--trans);
}
.site-header.scrolled .hamburger span { background: var(--ink); }

.mobile-menu {
    position: fixed;
    inset: 0;
    background: var(--cream);
    z-index: 99;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--trans);
}
.mobile-menu.open { opacity: 1; pointer-events: auto; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 28px; text-align: center; }
.mobile-menu a {
    color: var(--ink);
    font-size: 1.4rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-weight: 300;
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.hero-video {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    pointer-events: none;
    background: var(--ink);
}
/* Eliminar el botón de play nativo de iOS/Safari y cualquier control */
.hero-video::-webkit-media-controls,
.hero-video::-webkit-media-controls-start-playback-button,
.hero-video::-webkit-media-controls-panel,
.hero-video::-webkit-media-controls-play-button,
.hero-video::-webkit-media-controls-overlay-play-button {
    display: none !important;
    -webkit-appearance: none;
    opacity: 0;
}
.hero-video::-internal-media-controls-overlay-cast-button { display: none; }
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(30, 33, 28, 0.45) 0%, rgba(30, 33, 28, 0.25) 50%, rgba(30, 33, 28, 0.55) 100%);
}
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    padding: 120px 24px 80px;
}
.hero-logo { height: 130px; margin: 0 auto 36px; }
.hero-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.32em;
    font-size: 0.85rem;
    font-weight: 400;
    margin-bottom: 18px;
}
.hero h1 {
    font-size: clamp(2.4rem, 6vw, 4.6rem);
    font-weight: 200;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    line-height: 1.25;
    margin-bottom: 22px;
}
.hero-sub {
    font-size: 1.05rem;
    letter-spacing: 0.08em;
    font-weight: 300;
    opacity: 0.92;
}
.hero-arrow {
    position: absolute;
    left: 50%;
    bottom: -40px;
    transform: translateX(-50%);
    color: var(--white);
    width: 34px; height: 34px;
    animation: bounce 2.4s infinite;
}
.hero-arrow svg { width: 100%; height: 100%; }
@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

/* ---------- Projekt ---------- */
.projekt-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 64px;
    align-items: center;
    margin-top: 30px;
}
.projekt-text h3 {
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 1rem;
    color: var(--sage);
    margin: 30px 0 8px;
}
.projekt-text h3:first-child { margin-top: 0; }
.projekt-text p { color: var(--ink-soft); }
.projekt-media img { border-radius: var(--radius); }

.facts-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    margin-top: 80px;
    padding-top: 56px;
    border-top: 1px solid var(--cream-dark);
    text-align: center;
}
.fact-num {
    display: block;
    font-size: 2.6rem;
    font-weight: 200;
    color: var(--sage);
    letter-spacing: 0.04em;
}
.fact-label {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.75rem;
    color: var(--ink-soft);
}

/* ---------- Lage ---------- */
.lage-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 48px;
    border-bottom: 1px solid var(--cream-dark);
}
.lage-tab {
    background: none;
    border: none;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--ink-soft);
    padding: 14px 32px;
    cursor: pointer;
    position: relative;
    transition: color var(--trans);
}
.lage-tab::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -1px;
    height: 2px;
    background: var(--sage);
    transform: scaleX(0);
    transition: transform var(--trans);
}
.lage-tab.active { color: var(--sage); }
.lage-tab.active::after { transform: scaleX(1); }

.lage-panel { display: none; }
.lage-panel.active { display: block; }

.lage-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 56px;
    align-items: start;
}
/* El mapa va directamente sobre el fondo de la sección, sin caja blanca */
.lage-map {
    background: transparent;
    border: none;
    padding: 0;
    position: sticky;
    top: calc(var(--header-h) + 20px);
}
.lage-map img { width: 100%; height: auto; }

.poi-group { margin-bottom: 28px; }
.poi-group h4 {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--sage);
    margin-bottom: 10px;
}
.poi-group ul { list-style: none; }
.poi-group li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 10px;
    font-size: 0.95rem;
    color: var(--ink-soft);
    border-bottom: 1px solid var(--cream-dark);
    border-radius: var(--radius);
}
.poi-group li:last-child { border-bottom-color: transparent; }
.poi-badge {
    flex: 0 0 auto;
    width: 26px; height: 26px;
    border-radius: 50%;
    background: var(--sage);
    color: var(--white);
    font-size: 0.68rem;
    font-weight: 400;
    display: flex;
    align-items: center;
    justify-content: center;
}
.poi-min {
    margin-left: auto;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    color: var(--sage);
    white-space: nowrap;
}
.poi-group li {
    transition: background 0.2s ease;
    cursor: default;
}
.poi-group li.hl {
    background: var(--sage);
    color: var(--white);
    border-bottom-color: transparent;
}
.poi-group li.hl .poi-min { color: var(--white); }
.poi-group li.hl .poi-badge { background: var(--white); color: var(--sage); }

/* ---------- Lista desplegable (Makrolage) ---------- */
.lage-list-accordion .poi-group {
    margin-bottom: 0;
    border-bottom: 1px solid var(--cream-dark);
}
.lage-list-accordion .poi-group:first-child { border-top: 1px solid var(--cream-dark); }

.poi-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    background: none;
    border: none;
    font-family: inherit;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--sage);
    text-align: left;
    padding: 16px 4px;
    cursor: pointer;
    transition: color var(--trans);
}
.poi-toggle:hover { color: var(--ink); }
.poi-toggle > span:first-child { flex: 1; }
.poi-count {
    flex: 0 0 auto;
    font-size: 0.68rem;
    letter-spacing: 0.06em;
    color: var(--ink-soft);
    background: var(--cream-dark);
    border-radius: 20px;
    padding: 2px 9px;
}
.poi-chevron {
    flex: 0 0 auto;
    width: 9px; height: 9px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg) translate(-2px, -2px);
    transition: transform 0.3s ease;
}
.poi-group.is-open .poi-chevron { transform: rotate(-135deg) translate(-2px, -2px); }
.poi-group.is-open .poi-toggle { color: var(--ink); }

/* Panel plegable: la altura exacta la fija el JS para que la transición sea suave */
.lage-list-accordion .poi-group > ul {
    height: 0;
    overflow: hidden;
    opacity: 0;
    transition: height 0.32s cubic-bezier(.4, 0, .2, 1), opacity 0.25s ease;
}
.lage-list-accordion .poi-group.is-open > ul { opacity: 1; }
.lage-list-accordion .poi-group > ul > li:last-child { margin-bottom: 12px; }

/* Sin JS: todo desplegado (no deja contenido inaccesible) */
.no-js .lage-list-accordion .poi-group > ul { height: auto; opacity: 1; }

/* ---------- Chips interactivos sobre el mapa ---------- */
.map-inner { position: relative; display: block; line-height: 0; }
.poi-dot {
    position: absolute;
    transform: translate(-50%, -50%);
    width: 24px; height: 24px;
    border-radius: 50%;
    border: 1.5px solid var(--white);
    background: var(--sage);
    color: var(--white);
    font-family: inherit;
    font-size: 0.62rem;
    font-weight: 500;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    box-shadow: 0 1px 6px rgba(46, 50, 43, 0.35);
    transition: transform 0.2s ease, background 0.2s ease;
    z-index: 2;
}
.poi-dot:hover, .poi-dot.active {
    background: var(--ink);
    transform: translate(-50%, -50%) scale(1.35);
    z-index: 4;
}
.poi-tip {
    position: absolute;
    transform: translate(-50%, calc(-100% - 22px));
    background: var(--ink);
    color: var(--white);
    font-size: 0.8rem;
    font-weight: 300;
    letter-spacing: 0.04em;
    line-height: 1.4;
    padding: 8px 14px;
    border-radius: var(--radius);
    white-space: nowrap;
    pointer-events: none;
    z-index: 5;
    box-shadow: 0 6px 20px rgba(46, 50, 43, 0.25);
}
.poi-tip strong { font-weight: 500; margin-right: 4px; }
.poi-tip span { opacity: 0.75; margin-left: 6px; }
.poi-tip::after {
    content: "";
    position: absolute;
    left: 50%; top: 100%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--ink);
}
.poi-tip.tip-below {
    transform: translate(-50%, 22px);
}
.poi-tip.tip-below::after {
    top: auto; bottom: 100%;
    border-top-color: transparent;
    border-bottom-color: var(--ink);
}
.poi-tip.tip-left { transform: translate(-90%, calc(-100% - 22px)); }
.poi-tip.tip-left::after { left: 90%; }
.poi-tip.tip-right { transform: translate(-10%, calc(-100% - 22px)); }
.poi-tip.tip-right::after { left: 10%; }
.poi-tip.tip-below.tip-left { transform: translate(-90%, 22px); }
.poi-tip.tip-below.tip-right { transform: translate(-10%, 22px); }

/* ---------- Angebot: Isometrie + Detail ---------- */
.angebot-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 48px;
    align-items: stretch;
    margin-bottom: 64px;
}
.iso-wrap {
    background: var(--cream);
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 420px;
}
.iso-loading { color: var(--ink-soft); font-size: 0.9rem; letter-spacing: 0.1em; }
.iso-wrap svg { width: 100%; height: auto; max-height: 640px; }

/* Estados de las unidades en la isometría
   (mecanismo tipo LivingTech: al seleccionar, las plantas superiores
   se elevan y desvanecen — clase .upper sobre los grupos H1-*) */
.iso-wrap svg g[id^="H1-"] {
    transition: transform 0.6s cubic-bezier(.4, 0, .2, 1), opacity 0.35s ease;
}
.iso-wrap svg .iso-unit { cursor: pointer; }
.iso-wrap svg .iso-unit polygon,
.iso-wrap svg .iso-unit path,
.iso-wrap svg .iso-unit rect {
    transition: fill 0.25s ease, stroke 0.25s ease;
}
/* hover: se oscurece la unidad */
.iso-wrap svg .iso-unit.hover .st2 { fill: #A9B399; stroke: #fff; }
.iso-wrap svg .iso-unit.hover .st3 { fill: var(--sage-dark); stroke: #fff; }
/* seleccionada */
.iso-wrap svg .iso-unit.active .st2 { fill: #99A587; stroke: #fff; }
.iso-wrap svg .iso-unit.active .st3 { fill: #4A4F44; stroke: #fff; }
/* vendida: desaturada */
.iso-wrap svg .iso-unit.sold .st2 { fill: #DEDBD4; }
.iso-wrap svg .iso-unit.sold .st3 { fill: #B3AFA6; }
/* plantas superiores elevadas al seleccionar */
.iso-wrap svg g.upper {
    transform: translateY(-170px);
    opacity: 0;
    pointer-events: none;
}
.iso-wrap { position: relative; }
.iso-reset {
    position: absolute;
    top: 16px; right: 16px;
    z-index: 3;
    background: var(--white);
    border: 1px solid var(--cream-dark);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--ink-soft);
    padding: 9px 18px;
    cursor: pointer;
    transition: var(--trans);
    opacity: 0;
    pointer-events: none;
}
.iso-reset.show { opacity: 1; pointer-events: auto; }
.iso-reset:hover { border-color: var(--sage); color: var(--sage); }

.unit-detail {
    background: var(--white);
    border: 1px solid var(--cream-dark);
    border-radius: var(--radius);
    padding: 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.unit-detail-hint { color: var(--ink-soft); font-size: 0.95rem; text-align: center; }
.unit-detail-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.24em;
    font-size: 0.72rem;
    color: var(--sage);
}
.unit-detail-nr {
    font-size: 2.6rem;
    font-weight: 200;
    letter-spacing: 0.06em;
    margin-bottom: 18px;
}
.unit-detail dl { border-top: 1px solid var(--cream-dark); }
.unit-detail dl > div {
    display: flex;
    justify-content: space-between;
    padding: 9px 0;
    border-bottom: 1px solid var(--cream-dark);
    font-size: 0.95rem;
}
.unit-detail dt { color: var(--ink-soft); }
.unit-detail dd { font-weight: 400; }
.unit-detail-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

/* Botones */
.btn {
    display: inline-block;
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    padding: 13px 28px;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--trans);
    text-align: center;
    border: 1px solid var(--sage);
}
.btn-solid { background: var(--sage); color: var(--white); }
.btn-solid:hover { background: var(--sage-dark); border-color: var(--sage-dark); color: var(--white); }
.btn-outline { background: transparent; color: var(--sage); }
.btn-outline:hover { background: var(--sage); color: var(--white); }
.btn-light { background: var(--white); color: var(--sage); border-color: var(--white); }
.btn-light:hover { background: transparent; color: var(--white); }

/* ---------- Tabla de viviendas ---------- */
.table-wrap { overflow-x: auto; }
.unit-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
    min-width: 860px;
}
.unit-table thead th {
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--white);
    background: var(--sage);
    padding: 14px 16px;
    text-align: left;
    white-space: nowrap;
}
.unit-table tbody td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--cream-dark);
    white-space: nowrap;
}
.unit-table tbody tr {
    cursor: pointer;
    transition: background 0.2s ease;
}
.unit-table tbody tr:hover,
.unit-table tbody tr.active { background: var(--cream); }
.unit-table .status {
    display: inline-block;
    padding: 3px 14px;
    border-radius: 20px;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--white);
}
.unit-table .status.frei { background: var(--frei); }
.unit-table .status.reserviert { background: var(--reserviert); }
.unit-table .status.verkauft { background: var(--verkauft); }
.unit-table tr.is-verkauft td:not(.cell-status) { opacity: 0.45; }
.unit-table a.pdf-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
}
.unit-table .btn { padding: 8px 18px; font-size: 0.7rem; }
.table-note {
    margin-top: 18px;
    font-size: 0.88rem;
    color: var(--ink-soft);
    letter-spacing: 0.04em;
}

/* ---------- Galerie / Slider ---------- */
.slider {
    position: relative;
    overflow: hidden;
    margin-bottom: 72px;
}
.slider-track {
    display: flex;
    transition: transform 0.55s cubic-bezier(.4, 0, .2, 1);
}
.slide {
    flex: 0 0 78%;
    max-width: 78%;
    margin: 0 12px;
    position: relative;
    cursor: zoom-in;
}
.slide img {
    width: 100%;
    height: 62vh;
    min-height: 380px;
    max-height: 640px;
    object-fit: cover;
    border-radius: var(--radius);
}
.slide figcaption {
    position: absolute;
    left: 20px; bottom: 16px;
    background: rgba(46, 50, 43, 0.72);
    color: var(--white);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    padding: 7px 16px;
    border-radius: 20px;
}
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px; height: 52px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.92);
    color: var(--ink);
    font-size: 1.7rem;
    line-height: 1;
    cursor: pointer;
    z-index: 5;
    transition: var(--trans);
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.14);
}
.slider-btn:hover { background: var(--sage); color: var(--white); }
.slider-btn.prev { left: 28px; }
.slider-btn.next { right: 28px; }
.slider-count {
    position: absolute;
    right: 32px; bottom: 20px;
    background: rgba(46, 50, 43, 0.72);
    color: var(--white);
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    padding: 6px 16px;
    border-radius: 20px;
    z-index: 5;
}

/* Tour 360 banner */
.tour-banner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    background: var(--white);
    border: 1px solid var(--cream-dark);
    border-radius: var(--radius);
    padding: 48px;
    align-items: center;
}
.tour-text h3 {
    font-size: 1.7rem;
    font-weight: 300;
    letter-spacing: 0.06em;
    margin-bottom: 10px;
}
.tour-text p { color: var(--ink-soft); margin-bottom: 24px; }
.tour-thumbs { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.tour-thumbs a { display: block; }
.tour-thumbs img {
    width: 100%;
    border-radius: var(--radius);
    aspect-ratio: 16 / 10;
    object-fit: cover;
    background: var(--cream-dark);
    transition: transform var(--trans), opacity var(--trans);
}
.tour-thumbs a:hover img { opacity: 0.85; transform: scale(1.02); }

/* ---------- Downloads ---------- */
.download-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 40px;
}
.download-card {
    border: 1px solid var(--cream-dark);
    border-radius: var(--radius);
    padding: 40px 28px;
    color: var(--ink);
    transition: var(--trans);
    background: var(--white);
}
.download-card:hover {
    border-color: var(--sage);
    transform: translateY(-4px);
    box-shadow: 0 14px 34px rgba(46, 50, 43, 0.08);
    color: var(--ink);
}
.download-icon {
    display: flex;
    width: 46px; height: 46px;
    border: 1px solid var(--sage);
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    color: var(--sage);
    font-size: 1.2rem;
    margin-bottom: 22px;
    transition: var(--trans);
}
.download-card:hover .download-icon { background: var(--sage); color: var(--white); }
.download-card h3 {
    font-size: 1.02rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 6px;
}
.download-card p { font-size: 0.88rem; color: var(--ink-soft); }

/* ---------- Kontakt ---------- */
.section-dark {
    background: var(--sage);
    color: var(--white);
}
.section-dark .section-eyebrow { color: rgba(255, 255, 255, 0.75); }
.section-dark .section-title { color: var(--white); }
.section-dark .section-title::after { background: rgba(255, 255, 255, 0.6); }

.kontakt-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 72px;
    margin-top: 40px;
}
.kontakt-form .form-row {
    display: flex;
    gap: 18px;
}
.form-field { flex: 1; margin-bottom: 18px; }
.form-field-sm { flex: 0 0 110px; }
.form-field label, .form-field legend {
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.72rem;
    margin-bottom: 7px;
    color: rgba(255, 255, 255, 0.85);
}
.form-field input, .form-field textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: var(--radius);
    padding: 12px 14px;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--white);
    transition: border-color var(--trans), background var(--trans);
}
.form-field input:focus, .form-field textarea:focus {
    outline: none;
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.14);
}
fieldset.form-field { border: none; }
.checkbox-row { display: flex; flex-wrap: wrap; gap: 10px 28px; }
.checkbox-row label, .form-consent {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 0.92rem;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.92);
}
.checkbox-row input, .form-consent input { accent-color: var(--white); width: 16px; height: 16px; }
.form-consent { margin: 6px 0 26px; }
.hidden-field { display: none; }

.kontakt-partner { display: flex; flex-direction: column; gap: 34px; }
.partner-block h4, .partner-social h4 {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.78rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 8px;
}
.partner-block p { font-size: 0.95rem; line-height: 1.8; }
.partner-block a { color: var(--white); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,0.4); }
.partner-block a:hover { text-decoration-color: var(--white); color: var(--white); }
.partner-placeholder {
    border: 1px dashed rgba(255, 255, 255, 0.45);
    border-radius: var(--radius);
    padding: 20px;
}
.placeholder-tag {
    display: inline-block;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    background: rgba(255, 255, 255, 0.18);
    padding: 3px 12px;
    border-radius: 20px;
    margin-bottom: 10px;
}
.social-icons { display: flex; gap: 14px; margin-bottom: 8px; }
.social-icons a {
    width: 42px; height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: var(--trans);
}
.social-icons a:hover { background: var(--white); color: var(--sage); }
.social-icons svg { width: 17px; height: 17px; }
.social-note { font-size: 0.8rem; color: rgba(255, 255, 255, 0.6); }

/* ---------- Footer ---------- */
.site-footer {
    background: var(--white);
    padding: 54px 0;
}
.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}
.footer-logo { height: 100px; width: auto; }
.footer-links { display: flex; gap: 28px; }
.footer-links a {
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.75rem;
    color: var(--ink-soft);
}
.footer-links a:hover { color: var(--sage); }
.footer-copy { font-size: 0.8rem; color: var(--ink-soft); letter-spacing: 0.05em; }

/* ---------- Lightbox ---------- */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(20, 22, 18, 0.94);
    display: flex;
    align-items: center;
    justify-content: center;
}
.lightbox[hidden] { display: none; }
.lightbox img {
    max-width: 90vw;
    max-height: 88vh;
    object-fit: contain;
}
.lightbox-close {
    position: absolute;
    top: 22px; right: 30px;
    background: none;
    border: none;
    color: var(--white);
    font-size: 2.6rem;
    font-weight: 200;
    cursor: pointer;
    line-height: 1;
}
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    width: 54px; height: 54px;
    color: var(--white);
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    transition: var(--trans);
}
.lightbox-nav:hover { background: rgba(255, 255, 255, 0.15); }
.lightbox-nav.prev { left: 30px; }
.lightbox-nav.next { right: 30px; }

/* ---------- Cursor personalizado ---------- */
@media (pointer: fine) {
    body.has-cursor,
    body.has-cursor * {
        cursor: none !important;
    }
}
.cursor-dot, .cursor-ring {
    position: fixed;
    top: 0; left: 0;
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
    will-change: transform;
}
body.has-cursor .cursor-dot,
body.has-cursor .cursor-ring { opacity: 1; }
.cursor-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--ink);
}
.cursor-ring {
    width: 36px; height: 36px;
    border: 1.5px solid var(--ink);
    border-radius: 50%;
    transition: width 0.25s ease, height 0.25s ease, opacity 0.3s ease;
}
.cursor-ring.grow {
    width: 58px; height: 58px;
}
.cursor-hidden .cursor-dot,
.cursor-hidden .cursor-ring { opacity: 0 !important; }

/* ---------- Animaciones reveal ---------- */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible {
    opacity: 1;
    transform: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
    .angebot-grid { grid-template-columns: 1fr; }
    .lage-grid { grid-template-columns: 1fr; }
    .lage-map { position: static; }
    .download-grid { grid-template-columns: repeat(2, 1fr); }
    .kontakt-grid { grid-template-columns: 1fr; gap: 56px; }
    .projekt-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 768px) {
    :root { --header-h: 68px; }
    body { font-size: 16px; }
    .container { padding: 0 20px; }
    .section { padding: 64px 0; }
    .section-intro { margin-bottom: 36px; }
    .section-title { padding-bottom: 18px; }

    .header-nav { display: none; }
    .hamburger { display: flex; }
    .logo-img { height: 56px; }

    /* Hero: usar altura dinámica para que la barra del navegador no lo recorte */
    .hero { min-height: 100svh; }
    .hero-content { padding: 100px 20px 90px; }
    .hero-logo { height: 84px; margin-bottom: 24px; }
    .hero-eyebrow { font-size: 0.72rem; letter-spacing: 0.24em; }
    .hero-sub { font-size: 0.95rem; }
    .hero-arrow { bottom: -20px; width: 28px; height: 28px; }

    .projekt-text h3 { margin-top: 24px; }
    .facts-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 28px 16px;
        margin-top: 52px;
        padding-top: 40px;
    }
    .fact-num { font-size: 1.9rem; }
    .fact-label { font-size: 0.66rem; letter-spacing: 0.12em; }

    /* Lage: mapa a sangre y puntos con área táctil cómoda */
    .lage-tabs { margin-bottom: 28px; }
    .lage-tab { padding: 12px 20px; font-size: 0.78rem; letter-spacing: 0.14em; }
    .lage-grid { gap: 28px; }
    .lage-map { padding: 0; margin: 0 -20px; }   /* mapa a sangre, sin caja */
    .poi-toggle { padding: 15px 2px; font-size: 0.76rem; }
    .poi-dot { width: 30px; height: 30px; font-size: 0.68rem; border-width: 2px; }
    .poi-dot::after {           /* área táctil ampliada e invisible */
        content: "";
        position: absolute;
        inset: -9px;
        border-radius: 50%;
    }
    .poi-dot:hover, .poi-dot.active { transform: translate(-50%, -50%) scale(1.25); }
    .poi-tip { font-size: 0.76rem; padding: 7px 12px; max-width: 76vw; white-space: normal; text-align: center; }
    .poi-group li { padding: 10px; font-size: 0.92rem; }
    .poi-group li.poi-tappable { cursor: pointer; }
    .poi-group li.poi-tappable:active { background: var(--cream-dark); }

    /* Angebot: isometría a sangre, sin hueco vacío */
    .angebot-grid { gap: 28px; margin-bottom: 40px; }
    .iso-wrap { min-height: 0; padding: 12px 0; margin: 0 -20px; border-radius: 0; }
    .iso-reset { top: 8px; right: 12px; padding: 8px 14px; font-size: 0.66rem; }
    .unit-detail { padding: 24px; }
    .unit-detail-nr { font-size: 2.1rem; }
    .unit-detail-actions { flex-direction: column; }
    .table-wrap {
        margin: 0 -20px;
        padding: 0 20px;
        -webkit-overflow-scrolling: touch;
    }
    .unit-table { font-size: 0.86rem; }
    .unit-table thead th, .unit-table tbody td { padding: 11px 12px; }

    /* Galerie */
    .slide { flex: 0 0 90%; max-width: 90%; margin: 0 5px; }
    .slide img { height: 44vh; min-height: 260px; }
    .slide figcaption { left: 12px; bottom: 12px; font-size: 0.66rem; padding: 5px 12px; }
    .slider-btn { width: 40px; height: 40px; font-size: 1.4rem; }
    .slider-btn.prev { left: 10px; }
    .slider-btn.next { right: 10px; }
    .slider-count { right: 16px; bottom: 14px; font-size: 0.7rem; }
    .tour-banner { grid-template-columns: 1fr; padding: 28px 22px; gap: 26px; }
    .tour-text h3 { font-size: 1.35rem; }

    .download-grid { grid-template-columns: 1fr; gap: 14px; }
    .download-card { padding: 24px 22px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
    .download-icon { margin-bottom: 0; flex: 0 0 auto; width: 40px; height: 40px; }
    .download-card h3 { font-size: 0.94rem; margin-bottom: 2px; }
    .download-card p { flex: 1 0 100%; font-size: 0.84rem; }

    /* Formulario: sin zoom al enfocar (iOS amplía si la fuente < 16px) */
    .kontakt-grid { gap: 44px; }
    .kontakt-form .form-row { flex-direction: column; gap: 0; }
    .form-field-sm { flex: 1; }
    .form-field input, .form-field textarea { font-size: 16px; padding: 13px 14px; }
    .checkbox-row { flex-direction: column; gap: 12px; }
    .checkbox-row label, .form-consent { align-items: flex-start; line-height: 1.45; }
    .checkbox-row input, .form-consent input { flex: 0 0 auto; margin-top: 3px; width: 20px; height: 20px; }
    .btn { padding: 14px 26px; }
    .kontakt-form .btn-light { width: 100%; }

    .footer-inner { flex-direction: column; text-align: center; gap: 18px; }
    .footer-logo { height: 76px; }
}

@media (max-width: 400px) {
    .hero h1 { font-size: 2.15rem; line-height: 2.3rem; }
    .lage-tab { padding: 11px 14px; font-size: 0.72rem; }
    .fact-num { font-size: 1.7rem; }
    .poi-dot { width: 28px; height: 28px; }
}
