/* Blog-Stylesheet — geteilt zwischen allen Blog-Pages
   Look konsistent zur Hauptseite, optimiert für Long-Form-Lesen. */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #050a14;
  --bg2: #0a1222;
  --bg3: #06111f;
  --text: #f1f5f9;
  --text-2: #94a3b8;
  --text-3: #cbd5e1;
  --cyan: #22d3ee;
  --cyan-b: #67e8f9;
  --banana: #facc15;
  --font: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

body {
  background-image:
    radial-gradient(circle at 20% 10%, rgba(34,211,238,0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(34,211,238,0.03) 0%, transparent 50%);
  background-attachment: fixed;
  min-height: 100vh;
}

a { color: var(--cyan-b); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* === HEADER === */
.aa-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(5,10,20,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(34,211,238,0.15);
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.aa-header img { height: 48px; width: auto; }

.aa-header-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  background: linear-gradient(135deg, #22d3ee, #06b6d4);
  color: #050a14;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: 999px;
  white-space: nowrap;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.aa-header-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(34,211,238,0.4);
  text-decoration: none;
}

@media (max-width: 520px) {
  .aa-header { padding: 10px 14px; }
  .aa-header img { height: 40px; }
  .aa-header-cta { font-size: 11px; padding: 8px 14px; }
}

/* === BREADCRUMB === */
.aa-breadcrumb {
  max-width: 760px;
  margin: 0 auto;
  padding: 24px 24px 0;
  font-size: 13px;
  color: var(--text-2);
}

.aa-breadcrumb a { color: var(--text-2); }
.aa-breadcrumb a:hover { color: var(--cyan); }
.aa-breadcrumb span { color: var(--text-3); margin: 0 6px; }

/* === ARTICLE-WRAPPER === */
.aa-article {
  max-width: 760px;
  margin: 0 auto;
  padding: 32px 24px 60px;
}

.aa-article-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.aa-article-meta span { color: var(--cyan); }

.aa-article h1 {
  font-size: clamp(30px, 4.5vw, 50px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: 18px;
  color: var(--text);
}

.aa-article .aa-lead {
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.55;
  color: var(--text-3);
  margin-bottom: 36px;
  font-weight: 400;
}

.aa-article h2 {
  font-size: clamp(24px, 2.8vw, 32px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 56px 0 16px;
  line-height: 1.2;
  color: var(--text);
  scroll-margin-top: 80px;
}

.aa-article h2::before {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: var(--cyan);
  margin-bottom: 14px;
  box-shadow: 0 0 12px rgba(34,211,238,0.55);
  border-radius: 2px;
}

.aa-article h3 {
  font-size: clamp(18px, 1.8vw, 22px);
  font-weight: 700;
  margin: 36px 0 12px;
  color: var(--cyan-b);
  line-height: 1.3;
}

.aa-article p {
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--text-3);
  margin-bottom: 18px;
}

.aa-article p strong { color: var(--text); font-weight: 700; }
.aa-article p em { color: var(--cyan-b); font-style: normal; font-weight: 600; }

.aa-article ul, .aa-article ol {
  margin: 0 0 24px 22px;
  color: var(--text-3);
  font-size: 16.5px;
  line-height: 1.75;
}

.aa-article li { margin-bottom: 8px; padding-left: 4px; }
.aa-article li::marker { color: var(--cyan); }

.aa-article a {
  color: var(--cyan-b);
  border-bottom: 1px solid rgba(34,211,238,0.4);
  transition: border-color 0.2s, color 0.2s;
}

.aa-article a:hover {
  color: var(--text);
  border-bottom-color: var(--cyan);
  text-decoration: none;
}

/* TOC */
.aa-toc {
  background: rgba(34,211,238,0.04);
  border: 1px solid rgba(34,211,238,0.18);
  border-radius: 14px;
  padding: 22px 24px;
  margin: 28px 0 40px;
}

.aa-toc-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--cyan);
  margin-bottom: 12px;
}

.aa-toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 14.5px;
  line-height: 1.6;
  counter-reset: toc;
}

.aa-toc li {
  margin: 0;
  padding: 5px 0;
  counter-increment: toc;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.aa-toc li:last-child { border-bottom: none; }

.aa-toc li::before {
  content: counter(toc, decimal-leading-zero);
  color: var(--cyan);
  font-weight: 700;
  margin-right: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
}

.aa-toc a {
  color: var(--text-3);
  border-bottom: none;
}

.aa-toc a:hover { color: var(--cyan-b); text-decoration: none; }

/* Callout-Boxen */
.aa-callout {
  background: rgba(34,211,238,0.06);
  border-left: 3px solid var(--cyan);
  border-radius: 0 12px 12px 0;
  padding: 18px 22px;
  margin: 24px 0;
  font-size: 15.5px;
  line-height: 1.65;
}

.aa-callout-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--cyan);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.aa-callout-title::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px rgba(34,211,238,0.7);
}

.aa-callout p { font-size: 15.5px; margin-bottom: 0; color: var(--text-3); }

.aa-callout-warn {
  background: rgba(250,204,21,0.05);
  border-left-color: var(--banana);
}

.aa-callout-warn .aa-callout-title { color: var(--banana); }
.aa-callout-warn .aa-callout-title::before { background: var(--banana); box-shadow: 0 0 8px rgba(250,204,21,0.7); }

/* Code-Blocks */
.aa-article code {
  font-family: var(--font-mono);
  font-size: 14px;
  background: rgba(34,211,238,0.1);
  color: var(--cyan-b);
  padding: 2px 7px;
  border-radius: 5px;
}

