/* rent-a-coder.de – base stylesheet */

@font-face {
  font-family: "Space Grotesk";
  src: url("fonts/space-grotesk.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("fonts/jetbrains-mono.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #101317;
  --surface: #181c22;
  --surface-deep: #0b0d10;
  --line: #262c34;
  --line-strong: #3a424d;
  --text: #e7e9ec;
  --text-strong: #f4f5f7;
  --text-muted: #b9bfc7;
  --text-subtle: #8e959f;
  --accent: #c8f25a;
  --accent-hover: #e2ff9e;
  --danger: #ff8a7a;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --font-sans: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  color-scheme: dark;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: 16px; top: -100px;
  background: var(--accent); color: var(--bg); padding: 10px 16px;
  border-radius: var(--radius-sm); font-weight: 700; z-index: 10;
}
.skip-link:focus { top: 16px; color: var(--bg); }

.wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 64px 24px 48px;
  display: flex;
  flex-direction: column;
  gap: 72px;
}

.mono { font-family: var(--font-mono); }
.accent { color: var(--accent); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-subtle);
  margin: 0;
}
.eyebrow--accent { color: var(--accent); letter-spacing: 0.08em; text-transform: uppercase; }

h1, h2, h3 { color: var(--text-strong); margin: 0; line-height: 1.15; }
h2 { font-size: clamp(26px, 5vw, 34px); letter-spacing: -0.01em; }
h3 { font-size: 20px; }
p { margin: 0; }

.section { display: flex; flex-direction: column; gap: 28px; scroll-margin-top: 24px; }
.section-head { display: flex; flex-direction: column; gap: 8px; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

/* Hero */
.hero { padding: 48px; display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.hero__mark {
  flex: 0 0 auto; width: 152px; height: 152px; border-radius: 16px;
  background: var(--surface-deep); border: 1px solid #2e353f;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 40px; font-weight: 500; color: var(--accent);
}
.hero__body { flex: 999 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.hero__title {
  font-family: var(--font-mono); font-weight: 500;
  font-size: clamp(36px, 8vw, 60px); line-height: 1.05; letter-spacing: -0.03em;
  overflow-wrap: anywhere;
}
.hero__lead { font-size: 19px; color: var(--text-muted); max-width: 620px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 8px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 20px; border-radius: var(--radius-sm);
  font-family: var(--font-sans); font-size: 16px; font-weight: 500;
  text-decoration: none; cursor: pointer; border: 1px solid var(--line-strong);
  background: transparent; color: var(--text);
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn:hover { border-color: var(--text-subtle); color: var(--text-strong); }
.btn--primary { background: var(--accent); border-color: var(--accent); color: var(--bg); font-weight: 700; }
.btn--primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--bg); }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn svg { flex: 0 0 auto; }

/* Services */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 16px; }
.service { border-radius: var(--radius-md); padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.service p { font-size: 16px; color: #b4bac2; }
.service svg { color: var(--accent); }

/* Principles */
.principles {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px; border-top: 1px solid var(--line); padding-top: 28px;
}
.principles > div { display: flex; flex-direction: column; gap: 8px; }
.principles .mono { font-size: 14px; color: var(--accent); }
.principles p { color: var(--text-muted); }

/* Tech chips */
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li {
  font-family: var(--font-mono); font-size: 14px; color: #d5d9de;
  border: 1px solid #333a44; border-radius: 999px; padding: 8px 16px;
}

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative;
  font-size: 19px; font-weight: 700; color: var(--text-strong);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-family: var(--font-mono); font-size: 22px; color: var(--accent);
}
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 20px; color: var(--text-muted); max-width: 760px; }

/* Contact */
.contact { scroll-margin-top: 24px; padding: 48px; display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.contact__info { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.contact__info > div { display: flex; flex-direction: column; gap: 10px; }
.contact__info p { color: var(--text-muted); }
.facts { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 10px 20px; font-size: 16px; }
.facts dt { font-family: var(--font-mono); font-size: 13px; color: var(--text-subtle); padding-top: 2px; }
.facts dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.facts a { text-decoration: none; }

.form { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.form__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-family: var(--font-mono); font-size: 13px; color: var(--text-muted); }
.field input, .field textarea {
  width: 100%; min-height: 48px; padding: 0 14px;
  border-radius: var(--radius-sm); border: 1px solid var(--line-strong);
  background: var(--bg); color: var(--text);
  font-family: var(--font-sans); font-size: 16px; /* 16px prevents iOS zoom */
}
.field textarea { padding: 12px 14px; line-height: 1.5; resize: vertical; min-height: 150px; }
.field input:focus, .field textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px rgba(200, 242, 90, .2); }
.form__hint { font-size: 14px; color: var(--text-subtle); }
.form__hint a { color: #a9afb8; }
.form .btn { align-self: flex-start; }
/* Honeypot: hidden from humans, visible to naive bots */
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

.notice { border-radius: var(--radius-sm); padding: 14px 16px; font-size: 15px; border: 1px solid; }
.notice[hidden] { display: none; }
.notice--ok { border-color: var(--accent); color: var(--accent); background: rgba(200, 242, 90, .07); }
.notice--error { border-color: var(--danger); color: var(--danger); background: rgba(255, 138, 122, .07); }

/* Footer */
.footer {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  border-top: 1px solid var(--line); padding-top: 20px;
  font-family: var(--font-mono); font-size: 13px; color: var(--text-subtle);
}
.footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.footer a { color: #a9afb8; }

/* Legal pages */
.legal-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.brand { font-family: var(--font-mono); font-size: 15px; font-weight: 500; color: var(--text); text-decoration: none; }
.brand:hover { color: var(--text-strong); }
.back { font-family: var(--font-mono); font-size: 13px; color: #a9afb8; text-decoration: none; padding: 12px 0; }
.legal { padding: 48px; display: flex; flex-direction: column; gap: 32px; }
.legal h1 { font-size: clamp(30px, 6vw, 44px); letter-spacing: -0.02em; }
.legal h2 { font-size: 22px; }
.legal h3 { font-size: 17px; }
.legal section { display: flex; flex-direction: column; gap: 10px; }
.legal p, .legal li { color: var(--text-muted); max-width: 760px; overflow-wrap: anywhere; }
.legal ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.legal address { font-style: normal; color: var(--text); }

/* Mobile */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 24px 16px 32px; gap: 56px; }
  .hero, .contact, .legal { padding: 28px 20px; gap: 28px; }
  .hero__mark { width: 88px; height: 88px; font-size: 22px; border-radius: 12px; }
  .hero__lead { font-size: 17px; }
  .actions .btn, .form .btn { width: 100%; }
  .service { padding: 22px; }
  .faq summary { font-size: 17px; }
  .facts { grid-template-columns: 1fr; gap: 2px; }
  .facts dd { margin-bottom: 10px; }
}
.nowrap { white-space: nowrap; }
