/* Entwurf 3: animierte Mieter-Kacheln aus Entwurf 1 (unverändert übernommen, Anpassungen an den Stil in start.css) */
/* Kacheln für Mieter */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tile { display: flex; flex-direction: column; padding: 12px 12px 26px; border-radius: var(--r-lg); background: var(--bg); transition: background .3s; }
.tile:hover { background: #eeeef2; }
.tile h3 { margin: 22px 14px 0; font-size: 24px; font-weight: 400; letter-spacing: -.02em; }
.tile p { margin: 6px 14px 0; color: var(--muted); font-size: 15px; }
.tv { position: relative; height: 230px; border-radius: 20px; overflow: hidden; background: radial-gradient(120% 90% at 50% 0%, #fff 0%, #f7f7f9 100%); box-shadow: inset 0 0 0 1px var(--line); display: grid; place-items: center; }
/* Mini-Formular: spielt eine Meldung durch (Thema tippen, 2 Fotos, Senden, Status), solange die Kachel sichtbar ist */
.tvf { position: relative; width: 210px; display: grid; gap: 12px; padding: 16px; border-radius: 18px; background: #fff; box-shadow: 0 18px 40px -12px rgba(0,0,0,.14), 0 0 0 1px var(--line); transform: rotate(-3deg) translateY(4px); transition: transform .6s var(--ease); }
.tile:hover .tvf { transform: none; }
.tvf-steps { display: flex; gap: 4px; }
.tvf-steps i { flex: 1; height: 3px; border-radius: 2px; background: var(--sand); }
.tvf-steps i.on { background: var(--ink); }
.tvf-row { display: flex; align-items: center; gap: 10px; min-width: 0; }
.tvf-ic { width: 30px; height: 30px; border-radius: 50%; background: var(--bg); display: grid; place-items: center; flex: none; }
.tvf-txt { font-size: 12.5px; font-weight: 500; white-space: nowrap; overflow: hidden; }
.tvf-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.tvf-photos img, .tvf-photos span { width: 100%; aspect-ratio: 1; border-radius: 9px; object-fit: cover; }
.tvf-photos span { display: grid; place-items: center; color: var(--muted); box-shadow: inset 0 0 0 1.5px var(--line); }
.tvf-send { position: relative; justify-self: end; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; }
.tvf-send > span { grid-area: 1 / 1; display: grid; }
.tvf-go { transform: rotate(-90deg); }
.tvf-ok { opacity: 0; }
.tvf-ring { position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 2px #34c759; opacity: 0; }
.tvf-cur { position: absolute; left: 0; top: 0; opacity: 0; filter: drop-shadow(0 3px 5px rgba(0,0,0,.25)); pointer-events: none; }
.tvf-toast { position: absolute; top: 14px; left: 50%; display: grid; grid-template-columns: auto auto; align-items: center; column-gap: 8px; padding: 7px 13px 7px 10px; border-radius: 99px; background: #fff; box-shadow: 0 10px 26px -10px rgba(0,0,0,.25), 0 0 0 1px var(--line); font-size: 12px; font-weight: 500; white-space: nowrap; opacity: 0; transform: translate(-50%, -140%); }
.tvf-toast i { width: 8px; height: 8px; border-radius: 50%; background: #34c759; }
.tvf-toast span { grid-area: 1 / 2; }
.tvf-toast .tt-b { opacity: 0; }
/* Ablauf: 7 s pro Runde, läuft nur, solange die Kachel im Bild ist (Klasse play aus site.js) */
.tv-form.play :is(.tvf-txt, .tvf-photos img, .tvf-photos span, .tvf-steps i, .tvf-send, .tvf-go, .tvf-ok, .tvf-ring, .tvf-cur, .tvf-toast, .tvf-toast i, .tt-a, .tt-b) { animation-duration: 7s; animation-iteration-count: infinite; animation-fill-mode: both; animation-timing-function: var(--ease); }
.tv-form.play .tvf-txt { animation-name: tvType; animation-timing-function: steps(16, end); }
.tv-form.play .tvf-photos img:nth-child(1) { animation-name: tvPop1; }
.tv-form.play .tvf-photos img:nth-child(2) { animation-name: tvPop2; }
.tv-form.play .tvf-photos span { animation-name: tvShot; }
.tv-form.play .tvf-steps i:nth-child(2) { animation-name: tvStep2; }
.tv-form.play .tvf-steps i:nth-child(3) { animation-name: tvStep3; }
.tv-form.play .tvf-steps i:nth-child(4) { animation-name: tvStep4; }
.tv-form.play .tvf-steps i:nth-child(5) { animation-name: tvStep5; }
.tv-form.play .tvf-cur { animation-name: tvCur; animation-timing-function: cubic-bezier(.45, 0, .2, 1); }
.tv-form.play .tvf-send { animation-name: tvSend; }
.tv-form.play .tvf-go { animation-name: tvGo; }
.tv-form.play .tvf-ok { animation-name: tvOk; }
.tv-form.play .tvf-ring { animation-name: tvRing; animation-timing-function: ease-out; }
.tv-form.play .tvf-toast { animation-name: tvToast; animation-timing-function: cubic-bezier(.3, 1.4, .5, 1); }
.tv-form.play .tvf-toast i { animation-name: tvDot; }
.tv-form.play .tt-a { animation-name: tvTa; }
.tv-form.play .tt-b { animation-name: tvTb; }
@keyframes tvType { 0%, 4% { clip-path: inset(0 100% 0 0); opacity: 1; } 20%, 92% { clip-path: inset(0 0 0 0); opacity: 1; } 97%, 100% { clip-path: inset(0 0 0 0); opacity: 0; } }
@keyframes tvCur { 0%, 14% { opacity: 0; transform: translate(200px, 190px); } 18% { opacity: 1; } 26% { transform: translate(158px, 92px) scale(1); } 28% { transform: translate(158px, 92px) scale(.82); } 30%, 34% { transform: translate(158px, 92px) scale(1); } 36% { transform: translate(158px, 92px) scale(.82); } 38% { transform: translate(158px, 92px) scale(1); } 50% { transform: translate(175px, 152px) scale(1); } 52% { transform: translate(175px, 152px) scale(.82); } 54% { opacity: 1; transform: translate(175px, 152px) scale(1); } 62%, 100% { opacity: 0; transform: translate(200px, 190px); } }
@keyframes tvShot { 0%, 27% { background: transparent; } 28% { background: #fff; color: var(--ink); } 31%, 35% { background: transparent; } 36% { background: #fff; color: var(--ink); } 39%, 100% { background: transparent; } }
@keyframes tvPop1 { 0%, 28% { opacity: 0; transform: scale(.4) rotate(-12deg); } 32% { opacity: 1; transform: scale(1.08) rotate(2deg); } 35%, 92% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; transform: scale(.8); } }
@keyframes tvPop2 { 0%, 36% { opacity: 0; transform: scale(.4) rotate(12deg); } 40% { opacity: 1; transform: scale(1.08) rotate(-2deg); } 43%, 92% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; transform: scale(.8); } }
@keyframes tvStep2 { 0%, 19% { background: var(--sand); } 22%, 95% { background: var(--ink); } 100% { background: var(--sand); } }
@keyframes tvStep3 { 0%, 38% { background: var(--sand); } 41%, 95% { background: var(--ink); } 100% { background: var(--sand); } }
@keyframes tvStep4 { 0%, 44% { background: var(--sand); } 47%, 95% { background: var(--ink); } 100% { background: var(--sand); } }
@keyframes tvStep5 { 0%, 53% { background: var(--sand); } 56%, 95% { background: #34c759; } 100% { background: var(--sand); } }
@keyframes tvSend { 0%, 51% { background: var(--ink); transform: scale(1); } 53% { background: var(--ink); transform: scale(.84); } 56% { background: #34c759; transform: scale(1.14); } 60%, 92% { background: #34c759; transform: scale(1); } 97%, 100% { background: var(--ink); transform: scale(1); } }
@keyframes tvGo { 0%, 53% { opacity: 1; transform: rotate(-90deg); } 56% { opacity: 0; transform: rotate(-90deg) translateX(8px); } 94% { opacity: 0; transform: rotate(-90deg) translateX(-6px); } 98%, 100% { opacity: 1; transform: rotate(-90deg); } }
@keyframes tvOk { 0%, 54% { opacity: 0; transform: scale(.3); } 58% { opacity: 1; transform: scale(1.15); } 61%, 92% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }
@keyframes tvRing { 0%, 55% { opacity: 0; transform: scale(1); } 56% { opacity: .9; transform: scale(1); } 68%, 100% { opacity: 0; transform: scale(2.2); } }
@keyframes tvToast { 0%, 58% { opacity: 0; transform: translate(-50%, -140%); } 63%, 90% { opacity: 1; transform: translate(-50%, 0); } 95%, 100% { opacity: 0; transform: translate(-50%, -140%); } }
@keyframes tvDot { 0%, 74% { background: #34c759; } 77%, 100% { background: #f0a020; } }
@keyframes tvTa { 0%, 74% { opacity: 1; transform: none; } 77%, 100% { opacity: 0; transform: translateY(-6px); } }
@keyframes tvTb { 0%, 75% { opacity: 0; transform: translateY(6px); } 78%, 100% { opacity: 1; transform: none; } }
/* Aufgefächerte Dokumente */
.tvd { position: absolute; left: 50%; top: 50%; width: 128px; height: 164px; padding: 12px; border-radius: 12px; background: #fff; box-shadow: 0 14px 34px -10px rgba(0,0,0,.18), 0 0 0 1px var(--line); transform: translate(-50%, -46%) translateX(calc((var(--i) - 1) * 30px)) rotate(calc((var(--i) - 1) * 8deg)); transition: transform .6s var(--ease); }
.tvd:nth-child(2) { z-index: 2; }
.tile:hover .tvd { transform: translate(-50%, -50%) translateX(calc((var(--i) - 1) * 66px)) rotate(calc((var(--i) - 1) * 12deg)); }
.tvd-tag { display: inline-block; font-size: 9px; font-weight: 700; letter-spacing: .06em; padding: 2px 5px; border-radius: 4px; background: var(--ink); color: #fff; }
.tvd b { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin-top: 10px; font-size: 11.5px; font-weight: 500; line-height: 1.3; }
.tvd i { display: block; height: 5px; margin-top: 7px; border-radius: 3px; background: var(--sand); }
.tvd i:last-child { width: 60%; }
/* Häufige Fragen: Frage und Antwort als Sprechblasen */
.tv-faq { align-content: center; justify-items: center; gap: 10px; padding: 0 22px; }
.tvq { justify-self: start; max-width: 82%; padding: 10px 14px; border-radius: 16px 16px 16px 4px; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 10px 24px -12px rgba(0,0,0,.15); font-size: 13px; line-height: 1.35; transition: transform .6s var(--ease); }
.tvq-2 { opacity: .5; transform: scale(.96); transform-origin: left; }
.tva { justify-self: end; display: grid; gap: 5px; width: 58%; padding: 12px 14px; border-radius: 16px 16px 4px 16px; background: var(--ink); transition: transform .6s var(--ease); }
.tva i { height: 5px; border-radius: 3px; background: rgba(255,255,255,.35); }
.tva i:last-child { width: 55%; }
.tile:hover .tvq:first-child { transform: translateY(-4px); }
.tile:hover .tva { transform: translateY(-2px); }
@media (max-width: 1100px) { .tiles { grid-template-columns: 1fr 1fr; } .tiles .tile:last-child { grid-column: span 2; } }
@media (max-width: 640px) { .tiles { grid-template-columns: 1fr; } .tiles .tile:last-child { grid-column: auto; } .tv { height: 210px; } }
@media (prefers-reduced-motion: reduce) { .tv-form.play * { animation: none !important; } .tvf, .tvd, .tvq, .tva, .own-img img { transition: none; } }
