/* DAKBY Landing Page — page styles */

html, body {
  margin: 0;
  padding: 0;
  background: #fff;
  font-family: 'Univers', 'Ebrima', sans-serif;
  color: #111;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
* { box-sizing: border-box; }
img { display: block; max-width: 100%; }

button { font-family: inherit; }

/* Marquee ticker */
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.ticker-track {
  display: inline-flex;
  gap: 56px;
  padding-right: 56px;
  animation: ticker-scroll 40s linear infinite;
  white-space: nowrap;
}

/* Hover lift utility */
.lift { transition: transform 200ms cubic-bezier(0.2,0.7,0.2,1), box-shadow 200ms cubic-bezier(0.2,0.7,0.2,1); }
.lift:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(0,0,0,0.10); }

/* Card image zoom on hover */
.zoom-img { transition: transform 600ms cubic-bezier(0.2,0.7,0.2,1); }
.zoom-parent:hover .zoom-img { transform: scale(1.06); }

/* Underline grow link */
.ul-grow {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 4px;
  cursor: pointer;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  color: inherit;
  letter-spacing: 0.01em;
}
.ul-grow::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px; background: currentColor;
  transform-origin: left; transform: scaleX(1);
  transition: transform 300ms cubic-bezier(0.2,0.7,0.2,1);
}
.ul-grow:hover .arrow { transform: translateX(4px); }
.ul-grow .arrow { transition: transform 200ms cubic-bezier(0.2,0.7,0.2,1); }

