/* Knauder – Störungsdienst & Geräteservice
   Farben aus dem Logo: Navy #262f3f + Stahlgrau, dazu Elektroblau als Aktionsfarbe.
   In WordPress: Tokens stehen in wordpress/theme.json, diese Datei als "Zusätzliches CSS". */

:root {
  --navy: #262f3f;          /* Logo-Hintergrund */
  --navy-deep: #1a212d;
  --navy-line: #36425a;
  --steel: #a9b3c1;         /* Logo-Zeichen */
  --paper: #f3f5f8;
  --white: #ffffff;
  --text: #1f2633;
  --muted: #5b6574;
  --line: #dde2e8;
  --blue: #1f6fe5;
  --blue-deep: #1559c0;
  --blue-light: #8fbcff;
  --blue-tint: #e9f1fd;

  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --max: 1240px;
  --gutter: clamp(18px, 4vw, 44px);
  --radius: 14px;
  --section: clamp(72px, 9vw, 128px);

  /* Icons (Strichzeichnung, per CSS-Maske eingefärbt) */
  --i-shield: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E");
  --i-gauge: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='22 12 18 12 15 21 9 3 6 12 2 12'/%3E%3C/svg%3E");
  --i-tool: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z'/%3E%3C/svg%3E");
  --i-pin: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E");
  --i-mail: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='4' width='20' height='16' rx='2'/%3E%3Cpolyline points='22,6 12,13 2,6'/%3E%3C/svg%3E");
  --i-social: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 11.5a8.4 8.4 0 0 1-9 8.5 8.4 8.4 0 0 1-3.8-.9L3 21l1.9-5.7A8.4 8.4 0 0 1 4 11.5 8.5 8.5 0 0 1 12.5 3h.5a8.5 8.5 0 0 1 8 8z'/%3E%3C/svg%3E");
  --i-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5L20 7'/%3E%3C/svg%3E");
  --i-phone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2c.3-.3.7-.4 1-.2 1.1.4 2.3.6 3.6.6.6 0 1 .4 1 1V20c0 .6-.4 1-1 1A17 17 0 0 1 3 4c0-.6.4-1 1-1h3.5c.6 0 1 .4 1 1 0 1.3.2 2.5.6 3.6.1.3 0 .7-.2 1z'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }
a { color: var(--blue); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--blue-deep); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--blue-light); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 {
  font-weight: 800;
  font-variation-settings: "wdth" 112;
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin: 0 0 .5em;
  text-wrap: balance;
  color: inherit;
}
h2 { font-size: clamp(2rem, 3.8vw, 3.1rem); }
h3 { font-size: 1.3rem; letter-spacing: -0.01em; line-height: 1.2; }
p { margin: 0 0 1em; }

.kicker { margin: 0 0 14px; font-size: .95rem; font-weight: 650; color: var(--blue); }

/* ---------- Grundgerüst (entspricht Gutenbergs "constrained"-Layout) ---------- */
.alignfull { width: 100%; }
.alignfull > * { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.wp-block-cover.alignfull > .wp-block-cover__image-background,
.wp-block-cover.alignfull > .wp-block-cover__background { max-width: none; padding: 0; }
.section { padding-block: var(--section); }

.wp-block-columns { display: flex; gap: clamp(28px, 5vw, 80px); }
.wp-block-column { flex: 1 1 0; min-width: 0; }
.wp-block-column[style*="flex-basis"] { flex-grow: 0; }
.are-vertically-aligned-center { align-items: center; }
.are-vertically-aligned-bottom { align-items: flex-end; }

.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 64px; flex-wrap: wrap; margin-bottom: clamp(32px, 4vw, 56px); }
.section-head h2 { margin: 0; max-width: 16ch; }
.section-head p { margin: 0; max-width: 46ch; color: var(--muted); font-size: 1.1rem; }

