/* Penvela – Vorstellungsseite
   Farben und Schriften wie auf unwrap.fun: warmes Off-White auf fast Schwarz,
   Familjen Grotesk für Text, Martian Mono für kleine Beschriftungen. */

:root {
  --paper: #EDEDE9;        /* Seitenhintergrund (hell) */
  --surface: #F7F7F4;      /* Kacheln, Felder */
  --ink: #17181B;
  --ink-soft: #6B6E75;
  --ink-faint: #9A9CA1;
  --line: #D8D8D2;
  --line-soft: #E4E4DE;
  --btn-bg: #17181B;
  --btn-fg: #F7F7F4;
  --accent: #1F3BD1;       /* Blau */
  --shadow: rgba(23, 24, 27, 0.14);
  --sheet: #f8f7e9;        /* GoodNotes-Papier */

  --f-ui: "Familjen Grotesk", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --f-hand: "Patrick Hand", cursive;

  --radius: 14px;
  --wrap: 1120px;
}

/* Dunkel, wenn das Gerät dunkel eingestellt ist */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #121316;
    --surface: #1B1C20;
    --ink: #ECEBE6;
    --ink-soft: #9B9EA6;
    --ink-faint: #6E7178;
    --line: #2E3036;
    --line-soft: #26282D;
    --btn-bg: #ECEBE6;
    --btn-fg: #121316;
    --accent: #2A47E4;
    --shadow: rgba(0, 0, 0, 0.5);
  }
}

:root[data-theme="dark"] {
  --paper: #121316;
  --surface: #1B1C20;
  --ink: #ECEBE6;
  --ink-soft: #9B9EA6;
  --ink-faint: #6E7178;
  --line: #2E3036;
  --line-soft: #26282D;
  --btn-bg: #ECEBE6;
  --btn-fg: #121316;
  --accent: #2A47E4;
  --shadow: rgba(0, 0, 0, 0.5);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.6 var(--f-ui);
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

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

h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.035em; line-height: 1.05; }

h2 { font-size: clamp(32px, 5.6vw, 58px); }
h2.center { text-align: center; margin-bottom: 52px; }

.muted { color: var(--ink-soft); font-weight: 400; }

/* ----------------------------------------------------- Scroll-Effekt */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s cubic-bezier(0.2, 0.7, 0.2, 1),
              transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.07s; }
.reveal[data-delay="2"] { transition-delay: 0.14s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* -------------------------------------------------------- Kopfzeile */

.top {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px clamp(20px, 4vw, 44px);
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
}

.logo {
  display: flex;
  align-items: baseline;   /* Stift steht auf der Schriftlinie */
  gap: 11px;
  font-size: clamp(21px, 2.8vw, 26px);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--ink);
  text-decoration: none;
}

/* Stift neben dem Namen */
.logo-stift {
  width: 0.78em;
  height: 0.78em;
  margin-left: 3px;
}

/* Im hellen Modus wird der weiße Stift dunkel eingefärbt */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .logo-stift { filter: invert(1); }
}
:root[data-theme="light"] .logo-stift { filter: invert(1); }

.top-nav { display: flex; align-items: center; }

/* ----------------------------------------------------------- Knöpfe */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  text-decoration: none;
  font-weight: 600;
  border-radius: 999px;
  transition: transform 0.15s, opacity 0.15s;
}
.btn:hover { transform: translateY(-1px); opacity: 0.88; }

.btn-small { padding: 11px 22px; font-size: 15px; }
.btn-big { padding: 17px 40px; font-size: 18px; }
.apple { width: 16px; height: 19px; }

/* -------------------------------------------------------------- Hero */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100svh - 306px);
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 22px 54px;
  text-align: center;
}

.hero h1 { font-size: clamp(42px, 8.4vw, 86px); letter-spacing: -0.045em; }

.lead {
  max-width: 640px;
  margin: 26px auto 38px;
  font-size: clamp(17px, 2.4vw, 21px);
  color: var(--ink-soft);
}