/* CTA pill */
.dakby-cta {
  background: var(--cta-bg, #f08300);
  color: var(--cta-fg, #fff);
  border: 0;
  border-radius: 999px;
  padding: 16px 30px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  font-family: 'Univers', 'Ebrima', sans-serif;
  box-shadow: 0 8px 24px rgba(240,131,0,0.25);
  transition: transform 120ms ease-out, background 120ms ease-out, box-shadow 200ms ease-out;
  display: inline-flex; align-items: center; gap: 10px;
}
.dakby-cta:hover { background: #d97500; transform: translateY(-1px); }
.dakby-cta:active { transform: scale(0.985) translateY(0); background: #c46900; }
.dakby-cta.dark { --cta-bg: #000; --cta-fg: #f08300; box-shadow: 0 8px 24px rgba(0,0,0,0.25); }
.dakby-cta.dark:hover { background: #1a1a1a; }
.dakby-cta.outline { background: transparent; color: #000; box-shadow: none; border: 2px solid #000; padding: 14px 28px; }
.dakby-cta.outline:hover { background: #000; color: #fff; }

/* Diagonal "MACH'S DIGITAL" stamp */
.machs-stamp {
  display: inline-block;
  background: #000;
  color: #fff;
  font-family: 'Univers Condensed', 'Univers', sans-serif;
  font-style: italic;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: 4px;
  transform: rotate(-4deg);
}

/* Section eyebrow with bullet */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #000;
  font-family: 'Univers', 'Ebrima', sans-serif;
}
.eyebrow::before {
  content: "";
  width: 28px; height: 2px; background: #f08300;
}
.eyebrow.on-orange { color: #fff; }
.eyebrow.on-orange::before { background: #fff; }
.eyebrow.on-dark { color: #f08300; }
.eyebrow.on-dark::before { background: #f08300; }

/* Bold huge headline */
.kraft {
  margin: 0;
  font-family: 'Univers', 'Ebrima', sans-serif;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 0.95;
}

/* Italic condensed accent on headline word */
.cond-it {
  font-family: 'Univers Condensed', 'Univers', sans-serif;
  font-style: italic;
  font-weight: 400;
  color: #f08300;
}

/* container */
.wrap { max-width: 1440px; margin: 0 auto; padding: 0 56px; }
@media (max-width: 900px) {
  .wrap { padding: 0 24px; }
}

/* fade-in on load */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fade-up 800ms cubic-bezier(0.2,0.7,0.2,1) both; }
.fade-up.d1 { animation-delay: 60ms; }
.fade-up.d2 { animation-delay: 140ms; }
.fade-up.d3 { animation-delay: 240ms; }
.fade-up.d4 { animation-delay: 360ms; }

/* Grid hover for topic tiles */
.topic-tile { transition: background 240ms ease, color 240ms ease; }
.topic-tile .topic-arrow { transition: transform 280ms cubic-bezier(0.2,0.7,0.2,1), opacity 200ms ease; opacity: 0.4; transform: translate(-6px, 6px); }
.topic-tile:hover .topic-arrow { opacity: 1; transform: translate(0, 0); }

/* Topic-tile title hover animation — letters lift in a soft stagger */
.topic-title {
  display: inline;
  word-spacing: normal;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}
.topic-title .ch {
  display: inline-block;
  transform: translateY(0);
  transition: transform 500ms cubic-bezier(0.2, 0.7, 0.2, 1),
              color 240ms ease;
  transition-delay: calc(var(--i) * 22ms);
  will-change: transform;
}
.topic-tile:hover .topic-title .ch {
  transform: translateY(0);
}

/* tag chip */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  background: #fff; color: #000;
  border: 1px solid #e3e3e2;
  border-radius: 999px;
  padding: 6px 12px;
}
.chip.solid { background: #000; color: #fff; border-color: #000; }
.chip.orange { background: #f08300; color: #fff; border-color: #f08300; }

/* visually hidden */
.sr { position:absolute; left:-9999px; }

/* ─────────────────────────────────────────
   FEATURED — "Vier Schritte zur digitalen Verwaltung"
   ───────────────────────────────────────── */
.featured-section {
  padding: 120px 0 72px;
  background: #fff;
}
.featured-head {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 80px;
  align-items: end;
  margin-bottom: 72px;
}
.featured-head-left {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.featured-h2 {
  font-size: clamp(40px, 5vw, 72px);
  margin: 0;
  line-height: 0.95;
}
.featured-lead {
  font-size: 16px;
  line-height: 1.55;
  color: #4a4a4a;
  margin: 0;
  font-family: 'Univers', Ebrima, sans-serif;
  padding-bottom: 6px;
}
.featured-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  border-bottom: 1px solid #e3e3e2;
  font-family: 'Univers', Ebrima, sans-serif;
}
.featured-step {
  display: grid;
  grid-template-columns: 120px 1fr 1fr;
  gap: 32px;
  padding: 36px 8px;
  border-top: 1px solid #e3e3e2;
  transition: background 200ms;
  position: relative;
  align-items: baseline;
}
.featured-step:hover { background: #f7f7f6; }
.featured-step-num {
  font-size: 56px;
  font-weight: 700;
  color: #000;
  letter-spacing: -0.03em;
  transition: color 200ms;
  line-height: 1;
}
.featured-step:hover .featured-step-num { color: #f08300; }
.featured-step-title {
  font-size: 28px;
  font-weight: 700;
  color: #000;
  letter-spacing: -0.01em;
  line-height: 1.15;
}
.featured-step-desc {
  font-size: 16px;
  color: #4a4a4a;
  line-height: 1.55;
  max-width: 40ch;
}

/* Mark-V watermark */
.mark-v {
  position: absolute;
  user-select: none;
  pointer-events: none;
  opacity: 0.06;
  font-family: 'Univers', sans-serif;
  font-weight: 700;
}


/* ─────────────────────────────────────────
   TESTIMONIAL — Stimmen aus der Verwaltung
   ───────────────────────────────────────── */

/* Section entry — orange side accent wipes down */
.t-side-accent {
  transform: scaleY(0);
  transition: transform 900ms cubic-bezier(0.2, 0.7, 0.2, 1) 200ms;
}
[data-in-view="true"] .t-side-accent { transform: scaleY(1); }

/* Frame entry — soft rise + scale */
.t-frame {
  opacity: 0;
  transform: translateY(28px) scale(0.98);
  transition: opacity 900ms cubic-bezier(0.2, 0.7, 0.2, 1),
              transform 900ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
[data-in-view="true"] .t-frame {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Hover-lift on arrow buttons */
.t-arrow:hover { background: #000; color: #fff; transform: translateY(-1px); }
.t-arrow:active { transform: translateY(0) scale(0.97); }

/* Counter flip when index changes */
@keyframes t-counter-flip {
  0%   { transform: translateY(-100%); opacity: 0; }
  60%  { transform: translateY(8%);    opacity: 1; }
  100% { transform: translateY(0);     opacity: 1; }
}
.t-counter-flip { animation: t-counter-flip 420ms cubic-bezier(0.2, 0.7, 0.2, 1) both; }

/* Per-character quote reveal — fade + slight rise, restarts on key change */
@keyframes t-quote-ch {
  from { opacity: 0; transform: translateY(14px); filter: blur(4px); }
  to   { opacity: 1; transform: translateY(0);    filter: blur(0); }
}
.t-quote-ch {
  opacity: 0;
  animation: t-quote-ch 600ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
  will-change: opacity, transform, filter;
}

/* Attribution: name slides up; role fades in slightly later */
@keyframes t-attr-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.t-attr  { animation: t-attr-in 520ms cubic-bezier(0.2, 0.7, 0.2, 1) 120ms both; }
.t-attr-2 { animation: t-attr-in 520ms cubic-bezier(0.2, 0.7, 0.2, 1) 200ms both; }

/* Org chip — pop-in on slide change */
@keyframes t-chip-in {
  0%   { opacity: 0; transform: translateY(8px) scale(0.94); }
  60%  { opacity: 1; transform: translateY(-2px) scale(1.02); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
.t-chip { animation: t-chip-in 540ms cubic-bezier(0.2, 0.7, 0.2, 1) 100ms both; }

/* Big quote-mark — entry animation */
[data-in-view="true"] blockquote.t-quote { /* nothing — reveal handled per-char */ }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .t-quote-ch,
  .t-attr,
  .t-attr-2,
  .t-chip,
  .t-counter-flip,
  .t-frame,
  .t-side-accent {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
