/* software::pfuhl – Stylesheet */
:root {
  --bg: #0f1216;
  --bg-alt: #151a20;
  --surface: #1b2129;
  --border: #2a323d;
  --text: #e6e9ee;
  --muted: #9aa4b2;
  --accent: #00d084;
  --accent-dark: #00a86b;
  --accent-ink: #04140d;
  --error: #ff6b6b;
  --radius: 10px;
  --maxw: 1120px;
  --mono: ui-monospace, "JetBrains Mono", "Cascadia Code", Consolas, monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .6em; font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); letter-spacing: -.01em; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
code, .mono { font-family: var(--mono); }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--accent); color: var(--accent-ink); padding: 8px 12px; z-index: 100; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(15, 18, 22, .88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-family: var(--mono); font-weight: 700; font-size: 1.05rem; }
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; filter: invert(1); }
.brand span { color: var(--accent); }
.nav ul { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; }
.nav a { display: block; padding: 8px 14px; border-radius: 8px; color: var(--muted); font-weight: 500; }
.nav a:hover { color: var(--text); background: var(--surface); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--text); }
.nav a.nav-cta { background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.nav a.nav-cta:hover { background: var(--accent-dark); }
.nav-toggle { display: none; background: none; border: 1px solid var(--border); color: var(--text); border-radius: 8px; padding: 6px 10px; font: inherit; cursor: pointer; }

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav { position: absolute; top: 64px; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--border); display: none; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; padding: 12px 20px 20px; }
}

/* Buttons */
.btn {
  display: inline-block; padding: 12px 22px; border-radius: 8px;
  font-weight: 600; border: 1px solid transparent; cursor: pointer; font: inherit; font-weight: 600;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-dark); }
.btn-ghost { border-color: var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--muted); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6em; }