/* ----------------------------------------------------- Vorher/Nachher */

.demo-section { padding: 8px 22px 100px; }

.demo {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 5vw, 70px);
}

.demo figure { margin: 0; flex: 1 1 0; max-width: 420px; }
/* Beschriftung über dem iPad, gleiche Stärke wie bei "Wie es funktioniert" */
.demo figcaption {
  margin-bottom: 22px;
  font-size: clamp(20px, 1.9vw, 26px);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.02em;
  text-align: center;
  color: var(--ink);
}
.demo-arrow { color: var(--ink-faint); flex: none; }

/* iPad-Rahmen. Die Bildschirmfläche im Bild ist durchsichtig, deshalb liegt
   der Inhalt dahinter. Werte aus dem Bild gemessen (792 x 1024 px). */
.ipad {
  position: relative;
  aspect-ratio: 792 / 1024;
  filter: drop-shadow(0 22px 42px var(--shadow));
}

.ipad-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.ipad .screen {
  position: absolute;
  left: 5.177%;
  top: 3.809%;
  width: 89.646%;
  height: 92.383%;
  border-radius: 2.2% / 1.7%;
  overflow: hidden;
  background: var(--sheet);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ipad .screen[data-hint]::after {
  content: attr(data-hint);
  font-size: 13px;
  color: #a9a79a;
  padding: 12px;
  text-align: center;
}

.ipad .screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;        /* Screenshots haben genau das Bildschirmformat */
  display: block;
}

/* Platzhalter für Bilder – später durch <img> ersetzen */
.shot {
  position: relative;
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 18px 40px var(--shadow);
}
.shot-tall { aspect-ratio: 3 / 4; }
.shot[data-hint]::after {
  content: attr(data-hint);
  font-size: 13px;
  color: #a9a79a;
  padding: 12px;
  text-align: center;
}
.shot img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------------------------------------------------------- Abschnitt */

.band {
  padding: 92px 0 100px;
  background: var(--surface);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

/* ------------------------------------------------------------ Kacheln */

.cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.card {
  flex: 0 1 calc((100% - 32px) / 3);
  min-width: 260px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px 36px;
  min-height: 230px;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s, border-color 0.18s;
}
.card:hover { transform: translateY(-3px); border-color: var(--ink-faint); }

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.ico {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 9px;
  background: color-mix(in srgb, var(--ink) 10%, transparent);
  color: var(--ink);
}
.ico svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card h3 { font-size: 21px; font-weight: 700; letter-spacing: -0.025em; }
.card p { margin: 0; color: var(--ink-soft); font-size: 16.5px; }

/* ---------------------------------------------- Wie es funktioniert */

.steps-section { padding: 100px 22px; }

.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  align-items: end;
  column-gap: clamp(28px, 4vw, 54px);
  row-gap: 26px;
  margin: 0;
  padding: 0;
}

/* Jedes <li> reicht seine beiden Teile direkt ins Raster durch, damit
   Texte und Blätter jeweils eine gemeinsame Zeile bilden. */
.steps li { display: contents; }
.steps p { grid-row: 1; }       /* alle Texte in die obere Zeile */
.steps .ipad { grid-row: 2; }   /* alle Blätter in die untere */

.steps p {
  margin: 0 auto;
  max-width: 22ch;
  text-align: center;
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.steps b { font-weight: 600; }


/* ----------------------------------------------------------------- FAQ */

.faq-section { max-width: 780px; padding: 0 22px 104px; }

.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 9px;
  overflow: hidden;
  transition: border-color 0.18s;
}
.faq details[open] { border-color: var(--ink-faint); }

.faq summary {
  padding: 18px 21px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  font-size: 20px;
  font-weight: 400;
  color: var(--ink-faint);
  line-height: 1;
}
.faq details[open] summary::after { content: "−"; }

