:root {
  --page: #f5f6f2;
  --surface: #ffffff;
  --surface-soft: #eef3ef;
  --ink: #15202b;
  --text: #2d3a45;
  --muted: #65717d;
  --line: #d8ded8;
  --line-strong: #bac7c0;
  --teal: #0f766e;
  --teal-dark: #0c3f3b;
  --blue: #255f8f;
  --yellow: #d59b22;
  --red: #8a3741;
  --shadow: 0 16px 36px rgba(21, 32, 43, 0.1);
  --max: 1160px;
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--page);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

h1,
h2,
h3,
p,
li,
a,
summary {
  overflow-wrap: anywhere;
  hyphens: auto;
}

a:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(15, 118, 110, 0.36);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 60;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 0.7rem 0.9rem;
  font-weight: 800;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(216, 222, 216, 0.8);
  background: rgba(245, 246, 242, 0.92);
  backdrop-filter: blur(12px);
}

.site-header,
.hero,
.article-flow,
.article-section,
.section,
.app-view-section,
.split-section,
.archive-section,
.trust-section,
.cta-section,
.site-footer {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  min-height: 4.6rem;
  padding: 0.85rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.68rem;
  text-decoration: none;
}

.brand-logo {
  width: 2.45rem;
  height: 2.45rem;
  display: block;
  object-fit: contain;
  flex: 0 0 auto;
}

.brand strong,
.site-footer p {
  display: block;
  font-size: 1rem;
  line-height: 1.08;
}

.brand small {
  display: block;
  margin-top: 0.13rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
}

.nav-links,
.site-footer nav {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.nav-links a,
.site-footer a {
  color: #344451;
  font-size: 0.9rem;
  font-weight: 760;
  text-decoration: none;
}

.nav-links a:hover,
.site-footer a:hover {
  text-decoration: underline;
  text-decoration-thickness: 0.12em;
  text-underline-offset: 0.2em;
}

.nav-cta {
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--ink);
  color: #ffffff !important;
  padding: 0.55rem 0.78rem;
}

.language-menu {
  position: relative;
  z-index: 45;
}

.language-menu summary {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  min-height: 2.35rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 0.48rem 0.62rem;
  color: #344451;
  font-size: 0.86rem;
  font-weight: 850;
  cursor: pointer;
  list-style: none;
}

.language-menu-icon {
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
}

.language-menu-caret {
  color: #5d6b76;
  font-size: 0.72rem;
  line-height: 1;
}

.language-menu summary::-webkit-details-marker {
  display: none;
}

.language-menu-list {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  width: min(18rem, calc(100vw - 2rem));
  max-height: min(28rem, 70vh);
  overflow: auto;
  display: grid;
  gap: 0.12rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.98);
  padding: 0.45rem;
  box-shadow: var(--shadow);
}

[dir="rtl"] .language-menu-list {
  right: auto;
  left: 0;
}

.language-menu-list a {
  border-radius: 0.38rem;
  padding: 0.52rem 0.58rem;
}

.language-menu-list a:hover {
  background: var(--surface-soft);
  text-decoration: none;
}

main {
  overflow: hidden;
}

section[id],
h2[id] {
  scroll-margin-top: 5.5rem;
}

.hero {
  padding: 3.4rem 0 2.7rem;
  display: grid;
  grid-template-columns: minmax(27rem, 1fr) minmax(17rem, 23rem);
  gap: 2rem;
  align-items: center;
}

.eyebrow {
  margin: 0 0 0.65rem;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 1rem;
  max-width: 42rem;
  font-size: 3.55rem;
  line-height: 1.04;
  letter-spacing: 0;
}

.hero-lead {
  max-width: 40rem;
  margin: 0;
  color: var(--text);
  font-size: 1.1rem;
  line-height: 1.62;
}

.hero-actions {
  margin-top: 1.45rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  border-radius: var(--radius);
  padding: 0.78rem 1rem;
  font-weight: 900;
  line-height: 1.1;
  text-decoration: none;
}

.button-primary {
  background: var(--ink);
  color: #ffffff;
  box-shadow: 0 12px 26px rgba(21, 32, 43, 0.18);
}

.button-primary:hover {
  background: var(--teal-dark);
}

.button-secondary {
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
}

.store-badge-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  text-decoration: none;
}

.app-store-badge {
  width: 9.8rem;
  height: auto;
}

.trust-row {
  margin: 1.4rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 760;
}

.trust-row li {
  position: relative;
  padding-left: 1.1rem;
}

.trust-row li::before,
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.58em;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: var(--teal);
}

.hero-visual {
  margin: 0;
}

.app-store-showcase {
  margin: 0;
  width: 100%;
  max-width: 23rem;
  justify-self: end;
}

.app-store-shots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  align-items: end;
  padding: 0.65rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.app-store-shots img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0.85rem;
  box-shadow: 0 0.8rem 1.5rem rgba(19, 35, 49, 0.13);
}