/* Hero */
.hero {
  position: relative; padding: 110px 0 100px; overflow: hidden;
  background:
    linear-gradient(180deg, rgba(15,18,22,.72), rgba(15,18,22,.96)),
    url("../img/hero.jpg") center/cover no-repeat;
}
.hero .prompt { font-family: var(--mono); color: var(--accent); margin-bottom: 1em; }
.hero .prompt::after { content: "_"; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero h1 { max-width: 15em; }
.hero p.lead { color: var(--muted); font-size: 1.15rem; max-width: 38em; }

.page-hero { padding: 72px 0 40px; border-bottom: 1px solid var(--border); background: var(--bg-alt); }
.page-hero p { color: var(--muted); max-width: 42em; margin: 0; }

/* Sections */
section { padding: 80px 0; }
section.alt { background: var(--bg-alt); }
.eyebrow { font-family: var(--mono); color: var(--accent); font-size: .9rem; margin-bottom: .6em; display: block; }
.muted { color: var(--muted); }

.grid { display: grid; gap: 20px; }
.grid-5 { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; color: var(--text); transition: border-color .2s, transform .2s;
}
a.card:hover { border-color: var(--accent); transform: translateY(-2px); text-decoration: none; }
.card .icon { font-family: var(--mono); color: var(--accent); font-size: 1.3rem; margin-bottom: 10px; display: block; }
.card p { color: var(--muted); margin: 0; font-size: .95rem; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.reverse > :first-child { order: 2; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 28px; }
  .split.reverse > :first-child { order: 0; }
}

/* Code-Fenster als Illustration */
.term {
  background: #0a0d10; border: 1px solid var(--border); border-radius: var(--radius);
  font-family: var(--mono); font-size: .9rem; overflow: hidden;
}
.term-bar { display: flex; gap: 7px; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.term-bar i { width: 11px; height: 11px; border-radius: 50%; background: #3a4350; }
.term-bar i:first-child { background: #ff5f56; } .term-bar i:nth-child(2) { background: #ffbd2e; } .term-bar i:nth-child(3) { background: #27c93f; }
.term pre { margin: 0; padding: 18px 20px; color: var(--muted); white-space: pre-wrap; }
.term .k { color: #c792ea; } .term .s { color: var(--accent); } .term .c { color: #5c6773; } .term .f { color: #82aaff; }

/* Zitat */
.quote { display: grid; grid-template-columns: 200px 1fr; gap: 40px; align-items: center; }
.quote img { border-radius: 50%; border: 3px solid var(--accent); aspect-ratio: 1; object-fit: cover; }
.quote blockquote { margin: 0; font-size: 1.3rem; line-height: 1.5; }
.quote cite { display: block; margin-top: 1em; color: var(--accent); font-style: normal; font-family: var(--mono); }
@media (max-width: 680px) { .quote { grid-template-columns: 1fr; text-align: center; } .quote img { width: 160px; margin: 0 auto; } }

.cta-box { text-align: center; max-width: 760px; margin: 0 auto; }

/* Bilder mit Bildunterschrift */
figure { margin: 0; }
figure img { border-radius: var(--radius); border: 1px solid var(--border); }
figcaption { color: var(--muted); font-size: .9rem; margin-top: 10px; }

ul.list { padding-left: 1.2em; }
ul.list li::marker { color: var(--accent); }

/* Referenzen */
.ref-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.ref-card .thumb { aspect-ratio: 16/10; background: var(--bg-alt); display: grid; place-items: center; font-family: var(--mono); color: var(--accent); font-size: 1.6rem; border-bottom: 1px solid var(--border); }
.ref-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.ref-card .body { padding: 22px; }

.ref-card .thumb .icon-thumb { width: 120px; height: 120px; border-radius: 24px; object-fit: contain; }
a.ref-card p { color: var(--muted); }
.tag { display: inline-block; font-family: var(--mono); font-size: .78rem; color: var(--accent); border: 1px solid var(--border); border-radius: 999px; padding: 2px 10px; margin-bottom: 10px; }

.featured {
  display: grid; grid-template-columns: auto 1fr; gap: 36px; align-items: center; padding: 36px;
  border-color: var(--accent);
  background: radial-gradient(circle at 0% 0%, rgba(0, 208, 132, .14), transparent 60%), var(--surface);
}
.featured-icon { width: 140px; height: 140px; border-radius: 28px; box-shadow: 0 10px 40px rgba(0, 208, 132, .25); }
.featured p { color: var(--muted); }
@media (max-width: 640px) { .featured { grid-template-columns: 1fr; padding: 24px; } }

/* Kontakt */
.form { display: grid; gap: 18px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 600px) { .form .row { grid-template-columns: 1fr; } }
.form label { display: block; font-weight: 600; margin-bottom: 6px; }
.form .hint { color: var(--muted); font-size: .85rem; margin-top: 4px; }
.form input, .form textarea {
  width: 100%; padding: 12px 14px; font: inherit; color: var(--text);
  background: var(--bg); border: 1px solid var(--border); border-radius: 8px;
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0, 208, 132, .2); }
.form textarea { min-height: 170px; resize: vertical; }
.form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--muted); font-size: .92rem; }
.form .check input { width: auto; margin-top: 5px; }
/* Honeypot: für Menschen unsichtbar, für Bots ein gefundenes Fressen */
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.form-status { padding: 14px 16px; border-radius: 8px; display: none; }
.form-status.ok { display: block; background: rgba(0, 208, 132, .12); border: 1px solid var(--accent); }
.form-status.err { display: block; background: rgba(255, 107, 107, .1); border: 1px solid var(--error); }
.contact-aside .card + .card { margin-top: 16px; }
.contact-aside h3 { margin-bottom: .3em; }

/* Rechtstexte */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.4rem; margin-top: 1.8em; }
.prose h3 { margin-top: 1.4em; }
.prose p, .prose li { color: #c9d0d9; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 32px 0; color: var(--muted); font-size: .92rem; }
.site-footer .container { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; }
.site-footer ul { list-style: none; display: flex; gap: 20px; margin: 0; padding: 0; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }
