/* ==========================================================================
   components.css — Buttons, Karten, Formulare und alle Einzelbausteine
   ========================================================================== */

.eyebrow { text-transform: uppercase; letter-spacing: .18em; font-weight: 800; color: var(--gold); font-size: 12px; margin-bottom: 14px; display: block; }
.lead { font-size: clamp(1.08rem, 1.8vw, 1.34rem); max-width: 680px; color: var(--text-soft); }
.quote { font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.5rem, 2.6vw, 2.6rem); line-height: 1.22; color: var(--forest); max-width: 980px; }
.dark .quote { color: var(--gold-soft); }

/* --- Buttons --- */
.btn { display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; border: 1px solid transparent; padding: 13px 20px; font-weight: 700; letter-spacing: .01em; cursor: pointer; transition: .18s ease; font-size: 1rem; line-height: 1; }
.btn-small { padding: 10px 15px; font-size: 14px; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-gold { background: var(--gold); color: #fff; }
.btn-navy:hover, .btn-gold:hover { transform: translateY(-1px); box-shadow: 0 16px 34px rgba(7,31,62,.24); }
.btn-ghost { border-color: color-mix(in srgb, var(--text) 22%, transparent); background: color-mix(in srgb, var(--surface) 60%, transparent); color: var(--text); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.menu-btn { display: none; }

/* --- Theme-Umschalter (Hell/Dunkel) --- */
.theme-toggle {
  width: 40px; height: 40px; border-radius: 999px;
  border: 1px solid var(--border); background: color-mix(in srgb, var(--surface) 70%, transparent);
  color: var(--text); cursor: pointer; display: inline-grid; place-items: center;
  font-size: 17px; line-height: 1; transition: .18s ease;
}
.theme-toggle:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-1px); }
.theme-toggle .i-sun { display: none; }
.theme-toggle .i-moon { display: block; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .i-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .i-moon { display: none; }
}

/* --- Hero-Bausteine --- */
.proof { background: color-mix(in srgb, var(--surface) 78%, transparent); border: 1px solid var(--border); border-radius: 22px; padding: 18px; box-shadow: var(--shadow); backdrop-filter: blur(10px); }
.proof strong { display: block; color: var(--forest); font-size: 1.05rem; }
.dark .proof strong, :root[data-theme="dark"] .proof strong { color: var(--gold-soft); }
.proof span { font-size: .92rem; color: var(--text-muted); }
.hero-panel { align-self: end; background: color-mix(in srgb, var(--surface) 88%, transparent); border: 1px solid var(--border); border-radius: 34px; padding: 24px; box-shadow: var(--shadow); max-width: 470px; margin-left: auto; backdrop-filter: blur(10px); }
.hero-panel .seal { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--forest); color: #fff; font-size: 28px; margin-bottom: 16px; }

/* --- Karten --- */
.cards { display: grid; gap: 22px; }
.cards-2 { grid-template-columns: repeat(2, 1fr); }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.card.dark-card { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.14); }
.card p:last-child { margin-bottom: 0; }
.icon { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: var(--sand); color: var(--forest); font-size: 24px; margin-bottom: 17px; }
.icon.green { background: var(--forest); color: #fff; }
.icon.gold { background: var(--gold); color: #fff; }
.number { font-family: Georgia, "Times New Roman", serif; color: var(--gold); font-size: 2.1rem; line-height: 1; display: block; margin-bottom: 14px; }

.image-card { border-radius: 34px; overflow: hidden; box-shadow: var(--shadow); min-height: 500px; }
.image-card img { width: 100%; height: 100%; object-fit: cover; }
.insight { background: linear-gradient(135deg, var(--forest), var(--forest-2)); color: #fff; border-radius: 28px; padding: 30px; box-shadow: var(--shadow); margin-top: 22px; }
.insight h3 { color: #fff; }
.insight p { color: rgba(255,255,255,.82); }
.service-card { min-height: 320px; display: flex; flex-direction: column; }
.service-card .btn { margin-top: auto; align-self: flex-start; }

/* --- Produkte / Objektanalyse --- */
.product { background: var(--surface-solid); border: 1px solid var(--border); border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); }
.product img { height: 170px; width: 100%; object-fit: cover; }
.product-body { padding: 20px; }
.product-body h3 { font-size: 1.25rem; }
.product small { color: var(--gold); text-transform: uppercase; letter-spacing: .08em; font-weight: 800; }

/* --- Prozess --- */
.step { background: var(--surface-solid); border: 1px solid var(--border); border-radius: 22px; padding: 20px; text-align: center; box-shadow: var(--shadow); }
.dark .step { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); color: #fff; }
.step .circle { width: 48px; height: 48px; border-radius: 50%; background: var(--forest); color: #fff; display: grid; place-items: center; margin: 0 auto 12px; font-family: Georgia, "Times New Roman", serif; font-size: 1.25rem; }
.dark .step .circle { background: var(--gold); }

/* --- Über Pascal --- */
.portrait { border-radius: 34px; overflow: hidden; box-shadow: var(--shadow); background: var(--surface-2); }
.portrait img { width: 100%; height: 620px; object-fit: cover; object-position: center top; }
.credentials { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 22px; }
.credential { padding: 18px; background: var(--surface-solid); border: 1px solid var(--border); border-radius: 18px; }
.credential strong { display: block; color: var(--navy); }
:root[data-theme="dark"] .credential strong { color: var(--gold-soft); }

/* --- Honorar / Preise --- */
.price-list { display: grid; gap: 14px; }
.price { display: flex; justify-content: space-between; gap: 18px; padding: 18px 20px; background: var(--surface-solid); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow); }
.price span:first-child { font-weight: 800; color: var(--text); }
.price span:last-child { color: var(--gold); font-weight: 900; }

/* --- Referenzen --- */
.reference-card { background: linear-gradient(135deg, var(--surface), var(--surface-2)); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); display: flex; flex-direction: column; min-height: 330px; }
.reference-card.highlight { background: linear-gradient(135deg, var(--forest), var(--forest-2)); color: #fff; }
.reference-card.highlight h3 { color: #fff; }
.reference-card.highlight p, .reference-card.highlight li { color: rgba(255,255,255,.82); }
.reference-card .ref-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: auto; padding-top: 18px; }
.reference-list { margin: 12px 0 18px; padding-left: 20px; color: var(--text-muted); }
.reference-list li { margin-bottom: 8px; }
.reference-note { font-size: .92rem; color: var(--text-muted); margin-top: 14px; }
.reference-card.highlight .reference-note { color: rgba(255,255,255,.7); }

/* --- Abschluss-CTA + Kontakt --- */
.cta { background: linear-gradient(135deg, var(--navy), #0c3d74); color: #fff; border-radius: 34px; padding: 44px; display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center; box-shadow: var(--shadow); }
.cta h2 { color: #fff; }
.cta p { color: rgba(255,255,255,.78); }
.contact-box, .map-box { background: var(--surface-solid); border: 1px solid var(--border); border-radius: 28px; padding: 28px; box-shadow: var(--shadow); }
.contact-row { padding: 14px 0; border-bottom: 1px solid var(--border); }
.contact-row:last-child { border-bottom: 0; }
.contact-row small { display: block; color: var(--text-muted); }
.contact-row strong { color: var(--navy); }
:root[data-theme="dark"] .contact-row strong { color: var(--gold-soft); }
.contact-row a { color: inherit; }
.map-box { display: grid; place-items: center; text-align: center; min-height: 320px; background: linear-gradient(180deg, var(--surface-solid), var(--surface-2)); }
.map-frame { width: 100%; height: 350px; border: 0; border-radius: 20px; }

/* --- Kontaktformular ------------------------------------------------------ */
.contact-form { display: grid; gap: 16px; }
.contact-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label { font-size: .82rem; font-weight: 700; color: var(--text-soft); letter-spacing: .01em; }
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%; font: inherit; color: var(--text);
  background: var(--input-bg); border: 1px solid var(--input-border);
  border-radius: 14px; padding: 13px 15px; transition: border-color .15s ease, box-shadow .15s ease;
}
.form-field textarea { min-height: 140px; resize: vertical; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none; border-color: var(--input-focus);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--input-focus) 22%, transparent);
}
.form-consent { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--text-muted); }
.form-consent input { margin-top: 3px; }
.form-consent a { color: var(--link); }
.form-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.form-note { font-size: .82rem; color: var(--text-muted); }
.form-alert { border-radius: 16px; padding: 14px 18px; font-weight: 600; border: 1px solid transparent; }
.form-alert.ok  { background: color-mix(in srgb, var(--forest) 16%, var(--surface)); border-color: color-mix(in srgb, var(--forest) 40%, transparent); color: var(--forest); }
.form-alert.err { background: color-mix(in srgb, #b3261e 12%, var(--surface)); border-color: color-mix(in srgb, #b3261e 40%, transparent); color: #b3261e; }
:root[data-theme="dark"] .form-alert.ok { color: var(--gold-soft); }

/* --- Cookie-Banner --- */
.cookie { position: fixed; left: 22px; right: 22px; bottom: 22px; max-width: 1020px; margin: 0 auto; background: var(--surface); border: 1px solid var(--border); border-radius: 24px; box-shadow: 0 25px 80px rgba(0,0,0,.28); padding: 22px; z-index: 400; display: none; }
.cookie-grid { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: start; }
.cookie h3 { color: var(--text); }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-options { display: none; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
.cookie-options.show { display: grid; }
.cookie-option { background: var(--surface-2); border: 1px solid var(--border); border-radius: 16px; padding: 14px; }
.cookie-option label { font-weight: 800; display: flex; gap: 8px; align-items: center; color: var(--text); }

/* --- Rechtsseiten (Impressum, Datenschutz …) --- */
.legal main { padding: 70px 0; }
.legal article { background: var(--surface); border: 1px solid var(--border); border-radius: 30px; box-shadow: var(--shadow); padding: 36px; }
.legal h1 { font-size: clamp(2.4rem, 4vw, 4rem); }
.legal h2 { font-size: 1.55rem; margin-top: 30px; color: var(--text); }
.legal p, .legal li { color: var(--text-muted); }
.legal ul { color: var(--text-muted); }
.legal a { color: var(--link); }
.backlink { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 20px; font-weight: 700; color: var(--gold); }
.backlink:hover { color: var(--link-hover); }

@media (max-width: 720px) {
  .contact-form .form-row { grid-template-columns: 1fr; }
  .cookie-grid, .cookie-options.show { grid-template-columns: 1fr; }
  .cta { padding: 28px; }
  .portrait img { height: 470px; } .image-card { min-height: 330px; }
}

/* =========================================================
   Ergänzungen für die Block-Elemente des CMS
   ========================================================= */

/* --- Freier Text (richtext) --- */
.prose { max-width: 100%; }
.prose.narrow { max-width: 68ch; margin-inline: auto; }
.prose.boxed {
  background: var(--surface, #fff);
  border: 1px solid var(--line, #e2ded5);
  border-radius: 14px;
  padding: 34px 38px;
}
.prose h2 { margin-top: 0; }
.prose h3 { margin: 26px 0 10px; }
.prose p { margin: 0 0 14px; }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose a { text-decoration: underline; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 16px; }
.prose th, .prose td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line, #e2ded5); }
@media (max-width: 640px) { .prose.boxed { padding: 24px 20px; } }

/* --- Bildergalerie --- */
.gallery-grid { display: grid; gap: 18px; }
.gallery-item { margin: 0; }
.gallery-item img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover;
  border-radius: 12px; display: block;
}
.gallery-item figcaption {
  margin-top: 8px; font-size: 14px; color: var(--muted, #5b6b64);
}
@media (max-width: 760px) { .gallery-grid { grid-template-columns: 1fr 1fr !important; } }
@media (max-width: 460px) { .gallery-grid { grid-template-columns: 1fr !important; } }

/* --- Abstand / Trennlinie --- */
.spacer { display: flex; align-items: center; }
.spacer .container { width: 100%; }
.spacer-line { border: 0; border-top: 1px solid var(--line, #e2ded5); margin: 0; }
