/* ==========================================================================
   Nur im WordPress-Theme: Anbindung der echten Plugins und Editor-Inhalte.
   Die Gestaltung der Seiten selbst liegt in main.css, sub.css und route.css.
   ========================================================================== */

/* Angemeldet: Kopf und Kapitelleiste unter die WordPress-Leiste schieben */
@media (min-width: 601px) { .admin-bar .site-header { top: 46px; } }
@media (min-width: 783px) { .admin-bar .site-header { top: 32px; } }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- Voranmeldung: echtes Formular (Shortcode dovermann_voranmeldung) ---------- */
.dv-embed { min-width: 0; }
.dv-embed .dv-root { padding: clamp(18px, 3vw, 28px); border-radius: var(--r-md); background: #fff; box-shadow: 0 24px 60px -30px rgba(20, 20, 24, .35); }
.dv-embed .dv-topbar { display: none; }                       /* Logo und Marke stehen schon auf der Seite */
.dv-embed .dv-app { max-width: none; }
.dv-embed .dv-navbar { background: #fff; }
.dv-embed .dv-card { border-color: var(--line); }
.dv-embed .dv-intro-card { border: 0; padding: 8px 0 0; }
.dv-fallback { padding: clamp(22px, 3vw, 34px); border-radius: var(--r-md); background: #fff; border-top: 4px solid var(--red); box-shadow: var(--shadow-1); }
.dv-fallback h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; color: var(--ink); }
.dv-fallback p { margin-top: 10px; }
.dv-fallback a { color: var(--red); font-weight: 700; }

/* ---------- Kontaktformular: Contact Form 7 im neuen Gewand ---------- */
.dv-cf7 .wpcf7 form { display: grid; gap: 14px; }
.dv-cf7 .wpcf7 form > p, .dv-cf7 .wpcf7 form > div > p { margin: 0; }
.dv-cf7 label { display: grid; gap: 6px; font-size: .9rem; font-weight: 600; color: var(--ink); }
.dv-cf7 .wpcf7-form-control-wrap { display: block; }
.dv-cf7 input[type="text"], .dv-cf7 input[type="email"], .dv-cf7 input[type="tel"], .dv-cf7 input[type="url"], .dv-cf7 input[type="number"], .dv-cf7 input[type="date"], .dv-cf7 select, .dv-cf7 textarea {
  width: 100%; min-height: 50px; padding: 10px 14px; border: 1.5px solid #b9bbc2; border-radius: var(--r-sm); background: #fff; font: inherit; font-weight: 400; color: var(--ink);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.dv-cf7 textarea { min-height: 140px; resize: vertical; line-height: 1.5; }
.dv-cf7 input:hover, .dv-cf7 select:hover, .dv-cf7 textarea:hover { border-color: var(--ink); }
.dv-cf7 input:focus, .dv-cf7 select:focus, .dv-cf7 textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(47, 50, 56, .15); }
.dv-cf7 .wpcf7-not-valid { border-color: var(--red) !important; box-shadow: 0 0 0 3px rgba(198, 38, 47, .15); }
.dv-cf7 .wpcf7-not-valid-tip { margin-top: 6px; font-size: .84rem; font-weight: 600; color: var(--red); }
.dv-cf7 .wpcf7-list-item { display: block; margin: 0; }
.dv-cf7 .wpcf7-list-item label { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: .9rem; line-height: 1.5; color: var(--ink-soft); }
.dv-cf7 input[type="checkbox"], .dv-cf7 input[type="radio"] { flex: none; width: 20px; height: 20px; margin-top: 1px; accent-color: var(--red); }
.dv-cf7 .wpcf7-acceptance a, .dv-cf7 form a { color: var(--red); font-weight: 600; }
.dv-cf7 input[type="submit"], .dv-cf7 button[type="submit"] {
  display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 14px 28px; border: 0; border-radius: var(--r-pill); background: var(--red); color: #fff;
  font-family: var(--font-body); font-weight: 700; font-size: 1rem; cursor: pointer; transition: background-color var(--t-fast), transform var(--t-fast);
}
.dv-cf7 input[type="submit"]:hover, .dv-cf7 button[type="submit"]:hover { background: var(--red-hover); transform: translateY(-1px); }
.dv-cf7 input[type="submit"]:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.dv-cf7 .wpcf7-spinner { margin: 0 0 0 12px; vertical-align: middle; }
.dv-cf7 .wpcf7 form .wpcf7-response-output { margin: 4px 0 0; padding: 12px 16px; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: #fff; font-size: .92rem; }
.dv-cf7 .wpcf7 form.sent .wpcf7-response-output { border-color: #2f7d4f; }
.dv-cf7 .wpcf7 form.invalid .wpcf7-response-output, .dv-cf7 .wpcf7 form.failed .wpcf7-response-output { border-color: var(--red); }
.dv-cf7 .column, .dv-cf7 .one, .dv-cf7 .one-second { float: none; width: auto; margin: 0; }   /* Reste des alten Spaltenrasters */

/* ---------- Blättern ---------- */
.pager { margin-top: clamp(32px, 5vw, 56px); }
.pager ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.pager a, .pager span { display: grid; place-items: center; min-width: 46px; min-height: 46px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: var(--r-pill); background: #fff; font-weight: 600; color: var(--ink); text-decoration: none; }
.pager a:hover { border-color: var(--ink); }
.pager .current { border-color: var(--dark); background: var(--dark); color: #fff; }

/* ---------- Inhalte aus dem WordPress-Editor (Blogartikel, Rechtstexte, Seiten ohne eigenes Template) ---------- */
.prose-wp h2 { margin: 40px 0 12px; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.45rem, 1.2rem + 1vw, 1.85rem); line-height: 1.2; color: var(--ink); text-wrap: balance; }
.prose-wp h2:first-child { margin-top: 0; }
.prose-wp p, .prose-wp ul, .prose-wp ol, .prose-wp figure, .prose-wp table, .prose-wp blockquote { margin-top: 16px; }
.prose-wp > :first-child { margin-top: 0; }
.prose-wp ol { display: grid; gap: 10px; padding-left: 1.4em; list-style: decimal; }
.prose-wp ol li::marker { font-weight: 700; color: var(--red); }
.prose-wp img { max-width: 100%; height: auto; border-radius: var(--r-md); }
.prose-wp .article-img img { height: 100%; border-radius: 0; }
.prose-wp figure { margin-inline: 0; }
.prose-wp figcaption { margin-top: 8px; font-size: .86rem; color: var(--muted, #6b6f78); }
.prose-wp blockquote { padding: 4px 0 4px 20px; border-left: 4px solid var(--red); color: var(--ink); font-size: 1.1rem; }
.prose-wp table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.prose-wp th, .prose-wp td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose-wp th { color: var(--ink); font-weight: 650; }
.prose-wp .wp-block-table, .prose-wp .table-wrap { overflow-x: auto; }
.prose-wp iframe, .prose-wp video { max-width: 100%; }
.prose-wp .alignleft { float: left; margin: 6px 24px 12px 0; }
.prose-wp .alignright { float: right; margin: 6px 0 12px 24px; }
.prose-wp .aligncenter { display: block; margin-inline: auto; }
.prose-wp hr { margin: 32px 0; border: 0; border-top: 1px solid var(--line); }
.prose-wp { overflow-wrap: break-word; }
@media (max-width: 600px) { .prose-wp .alignleft, .prose-wp .alignright { float: none; margin: 16px 0; } }
.side-posts { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.termin-ph a { color: var(--red); font-weight: 700; }

/* ---------- Einzeltermin: Ausgabe des Kalender-Plugins im Seitenrahmen ---------- */
.tribe-events-pg-template, #tribe-events-pg-template { max-width: var(--maxw, 1320px); margin-inline: auto; padding: clamp(32px, 5vw, 64px) var(--gutter); }

/* ---------- Kurstermine mit direkter Anmeldung (WunderCoach) ---------- */
.wc { display: grid; gap: 14px; }
.wc [hidden] { display: none !important; }
.termin-book { margin: 0; }
.termin-book .btn { white-space: nowrap; }
.wc-more { justify-self: center; margin-top: 14px; }
.wc-live { display: grid; }
.termin-note { padding: 8px 14px; border: 1px solid var(--line); border-radius: var(--r-sm); font-size: .82rem; font-weight: 650; color: var(--ink-soft); text-align: center; white-space: nowrap; }
@media (max-width: 600px) { .termin .termin-book, .termin .termin-note { grid-column: 1 / -1; } .termin .termin-book .btn { width: 100%; } }
/* Rückfall: Widget unverändert, nur lesbar eingepasst */
.wc-src { overflow-x: auto; padding: 16px; border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; font-size: .95rem; }
.wc-src #wc_filter_form, .wc-src #spinner { display: none; }
.wc-src table { width: 100%; border-collapse: collapse; }
.wc-src th, .wc-src td { padding: 12px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.wc-src th { font-weight: 650; color: var(--ink); }
.wc-src input[type="submit"] { margin-top: 8px; min-height: 44px; padding: 0 16px; border: 0; border-radius: var(--r-sm); background: var(--red); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }

/* ---------- Blogübersicht: ältere Beiträge als Liste ---------- */
.post-index { margin-top: clamp(48px, 6vw, 80px); padding-top: clamp(32px, 4vw, 48px); border-top: 1px solid var(--line); }
.post-index ul { margin-top: 22px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; list-style: none; padding: 0; }
.post-index li { padding: 13px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; align-items: baseline; }
.post-index a { color: var(--ink); font-weight: 600; text-decoration: none; }
.post-index a:hover { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.post-index time { flex: none; font-size: .82rem; color: var(--ink-soft); }
@media (max-width: 760px) { .post-index ul { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Antworten aus der Datenbank: Links, Listen, Absätze ---------- */
.faq-a a { color: var(--red); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.faq-a p + p, .faq-a p + ul, .faq-a p + ol, .faq-a ul + p, .faq-a ol + p { margin-top: 10px; }
.faq-a ul, .faq-a ol { padding-left: 1.25em; }
.faq-a ul { list-style: disc; }
.faq-a ol { list-style: decimal; }
.faq-a li + li { margin-top: 4px; }
.faq-a h2, .faq-a h3, .faq-a h4 { margin: 14px 0 6px; font-size: 1rem; font-weight: 650; color: var(--ink); }

/* Platzhalter „Termine auf Anfrage“: voll lesbar statt abgeblasst (Kontrast) */
.wc .termin-ph { opacity: 1; }
/* Sprungmarke „Zum Inhalt springen“ setzt den Fokus in den Inhalt, ohne Rahmen um den ganzen Bereich */
main:focus { outline: none; }

/* ---------- Kontaktformular: sichtbare Beschriftungen, lesbarer Einwilligungstext ---------- */
.dv-cf7 .dv-label { display: block; margin-bottom: 6px; }
.dv-cf7 .dv-pflicht { color: var(--red); }
.dv-cf7 .wpcf7-list-item-label, .dv-cf7 .wpcf7-list-item-label * { color: var(--ink-soft) !important; }

/* ---------- Einwilligung: Hinweis unten links, Dialog „Cookie-Einstellungen“ ---------- */
.dv-consent { position: fixed; z-index: 400; left: 16px; bottom: 16px; width: min(480px, calc(100vw - 32px)); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow: auto; overscroll-behavior: contain; padding: 22px 22px 8px; background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-2); font-size: .94rem; line-height: 1.5; }
.dv-consent[hidden] { display: none; }
.dv-consent p { margin: 0 0 10px; }
.dv-consent-t { margin: 0 0 8px; font-family: var(--font-display); font-weight: 700; font-size: 1.18rem; line-height: 1.25; color: var(--ink); }
.dv-consent-s { color: var(--ink-soft); font-size: .86rem; }
.dv-consent-btns { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 6px; }
.dv-consent-b { flex: 1 1 150px; background: var(--ink); border-color: var(--ink); color: #fff; }
.dv-consent-b:hover { background: var(--asphalt); border-color: var(--asphalt); }
.dv-consent-l { display: flex; flex-wrap: wrap; align-items: center; gap: 0 20px; margin: 0; font-size: .88rem; }
.dv-consent-mehr { min-height: 44px; padding: 0; border: 0; background: none; color: var(--ink); font: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.dv-consent-mehr:hover { color: var(--red); }
.dv-consent-l a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink-soft); text-decoration: underline; text-underline-offset: 3px; }
.dv-consent-l a:hover { color: var(--red); }

.dv-consent-dlg { width: min(640px, calc(100vw - 24px)); max-height: min(88vh, 880px); padding: 0; border: 0; border-radius: var(--r-md); background: #fff; color: var(--ink); box-shadow: var(--shadow-2); }
.dv-consent-dlg::backdrop { background: rgba(20, 20, 24, .6); }
.dv-consent-dlg-in { padding: 26px 24px 16px; font-size: .94rem; line-height: 1.5; }
.dv-consent-dlg-in > p { margin: 0 0 12px; }
.dv-consent-g { padding: 14px 0 10px; border-top: 1px solid var(--line); }
.dv-consent-gk { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.dv-consent-gk label { font-weight: 700; font-size: 1.02rem; cursor: pointer; }
.dv-consent-g p { margin: 6px 0 6px; color: var(--ink-soft); }
.dv-consent-gk input { flex: none; position: relative; width: 50px; height: 30px; margin: 0; border: 0; border-radius: var(--r-pill); background: #767a82; -webkit-appearance: none; appearance: none; cursor: pointer; transition: background-color var(--t-fast); }
.dv-consent-gk input::after { content: ""; position: absolute; left: 3px; top: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform var(--t-fast); }
.dv-consent-gk input:checked { background: var(--ok); }
.dv-consent-gk input:checked::after { transform: translateX(20px); }
.dv-consent-gk input:disabled { opacity: .55; cursor: default; }
.dv-consent-g summary { display: inline-block; min-height: 32px; padding: 4px 0; font-weight: 600; font-size: .88rem; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.dv-consent-g ul { margin: 4px 0 6px; padding: 0; list-style: none; }
.dv-consent-g li { padding: 10px 12px; margin-top: 6px; border-radius: var(--r-sm); background: var(--surface); font-size: .86rem; }
.dv-consent-g li strong, .dv-consent-g li span { display: block; }
.dv-consent-g li span { color: var(--ink-soft); }
.dv-consent-id { padding-top: 12px; border-top: 1px solid var(--line); font-size: .8rem; color: var(--ink-soft); overflow-wrap: anywhere; }
.dv-consent-dlg .dv-consent-btns { margin-top: 16px; }

.footer-bottom ul { flex-wrap: wrap; }
.footer-btn { display: inline-flex; align-items: center; min-height: 40px; padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.footer-btn:hover { color: var(--red); }
.dv-consent-fuss { margin: 16px 0 0; padding: 0; list-style: none; text-align: center; }

@media (max-width: 600px) {
  .dv-consent { left: 8px; right: 8px; bottom: 8px; width: auto; max-height: calc(100dvh - 16px); padding: 16px 16px 4px; font-size: .88rem; line-height: 1.45; }
  .dv-consent-t { font-size: 1.08rem; margin-bottom: 6px; }
  .dv-consent p { margin-bottom: 8px; }
  .dv-consent-btns { margin: 10px 0 2px; }
  .dv-consent-b { flex: 1 1 calc(50% - 5px); padding: 0 12px; }
  .dv-consent-dlg-in { padding: 22px 16px 12px; }
}

@media (max-width: 360px) {
  .dv-consent { padding: 12px 12px 2px; font-size: .8rem; line-height: 1.4; }
  .dv-consent-t { font-size: 1rem; margin-bottom: 4px; }
  .dv-consent p { margin-bottom: 6px; }
  .dv-consent-s { font-size: .78rem; }
  .dv-consent-btns { gap: 8px; margin: 8px 0 0; }
  .dv-consent-b { min-height: 44px; padding: 0 8px; font-size: .86rem; }
}

/* ---------- Externe Inhalte: Fläche mit Knopf, lädt erst nach Klick ---------- */
.dv-ext { margin: 24px 0; }
.dv-ext-stage { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 9; border-radius: var(--r-md); background: var(--asphalt); overflow: hidden; }
.dv-ext-stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.dv-ext-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 26px 0 20px; border: 0; border-radius: var(--r-pill); background: #fff; color: var(--ink); font: inherit; font-weight: 700; cursor: pointer; transition: background-color var(--t-fast), color var(--t-fast); }
.dv-ext-btn:hover { background: var(--red); color: #fff; }
.dv-ext-stage :focus-visible { outline-color: #fff; }
.dv-ext-hint { margin: 8px 0 0; font-size: .86rem; color: var(--ink-soft); }
.dv-ext.is-on .dv-ext-hint { display: none; }
