/* ==========================================================================
   P-Informatik — Landingpage
   Haltung: Apple-Marketingseite, aber mit Kontrast. Dunkler Hero, helle
   Abschnitte, ein dunkles Statement-Band. SF Pro über die Systemschrift.
   Aufbau: 1) Tokens  2) Basis  3) Bausteine  4) Sektionen  5) Responsive
   ========================================================================== */

/* 1) Tokens ---------------------------------------------------------------- */
:root {
  --paper:      #ffffff;
  --paper-2:    #f5f5f7;   /* das Apple-Grau */
  --ink:        #1d1d1f;   /* Apples Textschwarz, nie #000 */
  --ink-2:      #6e6e73;   /* Apples Sekundärgrau */
  --ink-3:      #86868b;
  --rule:       #d2d2d7;
  --rule-soft:  #e8e8ed;

  /* Auf Dunkel gelten andere Werte — Apple hält es genauso */
  --dark:       #000000;
  --dark-2:     #12100e;
  --on-dark:    #f5f5f7;
  --on-dark-2:  #a1a1a6;

  --blue:       #0071e3;   /* Akzent auf Hell */
  --blue-dark:  #0058b8;
  --blue-light: #2997ff;   /* Akzent auf Dunkel — heller, sonst matscht es */

  --radius:     20px;
  --radius-lg:  28px;
  --wrap:       1000px;
  --wrap-wide:  1180px;
  --gutter:     32px;
  --head-h:     52px;

  /* Auf Apple-Geräten ist das SF Pro — genau das Ziel */
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
          "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;

  --ease: cubic-bezier(.28, .11, .32, 1);

  /* ──────────────────────────────────────────────────────────────────────
     BILDER
     In img/ liegen zwei Platzhalter. Zum Austauschen einfach die eigenen
     Bilder unter demselben Namen dorthin speichern — hier ist nichts zu
     ändern. Details stehen in img/README.md.
     Ganz ohne Bild: Wert auf "none" setzen, dann trägt der Verlauf allein.
     ────────────────────────────────────────────────────────────────────── */
  --hero-photo: url("../img/hero.jpg");
  --band-photo: url("../img/band.jpg");

  /* Deckkraft der Bildebenen — höher heißt Bild dominanter */
  --hero-photo-opacity: .5;
  --band-photo-opacity: .45;
}

/* 2) Basis ----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--head-h); }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  font-weight: 400;
  letter-spacing: -.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -.025em; line-height: 1.07; }
p, ul, ol, dl, dd, dt { margin: 0; }
ul, ol { list-style: none; padding: 0; }

a { color: inherit; text-decoration: none; }

[hidden] { display: none !important; }

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

::selection { background: rgba(0, 113, 227, .2); }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--wide { max-width: var(--wrap-wide); }

/* Einblenden: kurz und weich */
.rise {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .85s var(--ease), transform .85s var(--ease);
  transition-delay: calc(var(--d, 0) * 80ms);
}
.rise.is-visible { opacity: 1; transform: none; }

.line { display: block; overflow: hidden; }
.line > span {
  display: block;
  transform: translateY(105%);
  transition: transform 1.05s var(--ease);
  transition-delay: calc(var(--d, 0) * 110ms);
}
.line.is-visible > span { transform: none; }

/* Feines Korn — nimmt der Fläche das Sterile, ohne sichtbar zu sein */
.grain::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .055;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* 3) Bausteine ------------------------------------------------------------- */
.eyebrow {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--blue);
}
.on-dark .eyebrow { color: var(--blue-light); }

.lead {
  font-size: clamp(19px, 2vw, 23px);
  line-height: 1.42;
  color: var(--ink-2);
  letter-spacing: -.015em;
}
.on-dark .lead { color: var(--on-dark-2); }

/* Apple-Pille */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border: 0;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font: inherit;
  font-size: 17px;
  letter-spacing: -.01em;
  cursor: pointer;
  white-space: nowrap;
  transition: background .25s var(--ease), transform .25s var(--ease);
}
.btn:hover { background: var(--blue-dark); }
.btn:active { transform: scale(.97); }
.btn--wide { width: 100%; padding: 15px 26px; }
.on-dark .btn { background: var(--blue-light); color: #000; }
.on-dark .btn:hover { background: #47a9ff; }

/* Blauer Textlink mit Chevron */
.arrow {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--blue);
  font-size: 17px;
  letter-spacing: -.01em;
}
.arrow::after { content: "›"; font-size: 21px; line-height: 1; transition: transform .25s var(--ease); }
.arrow:hover { text-decoration: underline; }
.arrow:hover::after { transform: translateX(3px); }
.on-dark .arrow { color: var(--blue-light); }

/* Karte */
.card {
  padding: 34px 32px 36px;
  border-radius: var(--radius);
  background: var(--paper);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.section--white .card { background: var(--paper-2); }
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -22px rgba(0, 0, 0, .28); }
.card h3 { font-size: 21px; margin-bottom: 8px; }
.card p { color: var(--ink-2); font-size: 16px; }

/* Kopfzeile: Apples dunkle Leiste, immer dunkel wie auf apple.com */
.head {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--head-h);
  background: rgba(0, 0, 0, .8);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  color: var(--on-dark);
}
.head__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--head-h);
  max-width: var(--wrap-wide);
}

