
/* Etusivu ja kalenteri (rakenna_etusivu.py) */
.kotihero { display: grid; gap: 2rem; align-items: center; padding: 2rem 0 2.5rem; }
@media (min-width: 56rem) { .kotihero { grid-template-columns: 1fr 1.1fr; } }
.kotihero h1 { line-height: 1.05; font-size: clamp(2.2rem, 5vw, 3.4rem); }
.kotihero .ala { color: var(--muted); font-weight: 700; font-size: 1.15rem; margin: .6rem 0 0; }
@media (max-width: 55.99rem) { .kotihero > div:last-child { order: -1; } .kotihero img { max-height: 62vw; object-fit: cover; } }
.kotihero img { border-radius: 1.6rem; box-shadow: 0 6px 0 var(--edge); width: 100%; height: auto; }
.napit { display: flex; flex-wrap: wrap; gap: .7rem; margin: 1.3rem 0 .6rem; }
.nappi { display: inline-block; font-weight: 800; text-decoration: none; border-radius: 999px; padding: .75rem 1.3rem; }
.nappi.paa { background: var(--icing-red); color: #fff; }
.nappi.toinen { background: var(--paper); color: var(--icing-red); box-shadow: 0 3px 0 var(--edge); }
.pieni { color: var(--muted); font-size: .85rem; }
.vaiheet { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); margin: 1rem 0 2rem; }
.vaihe { background: var(--paper); border-radius: 1.4rem; box-shadow: 0 5px 0 var(--edge); padding: 1.2rem; }
.vaihe b { display: block; font-size: 1.15rem; color: var(--icing-red); margin-bottom: .3rem; }
.kalnosto { background: var(--paper); border-radius: 1.6rem; box-shadow: 0 5px 0 var(--edge); padding: 1.5rem; margin: 1rem 0 2.5rem; display: grid; gap: 1rem; align-items: center; }
@media (min-width: 48rem) { .kalnosto { grid-template-columns: 2fr 1fr; } }
.ukk details { background: var(--paper); border-radius: 1rem; box-shadow: 0 3px 0 var(--edge); padding: .9rem 1.1rem; margin: .6rem 0; }
.ukk summary { font-weight: 800; cursor: pointer; }
.luukut { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fill, minmax(5.4rem, 1fr)); margin: 1.2rem 0 1rem; }
.luukku { position: relative; display: block; aspect-ratio: 1; perspective: 700px; text-decoration: none; }
.luukku .sisus { position: absolute; inset: 0; border-radius: 1rem; background: #3a2414 center / cover no-repeat; box-shadow: inset 0 0 0 4px #7a4a22; }
.luukku .ovi { position: absolute; inset: 0; border-radius: 1rem; background: var(--gingerbread); color: #fff; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: .1rem; transform-origin: left center; transition: transform .85s cubic-bezier(.3,.7,.25,1);
  box-shadow: 0 5px 0 #9c6532; backface-visibility: hidden; }
.luukku .ovi::after { content: ""; position: absolute; inset: 6px; border: 2px dashed rgba(255,255,255,.75); border-radius: .7rem; pointer-events: none; }
.luukku .ovi::before { content: ""; position: absolute; right: 9px; top: 50%; width: 7px; height: 7px; margin-top: -3px; border-radius: 50%; background: #fff3; box-shadow: 0 0 0 2px #fff8; }
.luukku .ovi b { font-size: 1.7rem; font-weight: 800; }
.luukku .ovi small { font-size: .72rem; font-weight: 700; opacity: .9; }
.luukku.raollaan .ovi { transform: rotateY(-28deg); }
.luukku.auki .ovi { transform: rotateY(-108deg); }
.luukku[data-lukossa] .ovi { background: #e3d3bb; color: #8a7560; box-shadow: 0 5px 0 var(--edge); }
.luukku[data-lukossa] .ovi::after { border-color: #c9b597; }
.luukku.heilu .ovi { animation: heilu .45s; }
@keyframes heilu { 0%,100% { transform: rotate(0); } 25% { transform: rotate(-4deg); } 75% { transform: rotate(4deg); } }
@media (prefers-reduced-motion: reduce) { .luukku .ovi { transition: none; } .luukku.heilu .ovi { animation: none; } }
.luukkusivu { max-width: 44rem; padding-bottom: 2rem; }
.luukkusivu .luukkukuva { width: 100%; height: auto; border-radius: 1.4rem; box-shadow: 0 5px 0 var(--edge); margin: .6rem 0 .2rem; }
.luukkusivu .tee { font-weight: 700; }
.luukkusivu .vanhemmille { color: var(--muted); font-size: .9rem; }
.ilmainen { background: var(--paper); border-radius: 1.4rem; box-shadow: 0 5px 0 var(--edge); padding: 1.2rem; margin: 1.2rem 0; }
