/* =========================================================
   ASTERA GMBH — Stylesheet
   Design-Sprache abgeleitet von der Visitenkarte:
   Schwarz / Gold / Weiß, geschwungenes "A"-Wellensignet,
   geometrische, selbstbewusste Typografie.
   ========================================================= */

:root {
  /* Farben */
  --ink: #0c0c0d;
  --ink-soft: #19191c;
  --ink-line: #2c2c30;
  --gold: #c9973e;
  --gold-light: #e4bd7c;
  --gold-dark: #9c7429;
  --paper: #faf9f6;
  --paper-dim: #f0eee8;
  --white: #ffffff;
  --text: #17171a;
  --text-muted: #5c5c60;
  --text-on-ink: #f4f2ec;
  --text-on-ink-muted: #b7b5ae;

  /* Typografie */
  --font-display: "Poppins", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;

  /* Layout */
  --max-width: 1180px;
  --radius: 2px;
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 6.5rem;
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0 0 var(--space-2); font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 var(--space-2); }
button { font-family: inherit; cursor: pointer; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-3);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-dark);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--gold);
  display: inline-block;
}
.on-ink .eyebrow { color: var(--gold-light); }

.section {
  padding: var(--space-6) 0;
}
.section--tight { padding: var(--space-5) 0; }
.section--ink {
  background: var(--ink);
  color: var(--text-on-ink);
}
.section--dim {
  background: var(--paper-dim);
}

.section-head {
  max-width: 640px;
  margin-bottom: var(--space-4);
}
.section-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  margin-top: 0.5rem;
}
.section--ink .section-head p,
.on-ink p { color: var(--text-on-ink-muted); }

.gold-rule {
  width: 46px;
  height: 3px;
  background: var(--gold);
  margin: var(--space-2) 0;
  border: none;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  padding: 0.9em 1.7em;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold {
  background: var(--gold);
  color: var(--ink);
}
.btn-gold:hover { background: var(--gold-light); }
.btn-outline {
  border-color: currentColor;
  color: inherit;
}
.btn-outline:hover {
  background: var(--text-on-ink);
  color: var(--ink);
}
.on-light .btn-outline:hover {
  background: var(--ink);
  color: var(--text-on-ink);
}
.btn-outline.on-light { border-color: var(--ink); }

/* ---------- Header / Navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--ink);
  border-bottom: 1px solid var(--ink-line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text-on-ink);
}
.brand-mark { width: 40px; height: 40px; flex-shrink: 0; }
.brand-word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.12em;
  line-height: 1.1;
}
.brand-word span {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.58rem;
  letter-spacing: 0.32em;
  color: var(--gold-light);
  margin-top: 0.2rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}
.nav-links a {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-on-ink-muted);
  position: relative;
  padding: 0.3rem 0;
  transition: color 0.2s ease;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--white); }
.nav-links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -3px;
  height: 2px;
  background: var(--gold);
}
.nav-cta {
  background: var(--gold);
  color: var(--ink) !important;
  padding: 0.55em 1.3em;
  border-radius: var(--radius);
  font-weight: 600 !important;
}
.nav-cta:hover { background: var(--gold-light) !important; }
.nav-cta[aria-current="page"]::after { display: none; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  padding: 0.4rem;
}
.nav-toggle svg { width: 26px; height: 26px; }

@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--ink);
    border-bottom: 1px solid var(--ink-line);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0.5rem 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .nav-links.is-open { max-height: 420px; }
  .nav-links a {
    width: 100%;
    padding: 0.9rem var(--space-3);
  }
  .nav-links a[aria-current="page"]::after { display: none; }
  .nav-links a[aria-current="page"] { background: var(--ink-soft); }
  .nav-cta { margin: 0.5rem var(--space-3); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--ink);
  color: var(--text-on-ink);
  overflow: hidden;
  padding: var(--space-6) 0 var(--space-5);
}
.hero-watermark {
  position: absolute;
  right: -6%;
  top: 50%;
  transform: translateY(-50%);
  width: min(52vw, 640px);
  opacity: 0.06;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  max-width: 680px;
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.08;
  margin: 0.6rem 0 1rem;
}
.hero h1 em {
  font-style: normal;
  color: var(--gold);
}
.hero-lead {
  font-size: 1.08rem;
  color: var(--text-on-ink-muted);
  max-width: 540px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: var(--space-3);
}
.hero-strip {
  display: flex;
  gap: var(--space-4);
  margin-top: var(--space-5);
  padding-top: var(--space-3);
  border-top: 1px solid var(--ink-line);
  flex-wrap: wrap;
}
.hero-strip-item { max-width: 220px; }
.hero-strip-item strong {
  display: block;
  font-family: var(--font-display);
  color: var(--gold-light);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}
.hero-strip-item span {
  font-size: 0.85rem;
  color: var(--text-on-ink-muted);
}

/* ---------- Page header (non-home pages) ---------- */
.page-header {
  background: var(--ink);
  color: var(--text-on-ink);
  padding: var(--space-5) 0 var(--space-4);
  position: relative;
  overflow: hidden;
}
.page-header .hero-watermark { opacity: 0.05; width: min(40vw, 460px); }
.page-header h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin: 0.5rem 0 0.75rem; }
.page-header p { max-width: 560px; color: var(--text-on-ink-muted); margin: 0; }
.breadcrumb {
  font-size: 0.8rem;
  color: var(--text-on-ink-muted);
  letter-spacing: 0.05em;
}
.breadcrumb a:hover { color: var(--gold-light); }
.breadcrumb .sep { margin: 0 0.5em; color: var(--ink-line); }

