/* ===========================================================
   CP Media Works — Design tokens
   Farben direkt aus dem bestehenden Logo extrahiert (kein
   generischer Standard-Farbklang), Typografie lokal gehostet.
=========================================================== */

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/plus-jakarta-sans-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/plus-jakarta-sans-latin-700-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/plus-jakarta-sans-latin-800-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Nunito Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/nunito-sans-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Nunito Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/nunito-sans-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Nunito Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/nunito-sans-latin-700-normal.woff2') format('woff2');
}

:root {
  /* Marke — aus dem Logo gemessen */
  --teal: #4ecdb2;
  --teal-light: #a9ecdd;
  --blue: #0b3f9e;
  --blue-deep: #0a2c6e;
  --ink: #2b2a28;
  --ink-soft: #5b5954;

  --bg: #fbfbf9;
  --bg-alt: #eff6f4;
  --white: #ffffff;

  --gradient-brand: linear-gradient(135deg, var(--teal) 0%, var(--blue) 100%);
  --gradient-brand-soft: linear-gradient(135deg, rgba(78, 205, 178, 0.14) 0%, rgba(11, 63, 158, 0.14) 100%);

  --font-display: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-body: 'Nunito Sans', system-ui, sans-serif;

  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;

  --shadow-soft: 0 30px 60px -30px rgba(10, 44, 110, 0.35);
  --shadow-tight: 0 10px 24px -12px rgba(10, 44, 110, 0.25);

  --maxw: 1180px;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  margin: 0 0 0.5em;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--bg-alt);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 18px;
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(43, 42, 40, 0.06);
}
/* Hintergrund/Weichzeichner liegen auf einem Pseudo-Element, nicht direkt auf
   .site-header: backdrop-filter auf dem Header selbst würde sonst zur
   Bezugsbox für fixed-position Nachfahren werden (mobiles Menü) und dessen
   Positionierung/Größe kaputt machen. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(251, 251, 249, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: -1;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand img {
  height: 40px;
  width: auto;
}
.brand { display: flex; align-items: center; }
.main-nav ul {
  display: flex;
  gap: 32px;
  align-items: center;
}
.main-nav a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--ink-soft);
  transition: color 0.2s ease;
}
.main-nav a:hover { color: var(--blue); }
.main-nav a.btn-primary { color: var(--white); }
.main-nav a.btn-primary:hover { color: var(--white); opacity: 0.92; }
.main-nav .btn { margin-left: 8px; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  border-radius: 2px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 13px 24px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.btn-primary {
  background: var(--gradient-brand);
  background-clip: padding-box;
  color: var(--white);
  box-shadow: var(--shadow-tight);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.btn-ghost {
  background: transparent;
  border: 2px solid rgba(43, 42, 40, 0.15);
  padding: 11px 22px;
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }

/* ===== Hero — Signature-Element: schwebende Blasen aus dem Logo-Motiv ===== */
.hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 120px;
}
.hero-bubbles {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.bubble {
  position: absolute;
  border-radius: 50%;
  background: var(--gradient-brand);
  opacity: 0.22;
  filter: blur(1px);
  animation: drift-a 14s ease-in-out infinite;
  will-change: transform;
}
.bubble.b1 { width: 220px; height: 220px; left: 6%;  top: 10%; animation-name: drift-a; animation-duration: 16s; }
.bubble.b2 { width: 120px; height: 120px; left: 20%; top: 62%; animation-name: drift-b; animation-duration: 11s; animation-delay: -3s; }
.bubble.b3 { width: 320px; height: 320px; right: -60px; top: 0%; animation-name: drift-c; animation-duration: 19s; animation-delay: -7s; opacity: 0.16; }
.bubble.b4 { width: 70px;  height: 70px;  right: 18%; top: 70%; animation-name: drift-b; animation-duration: 9s;  animation-delay: -1s; }
.bubble.b5 { width: 160px; height: 160px; right: 8%;  top: 34%; animation-name: drift-a; animation-duration: 13s; animation-delay: -5s; opacity: 0.18; }

@keyframes drift-a {
  0%   { transform: translate(0, 0) scale(1) rotate(0deg); }
  25%  { transform: translate(46px, -60px) scale(1.1) rotate(8deg); }
  50%  { transform: translate(8px, -100px) scale(0.94) rotate(-6deg); }
  75%  { transform: translate(-40px, -46px) scale(1.06) rotate(5deg); }
  100% { transform: translate(0, 0) scale(1) rotate(0deg); }
}
@keyframes drift-b {
  0%   { transform: translate(0, 0) scale(1); }
  33%  { transform: translate(-50px, 40px) scale(1.12); }
  66%  { transform: translate(34px, 66px) scale(0.9); }
  100% { transform: translate(0, 0) scale(1); }
}
@keyframes drift-c {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(-60px, 50px) scale(1.14); }
  100% { transform: translate(0, 0) scale(1); }
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
}
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 800;
}
.hero .gradient-word {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lead {
  font-size: 1.25rem;
  color: var(--ink-soft);
  max-width: 560px;
}
.hero-cta {
  display: flex;
  gap: 16px;
  margin-top: 36px;
  flex-wrap: wrap;
}

/* ===== Sections ===== */
section { padding: 100px 0; }
.section-alt { background: var(--bg-alt); }
.section-head {
  max-width: 620px;
  margin-bottom: 56px;
}
.section-head h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); }
.section-head p { color: var(--ink-soft); font-size: 1.05rem; }

