/*
Theme Name: e-groetzschi
Theme URI: https://groetzschi.de/
Author: e-groetzschi
Description: Leichtgewichtiges, barrierearmes Unternehmens-Theme für e-groetzschi.
Version: 0.2.1
Requires at least: 6.5
Requires PHP: 8.1
Text Domain: egroetzschi
*/

:root {
  --eg-ink: #102033;
  --eg-blue: #0759c7;
  --eg-blue-dark: #063f8f;
  --eg-cyan: #36b6d8;
  --eg-lime: #9acb35;
  --eg-paper: #f6f8fb;
  --eg-white: #fff;
  --eg-line: #d9e1ea;
  --eg-muted: #526274;
  --eg-radius: 18px;
  --eg-shadow: 0 18px 45px rgba(16, 32, 51, .10);
  --eg-width: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--eg-ink); background: var(--eg-white); font: 400 1rem/1.65 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--eg-blue); text-underline-offset: .18em; }
a:hover { color: var(--eg-blue-dark); }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 3px solid var(--eg-lime); outline-offset: 3px; }
.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; }
.skip-link:focus { position: fixed; z-index: 9999; top: 1rem; left: 1rem; width: auto; height: auto; padding: .75rem 1rem; clip: auto; background: #fff; }
.eg-wrap { width: min(calc(100% - 2rem), var(--eg-width)); margin-inline: auto; }
.eg-section { padding: clamp(4rem, 8vw, 7rem) 0; }
.eg-kicker { margin: 0 0 .65rem; color: var(--eg-blue); font-size: .82rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
h1, h2, h3 { margin: 0 0 .7em; line-height: 1.12; letter-spacing: -.025em; }
h1 { font-size: clamp(2.5rem, 6vw, 5.25rem); }
h2 { font-size: clamp(2rem, 4vw, 3.35rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
p { margin: 0 0 1.2rem; }
.eg-lead { max-width: 760px; color: var(--eg-muted); font-size: clamp(1.08rem, 2vw, 1.3rem); }
.eg-button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: .75rem 1.15rem; border: 2px solid var(--eg-blue); border-radius: 999px; background: var(--eg-blue); color: #fff; font-weight: 750; text-decoration: none; transition: .2s ease; }
.eg-button:hover { transform: translateY(-1px); background: var(--eg-blue-dark); border-color: var(--eg-blue-dark); color: #fff; }
.eg-button--ghost { background: transparent; color: var(--eg-blue); }
.eg-actions { display: flex; flex-wrap: wrap; gap: .8rem; }

.eg-header { position: sticky; z-index: 50; top: 0; border-bottom: 1px solid rgba(217,225,234,.8); background: rgba(255,255,255,.94); backdrop-filter: blur(14px); }
.eg-header__inner { display: flex; min-height: 78px; align-items: center; gap: 2rem; }
.eg-brand { display: inline-flex; align-items: center; gap: .7rem; color: var(--eg-ink); font-size: 1.35rem; font-weight: 850; text-decoration: none; }
.eg-brand__mark { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 50%; background: conic-gradient(var(--eg-lime), var(--eg-cyan), var(--eg-blue), var(--eg-lime)); color: #fff; font-size: .8rem; }
.eg-brand__logo { width: auto; height: 46px; }
.eg-nav { margin-left: auto; }
.eg-nav ul { display: flex; margin: 0; padding: 0; align-items: center; gap: 1.2rem; list-style: none; }
.eg-nav a { color: var(--eg-ink); font-weight: 700; text-decoration: none; }
.eg-nav a:hover { color: var(--eg-blue); }
.eg-menu-toggle { display: none; margin-left: auto; padding: .55rem .8rem; border: 1px solid var(--eg-line); border-radius: 10px; background: #fff; }

.eg-hero { position: relative; overflow: hidden; padding: clamp(5rem, 10vw, 9rem) 0; background: linear-gradient(135deg, #f7faff 0%, #eef6ff 65%, #f4faeb 100%); }
.eg-hero::after { position: absolute; width: 560px; height: 560px; right: -220px; bottom: -300px; border: 80px solid rgba(7,89,199,.08); border-radius: 50%; content: ""; }
.eg-hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(280px, .6fr); align-items: center; gap: clamp(2rem, 7vw, 6rem); }
.eg-hero h1 span { color: var(--eg-blue); }
.eg-credentials { display: grid; gap: .8rem; padding: 1.5rem; border: 1px solid rgba(7,89,199,.15); border-radius: var(--eg-radius); background: rgba(255,255,255,.75); box-shadow: var(--eg-shadow); }
.eg-credential { display: flex; align-items: center; gap: .75rem; font-weight: 750; }
.eg-credential::before { display: grid; width: 30px; height: 30px; flex: 0 0 30px; place-items: center; border-radius: 50%; background: var(--eg-lime); color: var(--eg-ink); content: "✓"; }

.eg-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.eg-card { padding: 1.6rem; border: 1px solid var(--eg-line); border-radius: var(--eg-radius); background: #fff; box-shadow: 0 8px 26px rgba(16,32,51,.06); }
.eg-card__number { display: grid; width: 44px; height: 44px; margin-bottom: 1.1rem; place-items: center; border-radius: 12px; background: #eaf2ff; color: var(--eg-blue); font-weight: 850; }
.eg-card p { color: var(--eg-muted); }
.eg-card a { font-weight: 800; }
.eg-section--tint { background: var(--eg-paper); }
.eg-trust { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.eg-checks { display: grid; margin: 0; padding: 0; gap: .9rem; list-style: none; }
.eg-checks li { position: relative; padding-left: 2rem; }
.eg-checks li::before { position: absolute; left: 0; color: var(--eg-blue); font-weight: 900; content: "✓"; }
.eg-steps { counter-reset: steps; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.eg-step { counter-increment: steps; padding: 1.3rem; border-top: 4px solid var(--eg-blue); background: #fff; box-shadow: var(--eg-shadow); }
.eg-step::before { display: block; margin-bottom: .6rem; color: var(--eg-blue); font-weight: 850; content: "0" counter(steps); }
.eg-cta { border-radius: 28px; padding: clamp(2rem, 6vw, 4.5rem); background: var(--eg-ink); color: #fff; }
.eg-cta .eg-kicker { color: #8fdcff; }
.eg-cta .eg-lead { color: #d5dfeb; }
.eg-cta .eg-button--ghost { border-color: #fff; color: #fff; }
.eg-content { max-width: 800px; }
.eg-content > * + * { margin-top: 1.2rem; }
.eg-footer { padding: 3rem 0 1.5rem; background: #091522; color: #dce6f0; }
.eg-footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2rem; }
.eg-footer a { color: #fff; }
.eg-footer__legal { margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,.15); font-size: .9rem; }

@media (max-width: 900px) {
  .eg-menu-toggle { display: inline-flex; }
  .eg-header .eg-button { display: none; }
  .eg-nav { display: none; position: absolute; top: 78px; right: 0; left: 0; padding: 1rem; background: #fff; border-bottom: 1px solid var(--eg-line); }
  .eg-nav.is-open { display: block; }
  .eg-nav ul { align-items: stretch; flex-direction: column; }
  .eg-nav a { display: block; padding: .6rem; }
  .eg-hero__grid, .eg-trust { grid-template-columns: 1fr; }
  .eg-grid { grid-template-columns: repeat(2, 1fr); }
  .eg-steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
	.eg-brand__logo { height: 36px; }
  .eg-grid, .eg-steps, .eg-footer__grid { grid-template-columns: 1fr; }
  .eg-actions .eg-button { width: 100%; }
  .eg-section { padding: 3.5rem 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
