/*
Theme Name:   etmetis
Theme URI:    https://www.etmetis.de/
Author:       etmetis GmbH
Description:  Schlankes, schnelles Agentur-Theme für den Classic Editor. Seiteninhalte werden als HTML eingefügt; seitenspezifisches CSS steht inline in der Seite. Kein jQuery, kein Framework.
Version:      0.2.0
Requires at least: 6.4
Requires PHP: 8.1
License:      Proprietary
Text Domain:  etmetis
*/

/* =========================================================
   1. TOKENS
   ========================================================= */
:root {
  /* Marke */
  --brand-900: #1F0404;
  --brand-800: #2E0606;
  --brand-700: #520A0A;
  --brand-600: #7E0F0F;
  --brand:     #B61616;   /* Logo-Rot etmetis */
  --brand-400: #CE2A26;
  --brand-hover: #961111;
  --rose-300:  #E8584F;
  --rose-200:  #F6B8B2;
  --rose-100:  #FBE4E2;
  --rose-50:   #FDF4F3;

  /* Neutrale */
  --ink:      #0A0A0A;
  --text:     #3A3A3A;
  --muted:    #6B6B6B;
  --line:     rgba(0, 0, 0, .09);
  --surface:  #F4F4F5;
  --white:    #FFFFFF;

  /* Verläufe (PayPal-artig: mehrere weiche Lichtquellen auf dunklem Grund) */
  /* weiche Basis */
  --grad-deep:
    radial-gradient(55% 75% at 12% 18%, rgba(206, 42, 38, .9) 0%, transparent 62%),
    radial-gradient(45% 65% at 88% 22%, rgba(232, 88, 79, .5) 0%, transparent 60%),
    radial-gradient(70% 90% at 72% 105%, rgba(182, 22, 22, 1) 0%, transparent 66%),
    radial-gradient(35% 45% at 42% 58%, rgba(255, 160, 150, .14) 0%, transparent 70%),
    linear-gradient(135deg, var(--brand-800) 0%, var(--brand-700) 50%, var(--brand-900) 100%);
  /* klare Kanten: Flächen mit harter Kontur, innen weich verlaufend */
  --grad-shapes:
    radial-gradient(circle at 96% 118%, rgba(255, 120, 105, .42) 0%, rgba(182, 22, 22, .25) 30%, rgba(182, 22, 22, .12) 44%, transparent calc(44% + 1px)),
    radial-gradient(circle at 96% 118%, transparent 0 56%, rgba(255, 255, 255, .07) calc(56% + 1px) 57%, transparent calc(57% + 1px)),
    linear-gradient(112deg, transparent 0 61%, rgba(206, 42, 38, .38) calc(61% + 1px), rgba(46, 6, 6, .15) 100%),
    linear-gradient(112deg, transparent 0 74%, rgba(255, 255, 255, .06) calc(74% + 1px), transparent 100%),
    linear-gradient(200deg, transparent 0 78%, rgba(31, 4, 4, .45) calc(78% + 1px));
  --grad-brand: var(--grad-shapes), var(--grad-deep);
  /* helle Variante mit klaren Kanten */
  --grad-light:
    radial-gradient(circle at 96% 118%, rgba(232, 88, 79, .22) 0%, rgba(182, 22, 22, .10) 30%, rgba(182, 22, 22, .05) 44%, transparent calc(44% + 1px)),
    radial-gradient(circle at 96% 118%, transparent 0 56%, rgba(182, 22, 22, .10) calc(56% + 1px) 57%, transparent calc(57% + 1px)),
    linear-gradient(112deg, transparent 0 61%, rgba(232, 88, 79, .16) calc(61% + 1px), rgba(255, 255, 255, 0) 100%),
    linear-gradient(112deg, transparent 0 74%, rgba(182, 22, 22, .05) calc(74% + 1px), transparent 100%),
    radial-gradient(50% 70% at 10% 15%, rgba(232, 88, 79, .16) 0%, transparent 62%),
    radial-gradient(45% 60% at 85% 25%, rgba(246, 184, 178, .35) 0%, transparent 60%),
    linear-gradient(135deg, #FFFFFF 0%, var(--rose-50) 55%, var(--rose-100) 100%);
  --grad-soft:
    radial-gradient(50% 80% at 0% 0%, rgba(214, 82, 108, .18) 0%, transparent 60%),
    radial-gradient(50% 80% at 100% 100%, rgba(182, 22, 22, .14) 0%, transparent 60%),
    linear-gradient(180deg, var(--rose-50) 0%, var(--white) 100%);
  --grad-line: linear-gradient(90deg, var(--brand) 0%, var(--rose-300) 100%);

  /* Typo: Systemschriften = 0 Requests, sofort sichtbar */
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Raster */
  --max: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(64px, 9vw, 112px);
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(31, 4, 4, .05), 0 8px 28px rgba(31, 4, 4, .08);
  --ease: .25s cubic-bezier(.4, 0, .2, 1);
}

/* =========================================================
   2. RESET & BASIS
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font: 400 1.0625rem/1.7 var(--font);
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-underline-offset: .2em; }
a:hover { color: var(--brand-hover); }
:focus-visible { outline: 2px solid var(--rose-300); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4, h5, h6 {
  color: var(--ink);
  line-height: 1.12;
  letter-spacing: -.02em;
  margin: 0 0 .5em;
  font-weight: 700;
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 5.5vw, 4.4rem); letter-spacing: -.035em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); letter-spacing: -.03em; }
h3 { font-size: clamp(1.2rem, 1.8vw, 1.5rem); }
h4 { font-size: 1.125rem; }
p  { margin: 0 0 1.1em; text-wrap: pretty; }
small { font-size: .875rem; }

.skip-link { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; }
.skip-link:focus { left: 8px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* =========================================================
   3. LAYOUT
   ========================================================= */
.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 780px; }
.section { padding-block: var(--section); }
.section--surface { background: var(--surface); }
.section--soft { background: var(--grad-soft); }
.section-head { max-width: 680px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head--center { margin-inline: auto; text-align: center; }
.lead { font-size: clamp(1.1rem, 1.5vw, 1.3rem); color: var(--muted); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--brand); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 24px; height: 2px; background: var(--grad-line); border-radius: 2px; }

