/* ============================================================
   amenzel.de — Design system carried over from the cover letter
   Petrol palette · Bricolage Grotesque (display) · IBM Plex (body/mono)
   ============================================================ */

:root {
  --petrol: #0F4C5C;
  --petrol-deep: #073B4C;
  --petrol-soft: #EAF1F3;
  --petrol-mute: #B8CDD2;
  --ink: #1A2024;
  --text: #2C353B;
  --muted: #6B7882;
  --line: #DCE3E6;
  --paper: #FFFFFF;
  --sand: #F2F2EF;

  --maxw: 1080px;
  --radius: 14px;
  --shadow: 0 10px 40px rgba(7, 59, 76, 0.10);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'IBM Plex Sans', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--sand);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  font-family: 'Bricolage Grotesque', 'IBM Plex Sans', sans-serif;
  color: var(--ink);
  line-height: 1.08;
  letter-spacing: -0.5px;
  font-weight: 600;
}

a { color: var(--petrol); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--petrol);
  margin-bottom: 14px;
  display: block;
}

/* ===== Top nav ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  transition: background .3s ease, box-shadow .3s ease, padding .3s ease;
}
.nav.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  box-shadow: 0 1px 0 var(--line);
  padding: 12px 24px;
}
.nav .brand {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 600;
  font-size: 18px;
  color: #fff;
  letter-spacing: -0.3px;
}
.nav.scrolled .brand { color: var(--ink); }
.nav .brand .dot { color: var(--petrol-mute); }
.nav.scrolled .brand .dot { color: var(--petrol); }
.nav-links { display: flex; gap: 26px; align-items: center; }
.nav-links a {
  color: rgba(255,255,255,0.92);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}
.nav.scrolled .nav-links a { color: var(--text); }
.nav-links a:hover { color: #fff; text-decoration: none; }
.nav.scrolled .nav-links a:hover { color: var(--petrol); }
/* Solid pill so it stays readable over the busy hero photo AND the white scrolled nav */
.nav-links a.cta,
.nav.scrolled .nav-links a.cta {
  background: var(--petrol);
  color: #fff;
  border: 1px solid var(--petrol);
  padding: 7px 16px;
  border-radius: 999px;
}
.nav-links a.cta:hover,
.nav.scrolled .nav-links a.cta:hover {
  background: var(--petrol-deep);
  border-color: var(--petrol-deep);
  color: #fff;
  text-decoration: none;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  background-image:
    linear-gradient(180deg, rgba(7,59,76,0.28) 0%, rgba(7,59,76,0.08) 40%, rgba(7,59,76,0.38) 100%),
    url('background.jpg');
  background-size: cover;
  background-position: center 40%;
  color: #fff;
}
/* Frosted-glass card carries the text contrast; the photo stays clear around it */
.hero-inner {
  max-width: 600px;
  margin: 116px 0 96px;
  padding: 40px 44px;
  background: rgba(9, 46, 58, 0.46);
  backdrop-filter: blur(14px) saturate(135%);
  -webkit-backdrop-filter: blur(14px) saturate(135%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 20px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.30);
}
.hero .kicker {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  margin-bottom: 18px;
}
.hero h1 {
  color: #fff;
  font-size: clamp(44px, 8vw, 84px);
  letter-spacing: -2px;
  margin-bottom: 18px;
  text-shadow: 0 2px 30px rgba(0,0,0,0.25);
}
.hero h1 .accent { color: var(--petrol-mute); }
.hero .lede {
  font-size: clamp(18px, 2.4vw, 22px);
  color: rgba(255,255,255,0.95);
  max-width: 560px;
  margin-bottom: 32px;
  text-shadow: 0 1px 16px rgba(0,0,0,0.3);
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Availability pill — signals openness to robotics exchange/roles */
.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 34px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12.5px;
  line-height: 1.4;
  letter-spacing: 0.2px;
  color: #fff;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.30);
  padding: 9px 16px 9px 14px;
  border-radius: 999px;
}
.hero-status .pulse {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #8FE3B0;
  flex: none;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(143, 227, 176, 0.6); }
  70%  { box-shadow: 0 0 0 8px rgba(143, 227, 176, 0); }
  100% { box-shadow: 0 0 0 0 rgba(143, 227, 176, 0); }
}

