/* EchoNet AI stylesheet. Minimal, fast, mobile-first. No external fonts. */

:root {
  --bg: #0f1115;
  --bg-elevated: #161922;
  --fg: #e5e7ed;
  --fg-dim: #9ba1ad;
  --fg-faint: #6b7280;
  --accent: #7dd3fc;
  --accent-strong: #38bdf8;
  --accent-warm: #fbbf24;
  --border: #262b36;
  --max-width: 720px;
  --max-width-wide: 960px;
  --radius: 8px;
  --mono: ui-monospace, "Cascadia Mono", "Roboto Mono", Menlo, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Iowan Old Style", "Charter", "Georgia", "Times New Roman", serif;
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  font-size: 17px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--serif);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.wrap {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.2rem;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(8px);
}
.site-header .wrap {
  max-width: var(--max-width-wide);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.brand {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--fg);
}
.brand-echo { color: var(--fg); }
.brand-net  { color: var(--accent); }
.brand-ai   { color: var(--accent-warm); }
.site-nav {
  display: flex;
  gap: 1.25rem;
  font-family: var(--sans);
  font-size: 0.95rem;
}
.site-nav a {
  color: var(--fg-dim);
  text-decoration: none;
  transition: color 0.15s;
}
.site-nav a:hover { color: var(--fg); }

/* Main */
.site-main { flex: 1; padding: 2.5rem 0 4rem; }
.site-main .wrap { max-width: var(--max-width); }
body.home-page .site-main .wrap { max-width: var(--max-width-wide); }

/* Hero (home page) */
.hero {
  padding: 2rem 0 3rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 3rem;
}
.hero-title {
  font-family: var(--sans);
  font-size: clamp(1.8rem, 4.5vw, 2.8rem);
  line-height: 1.15;
  margin: 0 0 1rem;
  letter-spacing: -0.015em;
}
.hero-sub {
  color: var(--fg-dim);
  font-size: 1.1rem;
  margin: 0.5rem 0;
  max-width: 42rem;
}

.section-heading {
  font-family: var(--sans);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-dim);
  margin: 3rem 0 1.5rem;
  font-weight: 600;
}

/* Post listing cards */
.post-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1.5rem;
}
.post-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  transition: border-color 0.15s, transform 0.15s;
}
.post-card:hover { border-color: var(--accent); }
.post-card-link {
  display: block;
  padding: 1.5rem;
  text-decoration: none;
  color: inherit;
}
.post-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-family: var(--sans);
  font-size: 0.82rem;
  color: var(--fg-faint);
  margin-bottom: 0.5rem;
  align-items: center;
}
.post-card-category {
  background: rgba(125, 211, 252, 0.1);
  color: var(--accent);
  padding: 0.15rem 0.55rem;
  border-radius: 4px;
  font-weight: 600;
  letter-spacing: 0.02em;
  font-size: 0.75rem;
  text-transform: uppercase;
}
.post-card-title {
  font-family: var(--sans);
  font-size: 1.4rem;
  line-height: 1.25;
  margin: 0.3rem 0 0.5rem;
  color: var(--fg);
  letter-spacing: -0.01em;
}
.post-card-desc {
  color: var(--fg-dim);
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.55;
}

.category-section { margin-bottom: 3rem; }
.category-heading {
  font-family: var(--sans);
  font-size: 1.4rem;
  margin: 2rem 0 1rem;
  letter-spacing: -0.01em;
}

/* Single post */
.post-header {
  padding-bottom: 2rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}
.post-meta {
  display: flex;
  gap: 1rem;
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--fg-faint);
  margin-bottom: 1rem;
  flex-wrap: wrap;
  align-items: center;
}
.post-category {
  background: rgba(125, 211, 252, 0.12);
  color: var(--accent);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.03em;
}
.post-title {
  font-family: var(--sans);
  font-size: clamp(1.8rem, 4.5vw, 2.5rem);
  line-height: 1.15;
  margin: 0.5rem 0 1rem;
  letter-spacing: -0.015em;
}
.post-lede {
  font-size: 1.15rem;
  color: var(--fg-dim);
  line-height: 1.55;
  margin: 0;
}

/* Post body typography */
.post-body {
  font-size: 1.08rem;
  line-height: 1.75;
}
.post-body p, .post-body ul, .post-body ol, .post-body blockquote, .post-body pre {
  margin: 1.25rem 0;
}
.post-body h2 {
  font-family: var(--sans);
  font-size: 1.6rem;
  margin: 2.5rem 0 1rem;
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.post-body h3 {
  font-family: var(--sans);
  font-size: 1.25rem;
  margin: 2rem 0 0.8rem;
  color: var(--fg);
}
.post-body a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.post-body a:hover { color: var(--accent-strong); }
.post-body strong { color: var(--fg); font-weight: 700; }
.post-body em { color: var(--fg); }
.post-body ul, .post-body ol { padding-left: 1.5rem; }
.post-body li { margin: 0.5rem 0; }
.post-body blockquote {
  border-left: 3px solid var(--accent);
  padding: 0.2rem 0 0.2rem 1.2rem;
  margin-left: 0;
  color: var(--fg-dim);
  font-style: italic;
}
.post-body code {
  font-family: var(--mono);
  font-size: 0.92em;
  background: var(--bg-elevated);
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
  color: var(--accent-warm);
}
.post-body pre {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  overflow-x: auto;
  font-size: 0.9rem;
  line-height: 1.5;
}
.post-body pre code {
  background: transparent;
  padding: 0;
  color: var(--fg);
}
.post-body hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 2.5rem 0;
}
.post-body table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--sans);
  font-size: 0.93rem;
  margin: 1.5rem 0;
}
.post-body th, .post-body td {
  border: 1px solid var(--border);
  padding: 0.6rem 0.8rem;
  text-align: left;
  vertical-align: top;
}
.post-body th {
  background: var(--bg-elevated);
  font-weight: 600;
  color: var(--fg);
}