/* ===== Über mich ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-illustration {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.compare {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: ew-resize;
  box-shadow: var(--shadow-soft);
  touch-action: none;
  user-select: none;
}
.compare-side { position: absolute; inset: 0; }
.compare-code { background: var(--bg-alt); }
.compare-baukasten {
  background: #e9e7e0;
  clip-path: inset(0 50% 0 0);
}
.mockup {
  position: absolute;
  inset: 0;
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.mockup-nav { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.mockup-logo { width: 26px; height: 26px; border-radius: 50%; background: var(--gradient-brand); flex-shrink: 0; }
.mockup-navlink { width: 34px; height: 8px; border-radius: 4px; background: rgba(43, 42, 40, 0.16); }
.mockup-cta { margin-left: auto; padding: 7px 16px; border-radius: 100px; background: var(--gradient-brand); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 0.68rem; white-space: nowrap; }
.mockup-hero { margin-top: 10px; display: flex; flex-direction: column; gap: 8px; position: relative; }
.mockup-headline { display: block; height: 13px; border-radius: 4px; background: rgba(43, 42, 40, 0.16); width: 78%; }
.mockup-headline.short { width: 46%; }
.mockup-blob { display: block; width: 44px; height: 44px; border-radius: 50%; background: var(--gradient-brand); opacity: 0.5; margin-bottom: 4px; }
.mockup-headline-text { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 0.92rem; line-height: 1.25; color: var(--ink); }
.mockup-subtext { margin: 0; font-family: var(--font-body); font-size: 0.72rem; color: var(--ink-soft); }
.mockup-cta-secondary {
  align-self: flex-start;
  margin-top: 6px;
  padding: 6px 14px;
  border-radius: 100px;
  background: var(--gradient-brand);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.68rem;
}
.mockup-mark {
  position: absolute;
  left: 26px; bottom: 16px;
  font-family: var(--font-display);
  font-size: 0.62rem;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}

/* Baukasten: bewusst altmodisch/eng */
.mockup-old .mockup-logo.old {
  width: auto; height: auto; border-radius: 2px;
  background: #cfcfcf; color: #555;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 0.6rem; padding: 4px 8px;
}
.mockup-old .mockup-navlink.old {
  width: auto; height: auto; background: none;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 0.68rem; color: #0000ee; text-decoration: underline;
}
.mockup-old .mockup-cta.old {
  border-radius: 3px; background: #cc3333;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 0.62rem; letter-spacing: 0;
}
.mockup-old .mockup-headline.old { background: #cfcfcf; border-radius: 0; }
.mockup-headline-text.old {
  margin: 0; font-family: Georgia, 'Times New Roman', serif;
  font-weight: 700; font-size: 0.82rem; line-height: 1.3;
  color: #b23a3a;
}
.mockup-subtext.old {
  margin: 0; font-family: Georgia, 'Times New Roman', serif;
  font-size: 0.68rem; color: #555;
}
.mockup-ribbon.old {
  position: absolute;
  top: -4px; right: 4px;
  background: #cc3333;
  color: #fff;
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 700;
  font-size: 0.62rem;
  padding: 3px 10px;
  transform: rotate(8deg);
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.mockup-badge.old {
  position: absolute;
  right: 12px; bottom: 12px;
  background: rgba(255,255,255,0.75);
  border: 1px solid #b5b5b5;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 0.55rem;
  color: #777;
  padding: 3px 8px;
  border-radius: 3px;
}
.mockup-placeholder-img.old {
  display: block;
  width: 100%; height: 44px;
  background-color: #d8d8d8;
  border: 1px dashed #a3a3a3;
  background-image:
    linear-gradient(45deg, transparent 46%, #a3a3a3 46%, #a3a3a3 54%, transparent 54%),
    linear-gradient(-45deg, transparent 46%, #a3a3a3 46%, #a3a3a3 54%, transparent 54%);
}

.compare-handle {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 3px;
  background: rgba(255, 255, 255, 0.9);
  transform: translateX(-50%);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
  pointer-events: none;
}
.compare-grip {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--gradient-brand);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  box-shadow: var(--shadow-tight);
}
.compare-tag {
  position: absolute;
  top: 14px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.85);
  color: var(--ink);
  pointer-events: none;
}
.compare-tag-left { left: 14px; }
.compare-tag-right { right: 14px; }
.compare-hint {
  text-align: center;
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin: 0;
}
.compare:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
}
.about-text p { font-size: 1.08rem; }
.about-text .signature {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--blue);
  margin-top: 24px;
}

