/* HALL · Anpassungen für HOMA CMS (Editor, Cookie-Hinweis, Formularmeldungen) · Werbeagentur Hoffmann */

/* Navigation: Menütitel stehen normal geschrieben im CMS, oben klein wie im Entwurf */
.main-nav a { text-transform: lowercase; }
/* „Kontakt“ ist der letzte Menüpunkt und wird zum Button (wie .nav-cta im Original) */
@media (min-width: 900px) {
  .main-nav a:last-child { border: 1.5px solid var(--accent-strong); background: var(--accent-strong); border-radius: 999px; padding: 0.5rem 1.15rem; color: #fff; }
  .main-nav a:last-child::after { display: none; }
  .main-nav a:last-child:hover { background: var(--accent); border-color: var(--accent); }
  .main-nav a:last-child[aria-current="page"] { background: var(--accent); border-color: var(--accent); }
}

/* Zusätzliche Hüllen für direkt bearbeitbare Texte: optisch neutral */
.statement .st-a { color: inherit; }
.rt > :first-child { margin-top: 0; }

/* Referenzen: Spaltenzahl auch ohne JS aus der Anzahl der Fotos */
.ref-gallery:has(> .ref-photo:only-child) { grid-template-columns: minmax(0, 1fr); max-width: 420px; }
@media (min-width: 640px) {
  .ref-gallery:has(> .ref-photo:nth-child(3)) { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 639px) {
  .ref-gallery:has(> .ref-photo:nth-child(3)) .ref-photo:first-child { grid-column: 1 / -1; aspect-ratio: 1 / 1; }
  .ref-gallery:has(> .ref-photo:only-child) { max-width: none; }
}

/* 404 */
.notfound > .wrap { width: 100%; }

/* ---------- Cookie-Hinweis von HOMA in der Optik des Entwurfs ---------- */
.homa-cc-wrap .cc {
  left: 1rem; right: 1rem; bottom: 1rem; z-index: 260;
  max-width: 34rem; padding: 1.4rem 1.4rem 1.2rem;
  background: #1e1a3f; border: 1px solid rgba(243, 242, 249, 0.12); border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  font-family: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 0.9rem; line-height: 1.65; color: #a9a6c2;
}
.homa-cc-wrap .cc p { margin: 0; }
.homa-cc-wrap .cc .homa-cc-title { display: block; margin: 0 0 0.4rem; color: #f3f2f9; font-size: 1rem; font-weight: 700; line-height: 1.65; }
.homa-cc-wrap .cc a { color: #8f86ff; }
.homa-cc-wrap .homa-cc-btns { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1rem; }
.homa-cc-wrap .homa-cc-btn {
  min-height: 0; padding: 0.7rem 1.2rem; border-radius: 999px; border: 1.5px solid rgba(243, 242, 249, 0.45);
  background: transparent; color: #f3f2f9; font-family: inherit; font-size: 0.85rem; font-weight: 600; line-height: 1.2;
  transition: background 0.3s, border-color 0.3s, color 0.3s;
}
.homa-cc-wrap .homa-cc-btn:hover { background: rgba(243, 242, 249, 0.08); }
.homa-cc-wrap .homa-cc-primary { order: -1; background: #5a4ef0; border-color: #5a4ef0; color: #fff; }
.homa-cc-wrap .homa-cc-primary:hover { background: #8f86ff; border-color: #8f86ff; }
@media (min-width: 900px) { .homa-cc-wrap .cc { left: 2rem; right: auto; bottom: 2rem; } }

/* ---------- Formularmeldungen von HOMA wie .form-status ---------- */
.contact-form .homa-form-msg { margin: 0 0 2rem; padding: 1.1rem 1.3rem; border: 1px solid; border-radius: 0; font-family: inherit; font-size: 1rem; font-weight: 500; line-height: 1.6; }
.contact-form .homa-form-msg.ok { background: #ecf8f0; border-color: #9fd4b0; color: #1d5a33; }
.contact-form .homa-form-msg.err { background: #fdf0ef; border-color: #f0b4ad; color: #8a2a20; }
.contact-form .homa-form-msg ul { margin: 0.4rem 0 0; }

/* ---------- Builder (Editor-Modus) ---------- */
.homa-ed .preloader { display: none !important; }
.homa-ed .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
.homa-ed .rotator { animation: none !important; }
.homa-ed .hero-slide { transition: none !important; }
.homa-ed .quote-band blockquote { opacity: 1 !important; transform: none !important; }
.homa-ed .sketch-band path { stroke-dashoffset: 0 !important; }
.homa-ed .map-consent button[disabled] { opacity: 0.55; cursor: not-allowed; }
.homa-ed .ref-photo a { cursor: default; }

/* Englische Rechtstexte hängen unter „English“ (für englischen Kopf und Fuß), erscheinen aber nicht im Menü */
.main-nav a[href$="/legal-notice"], .main-nav a[href$="/privacy"],
.offcanvas nav a[href$="/legal-notice"], .offcanvas nav a[href$="/privacy"],
.footer-nav a[href$="/legal-notice"], .footer-nav a[href$="/privacy"] { display: none; }

/* Handy: Zahlenreihe bei „Über uns“ (LEISTUNGSBEREICHE) darf die Textspalte nicht über den Rand drücken */
.about-grid > * { min-width: 0; }
.counters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.counter-label { overflow-wrap: break-word; -webkit-hyphens: auto; hyphens: auto; }
@media (max-width: 479px) { .counter-label { font-size: 0.66rem; letter-spacing: 0.06em; hyphenate-limit-chars: 10 4 4; } }
