/* ---------------------------------------------------------
   DeWelop – Basis
   --------------------------------------------------------- */

@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-var.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

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

:root {
  color-scheme: light;
  --ink: #0f1b2d;
  --ink-soft: #43536a;
  --muted: #5f6f85;
  --line: #dde7f2;
  --paper: #ffffff;
  --surface: #f4f8fd;
  --blue: #0a84ff;
  --blue-text: #0064d2;
  --btn-bg: #0064d2;
  --btn-bg-hover: #0052b0;
  --yellow: #ffc24b;
  --font: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --ink: #eef4fb;
    --ink-soft: #b9c7d8;
    --muted: #93a4b8;
    --line: #22334a;
    --paper: #0b1421;
    --surface: #0f1b2d;
    --blue: #3a9dff;
    --blue-text: #7cbcff;
    --yellow: #ffcb6b;
  }
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  max-width: 100%;
}

::selection {
  background: var(--blue);
  color: #fff;
}

a {
  color: var(--blue-text);
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--blue);
}

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--blue) 65%, #fff);
  outline-offset: 3px;
  border-radius: 6px;
}

h1,
h2,
h3 {
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.08;
  margin: 0;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

section[id],
article[id] {
  scroll-margin-top: 90px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: min(100% - 2.5rem, 70rem);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.65rem 1rem;
  border-radius: 10px;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-200%);
  transition: transform 0.15s ease;
}

.skip-link:focus-visible {
  transform: none;
  color: var(--paper);
}

/* ---------------------------------------------------------
   Header
   --------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 74px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  text-decoration: none;
}

.brand:hover {
  color: var(--ink);
}

.brand-mark {
  display: block;
  width: 36px;
  height: 36px;
  transition: transform 0.25s ease;
}

.brand:hover .brand-mark {
  transform: rotate(-6deg) scale(1.04);
}

.brand-mark svg {
  display: block;
  width: 100%;
  height: 100%;
}

.brand-word {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.7rem;
}

.nav a {
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
}

.nav a:hover {
  color: var(--ink);
}

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

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3.5rem, 7vw, 6rem) 0 clamp(4rem, 8vw, 6.5rem);
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto;
  height: 680px;
  pointer-events: none;
  background:
    radial-gradient(38% 55% at 80% 38%, color-mix(in srgb, var(--blue) 14%, transparent), transparent 70%),
    radial-gradient(30% 45% at 88% 78%, color-mix(in srgb, var(--yellow) 18%, transparent), transparent 70%);
}

.hero-copy {
  position: relative;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--yellow) 26%, transparent);
}

.hero h1 {
  max-width: 24ch;
  margin: 1rem 0 1.25rem;
  font-size: clamp(2.35rem, 5vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.048em;
}

.hero h1 .accent {
  display: block;
  color: var(--blue-text);
}

.lead {
  max-width: 47rem;
  margin: 0;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.15vw, 1.095rem);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.8rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1.3rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn svg {
  width: 1.05rem;
  height: 1.05rem;
  flex: none;
  transition: transform 0.2s ease;
}

.btn:hover svg {
  transform: translate(2px, -2px);
}

.btn-primary {
  background: var(--btn-bg);
  color: #fff;
  box-shadow: 0 14px 26px -14px color-mix(in srgb, var(--btn-bg) 75%, transparent);
}

.btn-primary:hover {
  background: var(--btn-bg-hover);
  color: #fff;
  transform: translateY(-1px);
}

/* ---------------------------------------------------------
   Sections
   --------------------------------------------------------- */

.section {
  padding: clamp(4rem, 7vw, 6.5rem) 0;
}

.section-surface {
  border-block: 1px solid var(--line);
  background: var(--surface);
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2.6rem;
}

h2 {
  margin: 0.65rem 0 0.85rem;
  font-size: clamp(1.9rem, 3.3vw, 2.9rem);
}

.section-lead {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.02rem;
}

/* ---------------------------------------------------------
   Projekte
   --------------------------------------------------------- */

.project-list {
  display: flex;
  flex-direction: column;
  gap: clamp(2.5rem, 6vw, 4.5rem);
}

.project-feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.project-feature + .project-feature {
  padding-top: clamp(2.5rem, 6vw, 4.5rem);
  border-top: 1px solid var(--line);
}

.project-feature:nth-child(even) .project-media {
  order: -1;
}