/* ---------- Service cards ---------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}
@media (max-width: 820px) { .service-grid { grid-template-columns: 1fr; } }

.service-card {
  background: var(--white);
  border: 1px solid #e7e4db;
  padding: var(--space-4);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.section--ink .service-card {
  background: var(--ink-soft);
  border: 1px solid var(--ink-line);
}
.service-card:hover { border-color: var(--gold); transform: translateY(-4px); }
.service-icon {
  width: 52px; height: 52px;
  margin-bottom: var(--space-2);
  color: var(--gold);
}
.service-card h3 {
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.service-card .tag {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 0.5rem;
  font-weight: 600;
}
.section--ink .service-card .tag { color: var(--gold-light); }
.service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0;
}
.section--ink .service-card p { color: var(--text-on-ink-muted); }

/* ---------- Split layout ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
  align-items: center;
}
@media (max-width: 880px) { .split { grid-template-columns: 1fr; gap: var(--space-4); } }
.split-media {
  aspect-ratio: 4 / 3;
  background: var(--ink);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.split-media svg { width: 55%; opacity: 0.9; }
.split-media::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--gold);
  outline: 10px solid var(--paper);
  outline-offset: -22px;
}

/* ---------- Trades / partner list ---------- */
.trade-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: var(--space-3);
}
.trade-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  border: 1px solid var(--ink-line);
  padding: 0.65rem 1.1rem;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-on-ink);
}
.trade-chip::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--gold);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ---------- Values / numbered process ---------- */
.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
  margin-top: var(--space-3);
}
@media (max-width: 820px) { .value-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .value-grid { grid-template-columns: 1fr; } }
.value-item {
  padding: var(--space-3) 0;
  border-top: 2px solid var(--ink);
}
.value-item h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: 0.03em; }
.value-item p { color: var(--text-muted); font-size: 0.93rem; margin: 0; }

/* ---------- Material band ---------- */
.material-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--ink-line);
}
@media (max-width: 780px) { .material-band { grid-template-columns: 1fr; } }
.material-cell {
  padding: var(--space-4);
  border-left: 1px solid var(--ink-line);
}
.material-cell:first-child { border-left: none; }
@media (max-width: 780px) {
  .material-cell { border-left: none; border-top: 1px solid var(--ink-line); }
  .material-cell:first-child { border-top: none; }
}
.material-cell .mat-code {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--gold);
}
.material-cell h4 { margin: 0.3rem 0 0.5rem; font-size: 1rem; }
.material-cell p { color: var(--text-on-ink-muted); font-size: 0.9rem; margin: 0; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--ink);
  color: var(--text-on-ink);
  padding: var(--space-5) 0;
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--ink-line);
}
.cta-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  flex-wrap: wrap;
}
.cta-band h2 { margin: 0.4rem 0 0; font-size: clamp(1.5rem, 3vw, 2.1rem); max-width: 480px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--text-on-ink-muted);
  padding: var(--space-5) 0 var(--space-2);
  border-top: 1px solid var(--ink-line);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--space-4);
  padding-bottom: var(--space-4);
}
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand .brand { margin-bottom: var(--space-2); }
.footer-brand p { max-width: 280px; font-size: 0.9rem; }
.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: var(--space-2);
}
.footer-col ul li { margin-bottom: 0.55rem; font-size: 0.9rem; }
.footer-col ul li a:hover { color: var(--gold-light); }
.footer-bottom {
  border-top: 1px solid var(--ink-line);
  padding-top: var(--space-2);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.78rem;
}