.link-strong { font-weight: 700; text-decoration: none; border-bottom: 2px solid currentColor; padding-bottom: 2px; }
.link-strong::after { content: ""; display: inline-block; width: .45em; height: .45em; margin-left: .5em; border: solid currentColor; border-width: 2px 2px 0 0; transform: rotate(45deg) translateY(-2px); transition: transform .2s; }
.link-strong:hover { text-decoration: none; }
.link-strong:hover::after { transform: rotate(45deg) translate(1px, -3px); }

/* ---------- Buttons ---------- */
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 14px; }
.wp-element-button, .wp-block-button__link {
  display: inline-flex; align-items: center; gap: .5em;
  font: inherit; font-weight: 700; font-variation-settings: "wdth" 104;
  padding: .85em 1.4em;
  border: 2px solid var(--blue); border-radius: 10px;
  background: var(--blue); color: var(--white);
  text-decoration: none; cursor: pointer; line-height: 1.2;
  transition: background-color .15s, border-color .15s, color .15s, transform .15s, box-shadow .15s;
}
.wp-element-button:hover, .wp-block-button__link:hover { background: var(--blue-deep); border-color: var(--blue-deep); color: var(--white); text-decoration: none; }
.wp-element-button:active { transform: translateY(1px); }

.is-style-call .wp-block-button__link {
  flex-direction: column; align-items: flex-start; gap: 0;
  padding: .7em 1.6em .8em 3.6em; position: relative;
  box-shadow: 0 14px 34px -12px rgba(31, 111, 229, .8);
}
.is-style-call .wp-block-button__link::before {
  content: ""; position: absolute; left: 1.2em; top: 50%; width: 1.6em; height: 1.6em; margin-top: -.8em;
  background: currentColor; -webkit-mask: var(--i-phone) center / contain no-repeat; mask: var(--i-phone) center / contain no-repeat;
}
.is-style-call .wp-block-button__link:hover { box-shadow: 0 18px 40px -12px rgba(31, 111, 229, .95); }
.btn__label { font-size: .82rem; font-weight: 600; opacity: .85; }
.btn__number { font-size: 1.55rem; font-weight: 850; font-variation-settings: "wdth" 118; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }

.is-style-ghost .wp-block-button__link { background: rgba(255,255,255,.04); color: var(--white); border-color: rgba(255,255,255,.45); backdrop-filter: blur(4px); }
.is-style-ghost .wp-block-button__link:hover { background: var(--white); color: var(--navy); border-color: var(--white); }
.is-style-outline .wp-block-button__link { background: transparent; color: var(--blue); }
.is-style-outline .wp-block-button__link:hover { background: var(--blue); color: var(--white); }
.hero__actions .wp-block-button { display: flex; }

/* ---------- Header ---------- */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,255,255,.97); backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s, border-color .25s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 10px 30px -20px rgba(26,33,45,.45); }
.hdr { position: relative; display: flex; align-items: center; gap: 28px; height: 88px; transition: height .25s; }
.is-scrolled .hdr { height: 70px; }
.hdr__logo { flex: none; display: block; }
.hdr__logo img { width: 172px; height: auto; transition: width .25s; }
.is-scrolled .hdr__logo img { width: 146px; }

.hdr__nav {
  margin-left: auto; display: flex; gap: 2px; padding: 5px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 99px;
}
.hdr__nav a {
  padding: .55em 1.1em; border-radius: 99px;
  color: var(--text); text-decoration: none; font-weight: 600; font-size: .96rem; line-height: 1.2;
  transition: background-color .15s, color .15s, box-shadow .15s;
}
.hdr__nav a:hover { background: var(--white); color: var(--blue); box-shadow: 0 2px 8px -3px rgba(26,33,45,.25); }
.hdr__nav a.is-active { background: var(--navy); color: var(--white); box-shadow: none; }
.hdr__nav .hdr__nav-call { display: none; }

