/*
Theme Name: CORVICE
Theme URI: https://corvice.ch
Author: N. Haas Consulting
Author URI: https://easytender.ch
Description: Modernes, animiertes WordPress-Theme für CORVICE AG – Schweizer B2B-Anbieter für Managed Services sowie Print- und Dokumentenlösungen. Fokus auf Konversion und Leadgenerierung. Elementor-kompatibel.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: corvice
*/

/* ==========================================================================
   1. Design-Tokens
   ========================================================================== */
:root {
  --bg: #ffffff;
  --bg-soft: #f4f7f0;
  --bg-dark: #0e0f0c;
  --bg-dark-2: #181a14;

  --ink: #14160f;       /* Fast-Schwarz (Wortmarke) */
  --ink-soft: #3c4233;
  --muted: #6c7363;
  --line: #e7ebe1;
  --line-dark: rgba(255, 255, 255, 0.09);

  --brand: #93C56B;     /* Markengrün */
  --brand-2: #6FA84B;   /* Grün, dunkler */
  --brand-deep: #4d8a34;/* Lesbares Grün für Text auf Hell */
  --brand-3: #aed98a;   /* Helles Grün, Akzent auf Dunkel */
  --accent: #93C56B;

  --grad: linear-gradient(120deg, #5E9B43 0%, #7DB857 50%, #93C56B 100%);
  --grad-soft: linear-gradient(120deg, rgba(147, 197, 107, .18), rgba(111, 168, 75, .12));

  --radius: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 2px 10px rgba(11, 16, 32, .06);
  --shadow: 0 18px 50px -20px rgba(11, 16, 32, .35);
  --shadow-brand: 0 20px 45px -18px rgba(94, 155, 67, .5);

  --maxw: 1200px;
  --gutter: clamp(20px, 5vw, 64px);

  --ff-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ff-head: "Sora", var(--ff-sans);

  --ease: cubic-bezier(.16, 1, .3, 1);
  --dur: .6s;
}

/* ==========================================================================
   2. Reset / Basis
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--ff-sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; }
ul { list-style: none; padding: 0; }

h1, h2, h3, h4 {
  font-family: var(--ff-head);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--ink);
}
h1 { font-size: clamp(2.4rem, 5.4vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); }
h3 { font-size: clamp(1.25rem, 1.8vw, 1.5rem); }
p  { color: var(--ink-soft); }

::selection { background: var(--brand); color: #fff; }

/* ==========================================================================
   3. Layout-Helfer
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: clamp(72px, 9vw, 130px); position: relative; }
.section--soft { background: var(--bg-soft); }
.section--dark { background: var(--bg-dark); color: #cdd6ea; }
.section--dark h1, .section--dark h2, .section--dark h3 { color: #fff; }
.section--dark p { color: #aab4cf; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ff-head);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand-deep);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--grad);
  border-radius: 2px;
}
.section--dark .eyebrow { color: var(--brand-3); }

.section-head { max-width: 720px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { font-size: 1.1rem; margin-top: 16px; }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ==========================================================================
   4. Buttons
   ========================================================================== */
.btn {
  --pad-y: 15px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: var(--pad-y) 28px;
  border-radius: 999px;
  font-family: var(--ff-head);
  font-weight: 600;
  font-size: .98rem;
  letter-spacing: -.01em;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s;
  will-change: transform;
}
.btn svg { width: 18px; height: 18px; transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(4px); }

.btn--primary {
  background: var(--grad);
  color: var(--ink);
  box-shadow: var(--shadow-brand);
  background-size: 160% 160%;
}
.btn--primary:hover { transform: translateY(-3px); background-position: 100% 0; }

.btn--ghost {
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line);
  color: var(--ink);
}
.section--dark .btn--ghost { border-color: var(--line-dark); color: #fff; }
.btn--ghost:hover { transform: translateY(-3px); border-color: var(--brand); }

.btn--light { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.btn--light:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

/* ==========================================================================
   5. Header / Navigation
   ========================================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background .4s var(--ease), box-shadow .4s, padding .4s var(--ease);
  padding-block: 22px;
}
.site-header.is-stuck {
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 1px 0 var(--line), 0 10px 30px -20px rgba(11,16,32,.4);
  padding-block: 13px;
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 12px; font-family: var(--ff-head); font-weight: 700; font-size: 1.3rem; letter-spacing: -.03em; color: var(--ink); }
.brand__mark {
  width: 30px; height: 38px;
  display: grid; place-items: center;
}
.brand__mark svg { width: 28px; height: 28px; }
.brand__mark .tri { fill: var(--brand); transform-origin: center; animation: tri-bob 4.5s ease-in-out infinite; }
@keyframes tri-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(2px); } }
.brand small { display: block; font-family: var(--ff-sans); font-weight: 500; font-size: .62rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }

.nav__menu { display: flex; align-items: center; gap: 6px; }
.nav__menu a {
  position: relative;
  padding: 9px 14px;
  font-weight: 500;
  font-size: .96rem;
  color: var(--ink-soft);
  border-radius: 10px;
  transition: color .25s;
}
.nav__menu a::after {
  content: "";
  position: absolute; left: 14px; right: 14px; bottom: 4px;
  height: 2px; border-radius: 2px;
  background: var(--grad);
  transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease);
}
.nav__menu a:hover { color: var(--ink); }
.nav__menu a:hover::after, .nav__menu .current-menu-item > a::after { transform: scaleX(1); }

.nav__actions { display: flex; align-items: center; gap: 12px; }
.nav__toggle { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); position: relative; }
.nav__toggle span, .nav__toggle span::before, .nav__toggle span::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 18px; height: 2px;
  background: var(--ink); border-radius: 2px; transition: transform .35s var(--ease), opacity .2s;
  transform: translate(-50%, -50%);
}
.nav__toggle span::before { transform: translate(-50%, -7px); }
.nav__toggle span::after  { transform: translate(-50%, 5px); }
body.menu-open .nav__toggle span { background: transparent; }
body.menu-open .nav__toggle span::before { transform: translate(-50%, 0) rotate(45deg); }
body.menu-open .nav__toggle span::after  { transform: translate(-50%, -2px) rotate(-45deg); }

/* ==========================================================================
   6. Hero
   ========================================================================== */
.hero {
  position: relative;
  padding-top: clamp(140px, 18vh, 220px);
  padding-bottom: clamp(80px, 10vw, 140px);
  background:
    radial-gradient(circle at 78% 18%, rgba(147, 197, 107, .22), transparent 42%),
    linear-gradient(180deg, #f4f7f0 0%, #ffffff 70%);
  color: var(--ink);
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__blob {
  position: absolute; border-radius: 50%; filter: blur(80px); opacity: .3;
  animation: float 14s ease-in-out infinite;
}
.hero__blob--1 { width: 480px; height: 480px; background: #93C56B; top: -140px; left: -90px; }
.hero__blob--2 { width: 420px; height: 420px; background: #6FA84B; bottom: -160px; right: -70px; animation-delay: -4s; }
.hero__blob--3 { width: 320px; height: 320px; background: #aed98a; top: 32%; right: 26%; animation-delay: -8s; opacity: .25; }
.hero__grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(20,22,15,.045) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(20,22,15,.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at 50% 35%, #000 8%, transparent 68%);
  -webkit-mask-image: radial-gradient(circle at 50% 35%, #000 8%, transparent 68%);
}
.hero .container { position: relative; z-index: 1; }
.hero__inner { max-width: 880px; }

.hero h1 { color: var(--ink); }
.hero__lead { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--ink-soft); margin-top: 24px; max-width: 620px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }

.pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px 8px 8px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  font-size: .85rem; color: var(--ink-soft); margin-bottom: 28px;
}
.pill b { display: grid; place-items: center; padding: 3px 10px; border-radius: 999px; background: var(--grad); color: var(--ink); font-size: .72rem; font-weight: 700; letter-spacing: .04em; }

.hero__stats { display: flex; flex-wrap: wrap; gap: clamp(28px, 5vw, 64px); margin-top: 56px; padding-top: 36px; border-top: 1px solid var(--line); }
.stat__num { font-family: var(--ff-head); font-size: clamp(2rem, 3.2vw, 2.8rem); font-weight: 700; color: var(--ink); line-height: 1; }
.stat__num .grad-text { display: inline; }
.stat__label { font-size: .9rem; color: var(--muted); margin-top: 8px; }

/* ==========================================================================
   7. Marquee (Tech / Trust)
   ========================================================================== */
.marquee { overflow: hidden; padding-block: 40px; border-block: 1px solid var(--line); background: var(--bg); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee__track { display: flex; gap: 60px; width: max-content; animation: scroll-x 32s linear infinite; }
.marquee__track span { font-family: var(--ff-head); font-weight: 600; font-size: 1.25rem; color: #9aa6c6; white-space: nowrap; opacity: .8; }
.marquee:hover .marquee__track { animation-play-state: paused; }

/* ==========================================================================
   8. Karten / Leistungen
   ========================================================================== */
.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 34px 30px;
  overflow: hidden;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .4s;
}
.card::before {
  content: ""; position: absolute; inset: 0;
  background: var(--grad-soft); opacity: 0; transition: opacity .45s;
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-color: transparent; }
.card:hover::before { opacity: 1; }
.card > * { position: relative; z-index: 1; }

.card__icon {
  width: 56px; height: 56px; border-radius: 16px;
  display: grid; place-items: center; margin-bottom: 22px;
  background: var(--grad); color: #fff;
  box-shadow: var(--shadow-brand);
  transition: transform .5s var(--ease);
}
.card:hover .card__icon { transform: rotate(-6deg) scale(1.06); }
.card__icon svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: 10px; }
.card p { font-size: .98rem; }
.card__link { display: inline-flex; align-items: center; gap: 7px; margin-top: 18px; font-family: var(--ff-head); font-weight: 600; font-size: .9rem; color: var(--brand-deep); }
.card__link svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.card:hover .card__link svg { transform: translateX(4px); }

/* Positionierung split */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.checklist { display: grid; gap: 16px; margin-top: 28px; }
.checklist li { display: flex; gap: 14px; align-items: flex-start; font-size: 1.02rem; color: var(--ink-soft); }
.checklist .ic { flex: none; width: 26px; height: 26px; border-radius: 8px; background: var(--grad-soft); color: var(--brand-deep); display: grid; place-items: center; margin-top: 2px; }
.checklist .ic svg { width: 15px; height: 15px; }
.section--dark .checklist li { color: #c2cce4; }
.section--dark .checklist .ic { background: rgba(147,197,107,.16); color: var(--brand-3); }

.media-card {
  border-radius: var(--radius-lg); overflow: hidden; position: relative;
  background: var(--grad); aspect-ratio: 4 / 3.4; box-shadow: var(--shadow);
  display: grid; place-items: center;
}
.media-card__inner { position: absolute; inset: 14px; border-radius: 20px; background: #fff; overflow: hidden; }
.media-card__glow { position: absolute; width: 280px; height: 280px; border-radius: 50%; background: #93C56B; filter: blur(80px); opacity: .4; top: -40px; right: -40px; animation: float 12s ease-in-out infinite; }
.media-card__rows { position: relative; padding: 28px; display: grid; gap: 14px; }
.media-card__rows .row { height: 14px; border-radius: 7px; background: #eef2e8; }
.media-card__rows .row.lg { background: var(--grad); width: 60%; height: 22px; }
.media-card__rows .row.w70 { width: 70%; } .media-card__rows .row.w85 { width: 85%; } .media-card__rows .row.w50 { width: 50%; }

/* ==========================================================================
   9. Zielgruppen
   ========================================================================== */
.audience { display: flex; align-items: center; gap: 18px; padding: 22px 24px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg); transition: transform .4s var(--ease), border-color .3s, box-shadow .4s; }
.audience:hover { transform: translateX(6px); border-color: var(--brand); box-shadow: var(--shadow-sm); }
.audience .num { font-family: var(--ff-head); font-weight: 700; color: var(--brand-deep); font-size: 1.1rem; }
.audience .ic { width: 46px; height: 46px; border-radius: 13px; background: var(--grad-soft); color: var(--brand-deep); display: grid; place-items: center; flex: none; }
.audience h4 { font-family: var(--ff-head); font-size: 1.05rem; }
.audience p { font-size: .9rem; margin-top: 2px; }

/* ==========================================================================
   10. Prozess-Timeline
   ========================================================================== */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.step { position: relative; padding-top: 30px; }
.step::before { content: ""; position: absolute; top: 7px; left: 0; right: 0; height: 2px; background: var(--line); }
.step::after { content: ""; position: absolute; top: 0; left: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 0 5px rgba(147,197,107,.22); }
.step__no { font-family: var(--ff-head); font-weight: 700; font-size: .82rem; letter-spacing: .12em; color: var(--brand-deep); margin-bottom: 8px; }
.step h3 { font-size: 1.15rem; color: var(--ink); margin-bottom: 8px; }
.step p { font-size: .94rem; }
/* Dunkle Sektion (optional weiterhin verwendbar) */
.section--dark .step::before { background: var(--line-dark); }
.section--dark .step__no { color: var(--brand-3); }
.section--dark .step h3 { color: #fff; }

/* ==========================================================================
   11. CTA-Band
   ========================================================================== */
.cta-band { position: relative; border-radius: var(--radius-lg); padding: clamp(44px, 6vw, 80px); background: var(--grad); background-size: 180% 180%; overflow: hidden; color: #fff; text-align: center; animation: shimmer 9s ease infinite; }
.cta-band::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 80% 20%, rgba(255,255,255,.25), transparent 45%); }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: var(--ink); max-width: 760px; margin-inline: auto; }
.cta-band p { color: rgba(20,22,15,.8); max-width: 560px; margin: 16px auto 32px; font-size: 1.1rem; }
.cta-band .btn--primary { background: var(--ink); color: #fff; box-shadow: 0 18px 40px -16px rgba(0,0,0,.5); }

/* ==========================================================================
   12. Kontaktformular
   ========================================================================== */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(36px, 5vw, 72px); align-items: start; }
.contact__info li { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 22px; }
.contact__info .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--grad-soft); border: 1px solid var(--line); display: grid; place-items: center; color: var(--brand-deep); flex: none; }
.contact__info b { color: var(--ink); display: block; font-family: var(--ff-head); }
.contact__info span { color: var(--muted); font-size: .95rem; }

.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(26px, 3vw, 40px); box-shadow: var(--shadow-sm); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .85rem; font-weight: 600; color: var(--ink); margin-bottom: 8px; font-family: var(--ff-head); }
.field input, .field textarea, .field select {
  width: 100%; padding: 14px 16px; border-radius: 12px; font: inherit; font-size: .96rem;
  background: var(--bg-soft); border: 1px solid var(--line); color: var(--ink);
  transition: border-color .25s, box-shadow .25s, background .25s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--brand-2); box-shadow: 0 0 0 4px rgba(147,197,107,.22); background: #fff; }
.field textarea { resize: vertical; min-height: 130px; }
.form .consent { display: flex; gap: 10px; align-items: flex-start; font-size: .82rem; color: var(--muted); }
.form .consent input { width: auto; margin-top: 4px; }
.form button { width: 100%; justify-content: center; margin-top: 6px; }
.form__note { font-size: .8rem; color: var(--muted); margin-top: 14px; text-align: center; }
.form__msg { padding: 14px 16px; border-radius: 12px; margin-bottom: 18px; font-size: .92rem; }
.form__msg.ok { background: rgba(147,197,107,.16); color: #3d6b22; border: 1px solid rgba(147,197,107,.45); }
.form__msg.err { background: rgba(220,38,38,.08); color: #b42318; border: 1px solid rgba(220,38,38,.25); }

/* ==========================================================================
   13. Footer
   ========================================================================== */
.site-footer { background: #1b2912; color: #b3c2a3; padding-block: 70px 30px; border-top: 1px solid var(--line-dark); }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 50px; border-bottom: 1px solid var(--line-dark); }
.site-footer p { color: #b3c2a3; }
.footer__brand p { margin-top: 18px; max-width: 320px; font-size: .95rem; }
.footer ul a { color: #b3c2a3; }
.footer h5 { font-family: var(--ff-head); color: #fff; font-size: .95rem; margin-bottom: 18px; letter-spacing: .02em; }
.footer ul li { margin-bottom: 12px; }
.footer ul a { font-size: .94rem; transition: color .25s; }
.footer ul a:hover { color: #fff; }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding-top: 26px; font-size: .85rem; }

/* ==========================================================================
   14. Page / Single content
   ========================================================================== */
.page-hero { padding-top: clamp(150px, 20vh, 210px); padding-bottom: clamp(50px, 6vw, 80px); background: linear-gradient(180deg, #f4f7f0, #fff); color: var(--ink); border-bottom: 1px solid var(--line); }
.page-hero p { color: var(--ink-soft); margin-top: 14px; max-width: 640px; }
.content { padding-block: clamp(50px, 7vw, 90px); }
.content .container { max-width: 800px; }
.prose > * + * { margin-top: 1.3em; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose ul { list-style: disc; padding-left: 1.3em; }
.prose ul li { margin-bottom: .5em; }
.prose a { color: var(--brand-deep); text-decoration: underline; text-underline-offset: 3px; }
.prose img { border-radius: var(--radius); margin-block: 1.5em; }

/* ==========================================================================
   15. Scroll-Reveal Animationen
   ========================================================================== */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal-delay="1"] { transition-delay: .08s; }
[data-reveal-delay="2"] { transition-delay: .16s; }
[data-reveal-delay="3"] { transition-delay: .24s; }
[data-reveal-delay="4"] { transition-delay: .32s; }
[data-reveal-delay="5"] { transition-delay: .40s; }
[data-reveal-delay="6"] { transition-delay: .48s; }

/* ==========================================================================
   16. Keyframes
   ========================================================================== */
@keyframes float { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(30px,-30px) scale(1.08); } }
@keyframes scroll-x { to { transform: translateX(-50%); } }
@keyframes shimmer { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

/* ==========================================================================
   17. Responsive
   ========================================================================== */
@media (max-width: 980px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .split, .contact { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .media-card { order: -1; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav__menu, .nav__actions .btn { display: none; }
  .nav__toggle { display: block; }

  .nav__menu {
    position: fixed; inset: 0 0 0 auto; width: min(82vw, 360px);
    flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--bg-dark); padding: 100px 24px 40px;
    transform: translateX(105%); transition: transform .5s var(--ease);
    box-shadow: var(--shadow); z-index: 90;
  }
  body.menu-open .nav__menu { display: flex; transform: none; }
  .nav__menu a { color: #cdd6ea; font-size: 1.1rem; padding: 14px 16px; }
  .nav__menu a::after { display: none; }

  .grid--4, .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .form .row { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; gap: 30px; }
  .hero__stats { gap: 24px; }
}

/* ==========================================================================
   18. Barrierefreiheit & Diverses
   ========================================================================== */
.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link:focus {
  position: fixed; top: 12px; left: 12px; z-index: 999;
  width: auto; height: auto; clip: auto;
  padding: 12px 20px; border-radius: 10px;
  background: var(--ink); color: #fff; font-weight: 600;
}
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }

.pagination .nav-links { display: inline-flex; gap: 8px; flex-wrap: wrap; }
.pagination .page-numbers {
  display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px;
  border-radius: 12px; border: 1px solid var(--line); font-family: var(--ff-head); font-weight: 600;
  transition: border-color .25s, background .25s, color .25s;
}
.pagination .page-numbers:hover { border-color: var(--brand); color: var(--brand-deep); }
.pagination .page-numbers.current { background: var(--grad); color: #fff; border-color: transparent; }

/* Custom-Logo im Header sauber einpassen */
.custom-logo { max-height: 44px; width: auto; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-reveal] { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
