/* Landingpage der Ad Library – gleiches System wie das Tool ("Leuchttisch") */
@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-var.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
:root {
  --table: #f5f7f8; --sheet: #ffffff; --ink: #1f2226; --ink-2: #5e646c; --rule: #d9dee3;
  --marker: #d92b2b; --focus: #2f5bd6;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --table: #2a2e33; --sheet: #33383e; --ink: #eef0f2; --ink-2: #a7aeb6; --rule: #464c53; --marker: #ff6f61; --focus: #8aa6ff;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --table: #2a2e33; --sheet: #33383e; --ink: #eef0f2; --ink-2: #a7aeb6; --rule: #464c53; --marker: #ff6f61; --focus: #8aa6ff;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--table); color: var(--ink); font-family: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 17px; line-height: 1.6; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 900px) { .wrap { padding: 0 32px; } }
h1, h2, h3 { font-stretch: 118%; letter-spacing: -.02em; line-height: 1.1; }
h2 { font-size: clamp(28px, 3.4vw, 42px); font-weight: 800; margin: 0 0 14px; }
h3 { font-size: 22px; font-weight: 800; margin: 0 0 8px; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border: 1px solid var(--ink); border-radius: 6px;
  font-weight: 600; text-decoration: none; white-space: nowrap; background: transparent; color: var(--ink); }
.btn-ink { background: var(--ink); color: var(--table); }
.btn-big { min-height: 52px; padding: 0 22px; font-size: 17px; }

/* Kopf */
.bar { position: sticky; top: 0; z-index: 10; background: var(--table); border-bottom: 1px solid var(--rule); }
.bar-inner { display: flex; align-items: center; gap: 20px; min-height: 64px; }
.wordmark { text-decoration: none; font-weight: 800; font-stretch: 125%; font-size: 17px; line-height: 1.1; }
.wordmark span { display: block; font-weight: 400; font-stretch: 100%; font-size: 12px; color: var(--ink-2); }
.bar-nav { display: flex; gap: 22px; margin-left: auto; font-size: 15px; }
.bar-nav a { text-decoration: none; color: var(--ink-2); }
.bar-nav a:hover { color: var(--ink); }

/* Einstieg */
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; align-items: center; padding-top: 56px; padding-bottom: 64px; }
.hero h1 { margin: 0; font-size: clamp(33px, 5.4vw, 70px); font-weight: 800; font-stretch: 125%; line-height: .98; letter-spacing: -.035em; }
.lede { margin: 22px 0 0; font-size: 19px; color: var(--ink-2); max-width: 56ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.fine { margin: 12px 0 0; font-size: 14px; color: var(--ink-2); }

/* Kontaktabzug im Einstieg: vier Dias, eins eingekreist */
.sheet { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding: 14px; background: var(--sheet); border: 1px solid var(--rule); }
.sheet > img, .picked img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; background: var(--table); }
.sheet > :nth-child(odd) { transform: translateY(18px); }
.picked { margin: 0; position: relative; }
.ring { position: absolute; left: -12px; top: -12px; width: calc(100% + 24px); height: calc(100% + 24px); overflow: visible; pointer-events: none; }
.ring path { fill: none; stroke: var(--marker); stroke-width: 3.4; stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-dasharray: 3000; stroke-dashoffset: 3000;
  animation: draw 1.1s cubic-bezier(.3,.1,.2,1) .5s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .ring path { animation: none; stroke-dashoffset: 0; } }

/* Fließtext-Abschnitte */
.prose { padding-top: 56px; padding-bottom: 8px; }
.prose > * { max-width: 72ch; }
.prose p { margin: 0 0 14px; }
.prose h3 { margin-top: 26px; font-size: 20px; }
.steps { padding-left: 24px; display: grid; gap: 12px; }
.steps li::marker { color: var(--marker); font-weight: 800; }

/* Beispiele */
#beispiele { padding-top: 64px; }
.section-head { max-width: 72ch; margin-bottom: 28px; }
.section-head p { margin: 0; color: var(--ink-2); }
.examples { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.ex { display: grid; grid-template-columns: minmax(130px, 38%) minmax(0, 1fr); gap: 20px; background: var(--sheet); border: 1px solid var(--rule); padding: 16px; scroll-margin-top: 80px; }
.ex-img { width: 100%; aspect-ratio: 9 / 16; object-fit: contain; background: var(--table); align-self: start; }
.ex-kind { margin: 0 0 4px; font-size: 13px; font-weight: 600; color: var(--marker); }
.ex-body p { margin: 0 0 10px; font-size: 16px; }
.ex-plan { color: var(--ink-2); }
.ex-plan b { color: var(--ink); }
.ex-link { font-weight: 600; text-underline-offset: 3px; }
.band { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid var(--rule); padding-top: 22px; }
.band p { margin: 0; max-width: 60ch; }

/* Über */
.about { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 22px; margin-top: 56px; padding-top: 32px; padding-bottom: 32px;
  border-top: 1px solid var(--rule); }
.about > div { max-width: 72ch; }
.about p { margin: 0; }

.foot { border-top: 1px solid var(--rule); margin-top: 32px; padding-top: 22px; padding-bottom: 48px; font-size: 14px; color: var(--ink-2); }
.foot p { margin: 4px 0; max-width: 80ch; }
.foot a { margin-right: 16px; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 36px; padding-top: 32px; }
  .examples { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .bar-nav { display: none; }
  .bar-inner .btn { margin-left: auto; }
  .lede { font-size: 17px; }
  .ex { grid-template-columns: 110px minmax(0, 1fr); gap: 14px; padding: 12px; }
  .ex-body p { font-size: 15px; }
  .sheet { gap: 8px; padding: 10px; }
}

/* Rechtstexte */
.legal { padding-top: 40px; padding-bottom: 40px; }
.legal h1 { font-size: clamp(32px, 4vw, 48px); font-weight: 800; font-stretch: 122%; margin: 0 0 12px; }
.legal h2 { font-size: 20px; margin: 28px 0 8px; }
.foot a { color: inherit; }
.legal h1, .legal h2 { -webkit-hyphens: auto; hyphens: auto; overflow-wrap: break-word; }

/* Black-Friday-Hinweis (bis 31.12.) */
.bf-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; background: #16171a; color: #f4f5f6; padding: 26px 28px; border-radius: 4px; }
.bf-band h2 { margin: 2px 0 8px; color: #f4f5f6; }
.bf-band p { margin: 0; color: #c9ccd1; max-width: 60ch; }
.bf-kicker { font-size: 13px; font-weight: 700; color: #ff6f61 !important; }
.bf-cta { background: #d92b2b; border-color: #d92b2b; color: #fff; }

/* Kundenlogin */
.login { margin-top: 26px; max-width: 460px; padding: 16px 18px 18px; background: var(--sheet); border: 1px solid var(--rule); border-radius: 8px; scroll-margin-top: 90px; }
.login label { display: block; font-weight: 700; font-size: 15px; margin-bottom: 10px; }
.login-row { display: flex; gap: 8px; }
.login input { flex: 1; min-width: 0; min-height: 44px; padding: 0 12px; border: 1px solid var(--rule); border-radius: 6px; background: var(--table); color: var(--ink); font: inherit; font-size: 16px; }
.login input:focus { outline: 2px solid var(--focus); outline-offset: 1px; border-color: transparent; }
.login:target, .login:focus-within { border-color: var(--ink); }
.legal .login { margin: 22px 0 8px; }
