/* ============================================================
   HOMA-Anpassungen für das Theme „Karosserie Thomas Schild“
   (Editor-Modus, HOMA-Cookie-Hinweis, Kartenplatzhalter, Hilfsklassen)
   ============================================================ */

/* Hilfs-Spans für direkt bearbeitbare Texte: verhalten sich wie Text */
.section-title .st-a,
.page-hero-title .st-a,
.check-list .cl-text { color: inherit; font: inherit; }

/* Hero: mehr als drei Zeilen ebenfalls einblenden */
body.is-loaded .hero-title .line:nth-child(n+4) .word { transform: translateY(0); transition-delay: 0.45s; }

/* Rechtstexte: Abschnitte als Fließtext / Info-Kasten / kleiner Hinweis */
.page-prose .rt-text h2:first-child { margin-top: 50px; }
.page-prose > .rt-text:first-child h2:first-child { margin-top: 0; }
.page-prose .info-block p { font-size: inherit; line-height: inherit; color: inherit; margin: 0 0 1em; }
.page-prose .info-block p:last-child { margin-bottom: 0; }
.page-prose .rt-klein p { font-size: 13px; color: var(--muted); margin-top: 40px; }
.page-prose .rt-klein a { color: var(--accent); }

/* Fußbereich: Knopf „Cookie-Einstellungen“ wie die Rechtslinks */
.footer-legal .footer-cookie {
    background: none; border: 0; padding: 0; margin: 0;
    font: inherit; color: rgba(255, 255, 255, 0.5);
    transition: color 0.3s ease; cursor: pointer;
}
.footer-legal .footer-cookie:hover { color: #fff; }

/* Kartenplatzhalter (Google Maps lädt erst nach Zustimmung) */
.gmap-container[data-homa-consent-wait] { display: flex; align-items: center; justify-content: center; }
.gmap-container iframe { position: absolute; inset: 0; }
.gmap-container .homa-consent-ph { max-width: 440px; padding: 30px; text-align: center; color: rgba(255, 255, 255, 0.78); font-size: 15px; line-height: 1.55; }
.gmap-container .homa-consent-ph p { margin: 0 0 18px; }
.gmap-container .homa-consent-btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 14px 26px; border: 0; border-radius: 999px;
    background: var(--accent); color: #fff;
    font: inherit; font-size: 15px; font-weight: 600; cursor: pointer;
    transition: background 0.3s ease;
}
.gmap-container .homa-consent-btn:hover { background: var(--accent-bright); }
.gmap-container .homa-consent-btn[disabled] { opacity: 0.6; cursor: default; }

/* HOMA-Cookie-Hinweis in der Optik des Original-Banners (dunkel, blauer Knopf) */
.homa-cc-wrap .cc {
    left: 18px; right: 18px; bottom: 18px; max-width: 700px; margin: 0 auto;
    padding: 18px 22px; background: var(--bg-dark); color: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 14px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
    font: 400 13px/1.5 'Inter', system-ui, -apple-system, sans-serif;
}
.homa-cc-wrap .cc .homa-cc-title { color: #fff; font-size: 15px; font-weight: 600; }
.homa-cc-wrap .cc a { color: #fff; }
.homa-cc-wrap .homa-cc-btn {
    min-height: 0; padding: 10px 20px; border: 1px solid rgba(255, 255, 255, 0.25); border-radius: 999px;
    background: transparent; color: #fff; font: 500 13px/1.2 'Inter', system-ui, sans-serif;
    transition: background 0.3s ease;
}
.homa-cc-wrap .homa-cc-btn:hover { background: rgba(255, 255, 255, 0.08); }
.homa-cc-wrap .homa-cc-primary { background: var(--accent); border-color: var(--accent); }
.homa-cc-wrap .homa-cc-primary:hover { background: var(--accent-bright); }

/* Bild-Platzhalter im Editor */
.img-ph { display: flex; align-items: center; justify-content: center; min-height: 240px; width: 100%; height: 100%; background: var(--bg-soft); color: var(--muted); font-size: 14px; border: 1px dashed var(--line); }

/* ============ Editor-Modus (Builder) ============ */
.homa-ed .preloader { display: none !important; }
.homa-ed .cursor { display: none !important; }
.homa-ed .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
.homa-ed .hero-img { transform: none !important; transition: none !important; }
.homa-ed .hero-title .word,
.homa-ed .hero-sub,
.homa-ed .hero-actions,
.homa-ed .hero-corner { opacity: 1 !important; transform: none !important; transition: none !important; }
.homa-ed .magnetic { transform: none !important; }

/* ============ Hinweis-Fenster (Popup, z. B. Weihnachtspause) ============ */
.ks-popup { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 20px; opacity: 0; transition: opacity 0.4s ease; }
.ks-popup[hidden] { display: none; }
.ks-popup.is-open { opacity: 1; }
.ks-popup__backdrop { position: absolute; inset: 0; background: rgba(10, 10, 10, 0.62); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.ks-popup__box {
    position: relative; width: 100%; max-width: 580px; max-height: calc(100vh - 40px); overflow: auto;
    background: var(--bg); color: var(--ink); border-radius: var(--radius); border-top: 4px solid var(--accent);
    padding: clamp(30px, 4vw, 46px); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
    transform: translateY(24px); transition: transform 0.5s cubic-bezier(0.65, 0, 0.35, 1);
}
.ks-popup.is-open .ks-popup__box { transform: none; }
.ks-popup__x {
    position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%;
    border: 1px solid var(--line); background: var(--bg); color: var(--ink);
    display: flex; align-items: center; justify-content: center; font-size: 15px; transition: background 0.3s ease;
}
.ks-popup__x:hover { background: var(--bg-soft); }
.ks-popup__title { margin: 0 0 18px; padding-right: 36px; font-size: clamp(24px, 2.6vw, 32px); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; color: var(--ink); }
.ks-popup__text p { margin: 0 0 14px; font-size: 16px; line-height: 1.6; color: var(--ink-soft); }
.ks-popup__text b, .ks-popup__text strong { color: var(--ink); }
.ks-popup__btn { margin-top: 12px; border: 0; }
.homa-ed .ks-popup { display: none !important; }
.ks-popup__box:focus { outline: none; }
