/* gesichtsform-bestimmen.de
   Calm, neutral look: white ground, cool grey surfaces, dark slate text,
   one quiet blue accent, system fonts, soft rounded cards.
   No load motion: motion only answers what the visitor does. */

:root {
  --white: #ffffff;
  --mist: #f5f6f8;
  --mist-deep: #eceef2;
  --ink: #171a21;
  --ink-soft: #525866;
  --ink-faint: #6b7180;
  --hair: #e2e5ea;
  --accent: #2f5bd3;
  --accent-deep: #2449ad;
  --accent-tint: #eaf0fd;
  --warn-bg: #fff6e0;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(23, 26, 33, 0.04), 0 8px 24px rgba(23, 26, 33, 0.06);

  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --wrap: 1120px;
  --gutter: 20px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
}

main { flex: 1 0 auto; }

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

::selection { background: var(--accent-tint); color: var(--ink); }

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
@media (hover: hover) and (pointer: fine) {
  a:hover { color: var(--accent-deep); }
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

h1, h2, h3 {
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin: 0;
}
h1 { font-size: clamp(2.2rem, 1.6rem + 2.6vw, 3.4rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.2rem); }
h3 { font-size: 1.15rem; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  background: var(--ink);
  color: var(--white);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  z-index: 100;
}
.skip:focus { top: 12px; }

/* ---------- header ---------- */

.site-head { border-bottom: 1px solid var(--hair); background: var(--white); }
.site-head .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 650;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
@media (min-width: 640px) { .brand { font-size: 1.1rem; } }
.brand svg { width: 30px; height: 30px; flex: none; }
.brand:hover { color: var(--ink); }
.site-nav { display: flex; gap: 2px; }
.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.98rem;
  padding: 8px 8px;
}
@media (hover: hover) and (pointer: fine) {
  .site-nav a:hover { color: var(--ink); }
}
.site-nav .nav-extra { display: none; }
@media (min-width: 640px) {
  .site-nav .nav-extra { display: inline-block; }
}
.site-head--simple .wrap { justify-content: center; }

/* ---------- hero + tool ---------- */