.app-store-shots img:not(.is-primary) {
  transform: translateY(0.45rem);
}

.hero-visual img,
.media-frame,
.wide-image {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero-visual figcaption,
.app-store-showcase figcaption {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.4;
}

.article-flow {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 3.4rem 0;
}

.article-section {
  padding: 3.2rem 0;
  border-top: 1px solid var(--line);
}

.article-section-compact {
  padding-top: 2.7rem;
}

.section-heading {
  max-width: 46rem;
}

.article-copy {
  max-width: 42rem;
}

.section-heading h2,
.app-view-heading h2,
.article-copy h2,
.split-copy h2,
.cta-section h2 {
  margin-bottom: 0;
  font-size: 2.45rem;
  line-height: 1.08;
  letter-spacing: 0;
}

.section-heading p:not(.eyebrow),
.app-view-heading p:not(.eyebrow),
.article-copy p:not(.eyebrow),
.split-copy p,
.cta-section p {
  margin: 0.95rem 0 0;
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.62;
}

.article-note {
  border-left: 4px solid var(--teal);
  padding-left: 1rem;
  color: var(--ink) !important;
  font-weight: 740;
}

.section {
  padding: 3rem 0;
}

.app-view-section {
  padding: 3.35rem 0;
  border-top: 1px solid var(--line);
}

.app-view-heading {
  max-width: 48rem;
  margin-bottom: 1.45rem;
}

.workflow-rail {
  margin: 0;
  padding: 0.2rem 0 1.35rem;
  list-style: none;
  display: flex;
  gap: 0.78rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.workflow-card {
  position: relative;
  flex: 0 0 13.6rem;
  overflow: hidden;
  aspect-ratio: 5 / 8;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: inherit;
  box-shadow: 0 0.45rem 1.1rem rgba(21, 32, 43, 0.06);
  transform: translateY(0) rotateX(0) rotateY(0);
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.workflow-card-problem {
  flex-basis: 19rem;
}

.workflow-card::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  height: 62%;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(21, 32, 43, 0) 0%,
    rgba(21, 32, 43, 0.54) 54%,
    rgba(21, 32, 43, 0.86) 100%
  );
}

.workflow-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  background: var(--surface-soft);
}

.workflow-card-problem img {
  object-position: center 52%;
}

.workflow-copy {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 3;
  padding: 0.82rem;
}

.workflow-copy span {
  display: block;
  margin-bottom: 0.28rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
}

.workflow-copy h3 {
  margin: 0;
  color: #ffffff;
  font-size: 0.98rem;
  line-height: 1.18;
  text-shadow: 0 0.12rem 0.5rem rgba(0, 0, 0, 0.45);
}

.workflow-copy p {
  margin: 0.36rem 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.86rem;
  font-weight: 680;
  line-height: 1.42;
  opacity: 0.86;
  text-shadow: 0 0.1rem 0.45rem rgba(0, 0, 0, 0.42);
  transition: opacity 180ms ease;
}

.workflow-card:hover {
  border-color: var(--line-strong);
  box-shadow: 0 0.9rem 1.7rem rgba(21, 32, 43, 0.12);
  transform: translateY(-0.24rem) rotateX(1deg) rotateY(-1deg);
}

.workflow-card:hover p {
  opacity: 1;
}

.workflow-proof {
  margin-top: 0.7rem;
  padding: 1rem;
  display: grid;
  grid-template-columns: minmax(14rem, 0.55fr) minmax(0, 1fr);
  gap: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.workflow-proof h3 {
  margin: 0;
  font-size: 1.32rem;
  line-height: 1.16;
}

.workflow-proof ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.58rem;
}

.workflow-proof li {
  color: var(--text);
  font-size: 0.96rem;
  line-height: 1.45;
}

.article-steps {
  margin: 1.4rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.9rem;
  counter-reset: steps;
}

.article-steps li {
  counter-increment: steps;
  position: relative;
  padding-left: 3rem;
  color: var(--text);
  font-size: 1.02rem;
  line-height: 1.58;
}

.article-steps li::before {
  content: counter(steps);
  position: absolute;
  left: 0;
  top: 0.1rem;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--teal-dark);
  color: #ffffff;
  font-size: 0.86rem;
  font-weight: 900;
}

.split-section {
  padding: 2.8rem 0;
  display: grid;
  grid-template-columns: minmax(18rem, 0.76fr) minmax(0, 1fr);
  gap: 1.7rem;
  align-items: center;
  border-top: 1px solid var(--line);
}

.split-section-reverse {
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.76fr);
}

.split-section-reverse .split-copy {
  order: 2;
}

.check-list {
  margin: 1.05rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.58rem;
}

.check-list li {
  position: relative;
  padding-left: 1.1rem;
  color: var(--text);
  font-weight: 740;
  line-height: 1.42;
}

