/* Additions to the prototype stylesheet: plain pages, WordPress admin bar. Uses the tokens from style.css. */

/* ---------- Approved changes to the prototype's look ----------
   Everything between the two markers is a deliberate difference from the prototype.
   tests/e2e/parity.js injects this block into the prototype before comparing, so keep it self-contained. */
/* approved-changes:start */
/* White text on the brand orange (requested after the build, December 2026). */
.btn--primary, .btn--primary:hover { color: #fff; }
.btn--primary:hover { background: #D96C10; }
.module-cta h3, .module-cta p { color: #fff; }
/* The button inside the orange card is white, so its text stays dark. */
.module-cta .btn--primary, .module-cta .btn--primary:hover { color: var(--color-ink); background: var(--color-white); }
/* approved-changes:end */

/* ---------- Kontakt: a real map in a frame instead of the prototype's drawn map ----------
   The box keeps the drawn map's proportions (640 x 400), so the page layout stays as approved. */
.contact-map--embed { aspect-ratio: 640 / 400; }
.contact-map--embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Plain pages (page.php, index.php) ---------- */
.entry-content > * { max-width: 46rem; }
.entry-content h2 { font-size: var(--font-size-lg); margin-top: var(--space-lg); }
.entry-content h3 { font-size: var(--font-size-md); margin-top: var(--space-md); }
.entry-content h4 { font-size: var(--font-size-base); margin-top: var(--space-md); }
.entry-content p { margin: 0 0 var(--space-md); }
.entry-content ul, .entry-content ol { margin: 0 0 var(--space-md); padding-left: 1.4rem; }
.entry-content li + li { margin-top: var(--space-2xs); }
.entry-content a { color: var(--color-ember); text-decoration: underline; text-underline-offset: 3px; }
.entry-content a:hover { color: var(--color-ink); }
.entry-content img { display: block; max-width: 100%; height: auto; border-radius: var(--radius-sm); }
.entry-content figure { margin: 0 0 var(--space-md); }
.entry-content figcaption { color: var(--color-muted); font-size: var(--font-size-sm); margin-top: var(--space-2xs); }

/* ---------- Admin bar: keep the sticky header below it ---------- */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
}
@media (max-width: 600px) {
  /* The bar scrolls away on narrow screens. */
  .admin-bar .site-header { top: 0; }
}

/* ---------- Contact Form 7 (Kontakt page), looks like the prototype's form ---------- */
.contact-form .wpcf7-form-control-wrap { display: block; }
.contact-form .field input[type="text"], .contact-form .field input[type="email"], .contact-form .field input[type="tel"], .contact-form .field textarea { width: 100%; }
.contact-form .wpcf7-not-valid-tip { display: block; margin: 0; color: var(--color-danger); font-weight: 600; font-size: .875rem; }
.contact-form .wpcf7-not-valid { border-color: var(--color-danger); }
.contact-form .cf-turnstile { margin-bottom: var(--space-md); }
.contact-form .wpcf7-spinner { margin: 0 0 0 var(--space-sm); vertical-align: middle; }
.contact-form .wpcf7-response-output {
  margin: var(--space-md) 0 0; padding: var(--space-md) var(--space-lg); border-radius: var(--radius-md);
  border: 1.5px solid var(--color-danger); background: #FBEDEA; color: var(--color-ink); font-weight: 600;
}
.contact-form.sent .wpcf7-response-output { background: #EAF5EE; border-color: var(--color-success); color: var(--color-ink); }
.contact-form.init .wpcf7-response-output, .contact-form.resetting .wpcf7-response-output, .contact-form.submitting .wpcf7-response-output { display: none; }