/* Related posts */
.related-posts {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.related-heading {
  font-family: var(--sans);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-dim);
  margin: 0 0 1rem;
  font-weight: 600;
}
.related-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.7rem;
}
.related-list a,
.related-item a {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.8rem 1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--fg);
  transition: border-color 0.15s;
}
.related-list a:hover,
.related-item a:hover { border-color: var(--accent); color: var(--fg); }
.related-list a:visited,
.related-item a:visited { color: var(--fg); }
.related-date {
  font-family: var(--sans);
  font-size: 0.78rem;
  color: var(--fg-faint);
}
.related-title {
  font-family: var(--sans);
  color: var(--fg);
  font-size: 1rem;
  line-height: 1.35;
}

/* Post footer */
.post-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.post-footer-cta {
  font-family: var(--sans);
  color: var(--fg-dim);
  font-size: 0.95rem;
  background: var(--bg-elevated);
  padding: 1rem 1.2rem;
  border-radius: var(--radius);
  border-left: 3px solid var(--accent-warm);
}
.post-footer-back {
  margin-top: 1.5rem;
  font-family: var(--sans);
  font-size: 0.95rem;
}
.post-footer-back a {
  color: var(--accent);
  text-decoration: none;
}

/* Static pages (about, impressum, datenschutz, etc.) */
.page-content h1 {
  font-family: var(--sans);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  letter-spacing: -0.015em;
  margin: 0 0 1.5rem;
}
.page-content h2 {
  font-family: var(--sans);
  font-size: 1.4rem;
  margin: 2rem 0 0.8rem;
  letter-spacing: -0.01em;
}
.page-content h3 {
  font-family: var(--sans);
  font-size: 1.1rem;
  margin: 1.5rem 0 0.6rem;
  color: var(--fg);
}
.page-content p { margin: 1rem 0; line-height: 1.7; font-size: 1.02rem; }
.page-content a { color: var(--accent); }
.page-content ul, .page-content ol {
  padding-left: 1.5rem;
  margin: 1rem 0;
  line-height: 1.7;
  font-size: 1.0rem;
}
.page-content li { margin: 0.4rem 0; }
.page-content strong { color: var(--fg); font-weight: 600; }

/* Datenschutz-generator.de markup */
.page-content ul.index {
  list-style: none;
  padding-left: 0;
  columns: 2;
  column-gap: 2rem;
}
.page-content ul.index li { margin: 0.3rem 0; }
.page-content .index-link { text-decoration: none; color: var(--accent); }
.page-content .index-link:hover { text-decoration: underline; }
.page-content ul.m-elements {
  list-style: none;
  padding-left: 0;
}
.page-content ul.m-elements > li {
  background: var(--bg-elevated);
  padding: 0.8rem 1rem;
  margin: 0.6rem 0;
  border-radius: var(--radius);
  border-left: 2px solid var(--border);
}
.page-content ul.glossary { font-size: 0.95rem; }
.page-content ul.glossary > li { margin: 0.8rem 0; }
.page-content .seal {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--fg-faint);
}
.page-content .seal a { color: var(--fg-faint); }
.page-content .seal a:hover { color: var(--fg-dim); }

/* Hide any free-tier generator premium-blurred content, should we have any left */
.dsg-license-content-blurred { display: none !important; }

@media (max-width: 560px) {
  .page-content ul.index { columns: 1; }
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  color: var(--fg-faint);
  font-size: 0.9rem;
  font-family: var(--sans);
}
.site-footer .wrap { max-width: var(--max-width-wide); }
.footer-text { margin: 0 0 0.3rem; }
.footer-disclosure {
  margin: 0 0 0.5rem;
  font-size: 0.82rem;
  color: var(--fg-faint);
  font-style: italic;
}
.footer-meta { margin: 0; }
.footer-meta a { color: var(--fg-dim); text-decoration: none; }
.footer-meta a:hover { color: var(--fg); }

/* Light-mode override for readers who prefer it */
@media (prefers-color-scheme: light) {
  :root {
    --bg: #fafaf8;
    --bg-elevated: #ffffff;
    --fg: #1a1d24;
    --fg-dim: #4b5563;
    --fg-faint: #6b7280;
    --accent: #0284c7;
    --accent-strong: #0369a1;
    --accent-warm: #b45309;
    --border: #e5e7eb;
  }
}

/* Small screens */
@media (max-width: 560px) {
  html { font-size: 16px; }
  .site-header .wrap { flex-direction: row; }
  .site-nav { gap: 1rem; font-size: 0.9rem; }
  .post-card-link { padding: 1.2rem; }
  .post-card-title { font-size: 1.2rem; }
}
