:root {
  --bg: #fdfdfd;
  --bg-strong: #f4f6fa;
  --surface: rgba(255, 255, 255, 0.95);
  --surface-bd: rgba(255, 255, 255, 0.98);
  --ink: #111827;
  --muted: #4b5563;
  --line: #e5e7eb;
  --line-strong: #d1d5db;
  --accent: #0f2d5f;
  --accent-soft: rgba(37, 99, 235, 0.08);
  --accent-deep: #07193b;
  --accent-gold: #faa00a;
  --radius-xl: 24px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --site-width: 1140px;
  --border-width: 1px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
* {
  -webkit-tap-highlight-color: transparent;
}
html {
  scroll-behavior: smooth;
}
body {
  color: var(--ink);
  background-color: var(--bg);
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: block; /* Strict block to contain scripts/banners normally */
}

/* Base elements */
a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
ul {
  list-style: none;
}

/* Layout */
.page-shell {
  width: 100%;
  max-width: var(--site-width);
  margin: 0 auto;
  padding: 20px 24px 80px;
  display: flex !important;
  flex-direction: column !important;
  min-height: 100vh;
}

/* Header */
.site-header {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-radius: 9999px;
  border: var(--border-width) solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky;
  top: 16px;
  z-index: 100;
  margin-bottom: 40px;
}

.brand {
  display: flex !important;
  align-items: center;
}
.brand-logo {
  height: 32px;
  width: auto;
}

/* Navigation */
.site-nav {
  display: flex !important;
  align-items: center;
  gap: 8px;
}
.site-nav a {
  padding: 8px 16px;
  border-radius: 9999px;
  color: var(--muted);
  font-weight: 500;
  transition: all 0.2s;
}
.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--ink);
  background: var(--accent-soft);
}
.site-nav a.nav-active {
  color: var(--accent);
  font-weight: 600;
}
.nav-cta {
  background: var(--accent) !important;
  color: #fff !important;
}
.nav-cta:hover {
  background: var(--accent-deep) !important;
}

/* Hamburger toggle */
.nav-toggle {
  display: none !important;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: all 0.3s;
}
.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Nav */
.mobile-nav {
  display: flex !important;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  background: var(--surface-bd);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  margin-bottom: 30px;
  box-shadow: var(--shadow-md);
}
.mobile-nav[hidden] {
  display: none !important;
}
.mobile-nav a {
  padding: 12px;
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-weight: 500;
  transition: background 0.2s;
}
.mobile-nav a:hover {
  background: var(--accent-soft);
}

/* Main content */
main {
  flex: 1;
  display: flex !important;
  flex-direction: column;
  gap: 80px;
}

/* Typography & Core Elements */
.eyebrow {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-gold);
  margin-bottom: 12px;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--heading-color, var(--ink));
}
h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  letter-spacing: -0.02em;
}
h2 {
  font-size: clamp(2rem, 4vw, 2.5rem);
  letter-spacing: -0.01em;
}
h3 {
  font-size: 1.25rem;
}

/* Buttons */
.button {
  display: inline-flex !important;
  align-items: center;
  padding: 14px 28px;
  border-radius: 9999px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}
.button:hover {
  background: var(--accent-deep);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.button-secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-strong);
}
.button-secondary:hover {
  background: var(--bg-strong);
  color: var(--ink);
  box-shadow: none;
}