.hero { padding: 28px 0 40px; background: linear-gradient(var(--mist), var(--white)); }
.hero-grid { display: grid; gap: 28px; align-items: center; }
.hero-copy { min-width: 0; }
.hero h1 { margin-bottom: 12px; }
.hero .lead {
  font-size: 1.15rem;
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 30em;
  margin-bottom: 14px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-soft);
}
.chips li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px 5px 10px;
  background: var(--white);
  border: 1px solid var(--hair);
  border-radius: 999px;
}
.chips li::before {
  content: "";
  width: 14px;
  height: 14px;
  flex: none;
  background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5 6.5 12 13 4.5' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5 6.5 12 13 4.5' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.tool {
  background: var(--white);
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px;
}

.drop {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 108px;
  padding: 14px;
  background: var(--mist);
  border: 1.5px dashed #c9ced8;
  border-radius: var(--radius-sm);
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.drop input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  font-size: 16px;
}
.drop:focus-within { outline: 3px solid var(--accent); outline-offset: 2px; }
.drop.is-over { background: var(--accent-tint); border-color: var(--accent); }
@media (hover: hover) and (pointer: fine) {
  .drop:hover { background: var(--mist-deep); }
}
.drop-thumb {
  flex: none;
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  background: var(--white);
  color: var(--accent);
  border: 1px solid var(--hair);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.drop-thumb svg { width: 34px; height: 34px; }
.drop-thumb img { width: 100%; height: 100%; object-fit: cover; }
.drop-text { display: grid; gap: 2px; min-width: 0; }
.drop-title { font-weight: 600; font-size: 1.05rem; color: var(--ink); overflow-wrap: anywhere; }
.drop-hint { font-size: 0.92rem; color: var(--ink-soft); line-height: 1.4; overflow-wrap: anywhere; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 22px;
  border: 0;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color 0.16s var(--ease), color 0.16s var(--ease), transform 0.12s var(--ease);
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:active { transform: translateY(1px); background: var(--accent-deep); }
.btn-ink { background: var(--ink); color: var(--white); }
.btn-ink:active { transform: translateY(1px); }
.btn-line { background: var(--white); color: var(--ink); box-shadow: inset 0 0 0 1px #cdd2db; }
.btn-line:active { transform: translateY(1px); background: var(--mist); }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: var(--accent-deep); color: var(--white); }
  .btn-ink:hover { background: #2b303b; color: var(--white); }
  .btn-line:hover { background: var(--mist); color: var(--ink); }
}
.btn[disabled],
.btn.is-disabled {
  background: var(--mist-deep);
  color: var(--ink-faint);
  box-shadow: none;
  cursor: progress;
  transform: none;
  pointer-events: none;
}
.btn-block { width: 100%; }

.tool .btn { margin-top: 12px; }
.tool-progress {
  height: 4px;
  margin-top: 10px;
  background: var(--mist);
  border-radius: 99px;
  overflow: hidden;
  visibility: hidden;
}
.tool-progress span {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--accent);
  transform-origin: left;
  transform: scaleX(0);
}
.is-busy .tool-progress { visibility: visible; }
.is-busy .tool-progress span { animation: progress-fill 8s var(--ease) forwards; }
@keyframes progress-fill { to { transform: scaleX(0.92); } }

.privacy {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin: 12px 2px 0;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--ink-faint);
}
.privacy svg { width: 16px; height: 16px; flex: none; margin-top: 2px; }

.alert {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: var(--warn-bg);
  color: var(--ink);
  padding: 12px 14px;
  margin-bottom: 12px;
  border-radius: var(--radius-sm);
  font-size: 0.96rem;
  line-height: 1.45;
}
.alert svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: #b4570b; }

.hero-art { margin: 0; justify-self: center; width: 100%; max-width: 360px; }
.hero-art img { width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---------- ad slot ---------- */

.ad-slot { max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- content sections ---------- */

.section { padding: 56px 0; }
.section + .section { border-top: 1px solid var(--hair); }
.section-head {
  display: grid;
  gap: 10px;
  margin-bottom: 28px;
  max-width: 42em;
}
.section-head p { color: var(--ink-soft); margin: 0; }

/* the six shapes as simple cards */
.plate {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.plate li {
  background: var(--white);
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  padding: 20px 18px 22px;
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 18px;
  align-items: start;
}
.plate svg { width: 76px; height: 96px; }
.plate h3 { margin-bottom: 6px; }
.plate p { margin: 0; color: var(--ink-soft); font-size: 1rem; line-height: 1.5; }

.fill-red, .fill-blue, .fill-yellow, .fill-ink {
  fill: var(--accent-tint);
  stroke: var(--accent);
  stroke-width: 2.5;
}
.fill-mist { fill: var(--mist-deep); }
.axis { stroke: #b9bfca; stroke-width: 1.2; stroke-dasharray: 4 4; fill: none; }

/* FAQ */
.faq { max-width: 800px; border-top: 1px solid var(--hair); }
.faq details { border-bottom: 1px solid var(--hair); }
.faq summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 0;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.4;
  touch-action: manipulation;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 50%;
  background:
    linear-gradient(var(--ink-soft), var(--ink-soft)) center / 10px 2px no-repeat,
    linear-gradient(var(--ink-soft), var(--ink-soft)) center / 2px 10px no-repeat,
    var(--mist-deep);
  transition: transform 0.25s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
@media (hover: hover) and (pointer: fine) {
  .faq summary:hover { color: var(--accent); }
}
.faq .answer { padding: 0 0 20px; color: var(--ink-soft); max-width: 68ch; }
.faq .answer p:last-child { margin-bottom: 0; }

/* CTA band */
.cta {
  background: var(--mist);
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  color: var(--ink);
  padding: 28px 24px;
  display: grid;
  gap: 18px;
  align-items: center;
}
.cta h2 { font-size: 1.5rem; color: var(--ink); }
.cta p { margin: 8px 0 0; color: var(--ink-soft); }

/* ---------- article (Read mode) ---------- */

.article { padding: 36px 0 64px; }
.article-inner { max-width: 740px; margin: 0 auto; }
.crumbs { font-size: 0.95rem; color: var(--ink-faint); margin-bottom: 18px; }
.crumbs a { color: var(--ink-soft); }
.article h1 { font-size: clamp(2.1rem, 1.5rem + 2.4vw, 3.2rem); margin-bottom: 16px; }
.article .lead { font-size: 1.2rem; color: var(--ink-soft); }
.article-hero { margin: 26px 0 10px; border-radius: var(--radius); overflow: hidden; background: var(--mist); }
.prose { max-width: 68ch; }
.prose h2 { font-size: 1.75rem; margin: 2em 0 0.5em; }
.prose h3 { margin: 1.6em 0 0.4em; }
.prose h4 { font-weight: 700; font-size: 1.2rem; margin: 1.4em 0 0.3em; }
.prose h5, .prose h6 { font-size: 1.02rem; font-weight: 700; margin: 1.2em 0 0.3em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: 0.25em 0; }
.prose a { word-break: break-word; }
.prose .figure-right {
  float: right;
  width: 140px;
  margin: 4px 0 12px 20px;
  border: 1px solid var(--hair);
  border-radius: var(--radius-sm);
  background: #fff;
}
.prose .clear { clear: both; }
@media (max-width: 480px) {
  .prose .figure-right { width: 108px; margin-left: 14px; }
}
.article .cta { margin-top: 44px; }

.posts { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 32px; }
.post a { color: var(--ink); text-decoration: none; display: grid; gap: 14px; }
.post img { border-radius: var(--radius); }
.post h2 { font-size: 1.6rem; }
.post p { color: var(--ink-soft); margin: 6px 0 0; }
@media (hover: hover) and (pointer: fine) {
  .post a:hover h2 { color: var(--accent); }
}

/* tools list */
.tools { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--hair); display: grid; gap: 0 40px; }
.tools li { border-bottom: 1px solid var(--hair); }
.tools a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  color: var(--ink);
  text-decoration: none;
}
.tools strong { display: block; font-size: 1.05rem; font-weight: 600; }
.tools span { color: var(--ink-soft); font-size: 0.98rem; }
.tools svg { width: 20px; height: 20px; color: var(--accent); flex: none; }
@media (hover: hover) and (pointer: fine) {
  .tools a:hover strong { color: var(--accent); }
}

/* plans (developers) */
.plans { display: grid; gap: 20px; margin-top: 24px; }
.plan {
  background: var(--white);
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  padding: 22px;
  display: grid;
  gap: 14px;
  align-content: start;
}
.plan.is-featured { border-color: var(--accent); box-shadow: var(--shadow); }
.plan-name { font-weight: 500; color: var(--ink-soft); }
.plan-price { font-size: 2.4rem; font-weight: 700; line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.plan-price small { font-size: 1rem; font-weight: 400; letter-spacing: 0; color: var(--ink-soft); }
.plan ul { margin: 0; padding-left: 1.2em; color: var(--ink-soft); }
.qa { display: grid; gap: 0 40px; border-top: 1px solid var(--hair); }
.qa div { border-bottom: 1px solid var(--hair); padding: 18px 0; }
.qa h3 { font-size: 1.1rem; margin-bottom: 6px; }
.qa p { margin: 0; color: var(--ink-soft); }

/* ---------- loading + result ---------- */

.wait { padding: 40px 0 64px; text-align: center; }
.wait h1 { font-size: clamp(2rem, 1.5rem + 2vw, 2.8rem); margin-bottom: 10px; }
.wait p { color: var(--ink-soft); }
.wait-bar {
  max-width: 300px;
  height: 6px;
  margin: 0 auto 22px;
  background: var(--mist-deep);
  border-radius: 99px;
  overflow: hidden;
}
.wait-bar span {
  display: block;
  height: 100%;
  background: var(--accent);
  transform-origin: left;
  transform: scaleX(0);
  animation: progress-fill-full 5.5s linear forwards;
}
@keyframes progress-fill-full { to { transform: scaleX(1); } }
.shape-row {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin: 32px auto 0;
  flex-wrap: wrap;
}
.shape-row svg { width: 40px; height: 50px; }

.result { padding: 32px 0 56px; }
body:has(.sticky-offer) { padding-bottom: 104px; }
.result-grid { display: grid; gap: 28px; }
.result-head { display: flex; gap: 16px; align-items: center; margin-bottom: 18px; }
.result-photo {
  width: 96px;
  height: 96px;
  flex: none;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--mist);
}
.result-label { display: block; font-size: 1rem; font-weight: 400; letter-spacing: 0; color: var(--ink-soft); margin-bottom: 6px; }
.result-shape { display: block; font-size: clamp(2.4rem, 1.8rem + 2.4vw, 3.4rem); line-height: 1; }
.result-score { color: var(--ink-soft); margin: 8px 0 0; }
.result-score strong { color: var(--ink); font-variant-numeric: tabular-nums; }

.scores { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 14px; }
.scores li { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: baseline; }
.scores .name { font-weight: 500; }
.scores .pct { font-variant-numeric: tabular-nums; color: var(--ink-soft); font-size: 0.98rem; }
.scores .bar { grid-column: 1 / -1; height: 8px; background: var(--mist-deep); border-radius: 99px; overflow: hidden; }
.scores .bar span { display: block; height: 100%; background: #9aa2b1; border-radius: 99px; }
.scores li:first-child .bar span { background: var(--accent); }

.result-actions { display: grid; gap: 12px; margin-top: 24px; }
.result h2 { font-size: 1.6rem; margin: 36px 0 12px; }

.result-figure {
  margin: 0;
  background: var(--mist);
  border-radius: var(--radius);
  padding: 28px 22px 22px;
  display: grid;
  gap: 16px;
  justify-items: center;
}
.result-figure svg { width: 100%; max-width: 220px; height: auto; }
.result-figure figcaption { font-size: 0.95rem; color: var(--ink-soft); text-align: center; }

.sticky-offer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  background: var(--white);
  border-top: 1px solid var(--hair);
  box-shadow: 0 -8px 24px rgba(23, 26, 33, 0.06);
  padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
}
.sticky-offer .wrap {
  padding: 0;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}
.sticky-offer p { margin: 0; font-weight: 500; line-height: 1.3; font-size: 1rem; }
.sticky-offer .btn { min-height: 48px; padding: 10px 16px; white-space: nowrap; font-size: 1rem; }

/* ---------- footer ---------- */

.site-foot {
  background: var(--mist);
  color: var(--ink);
  border-top: 1px solid var(--hair);
  padding: 30px 0 34px;
  font-size: 0.98rem;
}
.site-foot .wrap { display: grid; gap: 18px; }
.site-foot .brand,
.site-foot .brand:hover { color: var(--ink); }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.site-foot nav a { color: var(--ink-soft); text-decoration: none; }
@media (hover: hover) and (pointer: fine) {
  .site-foot nav a:hover { color: var(--ink); }
}

/* ---------- larger screens ---------- */

@media (min-width: 640px) {
  .plate { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 720px) {
  :root { --gutter: 32px; }
  .tools { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .qa { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plans { grid-template-columns: repeat(2, minmax(0, 320px)); justify-content: center; }
  .cta { grid-template-columns: 1fr auto; padding: 36px 40px; }
  .posts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-foot .wrap { grid-template-columns: auto 1fr; align-items: center; }
  .site-foot nav { justify-content: flex-end; }
  .result-actions { grid-template-columns: repeat(2, max-content); }
}

@media (min-width: 960px) {
  .hero { padding: 56px 0 72px; }
  .hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 64px; }
  .hero-art { max-width: 440px; justify-self: end; }
  .tool { padding: 18px; }
  .drop { min-height: 128px; }
  .section { padding: 80px 0; }
  .plate { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .plate li { grid-template-columns: 1fr; gap: 14px; padding: 24px 22px 26px; }
  .plate svg { width: 84px; height: 106px; }
  .result-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 64px; align-items: start; }
  .result-head { gap: 22px; }
  .result-photo { width: 124px; height: 124px; }
}

@media (max-width: 380px) {
  .sticky-offer .wrap { flex-direction: column; align-items: stretch; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
