/* ==========================================================================
   it-berlin-service.de: Stylesheet des Themes
   Formensprache von lorop.de: Bereichsfarbe Mint #73EEDC, Navy #1F2446 als Grundton,
   Oswald-Versalien für Überschriften, Lato für Text, dunkle Navy-Kacheln, große Radien.

   Aufbau: Konstanten → Hell → Dunkel → Basis → Typografie → Buttons → Header → Footer →
   Seitenkopf/Inhalt → Bausteine (Patterns) → Blog → Formulare → Sonstiges
   Schriften lädt WordPress aus theme.json (lokal, keine Google Fonts).
   ========================================================================== */

/* ---------- Konstanten (in beiden Modi gleich) ---------- */
:root {
  --accent: #73eedc;            /* Flächen, Formen, Buttons. NIE als Text auf Weiß (Kontrast 1,4:1) */
  --accent-strong: #4fd9c5;     /* Hover auf Buttons */
  --accent-soft: rgba(115, 238, 220, .15);
  --navy: #1f2446;
  --navy-2: #2a305b;

  --font-display: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Lato", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 14px;
  --radius-lg: 22px;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 84px;
}

/* ---------- Hell ---------- */
html:root {
  color-scheme: light;
  --bg: #ffffff;
  --bg-2: #f6f6f9;
  --hero-bg: linear-gradient(160deg, #c6f7ee 0%, #e0fbf5 55%, #f1fdfa 100%);
  --hero-solid: #d6f9f2;
  --surface: #ffffff;
  --surface-2: #f2f2f7;
  --panel: #1f2446;             /* Navy-Kacheln */
  --panel-2: #2a305b;
  --panel-text: #ffffff;
  --panel-muted: #b9bcd6;
  --text: #1f2446;
  --body: #3b3e56;
  --muted: #62667f;
  --line: #e3e3ec;
  --line-strong: #cbcbd8;
  --link: #0f7b6b;              /* Akzent-Text auf Hell (5,2:1) */
  --focus: #0f7b6b;
  --header-bg: rgba(255, 255, 255, .94);
  --footer-bg: #1f2446;
  --shadow: 0 1px 2px rgba(31, 36, 70, .06), 0 16px 36px -18px rgba(31, 36, 70, .22);
  --shadow-lg: 0 40px 80px -40px rgba(31, 36, 70, .4);
  --logo-tile: #ffffff;
  --shape-navy: #1f2446;
  --shape-accent: #73eedc;
  --ok-bg: #e7f7ef; --ok-fg: #0c6a3e;
  --err-bg: #fdecec; --err-fg: #9b1c1c;

}

/* Gutenberg-Palette folgt dem Farbschema. WordPress deklariert die Preset-Variablen auf <body>,
   deshalb müssen die Überschreibungen ebenfalls auf body liegen (html body schlägt body). */
html body {
  --wp--preset--color--base: var(--bg);
  --wp--preset--color--base-2: var(--bg-2);
  --wp--preset--color--contrast: var(--text);
  --wp--preset--color--body: var(--body);
  --wp--preset--color--muted: var(--muted);
  --wp--preset--color--line: var(--line);
  --wp--preset--color--accent-text: var(--link);
  --wp--preset--color--accent-soft: var(--hero-solid);
  --wp--preset--color--navy: var(--panel);
  --wp--preset--color--navy-2: var(--panel-2);
}

/* ---------- Dunkel (tiefes Navy) ---------- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #12152b;
    --bg-2: #161a34;
    --hero-bg: linear-gradient(160deg, #0f3a3d 0%, #172a44 55%, #161a34 100%);
    --hero-solid: #163a40;
    --surface: #1c2042;
    --surface-2: #242951;
    --panel: #262c57;
    --panel-2: #303767;
    --panel-text: #ffffff;
    --panel-muted: #b9bcd6;
    --text: #f2f3f9;
    --body: #cfd1e2;
    --muted: #9fa3bd;
    --line: rgba(255, 255, 255, .1);
    --line-strong: rgba(255, 255, 255, .22);
    --link: #73eedc;
    --focus: #73eedc;
    --header-bg: rgba(18, 21, 43, .94);
    --footer-bg: #0d1024;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 18px 40px -20px rgba(0, 0, 0, .7);
    --shadow-lg: 0 40px 80px -40px rgba(0, 0, 0, .8);
    --logo-tile: #e8e9f1;
    --shape-navy: #3a4180;
    --shape-accent: #73eedc;
    --ok-bg: rgba(61, 220, 132, .12); --ok-fg: #7ee2a8;
    --err-bg: rgba(255, 99, 99, .14); --err-fg: #ff9a9a;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #12152b;
  --bg-2: #161a34;
  --hero-bg: linear-gradient(160deg, #0f3a3d 0%, #172a44 55%, #161a34 100%);
  --hero-solid: #163a40;
  --surface: #1c2042;
  --surface-2: #242951;
  --panel: #262c57;
  --panel-2: #303767;
  --panel-text: #ffffff;
  --panel-muted: #b9bcd6;
  --text: #f2f3f9;
  --body: #cfd1e2;
  --muted: #9fa3bd;
  --line: rgba(255, 255, 255, .1);
  --line-strong: rgba(255, 255, 255, .22);
  --link: #73eedc;
  --focus: #73eedc;
  --header-bg: rgba(18, 21, 43, .94);
  --footer-bg: #0d1024;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 18px 40px -20px rgba(0, 0, 0, .7);
  --shadow-lg: 0 40px 80px -40px rgba(0, 0, 0, .8);
  --logo-tile: #e8e9f1;
  --shape-navy: #3a4180;
  --shape-accent: #73eedc;
  --ok-bg: rgba(61, 220, 132, .12); --ok-fg: #7ee2a8;
  --err-bg: rgba(255, 99, 99, .14); --err-fg: #ff9a9a;
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0; font-family: var(--font-body); font-size: 17px; line-height: 1.7;
  color: var(--body); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: hidden;
  transition: background-color .25s ease, color .25s ease;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4, h5, h6 { margin: 0; line-height: 1.1; color: var(--text); font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: .005em; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 5.6vw, 4.6rem); line-height: 1.04; }
h2 { font-size: clamp(2rem, 4vw, 3.1rem); }
h3 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); font-weight: 600; }
h4 { font-size: 1.2rem; font-weight: 600; letter-spacing: .02em; }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 1000; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; text-decoration: none; font-weight: 700; }
.skip-link:focus { top: 12px; }
.sr-only, .screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.icon { width: 1.1em; height: 1.1em; flex-shrink: 0; }

/* ---------- Typografie ---------- */
.display { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: .005em; line-height: 1.04; color: var(--text); }
.h-xl { font-size: clamp(2.6rem, 5.6vw, 4.6rem); }
.h-lg { font-size: clamp(2rem, 4vw, 3.1rem); }
.h-md { font-size: clamp(1.6rem, 2.8vw, 2.2rem); }
.h-sm { font-family: var(--font-display); font-weight: 600; text-transform: uppercase; font-size: 1.3rem; letter-spacing: .01em; line-height: 1.2; }
.accent { color: var(--link); }
.kicker {
  display: inline-flex; align-items: center; gap: 12px; margin: 0 0 18px;
  font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; text-transform: uppercase; letter-spacing: .02em; color: var(--text);
}
.kicker::before { content: ""; width: 20px; height: 20px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.kicker.small { font-size: .95rem; gap: 10px; color: var(--link); }
.kicker.small::before { width: 16px; height: 16px; }
.lead, .has-large-font-size { font-size: clamp(1.08rem, 1.5vw, 1.22rem); line-height: 1.65; color: var(--body); }
.lead { max-width: 60ch; }
.text-muted { color: var(--muted); }

/* ---------- Buttons (eigene Klassen + Gutenberg-Button) ---------- */
.btn, .wp-block-button__link {
  --btn-bg: var(--accent); --btn-fg: var(--navy);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 15px 24px; border-radius: 8px; border: 0;
  background: var(--btn-bg); color: var(--btn-fg); text-decoration: none; cursor: pointer; white-space: nowrap;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem; letter-spacing: .05em; text-transform: uppercase; line-height: 1;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .12), 0 10px 24px -14px rgba(15, 123, 107, .6);
  transition: transform .2s, background .2s, box-shadow .2s, color .2s;
}
.btn:hover, .wp-block-button__link:hover { transform: translateY(-1px); background: var(--accent-strong); color: var(--navy); }
.btn .icon { width: 18px; height: 18px; transition: transform .2s; }
.btn:hover .icon { transform: translateX(2px); }
.btn-navy, .is-style-navy .wp-block-button__link { --btn-bg: var(--navy); --btn-fg: #fff; box-shadow: 0 10px 24px -14px rgba(31, 36, 70, .8); }
.btn-navy:hover, .is-style-navy .wp-block-button__link:hover { background: var(--navy-2); color: #fff; }
:root[data-theme="dark"] .btn-navy, :root[data-theme="dark"] .is-style-navy .wp-block-button__link { --btn-bg: var(--panel-2); }
.btn-ghost, .is-style-ghost .wp-block-button__link, .is-style-outline .wp-block-button__link {
  --btn-bg: transparent; --btn-fg: var(--text); box-shadow: inset 0 0 0 2px var(--text); border: 0;
}
.btn-ghost:hover, .is-style-ghost .wp-block-button__link:hover, .is-style-outline .wp-block-button__link:hover { background: transparent; box-shadow: inset 0 0 0 2px var(--accent); color: var(--link); }
.btn-ghost--light { --btn-fg: #fff; box-shadow: inset 0 0 0 2px #fff; }
.btn-ghost--light:hover { color: var(--accent); box-shadow: inset 0 0 0 2px var(--accent); }
.btn-row, .wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-sm { padding: 9px 14px; font-size: .82rem; border-radius: 6px; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; font-size: .9rem; color: var(--link); text-decoration: none; }
.link-arrow .icon { width: 15px; height: 15px; transition: transform .2s; }
.link-arrow:hover .icon { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  background: var(--header-bg); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 1px 0 var(--line), 0 6px 20px -16px rgba(31, 36, 70, .3);
}
.site-header .wrap { height: 100%; display: flex; align-items: center; gap: 24px; position: relative; }
.brand { display: block; flex-shrink: 0; }
.brand img, .custom-logo { height: 38px; width: auto; }
.logo-dark { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .logo-light { display: none; } :root:not([data-theme="light"]) .logo-dark { display: block; } }
:root[data-theme="dark"] .logo-light { display: none; }
:root[data-theme="dark"] .logo-dark { display: block; }

.site-nav { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.nav-list { list-style: none; display: flex; align-items: center; gap: 2px; }
.nav-list li { position: relative; }
.nav-list a {
  display: inline-flex; align-items: center; gap: 6px; padding: 10px 11px; border-radius: 6px; text-decoration: none; position: relative; white-space: nowrap;
  font-family: var(--font-display); font-weight: 500; font-size: .98rem; text-transform: uppercase; letter-spacing: .02em; color: var(--text); transition: color .2s;
}
.nav-list > li > a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.nav-list > li > a:hover::after, .nav-list > li.current-menu-item > a::after, .nav-list > li.current-menu-ancestor > a::after, .nav-list > li:focus-within > a::after { transform: scaleX(1); }
.nav-list .sub-menu {
  list-style: none; position: absolute; top: 100%; left: 0; min-width: 240px; padding: 8px; z-index: 5;
  background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: 0 0 12px 12px; box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .2s, transform .2s, visibility .2s;
}
.nav-list li:hover > .sub-menu, .nav-list li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.nav-list .sub-menu a { display: block; padding: 9px 12px; font-family: var(--font-body); font-weight: 700; font-size: .95rem; text-transform: none; letter-spacing: 0; border-radius: 8px; }
.nav-list .sub-menu a:hover { background: var(--accent-soft); }
.btn-nav { margin-left: 10px; padding: 12px 18px; font-size: .92rem; }
.nav-meta { display: none; }
.menu-toggle { display: none; margin-left: auto; width: 46px; height: 46px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); color: var(--text); align-items: center; justify-content: center; cursor: pointer; }
.menu-toggle .icon { width: 22px; height: 22px; }

/* Dark-Mode-Umschalter (ganz rechts) */
.theme-menu { position: relative; }
.theme-menu--header { margin-left: 8px; flex-shrink: 0; }
.theme-menu--nav { display: none; }
.theme-btn { width: 38px; height: 38px; border-radius: 8px; border: 1px solid var(--line); background: none; color: var(--muted); display: grid; place-items: center; cursor: pointer; transition: background .15s, color .15s; }
.theme-btn:hover, .theme-btn[aria-expanded="true"] { background: var(--surface-2); color: var(--text); }
.theme-btn .icon { width: 18px; height: 18px; }
.theme-btn span { display: contents; }
.theme-btn span[hidden] { display: none; }
.theme-list { position: absolute; top: calc(100% + 8px); right: 0; min-width: 168px; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .15s, transform .15s, visibility .15s; z-index: 120; }
.theme-list.open { opacity: 1; visibility: visible; transform: none; }
.theme-list button { width: 100%; display: flex; align-items: center; gap: 10px; padding: 9px 10px; border: 0; border-radius: 8px; background: none; color: var(--text); font-size: .95rem; text-align: left; cursor: pointer; }
.theme-list button:hover, .theme-list button:focus-visible { background: var(--surface-2); outline: none; }
.theme-list .icon { width: 16px; height: 16px; color: var(--muted); }
.theme-list .tick { margin-left: auto; color: var(--link); visibility: hidden; }
.theme-list [aria-checked="true"] .tick { visibility: visible; }
/* 10 Menüpunkte plus Kontakt-Button: zwischen 1101 und 1440px enger setzen, darunter Burger-Menü */
@media (max-width: 1440px) and (min-width: 1101px) {
  .brand img, .custom-logo { height: 32px; }
  .nav-list a { padding: 10px 7px; font-size: .9rem; letter-spacing: .01em; }
  .btn-nav { margin-left: 6px; padding: 11px 14px; font-size: .85rem; }
  .site-header .wrap { gap: 16px; }
}
@media (max-width: 1240px) and (min-width: 1101px) {
  .nav-list a { padding: 10px 5px; font-size: .84rem; }
}

@media (max-width: 1100px) {
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--bg); }
  .menu-toggle { display: inline-flex; }
  .theme-menu--header { display: none; }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 0 0; height: calc(100dvh - var(--header-h)); margin: 0;
    background: var(--bg); flex-direction: column; align-items: stretch; gap: 0; padding: 12px var(--gutter) 40px; overflow-y: auto;
    transform: translateX(100%); visibility: hidden; transition: transform .3s ease, visibility .3s;
  }
  .site-nav.open { transform: none; visibility: visible; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list a { width: 100%; justify-content: space-between; padding: 18px 4px; font-size: 1.35rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav-list > li > a::after { display: none; }
  .nav-list > li.current-menu-item > a { color: var(--link); }
  .nav-list .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; border-radius: 12px; background: var(--bg-2); margin: 8px 0 12px; padding: 8px 14px; min-width: 0; }
  .nav-list .sub-menu a { font-size: 1.05rem; padding: 12px 4px; border-bottom: 0; }
  .btn-nav { margin: 22px 0 0; padding: 18px; font-size: 1.05rem; }
  .nav-meta { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-top: auto; padding-top: 28px; color: var(--muted); font-size: .98rem; }
  .nav-contact { display: grid; gap: 12px; min-width: 0; }
  .nav-contact a { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; overflow-wrap: anywhere; }
  .nav-contact .icon { color: var(--link); }
  .theme-menu--nav { display: block; flex-shrink: 0; }
  .theme-menu--nav .theme-btn { width: 44px; height: 44px; border-radius: 10px; background: var(--surface-2); }
  .theme-menu--nav .theme-list { top: auto; bottom: calc(100% + 8px); transform: translateY(4px); }
  .theme-menu--nav .theme-list.open { transform: none; }
}

/* ---------- Footer (Navy) ---------- */
.site-footer { background: var(--footer-bg); color: #b9bcd6; padding: 76px 0 30px; font-size: .96rem; }
.site-footer h2 { font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; font-size: 1.05rem; color: #fff; margin-bottom: 16px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; }
.footer-grid > * { min-width: 0; }
.footer-grid ul { list-style: none; display: grid; gap: 8px; }
.site-footer a { text-decoration: none; transition: color .2s; }
.site-footer a:hover { color: var(--accent); }
.footer-brand img { height: 38px; width: auto; margin-bottom: 18px; }
.footer-brand p { max-width: 36ch; }
.footer-grid address { font-style: normal; line-height: 1.7; margin-bottom: 14px; }
.footer-grid address b { color: #fff; }
.footer-contact a { display: inline-flex; align-items: center; gap: 10px; }
.footer-contact .icon { color: var(--accent); }
.footer-grid .footer-list { columns: 2; column-gap: 24px; display: block; }
.footer-list li { break-inside: avoid; margin-bottom: 8px; }
.footer-bottom { margin-top: 56px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .12); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .88rem; }
.footer-bottom p { margin: 0; }
.footer-nav { list-style: none; display: flex; flex-wrap: wrap; gap: 20px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } .footer-list { columns: 1; } }
.to-top { position: fixed; right: 20px; bottom: 20px; z-index: 50; width: 48px; height: 48px; border-radius: 10px; border: 0; background: var(--navy); color: #fff; display: grid; place-items: center; cursor: pointer; opacity: 0; transform: translateY(10px); pointer-events: none; transition: all .25s; box-shadow: var(--shadow); }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--accent); color: var(--navy); }
.to-top .icon { width: 20px; height: 20px; }

/* ---------- Seitenkopf und Inhalt (page.php, single.php, index.php) ---------- */
.page-head { background: var(--hero-bg); padding: clamp(48px, 7vw, 88px) 0 clamp(40px, 5vw, 64px); }
.page-title { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
.page-title--post { text-transform: none; letter-spacing: 0; font-size: clamp(2rem, 4.2vw, 3.2rem); line-height: 1.12; max-width: 24ch; }
.page-head .lead { margin: 16px 0 0; }
.page-body { padding: clamp(48px, 6vw, 80px) 0 clamp(72px, 9vw, 120px); }
.post-meta { margin: 0 0 14px; font-size: .95rem; color: var(--muted); }
.post-meta a { color: var(--link); text-decoration: none; }
.post-cover { margin: calc(-1 * clamp(80px, 9vw, 120px)) auto clamp(36px, 5vw, 56px); max-width: 980px; position: relative; z-index: 2; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-lg); }
.post-cover img { width: 100%; height: auto; }
.post-extras { max-width: 72ch; margin: clamp(40px, 5vw, 64px) auto 0; display: grid; gap: 28px; }
.post-nav { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-weight: 700; }
.post-nav a { color: var(--link); text-decoration: none; }
.post-nav__next { margin-left: auto; text-align: right; }
.page-links { margin-top: 24px; }

/* Inhalt aus Gutenberg: Lesebreite, breite und volle Ausrichtung */
.entry-content > * { max-width: 760px; margin-left: auto; margin-right: auto; }
.entry-content > .alignwide { max-width: var(--wrap); }
.entry-content > .alignfull { max-width: none; }
.entry-content--full > :not(.alignwide):not(.alignfull) { max-width: min(760px, calc(100% - 2 * var(--gutter))); }
.entry-content--full > .alignwide { max-width: min(var(--wrap), calc(100% - 2 * var(--gutter))); }
.entry-content > * + * { margin-top: 1.5rem; }
.entry-content > .alignfull + .alignfull { margin-top: 0; }
.entry-content > p + p { margin-top: 0; }

/* Fließtext (Seiten, Beiträge) */
.prose { max-width: 72ch; margin-left: auto; margin-right: auto; font-size: 1.06rem; }
.prose > * { max-width: none; }
.prose h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 1.9em 0 .6em; scroll-margin-top: calc(var(--header-h) + 24px); }
.prose h3 { font-size: 1.25rem; font-weight: 600; margin: 1.6em 0 .5em; }
.prose h4 { margin: 1.4em 0 .4em; }
.prose > h2:first-child, .prose > h3:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--link); }
.prose strong { color: var(--text); }
.prose a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose a:hover { color: var(--text); }
.prose hr { border: 0; height: 1px; background: var(--line); margin: 2.4em 0; }
.prose blockquote, .wp-block-quote { margin: 1.6em 0; padding: 18px 22px; border-left: 4px solid var(--accent); background: var(--surface-2); border-radius: 0 12px 12px 0; }
.prose blockquote p:last-child { margin-bottom: 0; }
.prose code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .9em; background: var(--surface-2); padding: 1px 6px; border-radius: 4px; }
.prose pre { overflow: auto; padding: 18px; border-radius: 12px; background: var(--surface-2); }
.prose figure, .wp-block-image { margin: 1.8em 0; }
.prose img, .wp-block-image img { border-radius: 12px; }
.prose table, .wp-block-table table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.prose th, .prose td, .wp-block-table th, .wp-block-table td { padding: 10px 12px; border: 1px solid var(--line); text-align: left; }
.prose th, .wp-block-table th { background: var(--surface-2); color: var(--text); }
.wp-block-separator { border: 0; height: 1px; background: var(--line); }
.wp-caption, figcaption { font-size: .88rem; color: var(--muted); margin-top: 8px; }
.alignleft { float: left; margin: 0 24px 16px 0; } .alignright { float: right; margin: 0 0 16px 24px; } .aligncenter { margin-left: auto; margin-right: auto; }

/* ---------- Bausteine (Patterns) ---------- */
.section { padding: clamp(72px, 9vw, 120px) var(--gutter); position: relative; }
.section-tight { padding: clamp(48px, 6vw, 72px) var(--gutter); }
.tone-b { background: var(--bg-2); }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head .lead { margin-top: 16px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* Hero: heller Mint-Verlauf, Text links, Bereichsform rechts */
.hero { position: relative; overflow: hidden; background: var(--hero-bg); padding: clamp(56px, 8vw, 104px) var(--gutter) clamp(72px, 9vw, 120px); }
.hero.hero--overlap { padding-bottom: clamp(120px, 12vw, 168px); }
.hero > * { position: relative; z-index: 1; }
.hero .wp-block-columns { align-items: center; gap: clamp(24px, 4vw, 64px); }
.hero h1 { margin-bottom: 22px; }
.hero .lead { margin-bottom: 32px; }
.hero .wp-block-buttons { margin-top: 28px; }
.hero-shape { display: block; width: 100%; max-width: 520px; margin-left: auto; animation: float 9s ease-in-out infinite; }
.hero-shape img { width: 100%; height: auto; filter: drop-shadow(0 30px 40px rgba(15, 123, 107, .18)); }
@keyframes float { 50% { transform: translateY(-14px) rotate(-1.5deg); } }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 30px; color: var(--text); font-size: .95rem; font-weight: 700; list-style: none; }
.hero-badges li { display: inline-flex; align-items: center; gap: 8px; }
.hero-badges li::before { content: ""; width: 18px; height: 18px; border-radius: 5px; flex-shrink: 0; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f2446' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat; }
@media (max-width: 781px) { .hero-shape { max-width: 260px; margin: 8px auto 0; } }

/* Leistungs-Kacheln (Navy) */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.tiles.tiles--overlap { margin-top: calc(-1 * clamp(64px, 8vw, 96px)); position: relative; z-index: 3; }
.tiles.tiles-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tiles > *, .cards > *, .logos > * { margin-block: 0; }   /* Gutenberg-Fließlayout gibt Kindern sonst Abstände */
.tiles { grid-auto-rows: 1fr; }                          /* alle Kacheln gleich hoch, unabhängig vom Text */
.tile {
  position: relative; display: flex; flex-direction: column; gap: 10px; padding: 24px 22px 26px; border-radius: 12px; overflow: hidden;
  background: linear-gradient(160deg, var(--panel-2), var(--panel)); color: var(--panel-text); box-shadow: var(--shadow-lg); transition: transform .25s;
}
.tile::after { content: ""; position: absolute; left: 0; bottom: 0; height: 4px; width: 30%; background: var(--accent); transition: width .35s; }
.tile:hover { transform: translateY(-4px); }
.tile:hover::after { width: 100%; }
.tile h3, .tile h2 { color: #fff; font-size: 1.25rem; font-weight: 600; letter-spacing: .02em; }
.tile p { margin: 0; font-size: .95rem; color: var(--panel-muted); line-height: 1.55; }
.tile a { color: var(--accent); text-decoration: none; font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; font-size: .9rem; margin-top: auto; }
.tile a::after { content: " →"; }
.tile a::before { content: ""; position: absolute; inset: 0; }
@media (max-width: 1020px) { .tiles, .tiles.tiles-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .tiles, .tiles.tiles-3 { grid-template-columns: 1fr; } }

/* Karten (hell) */
.cards { display: grid; gap: 20px; }
.cards-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1020px) { .cards-3, .cards-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .cards-2, .cards-3, .cards-4 { grid-template-columns: 1fr; } }
.card, .is-style-card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px; transition: transform .25s, box-shadow .25s, border-color .25s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card h3, .is-style-card h3 { font-size: 1.3rem; font-weight: 600; margin-bottom: 10px; }
.card p { margin: 0; color: var(--body); font-size: .98rem; }
.icon-sq { width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--link); margin-bottom: 20px; }
.icon-sq .icon { width: 25px; height: 25px; }

