/* Brand Echo – Unterseiten (Blog, Impressum, Datenschutz)
   Farben, Schriften, Navigation und Fußzeile sind aus der Startseite übernommen,
   damit alle Seiten wie eine Seite wirken. */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

:root {
  --navy:   #080f1e;
  --indigo: #1e3a8a;
  --purple: #5b21b6;
  --violet: #7c3aed;
  --lilac:  #a78bfa;

  --soft-bg: #f3f1ff;
  --border:  rgba(0,0,0,0.07);
  --text-1:  #080f1e;
  --text-2:  #374151;
  --text-3:  #6b7280;

  --sh-md: 0 4px 18px rgba(0,0,0,0.08),0 2px 6px rgba(0,0,0,0.04);
  --r-sm: 8px; --r-md: 14px; --r-lg: 20px;

  --display: 'Bricolage Grotesque', sans-serif;
  --col: 680px;
}

body { font-family: 'Inter', sans-serif; color: var(--text-1); background: #fff; overflow-x: hidden; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }

body::after {
  content: ''; position: fixed; inset: 0; z-index: 999;
  pointer-events: none; opacity: 0.022;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px;
}

:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; border-radius: 4px; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 300;
  background: var(--navy); color: #fff; padding: 10px 16px; border-radius: var(--r-sm);
  font-size: 14px; font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ─── Navigation (wie Startseite) ─── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: 62px; padding: 0 52px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border-bottom: 1px solid var(--border);
}
.logo {
  display: flex; align-items: center; gap: 9px;
  font-family: var(--display);
  font-weight: 800; font-size: 18px; color: var(--navy);
  text-decoration: none; letter-spacing: -.3px;
}
.logo img { width: 30px; height: 30px; border-radius: 7px; object-fit: cover; }
.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; }
.nav-links a { color: var(--text-3); font-size: 13.5px; font-weight: 500; text-decoration: none; transition: color .18s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--navy); }
.nav-links a.nav-cta {
  background: var(--navy); color: #fff;
  padding: 9px 20px; border-radius: 50px;
  font-size: 13px; font-weight: 600; letter-spacing: -.1px;
  box-shadow: 0 2px 8px rgba(8,15,30,.18);
  transition: background .2s, transform .15s, box-shadow .2s;
}
.nav-links a.nav-cta:hover { background: var(--violet); color: #fff; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(91,33,182,.3); }

/* ─── Kopf einer Seite ─── */
.page-head {
  padding: 128px 24px 54px;
  background: linear-gradient(148deg, #f8f7ff 0%, #ede9ff 38%, #eef9ff 100%);
  border-bottom: 1px solid var(--border);
}
.col { max-width: var(--col); margin: 0 auto; }

.back {
  display: inline-block; margin-bottom: 22px;
  font-size: 14px; font-weight: 500; color: var(--purple); text-decoration: none;
}
.back:hover { text-decoration: underline; text-underline-offset: 3px; }

.page-head h1 {
  font-family: var(--display);
  font-size: clamp(32px, 4.6vw, 48px); font-weight: 800;
  line-height: 1.08; letter-spacing: -1.4px; color: var(--navy);
  text-wrap: balance;
}
.lede { font-size: 19px; line-height: 1.6; color: var(--text-2); margin-top: 18px; }
.meta { font-size: 14px; color: var(--text-3); margin-top: 22px; }

/* ─── Blog-Übersicht ─── */
.posts { padding: 8px 24px 96px; }
.post-list { list-style: none; }
.post { border-bottom: 1px solid var(--border); }
.post a { display: block; padding: 34px 0; text-decoration: none; }
.post h2 {
  font-family: var(--display);
  font-size: 27px; font-weight: 700; line-height: 1.18; letter-spacing: -.6px;
  color: var(--navy); transition: color .18s;
}
.post a:hover h2 { color: var(--purple); }
.post p { font-size: 16.5px; line-height: 1.6; color: var(--text-2); margin-top: 9px; }
.post time { display: block; font-size: 13.5px; color: var(--text-3); margin-top: 13px; }

/* ─── Artikeltext ─── */
.prose { padding: 52px 24px 92px; }
.flow > * + * { margin-top: 1.15em; }

.prose p, .prose li { font-size: 17.5px; line-height: 1.72; color: var(--text-2); }
.prose strong { color: var(--navy); font-weight: 600; }
.prose a { color: var(--purple); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--violet); }

.prose h2 {
  font-family: var(--display);
  font-size: 29px; font-weight: 700; line-height: 1.18; letter-spacing: -.7px;
  color: var(--navy); margin-top: 2.1em;
}
.prose h3 {
  font-family: var(--display);
  font-size: 21px; font-weight: 600; line-height: 1.25; letter-spacing: -.3px;
  color: var(--navy); margin-top: 1.7em;
}
.prose h2 + *, .prose h3 + * { margin-top: .7em; }
.prose .flow > :first-child { margin-top: 0; }

.prose ul, .prose ol { padding-left: 1.35em; }
.prose li + li { margin-top: .45em; }
.prose li::marker { color: var(--violet); font-weight: 600; }

.prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .88em;
  background: var(--soft-bg); color: var(--purple); padding: 2px 6px; border-radius: 5px;
}