.grid { display: grid; gap: clamp(16px, 2.4vw, 28px); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }

.split { display: grid; gap: clamp(32px, 6vw, 80px); align-items: center; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }

/* =========================================================
   4. VERLAUFSFLÄCHEN
   ========================================================= */
.gradient {
  position: relative;
  isolation: isolate;
  color: rgba(255, 255, 255, .82);
  background: var(--grad-brand);
  overflow: hidden;
}
/* treibende Fläche mit harter Kante (PayPal-Stil) */
.gradient::before {
  content: "";
  position: absolute; inset: -10% -20%;
  z-index: -1;
  background: linear-gradient(160deg, rgba(255, 130, 115, .30) 0%, rgba(206, 42, 38, .18) 45%, rgba(82, 10, 10, 0) 100%);
  clip-path: polygon(0 0, 46% 0, 22% 100%, 0 100%);
  animation: drift 24s ease-in-out infinite alternate;
}
/* feines Korn gegen Banding */
.gradient::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .18; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.gradient :is(h1, h2, h3, h4) { color: var(--white); }
.gradient a:not(.btn) { color: var(--white); }
.gradient .eyebrow { color: var(--rose-200); }
.gradient .lead { color: rgba(255, 255, 255, .78); }

@keyframes drift {
  0%   { transform: translate3d(-3%, 0, 0); }
  100% { transform: translate3d(6%, 0, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .gradient::before { animation: none; }
  html { scroll-behavior: auto; }
}

/* =========================================================
   5. BUTTONS
   ========================================================= */
.btn {
  --bg: var(--brand); --fg: #fff; --bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .85em 1.5em; border-radius: 999px; border: 1.5px solid var(--bd);
  background: var(--bg); color: var(--fg);
  font: 600 .975rem/1 var(--font); text-decoration: none; cursor: pointer;
  transition: background var(--ease), color var(--ease), transform var(--ease), box-shadow var(--ease);
}
.btn:hover { --bg: var(--brand-hover); color: var(--fg); transform: translateY(-1px); box-shadow: 0 8px 22px rgba(182, 22, 22, .28); }
.btn--ghost { --bg: transparent; --fg: var(--brand); --bd: currentColor; }
.btn--ghost:hover { --bg: var(--brand); --fg: #fff; }
.btn--light { --bg: #fff; --fg: var(--brand); }
.btn--light:hover { --bg: var(--rose-100); --fg: var(--brand); }
.btn--outline-light { --bg: transparent; --fg: #fff; --bd: rgba(255, 255, 255, .45); }
.btn--outline-light:hover { --bg: rgba(255, 255, 255, .1); --fg: #fff; }
.btn--sm { font-size: .875rem; padding: .7em 1.2em; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.link-arrow { font-weight: 600; text-decoration: none; }
.link-arrow::after { content: " →"; transition: margin var(--ease); }
.link-arrow:hover::after { margin-left: 4px; }

/* =========================================================
   6. HEADER & NAVIGATION (ohne JS: <details>)
   ========================================================= */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .86);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 70px; }
.logo { display: inline-flex; align-items: center; flex: none; }
.logo img { height: 40px; width: auto; }
.site-footer .logo img { height: 46px; }

.nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.nav a { display: block; padding: 8px 14px; border-radius: 999px; color: var(--text); text-decoration: none; font-size: .95rem; font-weight: 500; }
.nav a:hover, .nav .current-menu-item > a { color: var(--brand); background: var(--rose-50); }
.nav .btn { margin-left: 8px; color: #fff; }
/* WordPress-Menü: Menüpunkt mit CSS-Klasse "menu-cta" (oder Link auf /kontakt/) wird zum roten Button */
.nav .menu-cta > a { margin-left: 8px; padding: 10px 18px; background: var(--brand); color: #fff; font-weight: 600; }
.nav .menu-cta > a:hover, .nav .menu-cta.current-menu-item > a { background: var(--brand-hover); color: #fff; }
.nav .btn:hover { background: var(--brand-hover); }

.nav-toggle { display: none; }
.nav-toggle > summary { list-style: none; cursor: pointer; padding: 8px; border-radius: 8px; }
.nav-toggle > summary::-webkit-details-marker { display: none; }
.burger, .burger::before, .burger::after { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; transition: transform var(--ease); }
.burger::before, .burger::after { content: ""; position: absolute; }
.burger::before { top: -7px; } .burger::after { top: 7px; }
.nav-toggle[open] .burger { background: transparent; }
.nav-toggle[open] .burger::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[open] .burger::after  { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav--desktop { display: none; }
  .nav-toggle { display: block; }
  .nav-toggle .nav { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); padding: 12px var(--gutter) 20px; box-shadow: var(--shadow); }
  .nav-toggle .nav ul { flex-direction: column; align-items: stretch; }
  .nav-toggle .nav .btn { margin: 8px 0 0; }
  .nav-toggle .nav .menu-cta > a { margin: 8px 0 0; text-align: center; }
}

/* Logo-/Trust-Leiste */
.trust { padding-block: 36px; border-bottom: 1px solid var(--line); }
.trust .container { display: grid; gap: 18px; }
.trust p { margin: 0; font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.logos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); align-items: center; justify-items: center; gap: 20px 28px; }
.logos li { font-weight: 700; font-size: 1.1rem; letter-spacing: -.01em; color: #A1A1A6; white-space: nowrap; }
/* echte Logos: einfarbig grau, egal welche Originalfarbe */
.logos img { max-width: 100%; height: auto; object-fit: contain; filter: grayscale(1); opacity: .7; transition: opacity var(--ease); }
.logos img:hover { opacity: 1; }

/* =========================================================
   8. KARTEN
   ========================================================= */
.card {
  position: relative; display: flex; flex-direction: column;
  padding: clamp(24px, 3vw, 34px);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: rgba(182, 22, 22, .2); }
.card h3 { margin-bottom: .4em; }
.card p { color: var(--muted); font-size: .98rem; }
.card .link-arrow { margin-top: auto; }
.card__icon {
  width: 46px; height: 46px; border-radius: 12px; margin-bottom: 22px;
  display: grid; place-items: center; color: #fff; background: var(--grad-deep);
}
.card__icon svg { width: 22px; height: 22px; }

.card .badge { position: absolute; top: clamp(24px, 3vw, 34px); right: clamp(24px, 3vw, 34px); }
.card--featured { border-color: rgba(182, 22, 22, .22); background: linear-gradient(180deg, var(--rose-50) 0%, #fff 60%); }

/* Team */
.person { display: grid; grid-template-columns: 160px 1fr; gap: 28px; align-items: start; padding: clamp(24px, 3vw, 32px); border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.person__photo { aspect-ratio: 1; border-radius: var(--radius); background: var(--photo, none) center / cover no-repeat, var(--grad-brand); box-shadow: 0 0 0 1px rgba(182, 22, 22, .14), 0 8px 22px rgba(82, 10, 10, .08); }
.person h3 { margin-bottom: .2em; }
.person__role { font-size: .9rem; font-weight: 600; color: var(--brand); margin-bottom: 14px; }
.person p:not(.person__role) { color: var(--muted); font-size: .98rem; }
.tags { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { font-size: .8rem; font-weight: 600; padding: 5px 11px; border-radius: 999px; background: var(--surface); color: var(--text); }
.team-second { margin-top: clamp(16px, 2.4vw, 28px); }
/* alle Teamfotos gleich groß (160 px, abgerundete Ecken) */
.team-more { margin: 28px 0 0; font-size: .95rem; color: var(--muted); }
@media (max-width: 560px) { .person { grid-template-columns: 1fr; } .person__photo { max-width: 160px; } }

/* Bild-Platzhalter mit Verlauf */
.media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--grad-brand); position: relative; }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media--16x9 { aspect-ratio: 16 / 9; }

/* Checkliste */
.checklist { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.checklist li { position: relative; padding-left: 32px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 20px; height: 20px; border-radius: 50%;
  background: var(--rose-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23B61616' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 10.5l3 3 6-7'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* =========================================================
   9. ZAHLEN / STATS
   ========================================================= */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 32px; }
.stat__value { display: block; font-size: clamp(2.4rem, 4.5vw, 3.6rem); font-weight: 800; letter-spacing: -.04em; line-height: 1; color: #fff; }
.stat__label { display: block; margin-top: 10px; font-size: .95rem; color: rgba(255,255,255,.72); }

/* =========================================================
   10. PROZESS
   ========================================================= */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.steps li { counter-increment: step; padding-top: 22px; border-top: 2px solid var(--line); position: relative; }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; font-weight: 800; font-size: .85rem; letter-spacing: .1em; color: var(--brand); margin-bottom: 10px; }
.steps li::after { content: ""; position: absolute; top: -2px; left: 0; width: 48px; height: 2px; background: var(--grad-line); }
.steps p { color: var(--muted); font-size: .98rem; margin: 0; }

/* =========================================================
   11. TESTIMONIAL
   ========================================================= */
.quote { margin: 0; text-align: center; }
.quote blockquote { margin: 0 0 28px; font-size: clamp(1.35rem, 2.6vw, 2rem); line-height: 1.4; letter-spacing: -.02em; color: var(--ink); font-weight: 500; }
.quote blockquote::before { content: "“"; display: block; font-size: 4rem; line-height: .6; color: var(--brand); margin-bottom: 18px; }
.quote figcaption { display: inline-flex; align-items: center; gap: 14px; text-align: left; font-size: .95rem; }
.quote figcaption strong { display: block; color: var(--ink); }
.avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--grad-deep); flex: none; }

/* =========================================================
   12. PREISE / PAKETE
   ========================================================= */
.price { display: flex; flex-direction: column; }
.card .price__amount { font-size: 2.4rem; font-weight: 800; letter-spacing: -.04em; color: var(--ink); line-height: 1; margin: 12px 0 4px; }
.price__amount small { font-size: .95rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.price .checklist { margin-bottom: 28px; font-size: .97rem; }
.price .btn { margin-top: auto; }
.price--featured { border: 0; color: rgba(255,255,255,.82); background: var(--grad-brand); box-shadow: 0 20px 50px rgba(82, 10, 10, .35); }
.price--featured :is(h3, .price__amount) { color: #fff; }
.price--featured p, .price--featured .price__amount small { color: rgba(255,255,255,.72); }
.price--featured .checklist li::before { background-color: rgba(255,255,255,.95); }
.badge {
  display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  background: var(--rose-100); color: var(--brand); align-self: flex-start;
}
.price--featured .badge { background: rgba(255,255,255,.16); color: #fff; }

/* =========================================================
   13. FAQ (<details>)
   ========================================================= */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 44px 22px 0; position: relative;
  font-weight: 600; font-size: 1.08rem; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; margin-top: -8px;
  border-right: 2px solid var(--brand); border-bottom: 2px solid var(--brand); transform: rotate(45deg); transition: transform var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { color: var(--muted); padding-right: 44px; }

/* =========================================================
   14. BLOG-TEASER
   ========================================================= */
.post-card { display: flex; flex-direction: column; gap: 16px; text-decoration: none; color: inherit; }
.post-card .media { aspect-ratio: 16 / 10; transition: transform var(--ease); }
.post-card:hover .media { transform: scale(.985); }
.post-card h3 { color: var(--ink); margin: 0; transition: color var(--ease); }
.post-card:hover h3 { color: var(--brand); }
.post-meta { font-size: .85rem; color: var(--muted); display: flex; gap: 12px; }
.post-meta .cat { color: var(--brand); font-weight: 600; }

/* =========================================================
   15. CTA-BAND
   ========================================================= */
.cta { border-radius: calc(var(--radius) * 1.6); padding: clamp(40px, 7vw, 80px); text-align: center; }
.cta h2 { max-width: 18ch; margin-inline: auto; }
.cta .lead { max-width: 52ch; margin-inline: auto; }
.cta .btn-row { justify-content: center; }

/* =========================================================
   16. FORMULARE (native HTML5-Validierung)
   ========================================================= */
.form { display: grid; gap: 18px; }
.form__row { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.field { display: grid; gap: 6px; }
.field label { font-size: .9rem; font-weight: 600; color: var(--ink); }
input:not([type="checkbox"]):not([type="radio"]), select, textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  padding: 12px 14px; border: 1px solid #D4D4D8; border-radius: var(--radius-sm); background: #fff;
  transition: border-color var(--ease), box-shadow var(--ease);
}
textarea { min-height: 140px; resize: vertical; }
input:focus, select, textarea:focus { outline: none; }
input:focus, select:focus, textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(182, 22, 22, .12); }
input:user-invalid, textarea:user-invalid { border-color: #C2410C; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--muted); }
.check input { margin-top: .3em; accent-color: var(--brand); width: 18px; height: 18px; }

.contact-info { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 18px; }
.contact-info strong { display: block; color: var(--ink); font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; }

/* Hinweise */
.notice { padding: 16px 18px; border-radius: var(--radius-sm); border-left: 4px solid var(--brand); background: var(--rose-50); color: var(--text); }
.notice--success { border-color: #15803D; background: #F0FDF4; }

/* =========================================================
   17. INHALT / GUTENBERG-GRUNDLAGEN (.entry-content)
   ========================================================= */
.entry-content > * + * { margin-top: 1.2em; }
.entry-content h2, .entry-content h3 { margin-top: 1.8em; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content li + li { margin-top: .35em; }
.entry-content li::marker { color: var(--brand); }
.entry-content blockquote, .wp-block-quote {
  margin: 1.6em 0; padding: 4px 0 4px 24px; border-left: 3px solid; border-image: var(--grad-line) 1;
  font-size: 1.2rem; color: var(--ink);
}
.entry-content blockquote cite { display: block; margin-top: 8px; font-size: .9rem; font-style: normal; color: var(--muted); }
.entry-content table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.entry-content th, .entry-content td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.entry-content th { color: var(--ink); background: var(--surface); }
.entry-content code { font-family: var(--font-mono); font-size: .9em; background: var(--surface); padding: .15em .4em; border-radius: 4px; }
.entry-content pre code { background: none; color: inherit; padding: 0; }
.entry-content pre { font-family: var(--font-mono); font-size: .9rem; background: var(--brand-900); color: #F6E3E7; padding: 20px; border-radius: var(--radius-sm); overflow-x: auto; }
.entry-content figure { margin: 2em 0; }
.entry-content figcaption { font-size: .85rem; color: var(--muted); margin-top: 8px; }
.entry-content hr { border: 0; height: 1px; background: var(--line); margin: 2.4em 0; }
.alignwide { max-width: 1100px; margin-inline: auto; }
.alignfull { width: 100vw; margin-inline: calc(50% - 50vw); }
.has-text-align-center { text-align: center; }

/* =========================================================
   18. FOOTER
   ========================================================= */
.site-footer { padding-block: 72px 32px; font-size: .95rem; }
.site-footer .grid { grid-template-columns: 2fr repeat(3, 1fr); }
.site-footer h4 { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--rose-200); margin-bottom: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { color: rgba(255,255,255,.78); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer .logo { margin-bottom: 16px; }
.site-footer__bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.14); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .85rem; color: rgba(255,255,255,.6); }
@media (max-width: 860px) { .site-footer .grid { grid-template-columns: 1fr 1fr; } .site-footer .grid > :first-child { grid-column: 1 / -1; } }

/* =========================================================
   19. UNTERSEITEN-KOPF (.page-header)
   ========================================================= */
.page-header { position: relative; padding-block: clamp(64px, 10vw, 120px) clamp(48px, 7vw, 88px); background: var(--grad-light); border-bottom: 1px solid var(--line); overflow: hidden; }
.page-header h1 { max-width: 18ch; font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
.page-header .lead { max-width: 60ch; margin-bottom: 0; }
.anchor-nav { list-style: none; padding: 0; margin: 32px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.anchor-nav a { display: inline-block; padding: 8px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--text); font-size: .9rem; font-weight: 600; text-decoration: none; }
.anchor-nav a:hover { border-color: var(--brand); color: var(--brand); }

/* Leistungs-Detail */
.service { display: grid; gap: clamp(28px, 5vw, 72px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); align-items: start; scroll-margin-top: 90px; }
.service + .service { margin-top: clamp(64px, 8vw, 104px); padding-top: clamp(64px, 8vw, 104px); border-top: 1px solid var(--line); }
.service h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.service .card { background: var(--surface); border: 0; }
.service .card:hover { transform: none; box-shadow: none; }
.service .card h3 { font-size: 1.05rem; }

/* Referenzen */
.logo-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }
.logo-grid li { display: grid; place-items: center; min-height: 104px; padding: 20px; background: #fff; text-align: center; font-weight: 700; color: #A1A1A6; }
.logo-grid img { height: 32px; width: auto; max-width: 150px; object-fit: contain; filter: brightness(0) opacity(.4); }
.logo-grid--current { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 640px) { .logo-grid--current { grid-template-columns: repeat(2, 1fr); } }
.logo-grid--current li { color: var(--ink); }
.logo-grid--current img { filter: brightness(0) opacity(.75); }
.client-list { columns: 3 220px; column-gap: 32px; list-style: none; padding: 0; margin: 0; }
.client-list li { break-inside: avoid; padding: 8px 0; border-bottom: 1px solid var(--line); color: var(--text); font-size: .97rem; }

/* Logo-Wand (Referenzen): weiße Karte, 5er-Raster, Logos in Graustufen */
.logo-card { background: #fff; border: 1px solid var(--line); border-radius: calc(var(--radius) * 1.4); box-shadow: 0 12px 40px rgba(0, 0, 0, .06); padding: clamp(20px, 4vw, 48px) clamp(16px, 4vw, 56px); }
.logo-wall { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px clamp(16px, 3vw, 40px); }
.logo-wall li { display: grid; place-items: center; height: 110px; padding: 0 8px; text-align: center; font-weight: 700; font-size: 1.15rem; letter-spacing: -.01em; line-height: 1.2; color: #5F5F64; filter: grayscale(1); opacity: .85; transition: opacity var(--ease); }
.logo-wall li:hover { opacity: 1; }
/* Größe kommt aus width/height je Logo (optisch ausgeglichen) */
.logo-wall img { max-width: 100%; height: auto; object-fit: contain; }
@media (max-width: 960px) { .logo-wall { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .logo-wall { grid-template-columns: repeat(2, 1fr); } .logo-wall li { height: 84px; font-size: .95rem; } .logo-wall img { max-width: 80%; } }

/* Formulare in WordPress: Spamschutz + Erfolgsmeldung ohne JS */
.form-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-success { display: none; margin-bottom: 18px; scroll-margin-top: 100px; }
.form-success:target { display: block; }

/* Beitrags-/Standardseiten-Layout (index.php) */
.content-area { padding-block: var(--section); }
.content-area .entry-header { margin-bottom: 32px; }
.content-area .post-meta { margin-bottom: 8px; }
.post-list { display: grid; gap: 40px; }
.pagination { margin-top: 48px; display: flex; gap: 12px; }

/* Hilfsklassen */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
