/* ==========================================================================
   estel.email — Zentrale Profil-, Projekt- und Rechtsseite (Michael Estel)
   100 % lokal, keine externen Fonts, keine CDNs, keine Tracker.
   ========================================================================== */

:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --surface-subtle: #f1f4f8;
  --ink: #0f172a;
  --ink-secondary: #334155;
  --muted: #5b6778;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --brand: #0f6b63;
  --brand-hover: #0b534d;
  --brand-soft: #eef8f6;
  --brand-border: #bfe5df;
  --navy: #0f2433;
  --navy-soft: #1c3648;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 4px 16px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 10px 28px rgba(15, 23, 42, 0.08);
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --max-w: 1080px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

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

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

/* ---------- Navigation ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-weight: 750;
  font-size: 1rem;
  letter-spacing: -0.015em;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--navy);
  color: #f8fafc;
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  font-size: 0.92rem;
  font-weight: 500;
}

.nav-links a {
  color: var(--ink-secondary);
}

.nav-links a:hover {
  color: var(--ink);
  text-decoration: none;
}

.nav-links a[aria-current="page"] {
  color: var(--brand);
  font-weight: 650;
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, #ffffff 0%, #f6f7f9 100%);
  border-bottom: 1px solid var(--border);
  padding: 64px 0 52px;
}

.hero-inner {
  max-width: 780px;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand);
  margin-bottom: 14px;
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 4.2vw, 2.85rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 800;
  color: var(--ink);
}

.hero-lead {
  margin: 0 0 28px;
  font-size: 1.12rem;
  line-height: 1.65;
  color: var(--ink-secondary);
  max-width: 68ch;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: var(--radius-sm);
  font-weight: 650;
  font-size: 0.93rem;
  line-height: 1.2;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: var(--brand);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--brand-hover);
}

.btn-dark {
  background: var(--navy);
  color: #ffffff;
}

.btn-dark:hover {
  background: var(--navy-soft);
}

.btn-secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--border-strong);
}

.btn-secondary:hover {
  background: var(--surface-subtle);
  border-color: #94a3b8;
}

.btn-sm {
  padding: 8px 13px;
  font-size: 0.85rem;
}

.trust-strip {
  margin-top: 38px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  font-size: 0.88rem;
  color: var(--muted);
}

.trust-strip span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.trust-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
  flex-shrink: 0;
}

/* ---------- Sections ---------- */
.section {
  padding: 60px 0;
}

.section-alt {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  margin-bottom: 30px;
  max-width: 720px;
}

.section-head h2 {
  margin: 0 0 8px;
  font-size: clamp(1.45rem, 2.6vw, 1.85rem);
  letter-spacing: -0.025em;
  font-weight: 780;
  color: var(--ink);
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

/* ---------- Featured Book Card ---------- */
.book-feature {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  align-items: start;
}

.book-cover-wrap {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  background: var(--navy);
}

.book-cover-wrap img {
  width: 100%;
  height: auto;
}

.badge {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--brand);
  background: var(--brand-soft);
  border: 1px solid var(--brand-border);
  padding: 3px 9px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.badge-muted {
  color: var(--ink-secondary);
  background: var(--surface-subtle);
  border-color: var(--border);
}

.book-body h3 {
  margin: 0 0 6px;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  font-weight: 800;
}

.book-subtitle {
  margin: 0 0 14px;
  font-size: 1rem;
  color: var(--ink-secondary);
  font-weight: 500;
}

.book-desc {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.95rem;
}

.feature-list {
  margin: 0 0 22px;
  padding-left: 18px;
  color: var(--ink-secondary);
  font-size: 0.92rem;
}

.feature-list li {
  margin-bottom: 5px;
}

/* ---------- Editions Grid ---------- */
.editions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card h3 {
  margin: 0 0 6px;
  font-size: 1.12rem;
  letter-spacing: -0.015em;
  font-weight: 750;
}

.card p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.92rem;
}

.format-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
}

.format-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--ink);
  font-size: 0.89rem;
  font-weight: 600;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.format-link:hover {
  border-color: var(--brand);
  background: var(--brand-soft);
  text-decoration: none;
}

.format-link small {
  font-weight: 400;
  color: var(--muted);
  margin-left: 6px;
}

.format-arrow {
  color: var(--brand);
  font-weight: 700;
}

/* ---------- Projects Grid ---------- */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}

.project-card h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
  font-weight: 760;
  letter-spacing: -0.015em;
}

.project-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.project-meta {
  margin-top: 12px;
  font-size: 0.82rem;
  color: var(--ink-secondary);
  background: var(--surface-subtle);
  padding: 7px 10px;
  border-radius: 6px;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

/* ---------- Secondary / Archive Projects ---------- */
.sub-heading {
  margin: 38px 0 14px;
  font-size: 1rem;
  font-weight: 720;
  color: var(--ink-secondary);
}

.compact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
}

.compact-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.compact-item strong {
  font-size: 0.93rem;
  color: var(--ink);
}

.compact-item span {
  font-size: 0.83rem;
  color: var(--muted);
}

.compact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
  font-size: 0.83rem;
  font-weight: 600;
}

/* ---------- About & Contact ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: start;
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
}

.contact-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.contact-label {
  color: var(--muted);
  font-weight: 500;
}

/* ---------- Newsletter ---------- */
.nl-box {
  margin-top: 28px;
  background: var(--navy);
  color: #f8fafc;
  border-radius: var(--radius-lg);
  padding: 28px 30px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 24px;
  align-items: center;
}

.nl-box h3 {
  margin: 0 0 6px;
  font-size: 1.25rem;
  font-weight: 750;
  color: #ffffff;
}

.nl-box p {
  margin: 0;
  font-size: 0.92rem;
  color: #cbd5e1;
}

.nl-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.nl-input {
  flex: 1 1 210px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 0.93rem;
}

.nl-input::placeholder {
  color: #94a3b8;
}

.nl-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.nl-note {
  margin: 10px 0 0 !important;
  font-size: 0.79rem !important;
  color: #94a3b8 !important;
}

.nl-note a {
  color: #5eead4;
}

/* ---------- Legal Pages (Impressum & Datenschutz) ---------- */
.legal-main {
  max-width: 820px;
  margin: 0 auto;
  padding: 48px 24px 72px;
}

.backlink {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 24px;
}

.backlink:hover {
  color: var(--brand);
  text-decoration: none;
}

.legal-main h1 {
  margin: 0 0 12px;
  font-size: clamp(1.8rem, 3.6vw, 2.35rem);
  letter-spacing: -0.025em;
  font-weight: 800;
}

.legal-intro {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 1rem;
}

.legal-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px 26px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-xs);
}

.legal-card h2 {
  margin: 0 0 12px;
  font-size: 1.12rem;
  font-weight: 760;
  color: var(--ink);
}

.legal-card h3 {
  margin: 18px 0 8px;
  font-size: 0.98rem;
  font-weight: 720;
  color: var(--ink);
}

.legal-card p,
.legal-card li {
  color: var(--ink-secondary);
  font-size: 0.94rem;
}

.legal-card p {
  margin: 0 0 10px;
}

.legal-card p:last-child {
  margin-bottom: 0;
}

.legal-card ul {
  margin: 8px 0 12px;
  padding-left: 20px;
}

.legal-card li {
  margin-bottom: 4px;
}

.legal-highlight {
  background: var(--brand-soft);
  border: 1px solid var(--brand-border);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin-bottom: 22px;
}

.legal-highlight strong {
  color: var(--ink);
}

.legal-highlight ul {
  margin: 8px 0 0;
  padding-left: 20px;
  color: var(--ink-secondary);
  font-size: 0.93rem;
}

.scope-list {
  font-family: var(--font-mono);
  font-size: 0.84rem !important;
  word-break: break-all;
}

.updated {
  margin-top: 28px;
  font-size: 0.86rem;
  color: var(--muted);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 28px 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-links a {
  color: var(--ink-secondary);
  font-weight: 500;
}

.footer-links a:hover {
  color: var(--brand);
}

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .book-feature {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .book-cover-wrap {
    max-width: 210px;
  }
  .two-col,
  .nl-box {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .hero {
    padding: 44px 0 38px;
  }
  .section {
    padding: 44px 0;
  }
  .nav-inner {
    padding: 12px 18px;
  }
  .wrap,
  .footer-inner,
  .legal-main {
    padding-left: 18px;
    padding-right: 18px;
  }
  .book-feature,
  .nl-box,
  .legal-card {
    padding: 20px;
  }
}
