/* Charakter-Kopf — Weiss/#f5f5f7, Akzent #0071e3, Inter 400+600
   Staffel: H1 48 (Hero 54) / H2 34 / H3 22 / Body 17 / Hilfstext 13 / Micro 12 */

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { text-rendering: optimizeLegibility; }
img, video { max-width: 100%; height: auto; }
::selection { background: #0071e3; color: #fff; }
:where(a,button,input,select,textarea,summary,[tabindex]):focus-visible { outline: 2px solid #0071e3; outline-offset: 3px; border-radius: 4px; }

/* Kopfbereich */
.ck-header { position: sticky; top: 0; z-index: 90; background: rgba(255,255,255,.85);
  -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(0,0,0,.08); padding-top: 0 !important; padding-bottom: 0 !important; }
.ck-header__inner { min-height: 64px; gap: clamp(14px,3vw,36px); }
.ck-wordmark a { text-decoration: none; color: #1d1d1f; }
.ck-wordmark a:hover { text-decoration: none; opacity: .7; }
.ck-nav a { text-decoration: none; color: #1d1d1f; font-size: 14px; }
.ck-nav a:hover { color: #0066cc; text-decoration: none; }
.ck-nav .current-menu-item > a,
.ck-nav .ck-nav__aktiv > a,
.ck-nav a[aria-current="page"], .ck-nav .current_page_item > a, .ck-nav [aria-current="page"] { font-weight: 600; }
.ck-header__cta .wp-block-button__link { white-space: nowrap; font-size: 14px; padding: 9px 18px; min-height: 44px; display: inline-flex; align-items: center; }
@media (max-width: 781px) { .ck-header__inner { gap: 10px; } .ck-header__cta .wp-block-button__link { font-size: 13px; padding: 8px 14px; } }

/* Bausteine */
.ck-eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 1.8px; text-transform: uppercase; color: #0071e3; margin: 0 0 10px; }
.ck-lead { max-width: 720px; }
.ck-section { position: relative; }
.ck-cta-blau .wp-block-button__link { background: #0071e3 !important; color: #fff !important; border: 0 !important; padding: 15px 28px; font-size: 16px; min-height: 48px; }
.ck-cta-blau .wp-block-button__link:hover { background: #0077ed !important; }
.ck-card__link a, .ck-mehr a { color: #0066cc; text-decoration: none; font-weight: 600; font-size: 15px; }
.ck-card__link a:hover, .ck-mehr a:hover { text-decoration: underline; }

/* Karten (Schatten) und Panels (Rahmen) */
.ck-card { background: #fff; border-radius: 18px; box-shadow: 0 4px 14px rgba(0,0,0,.08); overflow: hidden;
  transition: transform .25s cubic-bezier(.4,0,.2,1), box-shadow .25s cubic-bezier(.4,0,.2,1); }
.wp-block-column > .ck-card { display: block; align-self: start; }
.ck-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.ck-card img { border-radius: 0; display: block; width: 100%; }
.ck-panel { background: #fff; border: 1px solid #d2d2d7; border-radius: 12px; box-shadow: none; padding: 24px 28px; }

/* Radien */
.ck-hero-medien img { border-radius: 36px; }
.ck-strip img, .ck-prozessbild img, .ck-step__bild img { border-radius: 12px; }
.ck-portrait img, .ck-raster img, .ck-textbild img { border-radius: 18px; }

/* Chips */
.ck-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 18px; padding: 0; list-style: none; }
.ck-chips li { border: 1px solid #d2d2d7; border-radius: 980px; padding: 8px 16px; font-size: 15px; color: #1d1d1f; background: #fff; margin: 0; }

/* Bildraster und Strip */
.ck-raster .wp-block-columns, .ck-strip .wp-block-columns { gap: 14px; }
.ck-raster figure, .ck-raster .wp-block-image, .ck-strip figure, .ck-strip .wp-block-image { margin: 0; }
.ck-raster img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.ck-raster--portraet img { aspect-ratio: 4/5; }
.ck-raster__caption, .ck-strip__caption { font-size: 13px; color: #86868b; margin: 0 0 16px; }
.ck-strip img { width: 100%; height: 220px; object-fit: cover; }
@media (max-width: 781px) {
  .ck-strip .wp-block-columns, .ck-raster .wp-block-columns { flex-wrap: wrap !important; }
  .ck-strip .wp-block-column, .ck-raster .wp-block-column { flex-basis: calc(33.333% - 10px) !important; }
  .ck-strip img { height: 140px; }
}

/* Ablauf-Zeilen */
.ck-ablauf { border-top: 1px solid #d2d2d7; }
.ck-step { display: grid; grid-template-columns: 200px minmax(0,1fr) 300px; align-items: center; gap: 32px;
  padding: 36px 0; border-bottom: 1px solid #d2d2d7; margin: 0 !important; }
.ck-step__num { font-size: 96px; font-weight: 600; line-height: 1; letter-spacing: -.28px; color: #d2d2d7; margin: 0; }
.ck-step__text h3 { font-size: 22px; margin: 0 0 8px; }
.ck-step__text p { font-size: 17px; color: #515154; margin: 0; max-width: 480px; }
.ck-step__bild img { width: 300px; height: 150px; object-fit: cover; }
@media (max-width: 900px) {
  .ck-step { grid-template-columns: 96px minmax(0,1fr); gap: 20px; }
  .ck-step__num { font-size: 56px; }
  .ck-step__bild { grid-column: 1/-1; }
  .ck-step__bild img { width: 100%; height: 160px; }
}

/* Fakten */
.ck-fakt { display: flex; align-items: baseline; gap: 14px; padding: 14px 0; }
.ck-fakt__zahl { font-size: 44px; font-weight: 600; line-height: 1; color: #1d1d1f; letter-spacing: -.28px; min-width: 110px; margin: 0; }
.ck-fakt__text { font-size: 15px; color: #86868b; margin: 0; }
.ck-faktenraster .ck-panel { padding: 18px 20px; }
.ck-faktenraster__label { font-size: 12px; color: #86868b; letter-spacing: 1.2px; text-transform: uppercase; font-weight: 600; margin: 0 0 6px; }
.ck-faktenraster__wert { font-size: 17px; color: #1d1d1f; margin: 0; }

/* Zitat */
.ck-zitat { background: #fff; border-radius: 18px; box-shadow: 0 4px 14px rgba(0,0,0,.08); padding: 28px; }
.ck-zitat__avatar { width: 56px; height: 56px; border-radius: 50%; background: #f5f5f7; border: 1px dashed #d2d2d7; display: block; margin: 0 0 16px; }
.ck-zitat__text { font-size: 17px; font-style: italic; color: #1d1d1f; margin: 0 0 12px; line-height: 1.5; }
.ck-zitat__name { font-size: 13px; color: #86868b; margin: 0; }
.ck-zitat--platzhalter { border: 1px dashed #d2d2d7; box-shadow: none; }

/* Portraet */
.ck-portrait img { width: 100%; max-width: 340px; height: 420px; object-fit: cover; }
.ck-portrait--hoch img { max-width: 100%; aspect-ratio: 3/4; height: auto; }

/* Haekchen */
.ck-haken { list-style: none; padding: 0; margin: 0 0 8px; }
.ck-haken li { position: relative; padding-left: 30px; margin: 0 0 14px; font-size: 17px; color: #515154; }
.ck-haken li::before { content: "✓"; position: absolute; left: 0; top: 0; color: #0071e3; font-weight: 600; font-size: 17px; }

/* Preis-Panel */
.ck-preise { padding: 8px 28px; }
.ck-preis-zeile { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 4px 24px; padding: 18px 0; border-bottom: 1px solid #d2d2d7; }
.ck-preis-zeile:last-of-type { border-bottom: 0; }
.ck-preis-zeile__name { font-size: 17px; font-weight: 600; color: #1d1d1f; margin: 0; }
.ck-preis-zeile__wert { font-size: 17px; font-weight: 600; color: #1d1d1f; text-align: right; white-space: nowrap; margin: 0; }
.ck-preis-zeile__info { grid-column: 1/-1; font-size: 13px; color: #86868b; margin: 0; }
.ck-preis-fussnote { font-size: 13px; color: #86868b; margin: 18px 0 0; max-width: 720px; }
.ck-preis-hinweis { font-size: 15px; color: #1d1d1f; background: #f5f5f7; border-radius: 12px; padding: 14px 18px; margin: 18px 0 0; }
@media (max-width: 600px) { .ck-preise { padding: 8px 18px; } .ck-preis-zeile { grid-template-columns: 1fr; } .ck-preis-zeile__wert { text-align: left; } }

/* Formular */
.ck-formularkarte { background: #fff; border-radius: 18px; box-shadow: 0 4px 14px rgba(0,0,0,.08); padding: 28px; }
.ck-form-wrap { max-width: 100%; }
.ck-form .ck-field { margin: 0 0 16px; display: flex; flex-direction: column; gap: 6px; }
.ck-form label { font-size: 14px; font-weight: 600; color: #1d1d1f; }
.ck-form .ck-optional { color: #86868b; font-weight: 400; }
.ck-form .ck-req { color: #86868b; }
.ck-form input[type=text], .ck-form input[type=email], .ck-form input[type=tel], .ck-form select, .ck-form textarea {
  font: inherit; font-size: 17px; width: 100%; padding: 12px 14px; min-height: 44px; color: #1d1d1f; background: #fff;
  border: 1px solid #86868b; border-radius: 12px; transition: border-color .15s, box-shadow .15s; }
.ck-form textarea { resize: vertical; min-height: 110px; }
.ck-form input:focus, .ck-form select:focus, .ck-form textarea:focus { border-color: #0071e3; box-shadow: 0 0 0 3px rgba(0,113,227,.15); outline: none; }
.ck-form ::placeholder { color: #86868b; }
.ck-field--check { flex-direction: row; align-items: flex-start; gap: 12px; flex-wrap: nowrap; padding: 4px 0; }
.ck-field--check input { margin-top: 1px; flex: 0 0 auto; width: 22px; height: 22px; accent-color: #0071e3; cursor: pointer; }
.ck-field--check label { font-weight: 400; font-size: 14px; line-height: 1.5; color: #515154; cursor: pointer; min-height: 44px; display: flex; align-items: center; }
.ck-field--check .ck-error { flex-basis: 100%; }
.ck-field--error input, .ck-field--error select, .ck-field--error textarea { border-color: #c7362b; }
.ck-error { color: #c7362b; font-size: 13px; }
.ck-form-actions { margin: 20px 0 8px; }
.ck-submit { cursor: pointer; min-height: 44px; }
.ck-microcopy { font-size: 13px; color: #86868b; margin: 0; }
.ck-notice { padding: 20px 22px; border-radius: 18px; background: #fff; box-shadow: 0 4px 14px rgba(0,0,0,.08); }
.ck-notice p { margin: 0 0 6px; } .ck-notice p:last-child { margin-bottom: 0; }
.ck-notice--ok { border-left: 3px solid #0071e3; }
.ck-notice--error { border-left: 3px solid #c7362b; }
.ck-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* FAQ */
.ck-faq .wp-block-details { border-bottom: 1px solid #d2d2d7; padding: 20px 0; }
.ck-faq .wp-block-details:first-of-type { border-top: 1px solid #d2d2d7; }
.ck-faq summary { cursor: pointer; font-weight: 600; font-size: 17px; list-style: none; display: flex;
  justify-content: space-between; align-items: center; gap: 16px; color: #1d1d1f; min-height: 44px; }
.ck-faq summary::-webkit-details-marker { display: none; }
.ck-faq summary::after { content: "+"; font-size: 22px; line-height: 1; color: #86868b; flex: none; }
.ck-faq details[open] summary::after { content: "–"; }
.ck-faq details > *:not(summary) { max-width: 720px; color: #515154; font-size: 17px; margin-top: 8px; }

/* Rechtstexte */
.ck-recht p, .ck-recht li { font-size: 17px; line-height: 1.6; color: #515154; }
.ck-recht h1 { font-size: 40px; }
.ck-recht h2 { font-size: 24px; margin-top: 40px !important; margin-bottom: 14px !important; padding-left: 3.4em; text-indent: -3.4em; }
.ck-recht h3 { font-size: 19px; margin-top: 28px !important; margin-bottom: 10px !important; padding-left: 3.4em; text-indent: -3.4em; }
.ck-recht ul { padding-left: 22px; }
.ck-recht li { margin-bottom: 20px; }
.ck-stand { font-size: 13px; color: #86868b; margin-top: 48px; }

.ck-placeholder-hinweis { font-size: 12px; color: #86868b; }

/* Fussbereich */
.ck-footer { border-top: 1px solid #d2d2d7; background: #fff; }
.ck-footer__label { color: #86868b; letter-spacing: 1.2px; text-transform: uppercase; font-weight: 600; font-size: 12px; }
.ck-footer a { text-decoration: none; color: #1d1d1f; }
.ck-footer a:hover { text-decoration: underline; }
.ck-footer__links a { line-height: 2.1; font-size: 15px; }

/* Bewegung */
.ck-reveal { opacity: 0; transform: translateY(12px); }
.js-ready .ck-reveal { transition: opacity .4s cubic-bezier(.4,0,.2,1), transform .4s cubic-bezier(.4,0,.2,1); }
.ck-reveal.is-visible { opacity: 1; transform: none; }
.ck-stagger > * { opacity: 0; transform: translateY(12px); }
.js-ready .ck-stagger > * { transition: opacity .4s cubic-bezier(.4,0,.2,1), transform .4s cubic-bezier(.4,0,.2,1); }
.ck-stagger.is-visible > * { opacity: 1; transform: none; }
.ck-stagger.is-visible > *:nth-child(1) { transition-delay: 0ms; }
.ck-stagger.is-visible > *:nth-child(2) { transition-delay: 100ms; }
.ck-stagger.is-visible > *:nth-child(3) { transition-delay: 200ms; }
.ck-stagger.is-visible > *:nth-child(4) { transition-delay: 300ms; }
.ck-stagger.is-visible > *:nth-child(5) { transition-delay: 400ms; }
.ck-stagger.is-visible > *:nth-child(6) { transition-delay: 500ms; }
@media (prefers-reduced-motion: reduce) {
  .ck-reveal, .js-ready .ck-reveal, .ck-stagger > *, .js-ready .ck-stagger > * { opacity: 1 !important; transform: none !important; transition: none !important; }
  .ck-card:hover { transform: none; }
  .ck-portrait img { transform: none !important; }
}

/* Responsive */
@media (max-width: 1024px) {
  .wp-block-columns:not(.is-not-stacked-on-mobile) { flex-wrap: wrap !important; }
  .wp-block-columns:not(.is-not-stacked-on-mobile) > .wp-block-column { flex-basis: 100% !important; }
  .ck-step { grid-template-columns: 96px minmax(0,1fr); }
}
@media print { .ck-header, .ck-footer, .ck-form-wrap { display: none !important; } }

/* ---------------------------------------------------------------------------
   Mobil: eigene Größenstufe
   Die Desktop-Staffel (H1 48–54 px) sprengt auf 390 px Breite die Zeile.
   Lange Wörter wie "Businessporträts," passen dort schlicht nicht.
   --------------------------------------------------------------------------- */

h1, h2, h3, h4 {
	overflow-wrap: break-word;
	hyphens: auto;
}

@media (max-width: 782px) {
	.ck-header { top: 0 !important; }
}

@media (max-width: 640px) {
	main h1,
	main .has-display-font-size,
	main .has-xx-large-font-size { font-size: 34px !important; line-height: 1.14 !important; }

	main h2,
	main .has-x-large-font-size { font-size: 26px !important; line-height: 1.2 !important; }

	main h3,
	main .has-large-font-size { font-size: 20px !important; }

	.ck-numeral,
	.ck-step__nummer { font-size: 56px !important; }

	.ck-fakt__zahl { font-size: 32px !important; }

	/* Hängender Einzug der Rechtstexte passt auf schmalen Schirmen nicht. */
	.ck-recht h2 { padding-left: 0; text-indent: 0; }

	.ck-recht h1 { font-size: 30px !important; }

	/* Ablauf-Zeilen stapeln statt drei Spalten. */
	.ck-step { grid-template-columns: 1fr !important; }
}

/* Touch-Ziele: mindestens 44 px, auch beim Menü-Symbol. */
.wp-block-navigation__responsive-container-open,
.wp-block-navigation__responsive-container-close {
	min-width: 44px;
	min-height: 44px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.ck-header__cta .wp-block-button__link { min-height: 44px; }

/* Alle Buttons erreichen die 44-px-Marke für Touch-Bedienung. */
.wp-block-button__link {
	min-height: 44px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}