.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 500;
  font-size: 16px;
  padding: 13px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, border-color .2s ease, color .2s ease;
  text-decoration: none;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn-primary { background: var(--petrol); color: #fff; }
.btn-primary:hover { background: var(--petrol-deep); color: #fff; }
/* Solid white pill (paired with the filled-petrol primary) — readable over any photo */
.btn-ghost { background: #fff; color: var(--petrol-deep); border-color: #fff; }
.btn-ghost:hover { background: var(--petrol-soft); color: var(--petrol-deep); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; color: #fff; }

.scroll-hint {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,0.8); font-size: 12px; letter-spacing: 2px;
  font-family: 'IBM Plex Mono', monospace; text-transform: uppercase;
  animation: bob 2.4s ease-in-out infinite;
}
@keyframes bob { 0%,100%{transform:translate(-50%,0)} 50%{transform:translate(-50%,6px)} }

/* ===== Sections ===== */
section { padding: 92px 0; }
.section-paper { background: var(--paper); }
.section-soft { background: var(--petrol-soft); }
.section-dark { background: var(--petrol-deep); color: var(--petrol-soft); }

.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(30px, 4.5vw, 44px); margin-bottom: 16px; }
.section-head p { color: var(--muted); font-size: 18px; }
.section-dark .section-head h2 { color: #fff; }
.section-dark .section-head p { color: var(--petrol-mute); }
.section-dark .eyebrow { color: var(--petrol-mute); }

/* ===== About ===== */
.about-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: start; }
.about-grid p { margin-bottom: 18px; }
.about-grid p:last-child { margin-bottom: 0; }
.skills-box {
  background: var(--petrol-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}
.skills-box h3 {
  font-size: 13px; letter-spacing: 1.4px; text-transform: uppercase;
  font-family: 'Bricolage Grotesque', sans-serif; color: var(--petrol);
  margin-bottom: 16px;
}
.tags { display: flex; flex-wrap: wrap; gap: 9px; }
.tag {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--petrol-deep);
  padding: 6px 12px;
  border-radius: 999px;
}

/* ===== Services ===== */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--petrol-mute); }
.card .icon {
  width: 46px; height: 46px; border-radius: 11px;
  display: grid; place-items: center;
  background: var(--petrol-soft); color: var(--petrol);
  margin-bottom: 18px;
}
.card .icon svg { width: 24px; height: 24px; }
.card h3 { font-size: 21px; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15.5px; margin-bottom: 14px; }
.card ul { list-style: none; }
.card li {
  position: relative; padding-left: 20px; margin-bottom: 6px;
  font-size: 14.5px; color: var(--text); line-height: 1.5;
}
.card li::before { content: "▸"; color: var(--petrol); position: absolute; left: 0; }

/* ===== Contact ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact-intro h2 { color: #fff; }
.contact-intro p { color: var(--petrol-mute); margin-bottom: 24px; }
.contact-alt { display: flex; flex-direction: column; gap: 14px; margin-top: 28px; }
.contact-alt a.linkedin {
  display: inline-flex; align-items: center; gap: 10px;
  color: #fff; font-weight: 500; width: fit-content;
}
.contact-alt a.linkedin svg { width: 22px; height: 22px; }

form { display: flex; flex-direction: column; gap: 16px; }
.field label {
  display: block; font-size: 13px; font-weight: 600; color: var(--petrol-soft);
  margin-bottom: 7px; font-family: 'Bricolage Grotesque', sans-serif; letter-spacing: 0.3px;
}
.field input, .field textarea {
  width: 100%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(184,205,210,0.35);
  border-radius: 10px;
  padding: 12px 14px;
  color: #fff;
  font-family: inherit;
  font-size: 16px;
}
.field input::placeholder, .field textarea::placeholder { color: rgba(184,205,210,0.6); }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--petrol-mute);
  background: rgba(255,255,255,0.10);
}
.field textarea { resize: vertical; min-height: 130px; }
/* honeypot — hidden from humans, bait for bots */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-note { font-size: 13px; color: var(--petrol-mute); }
.form-note a { color: #fff; text-decoration: underline; }
.form-status { font-size: 14.5px; min-height: 1.2em; }
.form-status.ok { color: #8FE3B0; }
.form-status.err { color: #FFB3AE; }

.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }

/* Submit button: solid white, full-width — clearly a button on the dark contact section */
#submit-btn {
  width: 100%;
  justify-content: center;
  background: #fff;
  color: var(--petrol-deep);
  border-color: #fff;
  font-weight: 600;
  margin-top: 4px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}
#submit-btn:hover { background: var(--petrol-soft); color: var(--petrol-deep); }

/* ===== Footer ===== */
.footer {
  background: var(--ink); color: rgba(255,255,255,0.65);
  padding: 34px 0; font-size: 14px;
}
.footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer a { color: rgba(255,255,255,0.85); }
.footer .muted { color: rgba(255,255,255,0.45); font-family: 'IBM Plex Mono', monospace; font-size: 12px; }

/* ===== Legal pages (impressum) ===== */
.legal { background: var(--sand); min-height: 100vh; padding: 110px 0 70px; }
.legal .wrap { max-width: 760px; }
.legal-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 44px 48px; box-shadow: var(--shadow);
}
.legal h1 { font-size: 40px; margin-bottom: 8px; }
.legal h2 { font-size: 21px; margin: 30px 0 10px; }
.legal h3 { font-size: 16px; margin: 22px 0 6px; color: var(--petrol-deep); }
.legal p { margin-bottom: 12px; color: var(--text); font-size: 15.5px; }
.legal .addr { font-size: 17px; color: var(--ink); line-height: 1.7; margin: 14px 0 4px; }
.legal .back { display: inline-block; margin-bottom: 26px; font-size: 14px; }
.legal .small { font-size: 13px; color: var(--muted); }

/* ===== Responsive ===== */
@media (max-width: 820px) {
  .nav-links { gap: 16px; }
  .nav-links a:not(.cta) { display: none; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .cards { grid-template-columns: 1fr; }
  section { padding: 70px 0; }
  .legal-card { padding: 30px 22px; }
  .hero-inner { padding: 28px 22px; margin: 96px 0 72px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scroll-hint { animation: none; }
  .hero-status .pulse { animation: none; }
  .btn:hover, .card:hover { transform: none; }
}