/* ---------- Forms ---------- */
.form-card {
  background: var(--white);
  border: 1px solid #e7e4db;
  padding: var(--space-4);
}
.form-row { margin-bottom: var(--space-2); }
.form-row.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2);
}
@media (max-width: 560px) { .form-row.two-col { grid-template-columns: 1fr; } }
label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-bottom: 0.4rem;
}
input, textarea, select {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.75em 0.9em;
  border: 1.5px solid #d8d5cb;
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--text);
}
input:focus, textarea:focus, select:focus {
  border-color: var(--gold);
  outline: none;
}
textarea { resize: vertical; min-height: 130px; }
.form-consent {
  display: flex;
  gap: 0.6em;
  align-items: flex-start;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.form-consent input { width: auto; margin-top: 0.3em; }
.hp-field { position: absolute; left: -9999px; opacity: 0; }
.form-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: var(--space-2);
}
#form-status {
  margin-top: var(--space-2);
  padding: 0.85em 1em;
  font-size: 0.9rem;
  display: none;
}
#form-status.is-success { display: block; background: #eef6ec; color: #2e5c30; border: 1px solid #bcdcb6; }
#form-status.is-error { display: block; background: #fbecec; color: #8a2f2f; border: 1px solid #eec3c3; }

/* ---------- Contact info list ---------- */
.info-list li {
  display: flex;
  gap: 0.9rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--ink-line);
}
.info-list li:last-child { border-bottom: none; }
.info-list svg { width: 20px; height: 20px; color: var(--gold); flex-shrink: 0; margin-top: 0.15rem; }
.info-list strong { display: block; font-family: var(--font-display); font-size: 0.85rem; letter-spacing: 0.03em; }
.info-list span, .info-list a { color: var(--text-on-ink-muted); font-size: 0.92rem; }
.info-list a:hover { color: var(--gold-light); }

/* ---------- Legal pages ---------- */
.legal-content { max-width: 780px; }
.legal-content h2 {
  font-size: 1.25rem;
  margin-top: var(--space-4);
  padding-top: var(--space-3);
  border-top: 1px solid #e2dfd4;
}
.legal-content h2:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.legal-content p, .legal-content li { color: var(--text-muted); font-size: 0.96rem; }
.legal-content ul { list-style: disc; padding-left: 1.3em; margin-bottom: var(--space-2); }
.legal-content a { color: var(--gold-dark); text-decoration: underline; }
.legal-note {
  background: var(--paper-dim);
  border-left: 3px solid var(--gold);
  padding: var(--space-2) var(--space-3);
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: var(--space-4);
}
.legal-note strong { color: var(--text); }

/* ---------- Trust seal (eRecht24) ---------- */
.trust-seal {
  margin-top: var(--space-5);
  padding-top: var(--space-4);
  border-top: 1px solid #e2dfd4;
  text-align: center;
}
.trust-seal img {
  width: 140px;
  height: auto;
  margin: 0 auto;
}
.trust-seal p {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.trust-seal a { color: inherit; }
.trust-seal a:hover img { opacity: 0.85; }

/* ---------- Legal: Letterhead / Anlagen ---------- */
.legal-letterhead {
  border: 1px solid #e2dfd4;
  background: var(--paper-dim);
  padding: var(--space-3);
  margin-bottom: var(--space-4);
  font-size: 0.92rem;
}
.legal-letterhead p { margin: 0; color: var(--text); }
.legal-annex {
  background: var(--paper-dim);
  border-left: 3px solid var(--ink);
  padding: var(--space-3) var(--space-3);
  margin-top: var(--space-2);
}
.legal-blank {
  display: inline-block;
  min-width: 260px;
  border-bottom: 1px solid var(--text-muted);
  margin: 0.2em 0 0.8em;
}
.legal-content .clause { margin-bottom: 0.9rem; }
.legal-content .clause strong { color: var(--text); margin-right: 0.3em; }

/* ---------- Team / Ansprechpartner ---------- */
.contact-person {
  display: flex;
  gap: var(--space-3);
  align-items: center;
  background: var(--ink-soft);
  border: 1px solid var(--ink-line);
  padding: var(--space-3);
}
.contact-person-avatar {
  width: 56px; height: 56px;
  border: 1.5px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; color: var(--gold);
  flex-shrink: 0;
}
.contact-person h3 { font-size: 1rem; margin: 0; color: var(--text-on-ink); }
.contact-person .role { color: var(--gold-light); font-size: 0.82rem; display: block; margin-bottom: 0.3rem; }
.contact-person a { font-size: 0.9rem; color: var(--text-on-ink-muted); }
.contact-person a:hover { color: var(--gold-light); }

/* ---------- Map ---------- */
.map-frame { border: 1px solid var(--ink-line); filter: grayscale(0.3); }
.map-frame iframe { width: 100%; height: 320px; border: 0; display: block; }