.wordmark { font-size: 15px; font-weight: 600; letter-spacing: -.015em; }

.head__nav { display: flex; gap: 30px; font-size: 13px; }
.head__nav a { opacity: .82; transition: opacity .2s; }
.head__nav a:hover { opacity: 1; }

.head__toggle {
  display: none;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 13px;
  color: inherit;
  cursor: pointer;
}

.menu {
  position: fixed;
  inset: var(--head-h) 0 auto 0;
  z-index: 49;
  background: rgba(0, 0, 0, .94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: var(--on-dark);
  padding-block: 6px 22px;
}
.menu .wrap { display: flex; flex-direction: column; max-width: var(--wrap-wide); }
.menu a {
  padding: 15px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  font-size: 19px;
  font-weight: 500;
}
.menu a:last-child { border-bottom: 0; }

/* 4) Sektionen ------------------------------------------------------------- */

.section { padding: 110px 0; }
.section--grey  { background: var(--paper-2); }
.section--white { background: var(--paper); }

.head-block { text-align: center; max-width: 760px; margin: 0 auto 70px; }
.head-block h2 { font-size: clamp(32px, 4.4vw, 52px); margin-bottom: 18px; }
.head-block .lead { max-width: 620px; margin-inline: auto; }

/* ── Hero: schwarz, ganzflächig, große Schrift ───────────────────────────── */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100svh;
  padding: calc(var(--head-h) + 80px) 0 90px;
  background: var(--dark);
  color: var(--on-dark);
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}

/* Bildebene — greift, sobald --hero-photo gesetzt ist */
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: var(--hero-photo);
  background-size: cover;
  background-position: center 30%;
  opacity: var(--hero-photo-opacity);
}
/* Verlauf darüber, damit die Schrift immer lesbar bleibt */
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(120% 90% at 50% 8%, rgba(41, 151, 255, .22), transparent 58%),
    radial-gradient(90% 70% at 82% 88%, rgba(150, 90, 255, .16), transparent 62%),
    linear-gradient(180deg, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, .78) 55%, #000 100%);
}

.hero__inner { position: relative; z-index: 1; }
.hero .eyebrow { margin-bottom: 16px; }

