/* unaperfect.de — the React site's look (Tailwind + shadcn, dark theme,
   primary #F4AA30) in plain CSS. Sizes follow the Tailwind classes it used. */

:root {
  --bg: #171717;
  --fg: #fff;
  --primary: #F4AA30;
  --light: #F6F6F6;
  --accent: #27272a;
  --pop: #0c0c0e;
  --g200: #e5e7eb;
  --g300: #d1d5db;
  --g400: #9ca3af;
  --g600: #4b5563;
  --g800: #1f2937;
  --g900: #111827;
  --radius: 0.5rem;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; border: 0 solid #27272a; }
html {
  font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol",
    "Noto Color Emoji";
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body { background: var(--bg); color: var(--fg); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
summary { list-style: none; cursor: pointer; }
summary::-webkit-details-marker { display: none; }
[id] { scroll-margin-top: 80px; }

.container { width: 100%; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 640px) { .container { max-width: 640px; } }
@media (min-width: 768px) { .container { max-width: 768px; } }
@media (min-width: 1024px) { .container { max-width: 1024px; } }
@media (min-width: 1280px) { .container { max-width: 1280px; } }
@media (min-width: 1536px) { .container { max-width: 1536px; } }

/* buttons (shadcn Button) */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  white-space: nowrap; border-radius: calc(var(--radius) - 2px);
  font-size: 0.875rem; line-height: 1.25rem; font-weight: 500;
  height: 2.5rem; padding: 0.5rem 1rem;
  transition: background-color .15s, color .15s;
}
.btn.primary { background: var(--primary); color: #000; }
.btn.primary:hover { background: rgba(244, 170, 48, .9); }
.btn.ghost { color: var(--g300); }
.btn.ghost:hover { background: var(--accent); color: #fff; }
.btn.square { width: 2.5rem; padding: 0; }
.btn.lg { height: 2.75rem; padding: 0 2rem; font-size: 1.125rem; line-height: 1.75rem; }
.i4 { width: 1rem; height: 1rem; }
.i5 { width: 1.25rem; height: 1.25rem; }

/* header */
.top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(23, 23, 23, .8);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.bar { display: flex; align-items: center; justify-content: space-between; padding-top: 1rem; padding-bottom: 1rem; }
.logo img { height: 2rem; width: auto; }
.wide { display: none; align-items: center; gap: 2rem; }
.lang { position: relative; }
.pop {
  position: absolute; right: 0; top: calc(100% + 4px); min-width: 8rem; padding: 0.25rem;
  background: var(--pop); border: 1px solid var(--accent); border-radius: calc(var(--radius) - 2px);
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);
}
.pop a { display: block; padding: 0.375rem 0.5rem; font-size: 0.875rem; border-radius: calc(var(--radius) - 4px); }
.pop a:hover { background: var(--accent); }

.narrow { position: static; }
.burger { display: flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; margin-right: -0.5rem; }
.burger svg { width: 1.5rem; height: 1.5rem; }
.burger .shut, .narrow[open] .burger .open { display: none; }
.narrow[open] .burger .shut { display: block; }
.sheet {
  position: absolute; top: 100%; left: 0; right: 0; padding: 1rem;
  background: rgba(0, 0, 0, .95); display: flex; flex-direction: column; gap: 0.5rem;
}
.sheet .btn { width: 100%; justify-content: flex-start; }
.sheet .btn.primary { justify-content: center; }
.sheet-langs { display: flex; gap: 0.5rem; }
.sheet-langs .btn { width: auto; }
@media (min-width: 768px) {
  .wide { display: flex; }
  .narrow { display: none; }
}

/* hero */
.hero { min-height: 70vh; padding-top: 5rem; margin-top: 2.5rem; padding-bottom: 1rem; position: relative; overflow: hidden; }
.hero-row { display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 2rem; }
.hero-text { flex: 1; z-index: 10; max-width: 42rem; }
.hero-h { font-size: 2.25rem; line-height: 2.5rem; font-weight: 700; margin-bottom: 1.5rem; white-space: nowrap; }
.hero-p { font-size: 1.125rem; line-height: 1.75rem; color: var(--g400); margin-bottom: 1.5rem; max-width: 32rem; }
.hero-art { flex: 1; position: relative; height: 500px; display: none; margin-left: 2rem; width: 100%; }
.hero-art canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
@media (min-width: 640px) {
  .hero-h { font-size: 3rem; line-height: 1; }
  .hero-p { font-size: 1.25rem; line-height: 1.75rem; }
}
@media (min-width: 768px) {
  .hero { padding-top: 6rem; }
  .hero-row { flex-direction: row; align-items: center; }
  .hero-h { font-size: 3.75rem; margin-bottom: 2rem; }
  .hero-p { font-size: 1.5rem; line-height: 2rem; margin-bottom: 2rem; }
  .hero-art { display: block; }
}
@media (min-width: 1024px) { .hero-h { font-size: 4.5rem; } }

/* steps */
.steps { margin-bottom: 2rem; padding-bottom: 1.5rem; }
.h-steps { font-size: 1.875rem; line-height: 2.25rem; font-weight: 700; margin-bottom: 2rem; }
.steps-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
.step > * + * { margin-top: 1rem; }
.step-n { color: var(--g400); font-size: 1.125rem; line-height: 1.75rem; font-weight: 500; }
.step-h { font-size: 1.875rem; line-height: 2.25rem; font-weight: 600; }
.step-p { font-size: 1rem; line-height: 1.625; color: var(--g400); }
.tags { display: flex; flex-wrap: wrap; gap: 0.5rem; padding-top: 0.5rem; }
.tag {
  display: inline-flex; align-items: center; padding: 0.25rem 0.625rem;
  border: 1px solid #fff; border-radius: calc(var(--radius) - 2px);
  color: var(--g300); font-size: 0.875rem; line-height: 1.25rem; font-weight: 600;
  transition: background-color .15s;
}
.tag:hover { background: var(--g800); }
@media (min-width: 768px) {
  .steps { margin-bottom: 4rem; padding-bottom: 2.5rem; }
  .h-steps { font-size: 2.25rem; line-height: 2.5rem; margin-bottom: 3rem; }
  .steps-grid { grid-template-columns: repeat(3, 1fr); gap: 3rem; }
  .step { padding: 0 1.5rem; }
  .step:not(:last-child) { border-right: 1px solid var(--g800); }
  .step > * + * { margin-top: 1.5rem; }
  .step-n { font-size: 1.25rem; }
  .step-h { font-size: 2.25rem; line-height: 2.5rem; }
  .step-p { font-size: 1.125rem; }
  .tags { padding-top: 1rem; }
}
@media (min-width: 1024px) {
  .h-steps { font-size: 3rem; line-height: 1; }
  .step-h { font-size: 3rem; line-height: 1; }
}

/* light sections */
.light { background: var(--light); color: var(--g900); }
.services { padding-top: 4rem; padding-bottom: 1.5rem; }
.companies { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.sec-head { margin-bottom: 3rem; }
.sec-head.wide-gap { margin-bottom: 4rem; }
.h-xl { font-size: 2.25rem; line-height: 2.5rem; font-weight: 700; margin-bottom: 1.5rem; }
.services .h-xl { margin-bottom: 1rem; }
.h-xl.dark { color: var(--g900); }
.sec-p { font-size: 1.125rem; line-height: 1.75rem; color: var(--g600); }
.narrow-p { max-width: 42rem; }
@media (min-width: 768px) { .h-xl { font-size: 3rem; line-height: 1; } }

.card {
  display: flex; flex-direction: column; height: 100%;
  background: var(--light); border: 1px solid var(--g200); border-radius: var(--radius);
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);
}
.serv-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.serv { padding: 1.5rem; transition: border-color .15s; }
.serv:hover { border-color: rgba(244, 170, 48, .5); }
.serv-i { width: 2.5rem; height: 2.5rem; color: var(--primary); margin-bottom: 1rem; }
.card-h { font-size: 1.5rem; line-height: 2rem; font-weight: 600; color: var(--g900); margin-bottom: 0.5rem; transition: color .3s; }
.card-p { font-size: 1rem; line-height: 1.5rem; color: var(--g600); }
@media (min-width: 768px) { .serv-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .serv-grid { grid-template-columns: repeat(3, 1fr); } }

.comp-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.comp { padding: 2rem; border-width: 0; }
.comp-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 2rem; }
.comp-top img { height: 3.5rem; width: 3.5rem; object-fit: contain; }
.comp-arrow { color: var(--g400); transition: color .3s; }
.comp .card-h { margin-bottom: 0.75rem; }
.comp:hover .card-h, .comp:hover .comp-arrow { color: var(--primary); }
@media (min-width: 768px) { .comp-grid { grid-template-columns: repeat(2, 1fr); } }

/* footer */
.foot { padding: 5rem 0; border-top: 1px solid var(--g800); }
.foot-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; }
.foot-cols { display: grid; grid-template-columns: 1fr; gap: 2rem; }
.foot-h { font-size: 0.875rem; line-height: 1.25rem; color: var(--g400); margin-bottom: 1rem; font-weight: 400; }
.foot ul > li + li { margin-top: 0.5rem; }
.foot ul a { transition: color .15s; }
.foot ul a:hover { color: var(--primary); }
.foot-bottom { margin-top: 3rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.socials { display: flex; align-items: center; gap: 1rem; }
.social {
  width: 2rem; height: 2rem; display: flex; align-items: center; justify-content: center;
  background: var(--g800); border-radius: 9999px; font-size: 0.875rem; transition: background-color .15s, color .15s;
}
.social:hover { background: rgba(244, 170, 48, .2); color: var(--primary); }
.copy { font-size: 0.875rem; line-height: 1.25rem; color: var(--g400); }
@media (min-width: 768px) {
  .foot-grid { grid-template-columns: repeat(2, 1fr); }
  .foot-cols { grid-template-columns: repeat(2, 1fr); }
}

/* legal pages and 404 */
.legal { max-width: 56rem; padding-top: 7rem; padding-bottom: 5rem; color: var(--g300); }
.legal .back { margin-bottom: 2rem; margin-left: -1rem; }
.legal h1 { font-size: 2.25rem; line-height: 2.5rem; font-weight: 700; color: #fff; margin-bottom: 2rem; }
.legal section + section { margin-top: 2rem; }
.legal .lead + section { margin-top: 2rem; }
.legal h2 { font-size: 1.5rem; line-height: 2rem; font-weight: 600; color: #fff; margin-bottom: 1rem; }
.legal p + p { margin-top: 0.75rem; }
.legal a:not(.btn) { color: var(--primary); }
.legal a:not(.btn):hover { text-decoration: underline; }
.legal .lead { color: var(--g400); }
.legal .note { margin-top: 2.5rem; color: var(--g400); }
.row-links { display: flex; gap: 0.75rem; margin-top: 2rem; flex-wrap: wrap; }

/* fade-in on scroll, as framer-motion did; only with JS, never for reduced motion */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}