/* Hinweis */
.note {
  border-left: 3px solid var(--violet); background: var(--soft-bg);
  padding: 18px 22px; border-radius: 0 var(--r-sm) var(--r-sm) 0;
}
.prose .note p { font-size: 16.5px; }
.note, .table-wrap { margin-top: 1.8em; }

/* Vorher und nachher: zwei Textfassungen nebeneinander */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 1.8em; }
.compare > div { border: 1px solid var(--border); border-radius: var(--r-md); padding: 20px 22px; }
.compare .before { background: #fafafa; }
.compare .after { background: var(--soft-bg); border-color: rgba(91,33,182,.16); }
.compare h3 { font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 600; letter-spacing: 0; color: var(--text-3); margin-top: 0; }
.compare .after h3 { color: var(--violet); }
.prose .compare p { font-size: 15.5px; line-height: 1.62; }

/* Tabelle */
.table-wrap { overflow-x: auto; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.prose th, .prose td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: top; line-height: 1.5; }
.prose th { font-weight: 600; color: var(--navy); background: var(--soft-bg); }
.prose td { color: var(--text-2); }

/* Hinweis auf die App am Artikelende */
.app-box {
  margin-top: 3.2em; padding: 32px 34px; border-radius: var(--r-lg);
  background: linear-gradient(145deg,#080f1e 0%,#19103e 52%,#0c1f40 100%);
}
.prose .app-box h2 { color: #fff; font-size: 24px; margin-top: 0; }
.prose .app-box p { color: rgba(255,255,255,.72); font-size: 16.5px; }
.prose .app-box a.btn {
  display: inline-flex; align-items: center; margin-top: 22px;
  background: #fff; color: var(--navy); padding: 13px 24px; border-radius: 50px;
  font-size: 15px; font-weight: 700; letter-spacing: -.2px; text-decoration: none; text-align: center;
  box-shadow: 0 8px 28px rgba(0,0,0,.24); transition: transform .18s, box-shadow .18s;
}
.prose .app-box a.btn:hover { color: var(--navy); transform: translateY(-2px); box-shadow: 0 14px 42px rgba(0,0,0,.34); }

/* ─── Rechtsseiten (Impressum, Datenschutz) ─── */
.legal address { font-style: normal; font-size: 17.5px; line-height: 1.72; color: var(--text-2); }
.legal .lang-switch { font-size: 14.5px; color: var(--text-3); }
.legal hr { border: 0; border-top: 1px solid var(--border); margin-top: 3em; }
.legal hr + h2 { margin-top: 1.4em; }
.todo { background: #fff7d6; color: #5c4300; padding: 1px 5px; border-radius: 4px; font-weight: 600; }

/* ─── Fußzeile (wie Startseite) ─── */
footer {
  background: #060d19; padding: 40px 72px;
  display: flex; align-items: center; justify-content: space-between;
}
.foot-logo { display: flex; align-items: center; gap: 9px; text-decoration: none; }
.foot-logo img { width: 27px; height: 27px; border-radius: 6px; object-fit: cover; }
.foot-logo span { font-family: var(--display); font-weight: 800; font-size: 16px; color: #fff; letter-spacing: -.3px; }
.foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; list-style: none; margin: 0 16px; }
.foot-links a { color: rgba(255,255,255,.55); text-decoration: none; font-size: 13px; transition: color .2s; }
.foot-links a:hover { color: rgba(255,255,255,.9); }
.foot-copy { font-size: 12px; color: rgba(255,255,255,.4); }
.foot-logo, .foot-copy { flex-shrink: 0; white-space: nowrap; }

/* ─── Kleinere Bildschirme ─── */
@media (max-width: 1024px) {
  footer { flex-direction: column; gap: 22px; text-align: center; padding: 40px 36px; }
  .foot-links { flex-wrap: wrap; justify-content: center; }
}
@media (max-width: 640px) {
  nav { padding: 0 20px; }
  .nav-links { gap: 0; }
  .nav-links li:not(:last-child) { display: none; }
  .page-head { padding: 104px 20px 40px; }
  .page-head h1 { letter-spacing: -1px; }
  .lede { font-size: 17.5px; }
  .posts { padding: 0 20px 72px; }
  .post h2 { font-size: 23px; }
  .prose { padding: 40px 20px 72px; }
  .prose p, .prose li { font-size: 17px; }
  .prose h2 { font-size: 25px; }
  .compare { grid-template-columns: 1fr; }
  .app-box { padding: 26px 22px; }
}

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