/* ===== Leistungen ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  border: 1px solid rgba(43, 42, 40, 0.07);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.service-card.reveal.is-visible:hover,
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-soft);
}
.service-card.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.7s ease, box-shadow 0.25s ease;
}
.service-card.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.service-card.reveal:nth-child(2) { transition-delay: 0.08s; }
.service-card.reveal:nth-child(3) { transition-delay: 0.16s; }
.service-card .icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--gradient-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.service-card .icon svg { width: 26px; height: 26px; stroke: white; }
.service-card h3 { font-size: 1.2rem; }
.service-card p { color: var(--ink-soft); font-size: 0.98rem; margin-bottom: 0; }

/* ===== Projekte ===== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
.project-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(43, 42, 40, 0.07);
  display: flex;
  flex-direction: column;
}
.project-shot {
  aspect-ratio: 16/10;
  background: var(--gradient-brand);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.project-shot span {
  font-family: var(--font-display);
  font-weight: 700;
  color: rgba(255,255,255,0.92);
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  background: rgba(0,0,0,0.15);
  padding: 6px 14px;
  border-radius: 100px;
}
.project-body { padding: 28px; }
.project-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--blue);
  background: var(--bg-alt);
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 12px;
}
.project-body h3 { font-size: 1.3rem; }
.project-body p { color: var(--ink-soft); }
.project-link {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--blue);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.project-link svg { width: 16px; height: 16px; }

/* ===== Kontakt ===== */
.contact-panel {
  background: var(--gradient-brand);
  border-radius: var(--radius-lg);
  padding: 56px;
  color: var(--white);
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: center;
}
.contact-panel h2 { color: var(--white); }
.contact-panel p { color: rgba(255,255,255,0.85); }
.contact-panel .mailto {
  color: var(--white);
  font-weight: 700;
  text-decoration: underline;
}
.steps {
  margin-top: 24px;
  display: grid;
  gap: 10px;
  padding-left: 22px;
}
.steps li::marker {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--white);
}
.steps li {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.9);
  padding-left: 4px;
}
.steps strong {
  font-family: var(--font-display);
  color: var(--white);
}

.contact-form {
  display: grid;
  gap: 14px;
}
.contact-form label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 4px;
  display: block;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: none;
  font-family: var(--font-body);
  font-size: 1rem;
  background: rgba(255,255,255,0.95);
  color: var(--ink);
}
.contact-form button {
  justify-self: start;
  margin-top: 4px;
  background: var(--white);
  color: var(--blue);
}
.contact-form button:hover { background: var(--ink); color: var(--white); }
.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  height: 0;
  overflow: hidden;
}
.form-status {
  margin: 4px 0 0;
  font-size: 0.9rem;
  font-family: var(--font-display);
  font-weight: 600;
}
.form-status-success { color: #eafff7; }
.form-status-error { color: #ffe3e3; }

/* ===== Footer ===== */
.site-footer {
  padding: 40px 0;
  border-top: 1px solid rgba(43,42,40,0.08);
}
.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.site-footer nav ul { display: flex; gap: 24px; }
.site-footer a { text-decoration: none; color: var(--ink-soft); font-size: 0.9rem; }
.site-footer a:hover { color: var(--blue); }
.site-footer .copyright { font-size: 0.85rem; color: var(--ink-soft); }

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .services-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .contact-panel { grid-template-columns: 1fr; padding: 36px 24px; }
}
@media (max-width: 720px) {
  .main-nav { position: fixed; inset: 76px 0 0 0; background: var(--bg); padding: 24px; transform: translateY(-8px); opacity: 0; pointer-events: none; transition: all 0.2s ease; }
  .main-nav.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .main-nav ul { flex-direction: column; align-items: flex-start; gap: 22px; }
  .nav-toggle { display: block; }
  section { padding: 64px 0; }
  .hero { padding: 56px 0 72px; }
}

/* ===== Legal pages ===== */
.legal-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 72px 24px 100px;
}
.legal-page h1 { font-size: 2rem; margin-bottom: 0.6em; }
.legal-page h2 { font-size: 1.2rem; margin-top: 2em; }
.legal-page .placeholder {
  background: var(--bg-alt);
  border: 1px dashed rgba(11,63,158,0.4);
  border-radius: var(--radius-sm);
  padding: 4px 10px;
  color: var(--blue);
  font-weight: 600;
}