/* Hero */
.hero {
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 60px 0;
  max-width: 800px;
  margin: 0 auto;
}
.hero-text {
  font-size: 1.25rem;
  color: var(--muted);
  margin-bottom: 32px;
}
.hero-actions {
  display: flex !important;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

/* Sections */
.section-heading {
  text-align: center;
  margin-bottom: 48px;
  max-width: 700px;
  margin-inline: auto;
}
.section-heading p {
  font-size: 1.125rem;
  color: var(--muted);
}

/* Grids & Cards */
.card-grid {
  display: grid;
  gap: 24px;
}
.card-grid-three {
  grid-template-columns: repeat(3, 1fr);
}
.card-grid-four {
  grid-template-columns: repeat(4, 1fr);
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 32px;
  border-radius: var(--radius-lg);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.card-icon-wrap {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: var(--radius-md);
  margin-bottom: 24px;
}
.card p {
  color: var(--muted);
  margin-bottom: 24px;
}
.card-link {
  color: var(--accent);
  font-weight: 600;
}
.card-link:hover {
  text-decoration: underline;
}

/* Signals / Tag Cloud */
.signal-band {
  background: var(--accent);
  color: var(--bg);
  border-radius: var(--radius-xl);
  padding: 60px;
  text-align: center;
}
.signal-band h2,
.signal-band p {
  color: #fff;
}
.signal-band p {
  opacity: 0.9;
}
.tag-cloud {
  display: flex !important;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 32px;
}
.tag-cloud span {
  background: var(--surface);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.875rem;
  color: var(--muted);
  border: 1px solid var(--line);
}

/* Wide Cards / Stacked Panels */
.stacked-panels {
  display: flex !important;
  flex-direction: column;
  gap: 24px;
}
.wide-card {
  display: flex !important;
  gap: 32px;
  background: var(--surface);
  padding: 40px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
}
.panel-index {
  font-size: 2rem;
  font-weight: 700;
  color: var(--line-strong);
  line-height: 1;
}

/* Footer */
.site-footer {
  margin-top: 80px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand p {
  color: var(--muted);
  margin-top: 16px;
}
.footer-nav {
  display: flex !important;
  flex-direction: column;
  gap: 12px;
}
.footer-nav a {
  color: var(--muted);
  font-weight: 500;
}
.footer-nav a:hover {
  color: var(--accent);
}
.footer-legal {
  display: flex !important;
  flex-direction: column;
  gap: 8px;
  color: var(--muted);
  font-size: 0.875rem;
}
.footer-legal a:hover {
  color: var(--ink);
}

/* Playwright / Cookie Banner Tweaks */
#cp-banner-host {
  pointer-events: none !important;
  position: fixed !important;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 2147483647;
}
#cp-banner-host * {
  pointer-events: auto !important;
}

/* Responsive */
@media (max-width: 1024px) {
  .card-grid-three {
    grid-template-columns: repeat(2, 1fr);
  }
  .card-grid-four {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .site-nav {
    display: none !important;
  }
  .nav-toggle {
    display: flex !important;
  }
  .hero {
    padding: 40px 0;
  }
  .card-grid-three,
  .card-grid-four {
    grid-template-columns: 1fr;
  }
  .wide-card {
    flex-direction: column;
    gap: 16px;
    padding: 24px;
  }
  .signal-band {
    padding: 40px 24px;
  }
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ── Page Hero ──────────────────────────────────────────────────────────── */
.page-hero {
  padding: 80px 0 40px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}
.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 24px;
}
.page-hero-text {
  font-size: 1.25rem;
  color: var(--muted);
}

/* ── Service Blocks (Leistungen) ────────────────────────────────────────── */
.service-block {
  display: flex !important;
  flex-direction: column;
  gap: 32px;
  margin-bottom: 80px;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 48px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
}
@media (min-width: 768px) {
  .service-block {
    flex-direction: row;
    gap: 48px;
  }
}
.service-header {
  flex: 0 0 250px;
  display: flex !important;
  flex-direction: column;
  gap: 16px;
}
.service-icon {
  width: 64px;
  height: 64px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: var(--radius-md);
}
.service-num {
  font-size: 3rem;
  font-weight: 800;
  color: var(--line-strong);
  line-height: 1;
  display: block;
  margin-bottom: 8px;
}
.service-body {
  flex: 1;
}
.service-lead {
  font-size: 1.125rem;
  color: var(--ink);
  margin-bottom: 32px;
  font-weight: 500;
}
.service-detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 640px) {
  .service-detail-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.detail-card {
  background: var(--bg-strong);
  padding: 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
}
.detail-card h3 {
  font-size: 1.125rem;
  margin-bottom: 8px;
  color: var(--ink);
}
.detail-card p {
  font-size: 0.95rem;
  color: var(--muted);
}
.service-example {
  margin-top: 24px;
  padding: 16px;
  background: var(--accent-soft);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  color: var(--accent-deep);
}

/* ── Project Grid (Projekte) ────────────────────────────────────────────── */
.project-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 80px;
}
@media (min-width: 768px) {
  .project-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.project-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex !important;
  flex-direction: column;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.project-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.project-card-featured {
  grid-column: 1 / -1;
  background: var(--bg-strong);
}
@media (min-width: 768px) {
  .project-card-featured {
    flex-direction: row;
    align-items: center;
    gap: 32px;
    padding: 48px;
  }
}
.project-card-tag {
  display: inline-block;
  padding: 4px 12px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 999px;
  margin-bottom: 16px;
  align-self: flex-start;
}
.project-desc {
  color: var(--muted);
  margin-bottom: 24px;
  font-size: 1.05rem;
}
.project-features {
  list-style: none;
  padding: 0;
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  display: flex !important;
  flex-direction: column;
  gap: 8px;
}
.project-features li {
  position: relative;
  padding-left: 24px;
  font-size: 0.95rem;
  color: var(--muted);
}
.project-features li::before {
  content: "→";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
}
.project-card-cta {
  background: var(--accent);
  color: var(--bg);
  text-align: center;
  justify-content: center;
  align-items: center;
  border-color: var(--accent);
}
.project-card-cta h2,
.project-card-cta p {
  color: #fff;
}
.project-card-cta .project-desc {
  color: rgba(255, 255, 255, 0.8);
}
.project-card-cta h2 {
  color: #fff;
}
.project-card-cta .project-card-tag {
  background: var(--accent-gold);
  color: var(--accent-deep);
}

/* ── Profile (Über uns) ─────────────────────────────────────────────────── */
.profile-layout {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 48px;
}
@media (min-width: 768px) {
  .profile-layout {
    flex-direction: row;
    align-items: flex-start;
  }
}
.profile-avatar {
  flex: 0 0 180px;
  width: 180px;
  height: 180px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.profile-avatar-img {
  width: 100%;
  height: auto;
  max-width: 140px;
}
.profile-text {
  flex: 1;
}
.profile-text p {
  color: var(--muted);
  margin-bottom: 16px;
  font-size: 1.1rem;
}

/* ── Skills (Über uns) ──────────────────────────────────────────────────── */
.skills-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 768px) {
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.skill-group {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 32px;
  border-radius: var(--radius-lg);
}
.skill-list {
  list-style: none;
  padding: 0;
  display: flex !important;
  flex-direction: column;
  gap: 16px;
}
.skill-list li {
  position: relative;
  font-size: 0.95rem;
  color: var(--ink);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  display: flex !important;
  justify-content: space-between;
  flex-direction: column;
}
.skill-bar {
  position: absolute;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: var(--accent);
  width: var(--w, 0%);
  border-radius: 2px;
}

/* ── CTA Section ────────────────────────────────────────────────────────── */
.cta-section {
  background: var(--accent);
  color: white;
  text-align: center;
  padding: 64px 24px;
  border-radius: var(--radius-xl);
  margin-top: 40px;
}
.cta-section .eyebrow {
  color: rgba(255, 255, 255, 0.8);
}
.cta-section h2 {
  color: white;
  margin-bottom: 16px;
  font-size: clamp(2rem, 4vw, 2.5rem);
}
.cta-section p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.125rem;
  margin-bottom: 32px;
  max-width: 600px;
  margin-inline: auto;
}
.cta-inner {
  display: flex !important;
  flex-direction: column;
  align-items: center;
}
.cta-section .button {
  background: white;
  color: var(--accent-deep);
}
.cta-section .button:hover {
  background: var(--bg-strong);
  color: var(--accent-deep);
}

/* ── Numbers Section ────────────────────────────────────────────────────── */
.numbers-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
@media (min-width: 768px) {
  .numbers-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
.number-card {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 32px 24px;
  border-radius: var(--radius-lg);
  text-align: center;
  display: flex !important;
  flex-direction: column;
  gap: 8px;
}
.number-card strong {
  font-size: 3rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}
.number-card span {
  font-size: 0.95rem;
  color: var(--muted);
  font-weight: 500;
}

/* ── Accent Cards ───────────────────────────────────────────────────────── */
.accent-card {
  border-top: 3px solid var(--accent);
}

/* Added innovation styling */
/* .page-hero h1 { background: linear-gradient( ... replaced */
.page-hero h1 {
  background: linear-gradient(
    135deg,
    var(--ink) 0%,
    var(--accent) 70%,
    var(--accent-gold) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.detail-card {
  transition:
    transform 0.3s,
    background 0.3s;
}
.detail-card:hover {
  transform: translateY(-2px);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  border-color: var(--accent);
}

.signal-band .tag {
  background: rgba(255, 255, 255, 0.1);
  color: var(--accent-gold);
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

/* ── Section Line Colors ────────────────────────────────────────────────── */
.lc-line1,
.lc-line2,
.lc-global {
  transition: border-color 0.3s ease;
}
.lc-line1 {
  border-top: 4px solid var(--color-line-1);
}
.lc-line1:hover {
  border-top-color: var(--color-line-1-hover);
}
.lc-line2 {
  border-top: 4px solid var(--color-line-2);
}
.lc-line2:hover {
  border-top-color: var(--color-line-2-hover);
}
.lc-global {
  border-top: 4px solid var(--color-line-global);
}
.lc-global:hover {
  border-top-color: var(--color-line-global-hover);
}

/* ── Contact Page Redesign ──────────────────────────────────────────────── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.contact-info {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border-top: 3px solid var(--accent);
}
.contact-info h2 {
  font-size: 1.5rem;
  margin-bottom: 24px;
}
.contact-hints {
  list-style: none;
  padding: 0;
  margin: 0 0 32px 0;
}
.contact-hints li {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  color: var(--ink);
  font-size: 0.95rem;
}
.contact-hints li svg {
  flex-shrink: 0;
  color: var(--accent);
  margin-top: 2px;
}
.contact-note {
  font-size: 0.9rem;
  color: var(--muted);
  background: rgba(15, 45, 95, 0.05);
  padding: 16px;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--accent-gold);
}
.contact-form-wrap {
  display: flex;
  flex-direction: column;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-group label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink);
}
.form-group .req {
  color: var(--accent-gold);
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  background: var(--surface);
  color: var(--ink);
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.form-group-consent {
  flex-direction: row;
  align-items: flex-start;
  gap: 12px;
  background: var(--bg);
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.consent-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-weight: 400 !important;
  font-size: 0.85rem !important;
  color: var(--muted) !important;
  cursor: pointer;
}
.consent-label input {
  width: auto;
  margin-top: 4px;
}
.form-privacy {
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
  margin-top: 16px;
}
.form-success,
.form-error {
  padding: 16px;
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  display: flex;
  gap: 16px;
  align-items: center;
}
.form-success {
  background: rgba(46, 204, 113, 0.1);
  color: #27ae60;
  border: 1px solid rgba(46, 204, 113, 0.2);
}
.form-error {
  background: rgba(231, 76, 60, 0.1);
  color: #c0392b;
  border: 1px solid rgba(231, 76, 60, 0.2);
}
@media (max-width: 768px) {
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* Legal Pages */
.legal-section {
  padding: 40px 20px;
}
.legal-body {
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
}
.legal-body h2 {
  font-size: 2rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
}
.legal-body h3 {
  font-size: 1.25rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--accent-deep);
}
.legal-body p {
  margin-bottom: 1rem;
  color: var(--ink);
}
.legal-body ul {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}
.legal-body li {
  margin-bottom: 0.5rem;
}

.legal-body a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 2px;
  transition:
    text-decoration-color 0.2s,
    color 0.2s;
}
.legal-body a:hover {
  text-decoration-color: var(--accent);
  color: var(--accent-deep);
}
