/* ----- local fonts (IBM Plex, SIL Open Font License 1.1) ----- */

/* IBM Plex Sans – variable font, weights 400-600 */
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("assets/fonts/ibm-plex-sans-var-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("assets/fonts/ibm-plex-sans-var-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* IBM Plex Mono */
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/ibm-plex-mono-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/ibm-plex-mono-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/ibm-plex-mono-500-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/ibm-plex-mono-500-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #f7f9fa;
  --surface: #ffffff;
  --ink: #15233a;
  --ink-soft: #5b6b82;
  --line: #e3e8ee;
  --accent: #2563eb;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --sans: "IBM Plex Sans", -apple-system, "Helvetica Neue", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* language toggle visibility */
[data-lang="de"] .en { display: none; }
[data-lang="en"] .de { display: none; }

.wrap {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- background motion ---------- */
.bg-layer {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.bg-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, var(--ink) 1px, transparent 1.4px);
  background-size: 34px 34px;
  opacity: 0.04;
}
.bg-shape { position: absolute; will-change: transform; }
.bg-square {
  width: 440px;
  height: 440px;
  border: 1.5px solid var(--accent);
  opacity: 0.08;
  top: -130px;
  right: -130px;
  animation: wk-spin 240s linear infinite;
}
.bg-circle {
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.05;
  bottom: -240px;
  left: -200px;
  animation: wk-drift 40s ease-in-out infinite alternate;
}
.bg-diamond {
  width: 200px;
  height: 200px;
  border: 1.5px solid var(--ink);
  opacity: 0.07;
  top: 52%;
  right: 6%;
  transform: rotate(45deg);
  animation: wk-float 30s ease-in-out infinite alternate;
}
@keyframes wk-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes wk-drift {
  from { transform: translate(0, 0); }
  to { transform: translate(70px, -50px); }
}
@keyframes wk-float {
  from { transform: rotate(45deg) translateY(0); }
  to { transform: rotate(45deg) translateY(-46px); }
}
@media (prefers-reduced-motion: reduce) {
  .bg-shape { animation: none; }
}

/* ---------- header ---------- */
header {
  padding: 28px 0;
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--ink);
}
.brand-name {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.logo-mark { display: block; }
.logo-mark svg { display: block; }

.lang-toggle {
  display: flex;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: var(--surface);
}
.lang-toggle button {
  font-family: var(--mono);
  font-size: 12px;
  padding: 6px 12px;
  border: none;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
}
.lang-toggle button.active {
  background: var(--ink);
  color: var(--bg);
}

/* ---------- hero ---------- */
.hero {
  padding: 96px 0 88px 0;
}
.kicker {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.06em;
  margin-bottom: 24px;
}
h1 {
  font-size: clamp(34px, 5.4vw, 52px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
  max-width: 16em;
}
.hero p {
  margin-top: 28px;
  font-size: 19px;
  color: var(--ink-soft);
  max-width: 32em;
  text-wrap: pretty;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.btn {
  display: inline-block;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 500;
  background: var(--ink);
  color: var(--bg);
  text-decoration: none;
  padding: 13px 24px;
  border-radius: 6px;
  transition: background 0.15s ease;
}
.btn:hover { background: var(--accent); }
.avail {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink-soft);
}
.avail::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 9px;
  vertical-align: 1px;
}

/* ---------- sections ---------- */
section { padding: 72px 0; border-top: 1px solid var(--line); }

.section-label {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 400;
  color: var(--ink-soft);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 40px;
}

/* services */
.services {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
.service {
  display: block;
}
.service + .service { border-top: 1px solid var(--line); }
.service summary {
  display: grid;
  grid-template-columns: 64px 1fr 28px;
  gap: 16px;
  padding: 28px 0;
  cursor: pointer;
  list-style: none;
}
.service summary::-webkit-details-marker { display: none; }
.service-toggle {
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 400;
  color: var(--ink-soft);
  line-height: 1;
  padding-top: 4px;
  text-align: right;
  transition: transform 0.2s ease, color 0.15s ease;
  transform-origin: 60% 42%;
}
.service summary:hover .service-toggle { color: var(--accent); }
.service[open] .service-toggle {
  transform: rotate(45deg);
  color: var(--accent);
}
.service-num {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
  padding-top: 5px;
}
.service h3 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.service p {
  margin-top: 8px;
  color: var(--ink-soft);
  max-width: 36em;
  text-wrap: pretty;
}
.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.tag {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 4px;
  padding: 3px 9px;
}

/* service examples (expanded state) */
.service-examples {
  padding: 0 44px 32px 80px;
}
.examples-label {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.06em;
  margin-bottom: 18px;
}
.examples-list {
  display: grid;
  gap: 16px;
  list-style: none;
}
.examples-list li {
  display: grid;
  gap: 2px;
  max-width: 36em;
}
.ex-client {
  font-size: 15px;
  font-weight: 600;
}
.ex-desc {
  font-size: 15px;
  color: var(--ink-soft);
  text-wrap: pretty;
}

/* working principles */
.principles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 44px;
}
.principle-num {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 12px;
}
.principle h3 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.principle p {
  margin-top: 8px;
  font-size: 15px;
  color: var(--ink-soft);
  text-wrap: pretty;
}

/* profile */
.profile > p {
  color: var(--ink-soft);
  max-width: 36em;
  text-wrap: pretty;
}
.profile-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 44px;
  margin-top: 44px;
}
.profile-meta dt {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-soft);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.profile-meta dd {
  margin-top: 6px;
  font-size: 15px;
  color: var(--ink);
}