.hero__title {
  font-size: clamp(44px, 8.6vw, 112px);
  font-weight: 600;
  letter-spacing: -.035em;
  line-height: 1.02;
  margin-bottom: 26px;
}
/* Zweite Zeile im Akzent — ein einziges farbiges Wortbild */
.hero__title .accent {
  background: linear-gradient(96deg, #2997ff 8%, #a78bfa 92%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lead { max-width: 640px; margin: 0 auto 38px; }
.hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

/* Die Konstruktion sitzt unter dem Text — der Platz des Produktfotos */
.stage {
  position: relative;
  z-index: 1;
  width: min(500px, 70vw);
  margin: 50px auto 0;
  aspect-ratio: 1;
}
.construct { width: 100%; height: 100%; }
.construct__svg { width: 100%; height: 100%; display: block; }

.construct__rings circle {
  stroke: rgba(255, 255, 255, .16);
  stroke-width: 1;
  stroke-dasharray: var(--len);
  stroke-dashoffset: var(--len);
  animation: draw 2.2s var(--ease) forwards;
}
.construct__rings circle:nth-child(2) { animation-delay: .1s; }
.construct__rings circle:nth-child(3) { animation-delay: .2s; }
.construct__rings circle:nth-child(4) { animation-delay: .3s; }
.construct__rings circle:nth-child(5) { animation-delay: .4s; }

.construct__hand {
  transform-box: view-box;
  transform-origin: 300px 300px;
  animation: spin 70s linear infinite;
}
/* Der Bogen leuchtet — das ist der Pep im Hero */
.construct__arc {
  stroke: var(--blue-light);
  stroke-width: 10;
  stroke-linecap: round;
  stroke-dasharray: 167;
  stroke-dashoffset: 167;
  filter: drop-shadow(0 0 14px rgba(41, 151, 255, .75));
  animation: draw 1.6s var(--ease) 1s forwards;
}
.construct__dot { fill: #fff; opacity: 0; animation: appear 1s ease 1.4s forwards; }

@keyframes draw   { to { stroke-dashoffset: 0; } }
@keyframes appear { to { opacity: 1; } }
@keyframes spin   { to { transform: rotate(360deg); } }

/* ── Statement-Band: dunkel, ganzflächig, bricht die hellen Abschnitte ──── */
.band {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 74svh;
  padding: 110px 0;
  background: var(--dark-2);
  color: var(--on-dark);
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}
.band__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: var(--band-photo);
  background-size: cover;
  background-position: center;
  opacity: var(--band-photo-opacity);
}
.band__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(80% 70% at 30% 25%, rgba(255, 149, 0, .14), transparent 60%),
    linear-gradient(180deg, rgba(0, 0, 0, .62), rgba(0, 0, 0, .8));
}
.band__inner { position: relative; z-index: 1; max-width: 860px; }
.band h2 {
  font-size: clamp(32px, 5.4vw, 68px);
  letter-spacing: -.03em;
  margin-bottom: 22px;
}
.band .lead { max-width: 620px; margin-inline: auto; }

/* Skalde */
.skalde { text-align: center; }
.skalde .eyebrow { margin-bottom: 14px; }
.skalde h2 { font-size: clamp(40px, 6vw, 72px); letter-spacing: -.03em; margin-bottom: 20px; }
.skalde__lead { max-width: 620px; margin: 0 auto 46px; }

.specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 700px;
  margin: 0 auto 42px;
  padding: 32px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.specs dt { font-size: 21px; font-weight: 600; letter-spacing: -.02em; margin-bottom: 4px; }
.specs dd { font-size: 14px; color: var(--ink-2); }

/* Plattformen */
.platforms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.platform {
  text-align: center;
  padding: 44px 28px 46px;
  border-radius: var(--radius-lg);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.section--white .platform { background: var(--paper-2); }
.platform:hover { transform: translateY(-5px); box-shadow: 0 22px 46px -26px rgba(0, 0, 0, .3); }
.platform__icon {
  display: grid;
  place-items: center;
  height: 60px;
  margin-bottom: 22px;
  color: var(--ink);
}
.platform__icon svg { height: 100%; width: auto; }
.platform h3 { font-size: 24px; margin-bottom: 8px; }
.platform p { color: var(--ink-2); font-size: 16px; }

/* Leistungen und Arbeitsweise */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

/* Kontakt */
.contact { max-width: 560px; margin: 0 auto; }
.form { display: grid; gap: 18px; }
.field { display: grid; }
.field label { font-size: 14px; color: var(--ink-2); margin-bottom: 7px; }
.field input,
.field textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 17px;
  resize: vertical;
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(0, 113, 227, .16);
}
.field.has-error input,
.field.has-error textarea { border-color: #d70015; }
.field__error { margin-top: 7px; font-size: 13px; color: #d70015; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form__note { font-size: 14px; color: var(--ink-2); text-align: center; min-height: 1.2em; }

.contact__foot {
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid var(--rule);
  text-align: center;
  font-size: 14px;
  color: var(--ink-2);
}
.contact__foot a { color: var(--blue); }
.contact__foot a:hover { text-decoration: underline; }

/* Fußzeile */
.foot { background: var(--paper-2); padding: 26px 0 34px; font-size: 12px; color: var(--ink-2); }
.foot__inner { max-width: var(--wrap-wide); }
.foot__top { padding-bottom: 14px; border-bottom: 1px solid var(--rule); }
.foot__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  padding-top: 14px;
}
.foot__links { display: flex; gap: 22px; }
.foot__links a:hover { text-decoration: underline; }

/* 5) Responsive & Präferenzen ---------------------------------------------- */
@media (max-width: 860px) {
  :root { --gutter: 22px; }
  .head__nav { display: none; }
  .head__toggle { display: block; }
  .section { padding: 76px 0; }
  .hero { padding: calc(var(--head-h) + 56px) 0 64px; }
  .stage { margin-top: 46px; width: min(440px, 84vw); }
  .band { min-height: 62svh; padding: 84px 0; }
  .head-block { margin-bottom: 48px; }
  .platforms { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .specs { grid-template-columns: 1fr; gap: 24px; padding: 26px 0; }
  .hero__actions { gap: 20px; }
}

@media (max-width: 480px) {
  .hero__actions { flex-direction: column; gap: 18px; }
  .hero__actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .rise { opacity: 1; transform: none; }
  .line > span { transform: none; }
  .construct__rings circle, .construct__arc { stroke-dashoffset: 0; }
  .construct__dot { opacity: 1; }
  .card:hover, .platform:hover { transform: none; }
}
