/* Klickarchitekt 3.0 – Unterseiten (Impressum, Datenschutz, Webseiten) */
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-var-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat Fallback";
  src: local("Arial"), local("Helvetica Neue"), local("Liberation Sans");
  size-adjust: 112%; ascent-override: 86%; descent-override: 22%; line-gap-override: 0%;
}
:root {
  --night: #07122d; --night-deep: #030918; --dusk: #14275a;
  --paper: #fff; --paper-3: #9fb0d4;
  --ink: #04203d; --ink-2: #3d4f6e; --ink-3: #5f6d87;
  --ember: #fd4c03; --ember-rgb: 253, 76, 3;
  --mist: #97a3c4; --mist-2: #7a86ad;
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--night); color-scheme: dark; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column;
  background:
    radial-gradient(70% 40% at 50% 0%, var(--dusk), rgba(20, 39, 90, 0) 70%),
    linear-gradient(180deg, var(--night-deep), var(--night) 30%);
  background-attachment: fixed;
  color: #e9eefb;
  font-family: "Montserrat", "Montserrat Fallback", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: 1rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
::selection { background: var(--ember); color: #fff; }
:focus:not(:focus-visible) { outline: none; }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.top { display: flex; justify-content: center; padding: 28px 16px 8px; }
.top a { display: inline-block; }
.top img { display: block; width: clamp(180px, 30vw, 240px); height: auto; }

main { flex: 1; width: 100%; padding: 16px 16px 40px; display: flex; flex-direction: column; align-items: center; }
.sheet {
  width: min(100%, 46rem);
  background: var(--paper); color: var(--ink);
  border-radius: 8px;
  box-shadow: 0 50px 90px -40px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .06);
  padding: clamp(24px, 5vw, 48px);
  overflow-wrap: anywhere;
}
.sheet h1 { margin: 0 0 6px; font-size: clamp(1.6rem, 4vw, 2.1rem); font-weight: 700; line-height: 1.2; letter-spacing: -.01em; }
.sheet .stand { margin: 0 0 24px; font-size: .875rem; color: var(--ink-3); }
.sheet h2 { margin: 30px 0 8px; font-size: 1.125rem; font-weight: 600; line-height: 1.3; }
.sheet h3 { margin: 20px 0 6px; font-size: 1rem; font-weight: 600; }
.sheet p, .sheet li { margin: 0 0 10px; font-size: .9375rem; color: var(--ink-2); }
.sheet ul { padding-left: 1.2em; }
.sheet a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(var(--ember-rgb), .6); }
.sheet a:hover { color: var(--ember); }
.sheet address { font-style: normal; }
.sheet .note { background: #fff4ee; border-left: 3px solid var(--ember); padding: 10px 14px; border-radius: 0 6px 6px 0; }
.sheet .note p { margin: 0; }

/* Webseiten */
.intro { width: min(100%, 46rem); margin: 0 0 22px; text-align: center; }
.intro h1 { margin: 0 0 8px; font-size: clamp(1.5rem, 4vw, 2rem); font-weight: 700; letter-spacing: -.01em; }
.intro p { margin: 0; color: var(--mist); font-size: 1rem; }
.works { width: min(100%, 46rem); display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.work {
  position: relative;
  background: var(--paper); color: var(--ink);
  border-radius: 8px; padding: 22px 24px 22px 44px;
  box-shadow: 0 40px 70px -40px rgba(0, 0, 0, .8);
}
.work::before { /* das Fenster aus dem Logo */
  content: ""; position: absolute; left: 20px; top: 27px; width: 12px; height: 16px;
  background: var(--ember); clip-path: polygon(0 20%, 100% 0, 100% 80%, 0 100%);
}
.work h2 { margin: 0; font-size: 1.125rem; font-weight: 600; line-height: 1.3; }
.work .kind { margin: 2px 0 6px; font-size: .8125rem; color: var(--ink-3); }
.work p { margin: 0 0 12px; font-size: .9375rem; color: var(--ink-2); }
.work .links { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .9375rem; }
.work .links a { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(var(--ember-rgb), .6); }
.work .links a:hover { color: var(--ember); }
/* Referenz mit Bildschirmfotos: <li class="work has-shot">, davor <a class="work-shot"> mit PC- und Handy-Ansicht */
.work.has-shot { padding: 16px 16px 22px; }
.work.has-shot::before { display: none; }
.work.has-shot > div { position: relative; padding: 0 8px 0 28px; }
.work.has-shot > div::before {
  content: ""; position: absolute; left: 4px; top: 5px; width: 12px; height: 16px;
  background: var(--ember); clip-path: polygon(0 20%, 100% 0, 100% 80%, 0 100%);
}
.work-shot {
  display: grid; grid-template-columns: minmax(0, 3.55fr) minmax(0, 1fr); gap: clamp(10px, 2.4vw, 18px); align-items: end;
  margin: 0 0 18px; padding: clamp(12px, 3vw, 20px);
  border-radius: 6px; background: #eef2fa;
}
.work-shot img { display: block; width: 100%; height: auto; border-radius: 6px; box-shadow: 0 16px 28px -16px rgba(4, 32, 61, .6); transition: transform .3s ease; }
.work-shot .phone { border-radius: 10px; }
.work-shot:hover img, .work-shot:focus-visible img { transform: translateY(-3px); }
@media (prefers-reduced-motion: reduce) {
  .work-shot img { transition: none; }
  .work-shot:hover img, .work-shot:focus-visible img { transform: none; }
}
.next { width: min(100%, 46rem); margin: 22px 0 0; text-align: center; font-size: .9375rem; color: var(--mist); }
.next a { color: var(--paper); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(var(--ember-rgb), .7); }
.next a:hover { color: var(--ember); }

.legal {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 28px;
  padding: 18px 16px max(18px, env(safe-area-inset-bottom));
  font-size: .8125rem; letter-spacing: .04em;
}
.legal a { color: var(--mist-2); text-decoration: none; padding: 6px 2px; transition: color .3s ease; }
.legal a:hover, .legal a:focus-visible, .legal a[aria-current="page"] { color: var(--paper); }

/* Impressum: Person */
.person { display: grid; grid-template-columns: 160px 1fr; gap: 24px; align-items: start; margin: 4px 0 8px; }
.person-photo { width: 160px; height: 200px; object-fit: cover; border-radius: 8px; display: block; box-shadow: 0 20px 40px -24px rgba(4, 32, 61, .6); }
.person-name { margin: 0; font-size: 1.25rem; font-weight: 700; color: var(--ink); }
.person-role { margin: 2px 0 12px; font-size: .9375rem; color: var(--ink-2); }
.profiles { margin: 6px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.profiles a { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px 0 10px; border-radius: 999px; background: #eef2fa; color: var(--ink); font-size: .875rem; font-weight: 600; text-decoration: none; transition: background-color .2s ease, color .2s ease; }
.profiles a:hover, .profiles a:focus-visible { background: var(--ember); color: #04203d; }
.profiles svg { width: 18px; height: 18px; }
@media (max-width: 520px) {
  .person { grid-template-columns: 1fr; gap: 14px; }
  .person-photo { width: 128px; height: 160px; }
}