/* contact */
.contact-intro {
  color: var(--ink-soft);
  max-width: 32em;
  text-wrap: pretty;
  margin-bottom: 32px;
}
.contact-avail {
  margin-top: 32px;
}
.contact-mail {
  display: inline-block;
  font-size: clamp(22px, 3.6vw, 32px);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 2px;
  transition: color 0.15s ease;
  overflow-wrap: anywhere;
}
.contact-mail:hover { color: var(--accent); }
.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  margin-top: 36px;
}
.contact-links a {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--ink-soft);
  text-decoration: none;
}
.contact-links a:hover { color: var(--accent); }
.contact-links span.proto { color: var(--accent); }

/* ---------- legal pages (impressum, datenschutz) ---------- */
.legal {
  padding: 64px 0 88px 0;
}
.legal h1 {
  font-size: clamp(28px, 4.5vw, 40px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.lang-note {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: 16px;
}
.legal h2 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-top: 56px;
}
.legal h3 {
  font-size: 17px;
  font-weight: 600;
  margin-top: 36px;
}
.legal p {
  margin-top: 14px;
  color: var(--ink-soft);
  max-width: 38em;
  text-wrap: pretty;
}
.legal p strong {
  color: var(--ink);
  font-weight: 600;
}
.legal a {
  color: var(--accent);
  text-decoration: none;
  overflow-wrap: anywhere;
}
.legal a:hover { text-decoration: underline; }
.legal address {
  font-style: normal;
  margin-top: 14px;
  color: var(--ink-soft);
}
.back-link {
  display: inline-block;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink-soft);
  text-decoration: none;
  margin-bottom: 32px;
}
.back-link:hover { color: var(--accent); }

/* ---------- footer ---------- */
footer {
  border-top: 1px solid var(--line);
  padding: 32px 0 48px 0;
}
.footer-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-links {
  display: flex;
  gap: 24px;
}
footer a, footer .copy {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-soft);
  text-decoration: none;
}
footer a:hover { color: var(--ink); }

@media (max-width: 560px) {
  .wrap { padding: 0 22px; }
  .hero { padding: 64px 0 64px 0; }
  section { padding: 56px 0; }
  .service summary { grid-template-columns: 44px 1fr 22px; }
  .service-examples { padding: 0 0 28px 60px; }
  .principles { grid-template-columns: 1fr; gap: 32px; }
  .profile-meta { grid-template-columns: 1fr; gap: 24px; }
}