/* Navy-Kachel / Hinweisbox (Gruppe mit Stil "Navy-Kachel") */
.band, .is-style-panel { position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: clamp(28px, 4.5vw, 56px); background: linear-gradient(150deg, var(--panel-2), var(--panel)); color: var(--panel-text); }
.band::before, .is-style-panel::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .1) 1px, transparent 1px); background-size: 22px 22px; mask-image: linear-gradient(90deg, transparent 40%, #000); -webkit-mask-image: linear-gradient(90deg, transparent 40%, #000); pointer-events: none; }
.band > *, .is-style-panel > * { position: relative; z-index: 1; }
.band h2, .band h3, .is-style-panel h2, .is-style-panel h3, .is-style-panel h4 { color: #fff; }
.band p, .is-style-panel p, .is-style-panel li { color: var(--panel-muted); }
.band .kicker, .is-style-panel .kicker { color: #fff; }
.band a:not(.btn):not(.wp-block-button__link), .is-style-panel a:not(.btn):not(.wp-block-button__link) { color: var(--accent); }
.band--small { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 28px; align-items: center; }
.band--small p { margin: 0; }
.band--small .h-sm { margin-bottom: 8px; color: #fff; }
.band--small .btn-row { flex-direction: column; align-items: stretch; }
@media (max-width: 760px) { .band--small { grid-template-columns: 1fr; } }

/* Mint-Fläche (Gruppe mit Stil "Mint-Fläche") */
.is-style-soft { background: var(--hero-solid); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 48px); }
.callout { padding: 24px 26px; border-radius: 14px; background: var(--hero-solid); border-left: 5px solid var(--accent); }
.callout p { margin: 0; color: var(--text); }

/* Häkchen-Liste (Liste mit Stil "Häkchen-Liste") */
.is-style-checklist, .checklist { list-style: none; padding-left: 0; display: grid; gap: 10px; }
.is-style-checklist li, .checklist li { position: relative; padding-left: 34px; color: var(--text); font-weight: 700; }
.is-style-checklist li::before, .checklist li::before { content: ""; position: absolute; left: 0; top: .2em; width: 22px; height: 22px; border-radius: 6px; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f2446' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 13px no-repeat; }
.is-style-panel .is-style-checklist li { color: #fff; }

/* Partner-Logos: ruhiges Raster statt Slider, im Dark Mode auf hellen Kacheln */
.logos { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; list-style: none; }
.logos > * { display: grid; place-items: center; height: 96px; padding: 18px; margin: 0; background: var(--logo-tile); border: 1px solid var(--line); border-radius: 12px; }
.logos img { max-height: 54px; width: auto; object-fit: contain; }
@media (max-width: 860px) { .logos { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 520px) { .logos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Call-to-Action „Kontakt aufnehmen“ */
.cta { position: relative; overflow: hidden; border-radius: var(--radius-lg); background: var(--hero-bg); padding: clamp(36px, 6vw, 72px); }
.cta > * { position: relative; z-index: 1; }
.cta .wp-block-columns { align-items: center; gap: 40px; }
.cta p { max-width: 54ch; }
.cta .cta-shape { position: absolute; right: -40px; bottom: -60px; width: 260px; opacity: .3; z-index: 0; pointer-events: none; }
.cta-contact { display: grid; gap: 12px; list-style: none; }
.cta-contact a { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 12px; text-decoration: none; background: var(--surface); box-shadow: var(--shadow); transition: transform .2s; color: var(--text); }
.cta-contact a:hover { transform: translateY(-2px); }
.cta-contact .icon { width: 22px; height: 22px; color: var(--link); }
.cta-contact b { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; letter-spacing: .02em; }
.cta-contact small { color: var(--muted); }

/* Leistungsseiten: Original-Zwischenüberschrift links, Text rechts */
.section-title { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.prose .prose-h4, .prose h4.prose-h4 { font-family: var(--font-body); text-transform: none; letter-spacing: 0; font-size: 1.15rem; line-height: 1.5; font-weight: 700; margin: 1.2em 0 .6em; }
.prose .lead { font-size: 1.12rem; }
.prose .wp-block-buttons { margin-top: 1.4rem; }
.prose .wp-block-button__link, .prose a.btn, .entry-content .wp-block-button__link { color: var(--btn-fg); text-decoration: none; }
.prose .wp-block-button__link:hover, .entry-content .wp-block-button__link:hover { color: var(--btn-fg); }
.logos > .logo-dark-tile { background: var(--navy); }   /* weiße Logos (z. B. ResellerConnect) auf Navy */

/* Startseite: Team (Karte links, zwei Karten rechts in gleicher Höhe) */
.team-grid { gap: clamp(20px, 3vw, 32px); }
.team-location .wp-block-image { margin: 0 0 18px; }
.team-location img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.team-location h3 { font-size: 1.3rem; margin-bottom: 8px; }
.team-location p { margin: 0; }
.team-stack { display: grid; grid-template-rows: 1fr 1fr; gap: 20px; height: 100%; }
.team-stack > .is-style-card { margin: 0; display: flex; flex-direction: column; justify-content: center; }
.team-stack .is-style-card h3 { font-size: 1.3rem; margin-bottom: 8px; }
.team-stack .is-style-card p { margin: 0; }
.team-stack .icon-sq { margin-bottom: 16px; }
@media (max-width: 781px) { .team-stack { height: auto; grid-template-rows: none; margin-top: 20px; } }

/* Leistungs-Kacheln: Icon oben */
.tile .tile-icon { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; background: rgba(115, 238, 220, .14); color: var(--accent); margin-bottom: 6px; }
.tile .tile-icon .icon { width: 22px; height: 22px; }

/* Startseite: Partner-Karten mit Logo, Logo-Reihe und Siegel */
.partner-cards .is-style-card { display: flex; flex-direction: column; }
/* Logos je Karte als automatischer Wechsel (reines CSS, keine Slider-Bibliothek): die Logos fahren
   nacheinander von rechts herein und nach links hinaus, ohne Rahmen. Pausiert beim Überfahren. */
.partner-cards .partner-logos { position: relative; height: 72px; margin: 0 0 20px; overflow: hidden; }
.partner-cards .partner-logos > * { position: absolute; inset: 0; margin: 0; display: flex; align-items: center; justify-content: flex-start; opacity: 0; transform: translateX(110%); will-change: transform, opacity; }
.partner-cards .partner-logos > :first-child { opacity: 1; transform: none; }
.partner-cards .partner-logos img { max-height: 60px; max-width: 220px; width: auto; border-radius: 0; }
.partner-cards .partner-logos > .logo-dark-tile img { background: var(--navy); border-radius: 10px; padding: 8px 14px; }   /* weißes Logo */
.partner-cards h3 { font-size: 1.25rem; }
@keyframes logo-slide-3 { 0% { transform: translateX(110%); opacity: 0; } 6%, 27% { transform: none; opacity: 1; } 33%, 100% { transform: translateX(-110%); opacity: 0; } }
@keyframes logo-slide-2 { 0% { transform: translateX(110%); opacity: 0; } 8%, 42% { transform: none; opacity: 1; } 50%, 100% { transform: translateX(-110%); opacity: 0; } }
.partner-logos.has-3 > * { animation: logo-slide-3 12s cubic-bezier(.2, .8, .2, 1) infinite; }
.partner-logos.has-3 > :nth-child(2) { animation-delay: 4s; }
.partner-logos.has-3 > :nth-child(3) { animation-delay: 8s; }
.partner-logos.has-2 > * { animation: logo-slide-2 8s cubic-bezier(.2, .8, .2, 1) infinite; }
.partner-logos.has-2 > :nth-child(2) { animation-delay: 4s; }
.partner-cards .is-style-card:hover .partner-logos > * { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {   /* ohne Bewegung: alle Logos nebeneinander */
  .partner-cards .partner-logos { display: flex; flex-wrap: wrap; gap: 14px; height: auto; overflow: visible; }
  .partner-cards .partner-logos > * { position: static; opacity: 1; transform: none; height: 56px; }
  .partner-cards .partner-logos img { max-height: 48px; max-width: 140px; }
}
.logos img { filter: none; }   /* Logos und Zertifikate in Farbe */
.footer-seal { display: inline-block; margin-top: 20px; padding: 6px 10px; border-radius: 8px; background: #fff; line-height: 0; }
.footer-seal img { height: 44px; width: auto; }
/* Gründe: Navy-Band, Liste zweispaltig */
.reasons { padding: clamp(32px, 5vw, 56px); }
.reasons .wp-block-columns { gap: clamp(24px, 4vw, 56px); }
.reasons h2 { margin-bottom: 18px; }
.reasons .is-style-checklist { grid-template-columns: 1fr 1fr; gap: 10px 24px; }
.reasons .is-style-checklist li { font-size: .95rem; }
@media (max-width: 860px) { .reasons .is-style-checklist { grid-template-columns: 1fr; } }

/* Weitere Leistungsangebote: vier Karten mit Icon, darunter zwei Mint-Kacheln */
.offer-cards .is-style-card { display: flex; flex-direction: column; padding: 26px 24px 24px; }
.offer-cards .icon-sq { width: 46px; height: 46px; margin-bottom: 16px; }
.offer-cards .icon-sq .icon { width: 22px; height: 22px; }
.offer-cards h4 { font-size: 1.05rem; margin: 0 0 8px; }
.offer-cards h4 a { color: var(--text); text-decoration: none; }
.offer-cards h4 a:hover { color: var(--link); }
.offer-cards h4 a::after { content: ""; position: absolute; inset: 0; }   /* ganze Karte klickbar */
.offer-cards p { margin: 0; font-size: .93rem; }
.offer-tiles { margin-top: 20px; }
.offer-tile { padding: clamp(22px, 3vw, 32px); height: 100%; }
.offer-tile p { margin: 0 0 .6em; }
.offer-tile p:last-child { margin: 0; }
.offer-tile p strong { font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: .02em; font-size: 1.15rem; color: var(--text); }
.offer-tile a { color: var(--link); font-weight: 700; }
.is-style-panel .is-style-checklist li { color: #fff; }
.cards .is-style-card figure, .is-style-card .wp-block-image { margin: 0 0 16px; }
.is-style-card .wp-block-image img { border-radius: 10px; }
.cards .is-style-card { margin: 0; }
.wp-block-columns .is-style-card { align-self: stretch; }
.wp-block-column > .is-style-card { height: 100%; }   /* Karten in Spalten gleich hoch */

/* Startseite: „Neuigkeiten“ als Query-Loop, alle Karten gleich hoch */
.news-loop .wp-block-post-template { list-style: none; padding: 0; margin: 0; }
.news-loop .wp-block-post { margin: 0; display: flex; }
.news-loop .post-card { padding: 0; flex: 1; width: 100%; display: flex; flex-direction: column; }
.news-loop .post-body { flex: 1; }
.news-loop .wp-block-post-featured-image { margin: 0; aspect-ratio: 16 / 9; overflow: hidden; background: var(--hero-solid); }
.news-loop .wp-block-post-featured-image a { display: block; height: 100%; }
.news-loop .post-ph a { display: grid; place-items: center; height: 100%; }
.news-loop .post-ph .shape { width: 34%; height: auto; }
.news-loop .wp-block-post-featured-image img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.news-loop .wp-block-post-date { margin: 0; font-size: .86rem; color: var(--muted); }
.news-loop .wp-block-post-title { margin: 0; }
.news-loop .wp-block-post-excerpt { margin: 0; flex: 1; display: flex; flex-direction: column; }   /* „Weiterlesen“ bündig unten */
.news-loop .wp-block-post-excerpt__more-text { margin: auto 0 0; padding-top: 12px; }
.news-loop .wp-block-post-excerpt__excerpt + .wp-block-post-excerpt__more-text { margin-top: auto; }
.news-loop .wp-block-post-excerpt__excerpt { margin: 0; font-size: .95rem; color: var(--body); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-loop .wp-block-post-excerpt__more-link { display: inline-flex; margin-top: 0; font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; font-size: .9rem; color: var(--link); text-decoration: none; }

/* Leistungsseiten: „Weitere Leistungen“ (interne Verlinkung, ohne Überschrift) */
.related { padding-top: 0; }
.related .related-label { font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; font-size: .95rem; color: var(--muted); margin: 0 0 14px; }
.related .cards { gap: 14px; }
.related .is-style-card { padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.related .is-style-card p { margin: 0; font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: .02em; font-size: 1.05rem; }
.related .is-style-card a { color: var(--text); text-decoration: none; }
.related .is-style-card a::after { content: "→"; margin-left: 10px; color: var(--link); transition: transform .2s; display: inline-block; }
.related .is-style-card:hover a::after { transform: translateX(3px); }
.related .is-style-card a::before { content: ""; position: absolute; inset: 0; }

/* Text + Bild / zweispaltig */
.wp-block-columns { gap: clamp(20px, 3vw, 40px); }
.wp-block-media-text .wp-block-media-text__media img { border-radius: var(--radius); }
.shape--inline { max-width: 360px; margin: 0 auto; }

/* ---------- Blog-Karten ---------- */
.post-card { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .25s, box-shadow .25s; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.post-media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--hero-solid); }
.post-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; border-radius: 0; }
.post-card:hover .post-media img { transform: scale(1.03); }
.post-ph { display: grid; place-items: center; background: var(--hero-bg); }
.post-ph .shape { width: 34%; height: auto; }
.post-body { display: flex; flex-direction: column; gap: 10px; padding: 22px 24px 24px; flex: 1; }
.post-body .post-meta { margin: 0; font-size: .86rem; }
.post-title { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; line-height: 1.25; text-transform: none; letter-spacing: 0; }
.post-title a { text-decoration: none; color: var(--text); }
.post-title a::after { content: ""; position: absolute; inset: 0; }
.post-title a:focus-visible { outline: none; }
.post-card:focus-within { outline: 3px solid var(--focus); outline-offset: 3px; }
.post-excerpt { margin: 0; font-size: .95rem; color: var(--body); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-body .link-arrow { margin-top: auto; padding-top: 6px; }
.pagination { margin-top: 48px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.pagination .page-numbers { display: inline-flex; align-items: center; min-height: 42px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--line); text-decoration: none; color: var(--text); font-weight: 700; }
.pagination .page-numbers.current { background: var(--accent); color: var(--navy); border-color: transparent; }
.pagination a.page-numbers:hover { border-color: var(--accent); }

/* ---------- Formulare (WPForms und Suche) ---------- */
.wpforms-container .wpforms-field { padding: 8px 0 !important; }
.wpforms-container .wpforms-field-label { font-weight: 700 !important; font-size: .92rem !important; color: var(--text) !important; margin-bottom: 7px !important; }
.wpforms-container .wpforms-required-label { color: var(--link) !important; }
.wpforms-container input[type="text"], .wpforms-container input[type="email"], .wpforms-container input[type="tel"], .wpforms-container input[type="url"], .wpforms-container input[type="number"],
.wpforms-container select, .wpforms-container textarea, .search-field {
  width: 100%; max-width: 100% !important; padding: 14px 16px !important; border-radius: 8px !important; border: 1.5px solid var(--line-strong) !important; background: var(--bg) !important; color: var(--text) !important; font-size: 1rem !important; line-height: 1.4 !important; height: auto !important;
  transition: border-color .2s, box-shadow .2s;
}
.wpforms-container textarea { min-height: 150px !important; resize: vertical; }
.wpforms-container input:focus, .wpforms-container select:focus, .wpforms-container textarea:focus, .search-field:focus { outline: none !important; border-color: var(--link) !important; box-shadow: 0 0 0 4px var(--accent-soft) !important; }
.wpforms-container .wpforms-field-description, .wpforms-container .wpforms-field-sublabel { color: var(--muted) !important; font-size: .88rem !important; }
.wpforms-container button[type="submit"], .wpforms-container .wpforms-submit {
  background: var(--accent) !important; color: var(--navy) !important; border: 0 !important; border-radius: 8px !important; padding: 15px 26px !important;
  font-family: var(--font-display) !important; font-weight: 600 !important; font-size: 1rem !important; letter-spacing: .05em !important; text-transform: uppercase !important; line-height: 1 !important; cursor: pointer; transition: background .2s, transform .2s;
}
.wpforms-container button[type="submit"]:hover, .wpforms-container .wpforms-submit:hover { background: var(--accent-strong) !important; transform: translateY(-1px); }
.wpforms-container .wpforms-confirmation-container-full, .form-success { padding: 20px 24px; border-radius: 12px; background: var(--ok-bg) !important; color: var(--ok-fg) !important; border: 0 !important; }
.wpforms-container .wpforms-error, .wpforms-container label.wpforms-error { color: var(--err-fg) !important; }
.form-card { background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--accent); border-radius: 16px; padding: clamp(24px, 4vw, 44px); box-shadow: var(--shadow); }
.search-form { display: flex; gap: 10px; max-width: 480px; }
.search-form label { flex: 1; }

/* ---------- Sonstiges ---------- */
.contact-tiles { display: grid; gap: 14px; list-style: none; }
.contact-tile { display: flex; gap: 16px; padding: 22px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; transition: border-color .2s, transform .2s; }
a.contact-tile:hover { border-color: var(--accent); transform: translateY(-2px); }
.contact-tile .icon-sq { margin: 0; flex-shrink: 0; }
.contact-tile b { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; color: var(--text); }
.contact-tile span { color: var(--muted); font-size: .95rem; }

/* ---------- Animationen (wie programmierung-berlin.de) ---------- */
/* Einblenden beim Scrollen: main.js vergibt .reveal / .reveal-stagger und setzt .in, sobald sichtbar */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal-stagger > * { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .8, .2, 1); }
.js .reveal-stagger.in > * { opacity: 1; transform: none; }
.js .reveal-stagger.in > *:nth-child(2) { transition-delay: .07s; }
.js .reveal-stagger.in > *:nth-child(3) { transition-delay: .14s; }
.js .reveal-stagger.in > *:nth-child(4) { transition-delay: .21s; }
.js .reveal-stagger.in > *:nth-child(5) { transition-delay: .28s; }
.js .reveal-stagger.in > *:nth-child(6) { transition-delay: .35s; }
.js .reveal-stagger.in > *:nth-child(7) { transition-delay: .42s; }
.js .reveal-stagger.in > *:nth-child(8) { transition-delay: .49s; }
/* Hero: Text gleitet beim Laden ein, Form blendet ein */
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
.js .hero .wp-block-column:first-child > * { animation: rise .7s cubic-bezier(.2, .8, .2, 1) both; }
.js .hero .wp-block-column:first-child > :nth-child(2) { animation-delay: .08s; }
.js .hero .wp-block-column:first-child > :nth-child(3) { animation-delay: .16s; }
.js .hero .wp-block-column:first-child > :nth-child(4) { animation-delay: .24s; }
.js .hero .wp-block-column:first-child > :nth-child(5) { animation-delay: .32s; }
.js .hero-shape { animation: fadein .9s ease both, float 9s ease-in-out 1s infinite; }
.js .page-head .wrap > * { animation: rise .6s cubic-bezier(.2, .8, .2, 1) both; }
.js .page-head .wrap > :nth-child(2) { animation-delay: .08s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal, .js .reveal-stagger > * { opacity: 1; transform: none; }
}
@media print {
  .site-header, .site-footer, .to-top, .theme-menu, .menu-toggle { display: none !important; }
}
