/* qualitix.de – Jürgen Flachmüller */
:root {
  --yellow: #ffc928;
  --yellow-deep: #f2b100;
  --yellow-soft: #fff4cc;
  --yellow-light: #fff5d3;
  --ink: #18191d;
  --green: #1e3a2b;
  --green-2: #2b4f3b;
  --ink-2: #3a3c44;
  --muted: #676a74;
  --paper: #fffdf7;
  --line: #ece6d3;
  --radius: 14px;
  --wrap: 1120px;
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--ink); text-decoration-color: var(--yellow-deep); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: #000; background: var(--yellow-soft); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: clamp(16px, 4vw, 32px); }

.skip { position: absolute; left: -999px; top: 0; background: var(--yellow); color: var(--green); padding: .5rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: rgba(255, 253, 247, .92);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px; flex-wrap: wrap; }

.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; font-weight: 800; font-size: 1.35rem; letter-spacing: -.02em; color: var(--green); }
.brand:hover { background: none; color: var(--green); }
.brand-mark {
  min-width: 34px; height: 34px; padding: 0 .5rem; border-radius: 9px; background: var(--yellow); color: var(--green);
  display: grid; place-items: center; font-family: var(--mono); font-size: .9rem; font-weight: 700; letter-spacing: -.04em;
  box-shadow: inset 0 -3px 0 var(--yellow-deep);
}
.brand small { display: block; font-weight: 500; font-size: .78rem; color: var(--muted); letter-spacing: 0; line-height: 1.1; }

.nav { display: flex; gap: .25rem; flex-wrap: wrap; }
.nav a { text-decoration: none; padding: .45rem .85rem; border-radius: 999px; font-weight: 600; font-size: .98rem; color: var(--green); }
.nav a:hover { background: var(--yellow-soft); color: var(--green); }
.nav a[aria-current="page"] { background: var(--yellow); color: var(--green); }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(circle at 88% 30%, var(--yellow) 0 80px, transparent 81px),
    radial-gradient(circle at 95% 85%, rgba(242,177,0,.55) 0 45px, transparent 46px),
    var(--yellow-light);
  border-bottom: 4px solid var(--ink);
  overflow: hidden;
}
.hero .wrap, .page-head .wrap { padding-block: clamp(1.5rem, 3.5vw, 2.25rem); }
.eyebrow { font-family: var(--mono); font-size: .9rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; margin: 0 0 .5rem; }
.hero h1, .page-head h1 { font-size: clamp(1.75rem, 3.6vw, 2.5rem); line-height: 1.12; letter-spacing: -.03em; margin: 0 0 .6rem; max-width: 30ch; }
.hero p.lead { font-size: clamp(1rem, 1.6vw, 1.12rem); max-width: 68ch; margin: 0 0 1.1rem; color: var(--ink-2); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; }

.focus-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.focus-list a {
  display: inline-flex; align-items: center; gap: .55rem; text-decoration: none;
  background: var(--paper); border: 2px solid var(--green); border-radius: 999px;
  padding: .45rem 1.1rem; font-weight: 700; color: var(--green);
}
.focus-list a:hover { background: var(--green); border-color: var(--green); color: var(--yellow); }

.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  background: var(--green); color: var(--yellow); border: 2px solid var(--green);
  border-radius: 10px; padding: .8rem 1.4rem;
  box-shadow: 4px 4px 0 rgba(24,25,29,.25);
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { background: var(--green-2); border-color: var(--green-2); color: #fff; transform: translate(-1px, -1px); box-shadow: 6px 6px 0 rgba(24,25,29,.25); }
.btn:disabled { opacity: .6; cursor: wait; }

/* ---------- Skill sections ---------- */
.skills { padding-block: clamp(3rem, 7vw, 5.5rem); }
.skills-intro { max-width: 62ch; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.skills-intro h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); letter-spacing: -.025em; line-height: 1.15; margin: 0 0 .75rem; }
.skills-intro p { color: var(--ink-2); margin: 0; }
.skills-intro p + p { margin-top: .75rem; }

.skill {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(1.5rem, 5vw, 4rem); align-items: center;
  padding-block: clamp(2rem, 5vw, 3.5rem);
  border-top: 1px solid var(--line);
  scroll-margin-top: 80px;
}
.skill:nth-of-type(even) .skill-media { order: -1; }