.article-points,
.trust-notes {
  margin-top: 1.2rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.article-points p,
.trust-notes p {
  margin: 0;
  padding: 0.82rem 0;
  color: var(--text);
  line-height: 1.58;
}

.article-points p + p,
.trust-notes p + p {
  border-top: 1px solid var(--line);
}

.article-figure {
  margin: 1.4rem 0 0;
  max-width: 58rem;
}

.article-figure figcaption {
  margin-top: 0.65rem;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.45;
}

.note-text {
  border-left: 4px solid var(--yellow);
  padding-left: 0.9rem;
  color: var(--text) !important;
  font-weight: 740;
}

.trust-section {
  padding: 3rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.faq-section {
  padding-top: 3rem;
}

.faq-list {
  margin-top: 1.2rem;
  display: grid;
  gap: 0.65rem;
}

details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

summary {
  cursor: pointer;
  padding: 0.95rem 1rem;
  font-weight: 900;
}

details p {
  margin: 0;
  padding: 0 1rem 1rem;
  color: var(--muted);
  line-height: 1.55;
}

.cta-section {
  padding: 3.1rem 0 3.4rem;
  text-align: center;
}

.cta-section .eyebrow,
.cta-section h2,
.cta-section p {
  margin-left: auto;
  margin-right: auto;
}

.cta-section p {
  max-width: 42rem;
}

.cta-section .button {
  margin-top: 1.15rem;
}

.site-footer {
  padding: 1.5rem 0 2.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: #344451;
}

.site-footer p {
  margin: 0;
  font-weight: 900;
}

.mobile-store-link {
  display: none;
}

@media (max-width: 1100px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(15rem, 20rem);
    gap: 1.45rem;
  }

  h1 {
    font-size: 3.15rem;
  }

  .hero-lead {
    font-size: 1.06rem;
  }

  .app-store-showcase {
    max-width: 20rem;
  }

  .app-store-shots {
    gap: 0.42rem;
    padding: 0.55rem;
  }

}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(13.5rem, 17rem);
    gap: 1rem;
  }

  h1 {
    font-size: 2.8rem;
  }

  .hero-lead {
    font-size: 1rem;
  }

  .hero-actions {
    margin-top: 1.2rem;
  }

  .trust-row {
    margin-top: 1.05rem;
    font-size: 0.88rem;
  }

  .app-store-showcase {
    max-width: 17rem;
  }

}

@media (max-width: 760px) {
  .hero,
  .split-section,
  .split-section-reverse {
    grid-template-columns: 1fr;
  }

  .split-section-reverse .split-copy {
    order: 0;
  }

  .app-store-showcase {
    max-width: 24rem;
    justify-self: center;
  }
}

@media (max-width: 700px) {
  body {
    padding-bottom: 0;
  }

  .site-header,
  .hero,
  .article-flow,
  .article-section,
  .section,
  .app-view-section,
  .split-section,
  .archive-section,
  .trust-section,
  .cta-section,
  .site-footer {
    width: min(100% - 1rem, var(--max));
  }

  .site-header {
    min-height: 4rem;
    padding: 0.65rem 0;
    align-items: flex-start;
  }

  .brand small,
  .nav-links a[href="#ablauf"],
  .nav-links a[href="#workflow"],
  .nav-links a[href="#archiv"],
  .nav-links a[href="#archive"],
  .nav-links a[href="#datenschutz"],
  .nav-links a[href="#privacy"],
  .nav-cta {
    display: none;
  }

  .nav-links {
    gap: 0.62rem;
    justify-content: flex-end;
  }

  .nav-links a {
    font-size: 0.84rem;
  }

  .hero {
    padding: 2rem 0 1.9rem;
    gap: 1.35rem;
  }

  h1 {
    font-size: 2.42rem;
  }

  .hero-lead {
    font-size: 1.03rem;
  }

  .hero-actions {
    display: grid;
  }

  .hero-visual figcaption {
    font-size: 0.86rem;
  }

  .article-flow,
  .article-section,
  .section,
  .app-view-section,
  .split-section,
  .archive-section,
  .trust-section {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

  .section-heading h2,
  .app-view-heading h2,
  .article-copy h2,
  .split-copy h2,
  .cta-section h2 {
    font-size: 1.86rem;
  }

  .section-heading p:not(.eyebrow),
  .app-view-heading p:not(.eyebrow),
  .article-copy p:not(.eyebrow),
  .split-copy p,
  .cta-section p {
    font-size: 1rem;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    padding-bottom: 1.2rem;
  }

  .workflow-card,
  .workflow-card-problem {
    flex-basis: min(70vw, 14.5rem);
  }

  .workflow-proof {
    grid-template-columns: 1fr;
    padding: 0.85rem;
  }

  .mobile-store-link {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .workflow-card,
  .workflow-copy p {
    transition: none;
  }

  .workflow-card:hover {
    transform: none;
  }
}