.hdr__call { flex: none; display: flex; align-items: center; gap: 12px; padding-left: 26px; border-left: 1px solid var(--line); color: var(--text); text-decoration: none; }
.hdr__call-icon { position: relative; width: 46px; height: 46px; border-radius: 50%; background: var(--blue); box-shadow: 0 8px 20px -8px rgba(31,111,229,.9); transition: background-color .15s, transform .15s; }
.hdr__call-icon::before { content: ""; position: absolute; inset: 13px; background: var(--white); -webkit-mask: var(--i-phone) center / contain no-repeat; mask: var(--i-phone) center / contain no-repeat; }
.hdr__call-text { display: grid; font-size: 1.16rem; font-weight: 800; font-variation-settings: "wdth" 110; line-height: 1.15; color: var(--navy); font-variant-numeric: tabular-nums; white-space: nowrap; }
.hdr__call-text small { font-size: .78rem; font-weight: 600; font-variation-settings: "wdth" 100; color: var(--muted); }
.hdr__call:hover .hdr__call-icon { background: var(--blue-deep); transform: scale(1.05); }
.hdr__call:hover .hdr__call-text { color: var(--blue); }

.hdr__burger { display: none; position: relative; width: 48px; height: 48px; flex: none; border: 1px solid var(--line); border-radius: 12px; background: var(--white); cursor: pointer; }
.hdr__burger span:first-child, .hdr__burger::before, .hdr__burger::after {
  content: ""; position: absolute; left: 13px; right: 13px; height: 2px; border-radius: 2px; background: var(--navy);
  transition: transform .25s, opacity .2s;
}
.hdr__burger span:first-child { top: 23px; }
.hdr__burger::before { top: 16px; }
.hdr__burger::after { top: 30px; }
.is-open .hdr__burger span:first-child { opacity: 0; }
.is-open .hdr__burger::before { transform: translateY(7px) rotate(45deg); }
.is-open .hdr__burger::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Cover-Block (Gutenberg-Grundverhalten) ---------- */
.wp-block-cover { position: relative; display: flex; overflow: hidden; isolation: isolate; }
.wp-block-cover__image-background { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.wp-block-cover__background { position: absolute; inset: 0; z-index: -1; }
.wp-block-cover__inner-container { position: relative; width: 100%; }

/* ---------- Hero ---------- */
.hero { min-height: min(86vh, 840px); align-items: flex-end; background: var(--navy-deep); color: var(--white); }
.hero .wp-block-cover__image-background { object-position: 65% 50%; }
.hero__shade {
  background:
    radial-gradient(900px 500px at 12% 100%, rgba(31,111,229,.28), transparent 70%),
    linear-gradient(90deg, rgba(26,33,45,.96) 0%, rgba(26,33,45,.84) 40%, rgba(38,47,63,.4) 74%, rgba(38,47,63,.18) 100%),
    linear-gradient(0deg, rgba(26,33,45,.85) 0%, rgba(26,33,45,0) 45%);
}
.hero .wp-block-cover__inner-container { max-width: var(--max); margin-inline: auto; padding: 110px var(--gutter) clamp(48px, 7vw, 88px); }

.hero__status {
  display: inline-flex; align-items: center; gap: .6em;
  margin-bottom: 24px; padding: .42em 1em .42em .8em;
  border: 1px solid rgba(169,179,193,.35); border-radius: 99px;
  font-size: .92rem; font-weight: 600; color: #dfe5ee;
  background: rgba(255,255,255,.06); backdrop-filter: blur(6px);
}
.hero__status::before { content: ""; width: 16px; height: 16px; background: var(--blue-light); -webkit-mask: var(--i-shield) center / contain no-repeat; mask: var(--i-shield) center / contain no-repeat; }

.hero__title { font-size: clamp(2.7rem, 6.2vw, 5.7rem); line-height: .98; letter-spacing: -0.03em; margin-bottom: 26px; }
.hero__title span { display: block; }
.hero__title span:nth-child(-n+2) { font-weight: 500; font-variation-settings: "wdth" 100; color: var(--steel); }
.hero__title span:last-child { font-weight: 850; font-variation-settings: "wdth" 116; }

.hero__lead { font-size: clamp(1.08rem, 1.4vw, 1.25rem); color: #cdd4de; max-width: 48ch; margin-bottom: 34px; }

/* Einmalige Einstiegs-Animation */
@media (prefers-reduced-motion: no-preference) {
  .hero__title span, .hero__lead, .hero__actions, .bonus-card { animation: rise .8s cubic-bezier(.2,.7,.2,1) both; }
  .hero__title span:nth-child(2) { animation-delay: .12s; }
  .hero__title span:nth-child(3) { animation-delay: .28s; }
  .hero__lead { animation-delay: .42s; }
  .hero__actions { animation-delay: .52s; }
  .bonus-card { animation-delay: .7s; }
  @keyframes rise { from { opacity: 0; transform: translateY(22px); } }
}

.hero__aside { display: flex; justify-content: flex-end; }
.bonus-card {
  max-width: 340px; padding: 20px 22px;
  background: rgba(255,255,255,.97); color: var(--text);
  border-radius: var(--radius);
  box-shadow: 0 24px 60px -20px rgba(0,0,0,.55);
  display: grid; grid-template-columns: 56px 1fr; gap: 4px 16px; align-items: start;
}
.bonus-card__logo { grid-row: span 2; }
.bonus-card__logo img { width: 56px; height: auto; }
.bonus-card p { margin: 0; font-size: .93rem; line-height: 1.45; color: var(--muted); }
.bonus-card strong { display: block; font-size: 1.05rem; margin-bottom: 3px; color: var(--text); }
.bonus-card__link { margin-top: 8px !important; }
.bonus-card__link a { font-weight: 700; }

/* ---------- Vertrauensleiste ---------- */
.trust { background: var(--white); border-bottom: 1px solid var(--line); }
.trust__list { list-style: none; margin-block: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.trust__list li { position: relative; padding: 30px 20px 30px 70px; font-size: .93rem; color: var(--muted); line-height: 1.45; }
.trust__list li + li { border-left: 1px solid var(--line); }
.trust__list li:first-child { padding-left: 50px; }
.trust__list li:first-child::before { left: 0; }
.trust__list strong { display: block; color: var(--text); font-size: 1.02rem; margin-bottom: 2px; }
.trust__list li::before {
  content: ""; position: absolute; left: 20px; top: 28px; width: 36px; height: 36px; border-radius: 10px;
  background: var(--blue-tint) var(--ico) center / 20px no-repeat;
}
/* Icon farbig: zweite Ebene über das Tint-Feld */
.trust__list li::after {
  content: ""; position: absolute; left: 28px; top: 36px; width: 20px; height: 20px; background: var(--blue);
  -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat;
}
.trust__list li:first-child::after { left: 8px; }
.trust__list li::before { background-image: none; }
.i-shield { --ico: var(--i-shield); } .i-gauge { --ico: var(--i-gauge); } .i-tool { --ico: var(--i-tool); }
.i-pin { --ico: var(--i-pin); } .i-mail { --ico: var(--i-mail); } .i-social { --ico: var(--i-social); }

/* ---------- Leistungen ---------- */
.tiles {
  display: grid; gap: 18px;
  grid-template-columns: 1.15fr 1fr 1fr;
  grid-template-rows: repeat(2, minmax(300px, auto)) minmax(260px, auto);
}
.tile { border-radius: var(--radius); color: var(--white); align-items: flex-end; min-height: 300px; background: var(--navy); }
.tile .wp-block-cover__background { background: linear-gradient(0deg, rgba(26,33,45,.94) 0%, rgba(26,33,45,.6) 50%, rgba(26,33,45,.12) 100%); transition: background-color .3s; }
.tile .wp-block-cover__image-background { transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.tile:hover .wp-block-cover__image-background { transform: scale(1.05); }
.tile .wp-block-cover__inner-container { padding: 26px 26px 24px; }
.tile h3 { font-size: 1.4rem; margin-bottom: .35em; }
.tile p { margin: 0; color: #d3d9e2; font-size: .98rem; line-height: 1.5; max-width: 52ch; }
.tile .tile__norm {
  display: inline-block; margin-bottom: 12px;
  font-size: .78rem; font-weight: 700; font-variation-settings: "wdth" 88; color: var(--white);
  background: rgba(31,111,229,.85); border-radius: 6px; padding: .25em .6em;
}
.tile--main { grid-row: 1 / span 2; }
.tile--main .wp-block-cover__inner-container { padding: 36px; }
.tile--main h3 { font-size: clamp(1.8rem, 2.6vw, 2.4rem); }
.tile--main p { font-size: 1.08rem; }
.tile--main .tile__cta { margin-top: 24px; }
.tile__cta a {
  display: inline-flex; align-items: center; gap: .55em;
  padding: .75em 1.2em; border-radius: 10px;
  background: var(--blue); color: var(--white); font-weight: 800; text-decoration: none; white-space: nowrap;
  box-shadow: 0 12px 28px -10px rgba(31,111,229,.8);
}
.tile__cta a::before { content: ""; width: 1em; height: 1em; background: currentColor; -webkit-mask: var(--i-phone) center / contain no-repeat; mask: var(--i-phone) center / contain no-repeat; }
.tile__cta a:hover { background: var(--blue-deep); color: var(--white); }
.tile--wide { grid-column: 1 / -1; min-height: 260px; }
.tile--wide .wp-block-cover__background { background: linear-gradient(90deg, rgba(26,33,45,.95) 0%, rgba(26,33,45,.65) 50%, rgba(26,33,45,.1) 100%); }
.tile--wide .wp-block-cover__inner-container { align-self: center; padding: 36px; max-width: 640px; margin: 0; }
.tile--wide h3 { font-size: clamp(1.5rem, 2.2vw, 2rem); }

/* ---------- Vorher / Nachher ---------- */
.projects { background: var(--white); }
.ba {
  position: relative; overflow: hidden; border-radius: 18px; aspect-ratio: 3 / 4;
  box-shadow: 0 40px 80px -40px rgba(26,33,45,.55);
  user-select: none; touch-action: pan-y;
}
.ba__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba__before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: var(--white); pointer-events: none; box-shadow: 0 0 12px rgba(0,0,0,.35); }
.ba__handle::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px;
  border-radius: 50%; background: var(--white); box-shadow: 0 8px 24px rgba(0,0,0,.35);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f6fe5' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 6-6 6 6 6M15 6l6 6-6 6'/%3E%3C/svg%3E");
  background-size: 26px; background-position: center; background-repeat: no-repeat;
}
.ba__tag { position: absolute; top: 16px; padding: .3em .8em; border-radius: 99px; font-size: .85rem; font-weight: 700; pointer-events: none; }
.ba__tag--before { left: 16px; background: rgba(26,33,45,.82); color: var(--white); }
.ba__tag--after { right: 16px; background: var(--blue); color: var(--white); }
.ba__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.ba:has(.ba__range:focus-visible) .ba__handle::after { outline: 3px solid var(--blue-light); outline-offset: 3px; }

.showcase__text h2 { font-size: clamp(1.9rem, 3.2vw, 2.8rem); }
.showcase__hint { color: var(--muted); font-size: .95rem; }
.checklist { list-style: none; padding: 0; margin: 24px 0 32px; display: grid; gap: 14px; }
.checklist li { position: relative; padding-left: 40px; font-size: 1.05rem; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 1px; width: 26px; height: 26px; border-radius: 50%; background: var(--blue-tint); }
.checklist li::after { content: ""; position: absolute; left: 6px; top: 7px; width: 14px; height: 14px; background: var(--blue); -webkit-mask: var(--i-check) center / contain no-repeat; mask: var(--i-check) center / contain no-repeat; }

.more-projects { margin-top: clamp(64px, 8vw, 104px); align-items: stretch; }
.project { margin: 0; height: 100%; display: grid; grid-template-columns: 1fr 1fr; border-radius: var(--radius); overflow: hidden; background: var(--paper); border: 1px solid var(--line); }
.project__img { overflow: hidden; height: 100%; }
.project__img a, .project__img img { display: block; height: 100%; }
.project__img img { width: 100%; object-fit: cover; min-height: 260px; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.project__img a:hover img { transform: scale(1.04); }
.project__body { padding: 28px; align-self: center; }
.project h3 { font-size: 1.35rem; margin-bottom: .45em; }
.project h3 a { color: var(--text); text-decoration: none; }
.project h3 a:hover { color: var(--blue); }
.project p { color: var(--muted); margin: 0; }
.photo-box { height: 100%; padding: 32px; border-radius: var(--radius); background: var(--navy); color: var(--white); display: flex; flex-direction: column; justify-content: center; }
.photo-box h3 { font-size: 1.45rem; }
.photo-box p { color: #c8cfda; }
.photo-box .wp-block-buttons { margin-top: 6px; }
.photo-box__more { margin: 22px 0 0; }
.photo-box__more a { color: var(--blue-light); }

/* ---------- Über mich ---------- */
.about { background: var(--navy); color: var(--white); position: relative; overflow: hidden; }
.about::before { content: ""; position: absolute; inset: 0; background: radial-gradient(700px 400px at 20% 50%, rgba(31,111,229,.22), transparent 70%); pointer-events: none; padding: 0; max-width: none; }
.about > * { position: relative; }
.about__mark img { width: min(100%, 300px); border-radius: 28px; box-shadow: 0 30px 70px -30px rgba(0,0,0,.7), 0 0 0 1px rgba(169,179,193,.15); }
.about h2 { color: var(--white); max-width: 20ch; }
.about__lead { font-size: clamp(1.1rem, 1.5vw, 1.28rem); color: #cdd4de; max-width: 52ch; }
.about__facts { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--navy-line); }
.about__facts li { padding: 22px 20px 0 0; color: var(--steel); font-size: .95rem; }
.about__facts li + li { padding-left: 20px; border-left: 1px solid var(--navy-line); }
.about__facts strong { display: block; color: var(--white); font-size: 1.1rem; margin-bottom: 4px; }

/* ---------- Geräte-Retter-Prämie ---------- */
.bonus { background: var(--paper); }
.bonus__logo img { width: 84px; height: auto; margin-bottom: 20px; }
.bonus__lead { font-size: clamp(1.1rem, 1.5vw, 1.25rem); color: var(--muted); max-width: 46ch; }
.bonus__media img { aspect-ratio: 5 / 6; object-fit: cover; border-radius: 18px; box-shadow: 0 40px 80px -40px rgba(26,33,45,.55); }
.bonus__steps { list-style: none; counter-reset: b; margin: 32px 0 36px; padding: 0; display: grid; gap: 20px; }
.bonus__steps li { counter-increment: b; position: relative; padding-left: 60px; color: var(--muted); min-height: 42px; }
.bonus__steps li::before {
  content: counter(b); position: absolute; left: 0; top: -2px;
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: var(--blue); color: var(--white); font-weight: 800;
}
.bonus__steps strong { color: var(--text); display: block; font-size: 1.1rem; }

/* ---------- Kontakt ---------- */
.contact { background: var(--navy-deep); color: var(--white); background-image: radial-gradient(900px 500px at 85% 10%, rgba(31,111,229,.3), transparent 70%); }
.contact h2 { color: var(--white); font-size: clamp(2rem, 3.4vw, 2.8rem); }
.contact__phone { margin: 28px 0 32px; }
.contact__phone a {
  font-size: clamp(2.2rem, 4.2vw, 3.4rem); font-weight: 850; font-variation-settings: "wdth" 118;
  letter-spacing: -0.025em; color: var(--blue-light); text-decoration: none; white-space: nowrap; font-variant-numeric: tabular-nums;
}
.contact__phone a:hover { color: var(--white); }
.contact__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; color: #c4ccd8; }
.contact__list li { position: relative; padding-left: 36px; }
.contact__list li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; background: var(--blue-light);
  -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat;
}
.contact__list a { color: var(--white); }

.contact__form { background: var(--white); color: var(--text); border-radius: 18px; padding: clamp(26px, 3.5vw, 44px); box-shadow: 0 40px 80px -30px rgba(0,0,0,.6); }
.callback { display: grid; gap: 18px; }
.callback h3 { font-size: 1.5rem; margin: 0 0 4px; }
.callback__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.callback label { display: grid; gap: 6px; font-weight: 600; font-size: .93rem; }
.callback input:not([type=radio]), .callback textarea {
  font: inherit; font-weight: 400; color: var(--text); width: 100%;
  padding: .8em .9em; border: 1.5px solid #c9d0da; border-radius: 10px; background: var(--paper);
  transition: border-color .15s, box-shadow .15s, background-color .15s;
}
.callback input:focus, .callback textarea:focus { outline: none; background: #fff; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(31,111,229,.18); }
.callback__topics { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.callback__topics legend { font-weight: 600; font-size: .93rem; margin-bottom: 8px; padding: 0; }
.callback__topics label { display: block; position: relative; }
.callback__topics input { position: absolute; opacity: 0; pointer-events: none; }
.callback__topics span {
  display: inline-block; padding: .5em 1em; border-radius: 99px; cursor: pointer;
  border: 1.5px solid #c9d0da; font-weight: 600; font-size: .92rem; transition: all .15s;
}
.callback__topics span:hover { border-color: var(--blue); }
.callback__topics input:checked + span { background: var(--blue); border-color: var(--blue); color: #fff; }
.callback__topics input:focus-visible + span { outline: 3px solid var(--blue-light); outline-offset: 2px; }
.callback button { justify-self: start; font-size: 1.05rem; padding: .9em 1.6em; }
.callback__note { font-size: .84rem; color: var(--muted); margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: var(--steel); font-size: .93rem; padding-block: 40px; border-top: 1px solid var(--navy-line); }
.site-footer .wp-block-columns { align-items: center; }
.site-footer__brand { display: flex; align-items: center; gap: 18px; }
.site-footer__brand img { width: 56px; border-radius: 12px; box-shadow: 0 0 0 1px rgba(169,179,193,.2); }
.site-footer p { margin: 0; line-height: 1.7; }
.site-footer strong { color: var(--white); font-size: 1rem; }
.site-footer__links p { display: flex; flex-wrap: wrap; gap: 8px 28px; justify-content: flex-end; }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { color: var(--blue-light); }

/* Anruf-Leiste nur am Handy */
.call-bar { display: none; }

/* ---------- Responsiv ---------- */
@media (max-width: 1080px) {
  .hdr__burger { display: block; }
  .hdr__call { margin-left: auto; padding-left: 0; border-left: 0; }
  .hdr__nav {
    position: absolute; top: 100%; left: 0; right: 0;
    display: none; flex-direction: column; gap: 0;
    margin: 0; padding: 8px var(--gutter) 22px;
    background: var(--white); border: 0; border-top: 1px solid var(--line); border-radius: 0;
    box-shadow: 0 24px 40px -24px rgba(26,33,45,.5);
  }
  .is-open .hdr__nav { display: flex; }
  .hdr__nav a { padding: 1em 4px; border-radius: 0; font-size: 1.12rem; border-bottom: 1px solid var(--line); }
  .hdr__nav a:hover { background: none; box-shadow: none; }
  .hdr__nav a.is-active { background: none; color: var(--blue); }
  .hdr__nav .hdr__nav-call { display: block; margin-top: 18px; padding: 1em; border: 0; border-radius: 12px; background: var(--blue); color: var(--white); text-align: center; font-weight: 800; }
  .hdr__nav .hdr__nav-call:hover { background: var(--blue-deep); color: var(--white); }
  .trust__list { grid-template-columns: repeat(2, 1fr); }
  .trust__list li:nth-child(3) { border-left: 0; padding-left: 50px; }
  .trust__list li:nth-child(3)::before { left: 0; }
  .trust__list li:nth-child(3)::after { left: 8px; }
  .trust__list li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .tiles { grid-template-columns: 1fr 1fr; grid-template-rows: none; }
  .tile--main { grid-row: auto; grid-column: 1 / -1; min-height: 420px; }
  .project { grid-template-columns: 1fr; }
  .project__img img { aspect-ratio: 4 / 3; min-height: 0; }
}
@media (max-width: 781px) {   /* Gutenberg-Spalten-Umbruch */
  .wp-block-columns { flex-direction: column; }
  .wp-block-column { flex-basis: auto !important; }
  .hero { min-height: 0; }
  .hero .wp-block-cover__inner-container { padding-top: 64px; }
  .hero__shade { background: linear-gradient(0deg, rgba(26,33,45,.97) 0%, rgba(26,33,45,.88) 55%, rgba(38,47,63,.55) 100%); }
  .hero__aside { justify-content: flex-start; width: 100%; }
  .bonus-card { max-width: none; }
  .about__mark img { width: 120px; border-radius: 22px; }
  .about__facts { grid-template-columns: 1fr; }
  .about__facts li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--navy-line); padding-bottom: 18px; }
  .about__facts li:first-child { padding-bottom: 18px; }
  .bonus__media { order: -1; }
  .bonus__media img { aspect-ratio: 4 / 3; }
  .site-footer__links p { justify-content: flex-start; }
  .callback__row { grid-template-columns: 1fr; }

  .call-bar {
    display: flex; align-items: center; justify-content: center; gap: .6em;
    position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 30;
    padding: 15px; border-radius: 14px;
    background: var(--blue); color: var(--white); font-weight: 800; font-size: 1.08rem; text-decoration: none;
    box-shadow: 0 14px 34px -8px rgba(26,33,45,.55);
  }
  .call-bar::before { content: ""; width: 1.1em; height: 1.1em; background: currentColor; -webkit-mask: var(--i-phone) center / contain no-repeat; mask: var(--i-phone) center / contain no-repeat; }
  .call-bar:hover { color: var(--white); background: var(--blue-deep); }
  body { padding-bottom: 80px; }
  .site-header.is-open ~ .call-bar { display: none; }
}
@media (max-width: 560px) {
  .hdr { height: 72px; gap: 12px; }
  .hdr__logo img, .is-scrolled .hdr__logo img { width: 128px; }
  .hdr__call-text { display: none; }
  .hdr__call-icon { width: 48px; height: 48px; }
  .trust__list { grid-template-columns: 1fr; }
  .trust__list li { border-left: 0 !important; padding-left: 50px !important; }
  .trust__list li::before { left: 0 !important; }
  .trust__list li::after { left: 8px !important; }
  .trust__list li + li { border-top: 1px solid var(--line); }
  .tiles { grid-template-columns: 1fr; }
  .tile { min-height: 280px; }
  .tile--main .wp-block-cover__inner-container, .tile--wide .wp-block-cover__inner-container { padding: 26px; }
  .hero__actions .wp-block-button, .hero__actions .wp-block-button__link { width: 100%; }
}
