/* Prototyp v2: durchgehender Baum aus den Originalfotos. Ergänzt styles.css, ohne sie zu verändern.
   Alle Maße kommen aus js/tree-proto-v2.js als Custom Properties:
   --tv2-trunk-w   Stammbreite, auf der ganzen Seite gleich
   --tv2-crown-*   Größe/Lage der Krone, so skaliert, dass ihr Stammansatz genau --tv2-trunk-w breit ist
   --tv2-roots-*   Größe/Lage der Wurzeln, Wurzelhals bewusst etwas breiter (Stammfuß) */
body { position: relative; }

#tree-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: var(--z-background);
    pointer-events: none;
    overflow: hidden;
}

.tv2-crown,
.tv2-trunk,
.tv2-roots {
    position: absolute;
    left: 50%;
    background-repeat: no-repeat;
}

.tv2-crown {
    top: var(--tv2-crown-top);
    width: var(--tv2-crown-w);
    height: var(--tv2-crown-h);
    margin-left: var(--tv2-crown-shift);
    background-image: url('../images/tree-v2/crown.webp');
    background-size: 100% 100%;
    z-index: 2;
}

.tv2-trunk {
    top: var(--tv2-trunk-top);
    height: var(--tv2-trunk-h);
    width: var(--tv2-trunk-w);
    margin-left: calc(var(--tv2-trunk-w) / -2);
    background-image: url('../images/tree-v2/trunk-tile.jpg');
    background-repeat: repeat-y;
    background-size: var(--tv2-trunk-w) auto;
    /* Weiche Kanten statt harter Schnittlinie, oben und unten Überblendung in Krone und Wurzeln. */
    -webkit-mask-image:
        linear-gradient(to right, transparent 0, #000 6%, #000 94%, transparent 100%),
        linear-gradient(to bottom, transparent 0, #000 60px, #000 calc(100% - 220px), transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image:
        linear-gradient(to right, transparent 0, #000 6%, #000 94%, transparent 100%),
        linear-gradient(to bottom, transparent 0, #000 60px, #000 calc(100% - 220px), transparent 100%);
    mask-composite: intersect;
    z-index: 1;
}

/* Rundung: Licht von links, Schatten rechts. */
.tv2-trunk::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right,
        rgba(0,0,0,0.55) 0%, rgba(0,0,0,0) 22%, rgba(0,0,0,0) 55%, rgba(0,0,0,0.6) 100%);
}

.tv2-roots {
    top: var(--tv2-roots-top);
    width: var(--tv2-roots-w);
    height: var(--tv2-roots-h);
    margin-left: var(--tv2-roots-shift);
    background-image: url('../images/tree-v2/roots.webp');
    background-size: 100% 100%;
    z-index: 0;
}

/* Fotos und flächige Abdeckungen der Sections entfallen, der Baum ist das Motiv. */
.tree-proto .parallax-bg,
.tree-proto .section-overlay { display: none; }
.tree-proto .contact-section { background-image: none !important; }
.tree-proto .contact-section::before {
    background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0.4) 100%);
}

/* Lesbarkeit: ruhige, weich auslaufende Abdunklung hinter den Überschriften. */
.tree-proto .hero-content {
    background: radial-gradient(closest-side, rgba(6,8,6,0.72) 0%, rgba(6,8,6,0.45) 60%, rgba(6,8,6,0) 100%);
    padding: 3rem 2rem;
}
.tree-proto .section-header {
    background: radial-gradient(closest-side, rgba(6,8,6,0.75) 0%, rgba(6,8,6,0.45) 60%, rgba(6,8,6,0) 100%);
    padding: 3rem 1rem;
}
.tree-proto .timeline-line { opacity: 0.35; }