.skill-label { font-family: var(--mono); font-weight: 700; font-size: .9rem; display: inline-block; background: var(--yellow); color: var(--green); padding: .1rem .55rem; border-radius: 6px; margin-bottom: .9rem; }
.skill h3 { font-size: clamp(1.5rem, 3vw, 2.1rem); letter-spacing: -.025em; line-height: 1.15; margin: 0 0 1rem; }
.skill p { margin: 0 0 1rem; color: var(--ink-2); }
.tags { list-style: none; padding: 0; margin: 1.25rem 0 0; display: flex; flex-wrap: wrap; gap: .45rem; }
.tags li { font-family: var(--mono); font-size: .82rem; border: 1px solid var(--line); background: #fff; border-radius: 6px; padding: .2rem .6rem; }

.skill-media {
  background: var(--yellow-soft); border-radius: calc(var(--radius) + 6px);
  padding: clamp(1rem, 3vw, 2rem); border: 2px solid var(--ink);
  box-shadow: 8px 8px 0 var(--yellow);
}
.skill-media img { width: 100%; aspect-ratio: 4 / 3; }

/* ---------- CTA band ---------- */
.cta { background: var(--green); color: #fff; }
.cta .wrap { padding-block: clamp(2.5rem, 6vw, 4rem); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.cta h2 { margin: 0 0 .3rem; font-size: clamp(1.4rem, 3vw, 1.9rem); letter-spacing: -.02em; }
.cta p { margin: 0; color: #c8d6cd; }
.cta .btn { background: var(--yellow); color: var(--green); border-color: var(--yellow); box-shadow: none; }
.cta .btn:hover { background: #fff; border-color: #fff; color: var(--green); }

/* ---------- Content pages ---------- */
.page-head { background: var(--yellow-light); border-bottom: 4px solid var(--ink); }
.page-head p { margin: 0; color: var(--ink-2); max-width: 60ch; }

.content { padding-block: clamp(2.5rem, 6vw, 4rem); }
.prose { max-width: 72ch; }
.prose h2 { font-size: 1.3rem; margin: 2.2rem 0 .5rem; letter-spacing: -.01em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.08rem; margin: 1.5rem 0 .4rem; }
.prose p, .prose ul { margin: 0 0 1rem; color: var(--ink-2); }
.prose address { font-style: normal; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(1.5rem, 5vw, 3.5rem); align-items: start; }

.card { background: #fff; border: 2px solid var(--ink); border-radius: var(--radius); padding: clamp(1.25rem, 3vw, 2rem); }
.card.yellow { background: var(--yellow-soft); box-shadow: 8px 8px 0 var(--yellow); }
.card h2 { margin: 0 0 1rem; font-size: 1.3rem; }

.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.contact-list li { display: grid; grid-template-columns: 40px 1fr; gap: .8rem; align-items: start; }
.contact-list .ico { width: 40px; height: 40px; border-radius: 10px; background: var(--yellow); display: grid; place-items: center; }
.contact-list .ico svg { width: 20px; height: 20px; }
.contact-list strong { display: block; font-size: .85rem; color: var(--muted); font-weight: 600; }

.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; margin-bottom: .35rem; font-size: .95rem; }
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--ink);
  background: var(--paper); border: 2px solid #d9d3bf; border-radius: 10px; padding: .7rem .85rem;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px var(--yellow-soft); }
.field textarea { min-height: 170px; resize: vertical; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.check { display: flex; gap: .6rem; align-items: flex-start; font-size: .95rem; color: var(--ink-2); margin-bottom: 1.25rem; }
.check input { margin-top: .3rem; width: 18px; height: 18px; accent-color: var(--ink); flex: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.notice { border-radius: 10px; padding: .8rem 1rem; margin-bottom: 1.25rem; font-weight: 600; }
.notice.ok { background: #e6f6ea; border: 2px solid #2f8f4e; }
.notice.err { background: #fde9e7; border: 2px solid #c0392b; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); font-size: .92rem; color: var(--muted); }
.site-footer .wrap { padding-block: 1.75rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 1.5rem; }
.site-footer nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.site-footer a { color: var(--ink-2); }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .skill, .contact-grid { grid-template-columns: 1fr; }
  .skill .skill-media, .skill:nth-of-type(even) .skill-media { order: -1; max-width: 520px; }
}
@media (max-width: 520px) {
  .row-2 { grid-template-columns: 1fr; }
  .site-header .wrap { padding-block: .6rem; }
  .brand small { display: none; }
}

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

/* E-mail address shown as image (spam protection) */
.email-img { display: inline-block; height: 1.12em; width: auto; vertical-align: -0.22em; }
