/* MEISTERHILFE - Öffentliche Betriebs-Website (Internetauftritt)
   Developed by Toni Sciacca - mail@tonisciacca.com
   Helles Template auf Basis der HOJ-Tokens (style.css). Akzentfarbe je Betrieb
   über --site (fällt auf --primary zurück). Kein Dunkel-Theme. */

:root { --site: #f6a200; }
* { box-sizing: border-box; }
body.mh-site { margin: 0; background: #ffffff; color: #1e293b; font-family: 'Inter', system-ui, -apple-system, sans-serif; line-height: 1.6; }
.mh-site a { color: inherit; }
.st-wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* Kopf */
.st-top { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid #eef2f6; }
.st-top-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.st-logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; text-decoration: none; color: #0f172a; }
.st-logo .dot { width: 34px; height: 34px; border-radius: 9px; background: var(--site); display: inline-flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; }
.st-logo img { height: 40px; width: auto; display: block; }
.st-nav { display: flex; align-items: center; gap: 22px; }
.st-nav a { text-decoration: none; color: #475569; font-weight: 500; font-size: .95rem; }
.st-nav a:hover { color: var(--site); }
.st-cta { display: inline-flex; align-items: center; gap: 7px; background: var(--site); color: #fff; text-decoration: none; font-weight: 700; padding: 10px 18px; border-radius: 9999px; font-size: .92rem; box-shadow: 0 4px 14px rgba(0,0,0,.10); }
.st-cta:hover { filter: brightness(.95); }
.st-cta.ghost { background: #fff; color: #0f172a; border: 1px solid #e2e8f0; box-shadow: none; }
.st-burger { display: none; background: none; border: none; color: #0f172a; cursor: pointer; }

/* Hero */
.st-hero { position: relative; color: #fff; padding: 88px 0 96px; background: linear-gradient(135deg, var(--site), #ffce54); overflow: hidden; }
.st-hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 120% at 100% 0%, rgba(255,255,255,.25), transparent 55%); pointer-events: none; }
.st-hero h1 { position: relative; margin: 0 0 14px; font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.st-hero p { position: relative; margin: 0 0 28px; font-size: clamp(1.05rem, 2.4vw, 1.35rem); opacity: .96; max-width: 640px; }
.st-hero-actions { position: relative; display: flex; gap: 12px; flex-wrap: wrap; }
.st-hero .st-cta { background: rgba(255,255,255,.18); color: #fff; border: 1px solid rgba(255,255,255,.55); box-shadow: none; }
.st-hero .st-cta.solid { background: #fff; color: #0f172a; border-color: #fff; box-shadow: 0 6px 18px rgba(0,0,0,.12); }
.st-hero-badges { position: relative; display: flex; gap: 18px; flex-wrap: wrap; margin-top: 26px; font-size: .95rem; opacity: .96; }
.st-hero-badges span { display: inline-flex; align-items: center; gap: 7px; }

/* Sektionen */
.st-sec { padding: 66px 0; }
.st-sec.alt { background: #f8fafc; }
.st-sec h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; color: #0f172a; margin: 0 0 8px; letter-spacing: -.02em; }
.st-sec .lead { color: #64748b; margin: 0 0 30px; font-size: 1.05rem; max-width: 620px; }
.st-eyebrow { display: inline-flex; align-items: center; gap: 7px; color: var(--site); font-weight: 700; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 10px; }

/* Leistungen / Karten */
.st-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.st-card { background: #fff; border: 1px solid #eef2f6; border-radius: 16px; padding: 22px; box-shadow: 0 1px 2px rgba(0,0,0,.04); transition: transform .12s, box-shadow .12s; }
.st-card:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0,0,0,.08); }
.st-card .ic { width: 44px; height: 44px; border-radius: 12px; background: color-mix(in srgb, var(--site) 14%, #fff); color: var(--site); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.st-card h3 { margin: 0 0 6px; font-size: 1.1rem; color: #0f172a; }
.st-card p { margin: 0 0 12px; color: #64748b; font-size: .94rem; }
.st-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.st-tag { font-size: .74rem; font-weight: 700; padding: 3px 9px; border-radius: 9999px; background: #f1f5f9; color: #475569; }
.st-tag.accent { background: color-mix(in srgb, var(--site) 16%, #fff); color: var(--site); }
.st-tag.green { background: #dcfce7; color: #166534; }
.st-list { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 28px; }
.st-list li { padding: 8px 0 8px 26px; position: relative; break-inside: avoid; color: #334155; }
.st-list li::before { content: ""; position: absolute; left: 0; top: 15px; width: 8px; height: 8px; border-radius: 50%; background: var(--site); }

/* Zwei-Spalten (Über uns / Kontakt) */
.st-cols { display: grid; grid-template-columns: 1.2fr .8fr; gap: 36px; align-items: start; }
.st-info { background: #fff; border: 1px solid #eef2f6; border-radius: 16px; padding: 24px; }
.st-info .row { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; border-bottom: 1px solid #f1f5f9; }
.st-info .row:last-child { border-bottom: none; }
.st-info .row .ic { color: var(--site); flex: none; margin-top: 2px; }
.st-info .row .lbl { font-size: .78rem; color: #94a3b8; text-transform: uppercase; letter-spacing: .05em; }
.st-info .row .val { font-weight: 600; color: #0f172a; }

/* Terminreservierung */
.st-book { background: #fff; border: 1px solid #eef2f6; border-radius: 20px; padding: 28px; box-shadow: 0 12px 40px rgba(0,0,0,.06); }
.st-book .fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.st-field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 4px; }
.st-field.full { grid-column: 1 / -1; }
.st-field label { font-size: .84rem; font-weight: 600; color: #334155; }
.st-field label .req { color: #ef4444; }
.st-field input, .st-field select, .st-field textarea { font: inherit; padding: 11px 13px; border: 1px solid #e2e8f0; border-radius: 10px; background: #fff; color: #0f172a; width: 100%; }
.st-field input:focus, .st-field select:focus, .st-field textarea:focus { outline: none; border-color: var(--site); box-shadow: 0 0 0 3px color-mix(in srgb, var(--site) 20%, transparent); }
.st-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.st-submit { display: inline-flex; align-items: center; gap: 8px; background: var(--site); color: #fff; border: none; font: inherit; font-weight: 700; padding: 13px 24px; border-radius: 9999px; cursor: pointer; box-shadow: 0 6px 18px rgba(0,0,0,.12); }
.st-submit:hover { filter: brightness(.96); }
.st-note { font-size: .84rem; color: #94a3b8; margin-top: 12px; }
.st-alert { border-radius: 12px; padding: 14px 16px; margin-bottom: 18px; display: flex; align-items: center; gap: 10px; font-weight: 600; }
.st-alert.ok { background: #dcfce7; color: #166534; }
.st-alert.err { background: #fee2e2; color: #991b1b; }
.st-alert.info { background: #eff6ff; color: #1e40af; }

/* Impressum / Footer */
.st-impressum { font-size: .9rem; color: #64748b; }
.st-impressum table { border-collapse: collapse; }
.st-impressum td { padding: 6px 14px 6px 0; vertical-align: top; }
.st-impressum td.k { color: #94a3b8; white-space: nowrap; }
.st-foot { background: #f8fafc; border-top: 1px solid #eef2f6; padding: 30px 0; color: #64748b; font-size: .9rem; }
.st-foot-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.st-foot a { color: #475569; text-decoration: none; }
.st-foot a:hover { color: var(--site); }
.st-madeby { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; color: #94a3b8; }

.st-preview-bar { background: #fef3c7; color: #92400e; text-align: center; padding: 9px 16px; font-size: .86rem; border-bottom: 1px solid #fde68a; }
.st-preview-bar a { color: #92400e; font-weight: 700; }

@media (max-width: 860px) {
  .st-cols { grid-template-columns: 1fr; }
  .st-book .fgrid { grid-template-columns: 1fr; }
  .st-nav { display: none; }
  .st-burger { display: inline-flex; }
  .st-list { columns: 1; }
}

/* Leistungen aus dem Katalog (Übersicht und Leistungsseite) */
.st-leist-grid .st-card { text-decoration: none; display: flex; flex-direction: column; }
.st-leist-karte .st-card-bild { width: 100%; height: 170px; object-fit: cover; border-radius: 12px; margin-bottom: 12px; display: block; }
.st-leist-karte .st-tags { margin-top: auto; }
.st-leist-detail { display: grid; grid-template-columns: 1.15fr .85fr; gap: 36px; align-items: start; }
.st-leist-titelbild { width: 100%; max-height: 420px; object-fit: cover; border-radius: 18px; display: block; margin-bottom: 14px; }
.st-galerie { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin-bottom: 18px; }
.st-galerie img { width: 100%; height: 100px; object-fit: cover; border-radius: 10px; display: block; }
.st-leist-text p { color: #334155; margin: 0 0 14px; }
.st-fakten-box { position: sticky; top: 88px; background: #fff; border: 1px solid #eef2f6; border-radius: 20px; padding: 24px; box-shadow: 0 12px 40px rgba(0,0,0,.06); }
.st-preis { font-size: 1.7rem; font-weight: 800; color: #0f172a; margin-bottom: 12px; letter-spacing: -.01em; }
.st-fakten { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.st-fakt { display: inline-flex; align-items: center; gap: 8px; background: #f8fafc; border: 1px solid #eef2f6; border-radius: 12px; padding: 9px 12px; color: #334155; font-size: .92rem; }
.st-fakt svg { color: var(--site); flex: none; }
.st-fakten-box .st-cta { width: 100%; justify-content: center; }
@media (max-width: 860px) {
  .st-leist-detail { grid-template-columns: 1fr; }
  .st-fakten-box { position: static; }
}

/* Gestaltung je Betrieb: gewählte Schrift, lesbare Schrift auf der Akzentfarbe, Sprungziel Termin */
body.mh-site { font-family: var(--schrift, 'Inter', system-ui, -apple-system, sans-serif); }
.mh-site h1, .mh-site h2, .mh-site h3 { font-family: var(--schrift-titel, inherit); }
.mh-site .st-cta:not(.ghost), .mh-site .st-submit, .mh-site .cms-trb-btn, .mh-site .st-logo .dot, .mh-site .cms-trb-chip.aktiv { color: var(--site-auf, #fff); }
.st-nav a.aktiv { color: var(--site); font-weight: 600; }
.st-anker { display: block; position: relative; top: -110px; height: 0; visibility: hidden; }

/* Bildrahmen (für die Bildstile der Vorlage „Kraftvoll") */
.st-bildrahmen, .kr-bildrahmen { position: relative; display: block; overflow: hidden; }
.st-bildrahmen { margin-bottom: 14px; border-radius: 18px; }
.st-bildrahmen .st-leist-titelbild { margin-bottom: 0; border-radius: 0; }
.st-galerie .kr-bildrahmen { border-radius: 10px; }
.st-galerie .kr-bildrahmen img { border-radius: 0; }

/* Vorschau aus den Einstellungen: Hinweis, dass die Wahl noch nicht gespeichert ist */
.st-vorschau { position: sticky; top: 0; z-index: 90; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 16px; background: #111827; color: #fff;
               font: 600 13px/1.3 system-ui, -apple-system, sans-serif; letter-spacing: 0; text-transform: none; }
.st-vorschau span { opacity: .72; font-weight: 400; }