.project-wetter { --accent: #e0a100; --accent-text: #7d5a00; }
.project-impro { --accent: #e4572e; --accent-text: #b13a1a; }
.project-p19 { --accent: #0a84ff; --accent-text: #0064d2; }
.project-paar { --accent: #7b61ff; --accent-text: #6549e8; }

@media (prefers-color-scheme: dark) {
  .project-wetter { --accent: #ffcb6b; --accent-text: #ffd98f; }
  .project-impro { --accent: #ff825c; --accent-text: #ff9b7a; }
  .project-p19 { --accent: #59aaff; --accent-text: #7cbcff; }
  .project-paar { --accent: #a18dff; --accent-text: #bcaaff; }
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1rem;
}

.project-index {
  color: var(--accent-text);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.tag {
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.project-feature h3 {
  margin: 0.65rem 0 0.15rem;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  letter-spacing: -0.03em;
}

.project-domain {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.project-text {
  max-width: 46ch;
  margin: 0.7rem 0 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.65;
}

.feature-list {
  display: grid;
  gap: 0.9rem;
  max-width: 46ch;
  margin: 1.5rem 0 1.6rem;
  padding: 0;
  list-style: none;
}

.feature-list li {
  position: relative;
  padding-left: 1.35rem;
}

.feature-list li::before {
  content: "";
  position: absolute;
  top: 0.5em;
  left: 0;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--accent);
}

.feature-list strong {
  display: block;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.4;
}

.feature-list span {
  display: block;
  margin-top: 0.1rem;
  color: var(--ink-soft);
  font-size: 0.85rem;
  line-height: 1.55;
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.2rem;
}

.project-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--accent-text);
  font-size: 0.88rem;
  font-weight: 800;
  text-decoration: none;
}

.project-cta:hover {
  color: var(--accent-text);
  text-decoration: underline;
}

.project-cta svg {
  width: 1rem;
  height: 1rem;
  transition: transform 0.2s ease;
}

.project-cta:hover svg {
  transform: translate(2px, -2px);
}

.project-secondary {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.project-secondary:hover {
  color: var(--ink);
}

/* Screenshots */

.project-media {
  display: flex;
  justify-content: center;
  margin: 0;
  padding: clamp(1rem, 3vw, 2rem);
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--accent) 24%, var(--line));
  border-radius: 22px;
  background:
    radial-gradient(110% 110% at 82% 0%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 62%),
    var(--paper);
}

.project-shot {
  width: 100%;
  max-width: 34rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  box-shadow: 0 24px 50px -30px rgba(15, 27, 45, 0.5);
}

.shot-bar {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.shot-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  flex: none;
}

.shot-dot-blue { background: var(--blue); }
.shot-dot-yellow { background: var(--yellow); }
.shot-dot-grey { background: var(--line); }

.shot-url {
  margin-left: 0.4rem;
  padding: 0.16rem 0.55rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--muted);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.project-shot img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top;
}

/* ---------------------------------------------------------
   Footer
   --------------------------------------------------------- */

.site-footer {
  padding: 2.4rem 0;
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem 2rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.brand-mark-sm {
  width: 30px;
  height: 30px;
  flex: none;
}

.footer-name {
  display: block;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.3;
}

.footer-tag {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  font-size: 0.82rem;
  font-weight: 600;
}

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

.footer-links a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.footer-copy {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
}

/* ---------------------------------------------------------
   Rechtstexte
   --------------------------------------------------------- */

.legal {
  padding: clamp(2.5rem, 5vw, 4rem) 0 4.5rem;
}

.legal .wrap {
  max-width: 46rem;
}

.legal h1 {
  margin-bottom: 0.4rem;
  font-size: clamp(2rem, 4vw, 2.8rem);
  hyphens: auto;
  overflow-wrap: break-word;
}

.legal .meta {
  margin: 0 0 2rem;
  color: var(--muted);
  font-size: 0.86rem;
}

.legal h2 {
  margin: 2.2rem 0 0.5rem;
  font-size: 1.22rem;
  letter-spacing: -0.02em;
}

.legal h3 {
  margin: 1.4rem 0 0.35rem;
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.legal p,
.legal li {
  color: var(--ink-soft);
  font-size: 0.96rem;
  line-height: 1.7;
}

.legal p {
  margin: 0 0 0.9rem;
}

.legal ul {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
}

.legal li {
  margin-bottom: 0.35rem;
}

.legal address {
  padding: 1rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  font-style: normal;
  font-size: 0.96rem;
  line-height: 1.7;
}

.legal .back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 2.5rem;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
}

.legal .back-link:hover {
  text-decoration: underline;
}

/* ---------------------------------------------------------
   Responsive
   --------------------------------------------------------- */

@media (max-width: 980px) {
  .project-feature {
    grid-template-columns: 1fr;
    gap: 1.6rem;
  }

  .project-feature:nth-child(even) .project-media {
    order: 0;
  }

  .project-text,
  .feature-list {
    max-width: 60ch;
  }

  .project-shot {
    max-width: 38rem;
  }
}

@media (max-width: 760px) {
  .nav {
    gap: 1.1rem;
  }

  .footer-grid {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.1rem;
  }
}

@media (max-width: 560px) {
  .wrap {
    width: calc(100% - 2rem);
  }

  .header-inner {
    min-height: 66px;
  }

  .brand-mark {
    width: 32px;
    height: 32px;
  }

  .brand-word {
    font-size: 1.24rem;
  }

  .hero {
    padding-top: 3rem;
  }

  .project-media {
    padding: 0.8rem;
    border-radius: 18px;
  }

  .project-feature h3 {
    font-size: 1.9rem;
  }

  .shot-url {
    max-width: 12rem;
  }
}

@media (max-width: 400px) {
  .nav a[href="impressum.html"] {
    display: none;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media print {
  .site-header,
  .site-footer,
  .skip-link,
  .actions {
    display: none;
  }

  body {
    color: #000;
    background: #fff;
  }

  .legal a {
    color: #000;
  }
}