.aa-article pre {
  background: rgba(6,17,31,0.85);
  border: 1px solid rgba(34,211,238,0.15);
  border-radius: 12px;
  padding: 18px 20px;
  margin: 20px 0;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-3);
}

.aa-article pre code {
  background: transparent;
  padding: 0;
  color: inherit;
  font-size: inherit;
}

/* Beispiel-Box mit Header */
.aa-example {
  background: rgba(6,17,31,0.6);
  border: 1px solid rgba(34,211,238,0.18);
  border-radius: 14px;
  padding: 22px 24px;
  margin: 24px 0;
}

.aa-example-label {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--cyan);
  margin-bottom: 12px;
  padding: 4px 10px;
  background: rgba(34,211,238,0.1);
  border-radius: 999px;
  border: 1px solid rgba(34,211,238,0.3);
}

.aa-example h4 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}

.aa-example p { font-size: 15px; margin-bottom: 10px; }
.aa-example p:last-child { margin-bottom: 0; }

/* === FAQ am Ende === */
.aa-faq {
  margin-top: 56px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.aa-faq details {
  background: rgba(6,17,31,0.6);
  border: 1px solid rgba(34,211,238,0.15);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.3s;
}

.aa-faq details[open] { border-color: rgba(34,211,238,0.4); }

.aa-faq summary {
  padding: 16px 20px;
  font-size: 15.5px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  color: var(--text);
  list-style: none;
}

.aa-faq summary::-webkit-details-marker { display: none; }
.aa-faq summary::after {
  content: '+';
  font-size: 20px;
  color: var(--cyan);
  flex-shrink: 0;
}
.aa-faq details[open] summary::after { content: '−'; }

.aa-faq-answer {
  padding: 0 20px 18px;
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.7;
}

/* === CTA-BOX === */
.aa-cta-box {
  margin: 60px 0 30px;
  padding: 36px 28px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(34,211,238,0.15) 0%, transparent 70%),
    linear-gradient(135deg, rgba(34,211,238,0.06) 0%, rgba(6,17,31,0.8) 100%);
  border: 1px solid rgba(34,211,238,0.3);
  border-radius: 20px;
}

.aa-cta-box h3 {
  font-size: clamp(22px, 2.5vw, 28px);
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--text);
  letter-spacing: -0.02em;
}

.aa-cta-box p {
  color: var(--text-3);
  font-size: 15px;
  margin-bottom: 22px;
  line-height: 1.55;
}

.aa-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: linear-gradient(135deg, #22d3ee, #06b6d4, #67e8f9);
  color: #050a14;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 0 0 1px rgba(34,211,238,0.45), 0 0 30px rgba(34,211,238,0.25), 0 10px 28px rgba(2,6,23,0.5);
  transition: transform 0.2s, box-shadow 0.2s;
}

.aa-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(34,211,238,0.65), 0 0 50px rgba(34,211,238,0.35), 0 16px 36px rgba(2,6,23,0.55);
  text-decoration: none;
}

/* === RELATED ARTICLES === */
.aa-related {
  margin-top: 40px;
}

.aa-related h3 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-2);
  margin-bottom: 14px;
}

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

.aa-related-card {
  display: block;
  padding: 16px 18px;
  background: rgba(6,17,31,0.5);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.2s;
}

.aa-related-card:hover {
  border-color: rgba(34,211,238,0.4);
  background: rgba(34,211,238,0.06);
  text-decoration: none;
}

.aa-related-card-cat {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--cyan);
  margin-bottom: 6px;
}

.aa-related-card-title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
}

/* === BLOG-INDEX === */
.aa-blog-hero {
  max-width: 920px;
  margin: 0 auto;
  padding: 70px 24px 40px;
  text-align: center;
}

.aa-blog-hero h1 {
  font-size: clamp(36px, 5.5vw, 60px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 18px;
  text-transform: uppercase;
}

.aa-blog-hero h1 .aa-mark { color: var(--cyan); text-shadow: 0 0 28px rgba(34,211,238,0.5); }

.aa-blog-hero p {
  font-size: clamp(16px, 1.5vw, 19px);
  color: var(--text-3);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.6;
}

.aa-blog-grid {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 24px 80px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
}

.aa-blog-card {
  background: rgba(6,17,31,0.7);
  border: 1px solid rgba(34,211,238,0.15);
  border-radius: 18px;
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-decoration: none;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.aa-blog-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.aa-blog-card:hover {
  border-color: rgba(34,211,238,0.45);
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(34,211,238,0.12);
  text-decoration: none;
}

.aa-blog-card:hover::before { opacity: 1; }

.aa-blog-card-meta {
  display: flex;
  gap: 10px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-2);
  font-weight: 600;
}

.aa-blog-card-meta .cat { color: var(--cyan); }

.aa-blog-card h2 {
  font-size: clamp(20px, 1.8vw, 24px);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
  letter-spacing: -0.01em;
}

.aa-blog-card p {
  font-size: 14.5px;
  color: var(--text-3);
  line-height: 1.6;
}

.aa-blog-card-read {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* === FOOTER === */
.aa-footer {
  border-top: 1px solid rgba(34,211,238,0.1);
  padding: 32px 24px 40px;
  text-align: center;
  color: var(--text-2);
  font-size: 13px;
}

.aa-footer a { color: var(--text-2); margin: 0 10px; }
.aa-footer a:hover { color: var(--cyan); text-decoration: none; }

.aa-footer-brand a {
  color: var(--cyan);
  font-weight: 700;
}

@media (max-width: 600px) {
  .aa-article { padding: 24px 18px 50px; }
  .aa-blog-hero { padding: 50px 18px 30px; }
  .aa-blog-grid { padding: 30px 18px 60px; gap: 16px; }
  .aa-blog-card { padding: 22px 20px; }
}