.faq p { margin: 0; padding: 0 21px 20px; color: var(--ink-soft); }

/* ------------------------------------------------------------ Fußzeile */

footer {
  padding: 0 16px;
  font-size: 18.5px;
}

.foot-panel {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: 30px 30px 0 0;
  padding: 64px 0 30px;
}

.foot {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 32px;
}

.foot-brand strong { font-size: 26px; font-weight: 700; letter-spacing: -0.03em; }
.foot-brand p { margin: 11px 0 0; color: var(--ink-soft); }

footer h4 {
  margin: 0 0 15px;
  font-size: 18.5px;
  font-weight: 600;
  color: var(--ink);
}

footer nav { display: flex; flex-direction: column; gap: 11px; }

footer a { color: var(--ink-soft); text-decoration: none; }
footer a:hover { color: var(--ink); }

/* Kasten wie vorher, aber um den eigenen Innenabstand nach links versetzt,
   damit "Deutsch" genau unter "Sprache" und den Links daneben beginnt. */
.foot-contact select {
  font: inherit;
  appearance: none;
  padding: 13px 42px 13px 16px;
  margin: 0 0 24px calc(-16px - 1px);   /* Innenabstand plus Rahmen */
  border: 1px solid var(--line);
  border-radius: 12px;
  background-color: var(--paper);
  background-image:
    linear-gradient(45deg, transparent 50%, currentColor 50%),
    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 24px) 55%, calc(100% - 18px) 55%;
  background-size: 7px 7px;
  background-repeat: no-repeat;
  color: var(--ink);
  cursor: pointer;
  width: 100%;
  max-width: 210px;
}
.foot-contact select:hover { border-color: var(--ink-faint); }

.copy {
  text-align: center;
  margin: 48px 0 0;
  font-size: 15px;
  color: var(--ink-faint);
}

/* --------------------------------------------------------------- Schmal */

@media (max-width: 900px) {
  /* Schmal: wieder je Schritt ein Block, Text über dem Blatt. */
  .steps { grid-template-columns: 1fr; grid-template-rows: none; row-gap: 48px; }
  .steps li { display: block; }
  .steps p, .steps .ipad { grid-row: auto; }
  .steps .ipad { margin-top: 18px; }
  .foot { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  .card { flex-basis: 100%; min-width: 0; }
  .band { padding: 70px 0 76px; }
  .steps-section { padding: 70px 22px; }
  .faq-section { padding-bottom: 76px; }
  .hero { padding: 26px 22px 48px; min-height: calc(100svh - 286px); }
  .demo { flex-direction: column; }
  .demo figure { max-width: 100%; width: 100%; }
  .demo-arrow { transform: rotate(90deg); }
  .foot { grid-template-columns: 1fr; gap: 28px; }
}

/* ---------------------------------------------------- Rechtsseiten */
/* Impressum, Datenschutz, AGB: reiner Fließtext in Lesebreite. Keine
   eigene Gestaltung – Abstände und Farben kommen von oben, damit die
   Seiten nicht aussehen wie von woanders. */

.recht {
  max-width: 760px;
  margin: 0 auto;
  padding: 120px 22px 90px;
}

.recht h1 {
  font-size: clamp(36px, 6vw, 56px);
  letter-spacing: -0.04em;
  margin-bottom: 14px;
}

.recht .stand { color: var(--ink-faint); margin: 0 0 56px; }

.recht h2 {
  font-size: 23px;
  letter-spacing: -0.02em;
  margin: 48px 0 12px;
}

.recht p, .recht li { color: var(--ink-soft); font-size: 17px; }
.recht ul { padding-left: 22px; margin: 12px 0; }
.recht li { margin: 7px 0; }
.recht a { color: var(--ink); }

/* Anschrift und Kontakt stehen ohne Aufzählungspunkte untereinander. */
.recht .block { margin: 12px 0; color: var(--ink-soft); font-size: 17px; }
.recht .block span { display: block; }
