/* ============================================
   blogstartup.de — Design System
   Referenz: Ahrefs Blog / Semrush Blog Feeling
   Mobile-First, Core Web Vitals optimiert
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,600;1,400&family=Inter:wght@400;500;600&display=swap');

:root {
  --color-primary:     #0f172a;
  --color-accent:      #e94560;
  --color-text:        #1e293b;
  --color-text-muted:  #64748b;
  --color-bg:          #ffffff;
  --color-bg-alt:      #f8fafc;
  --color-border:      #e2e8f0;
  --color-link:        #1d4ed8;
  --color-link-hover:  #1e40af;

  --font-display: 'Lora', Georgia, serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;

  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  1.875rem;
  --text-4xl:  2.25rem;

  --space-xs:  0.25rem;
  --space-sm:  0.5rem;
  --space-md:  1rem;
  --space-lg:  1.5rem;
  --space-xl:  2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;

  --max-width:        720px;
  --max-width-wide:   1100px;
  --border-radius:    6px;
  --border-radius-lg: 12px;
  --shadow-sm: 0 1px 3px rgba(15,23,42,0.06), 0 1px 2px rgba(15,23,42,0.04);
  --shadow-md: 0 4px 16px rgba(15,23,42,0.08), 0 1px 4px rgba(15,23,42,0.04);
  --shadow-lg: 0 8px 32px rgba(15,23,42,0.1),  0 2px 8px rgba(15,23,42,0.05);
}

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

html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
}

img, picture, video, canvas, svg { display: block; max-width: 100%; height: auto; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: 1.25;
  color: var(--color-primary);
}
h1 { font-size: var(--text-3xl); margin-bottom: var(--space-lg); }
h2 { font-size: var(--text-2xl); margin-top: var(--space-2xl); margin-bottom: var(--space-md); }
h3 { font-size: var(--text-xl);  margin-top: var(--space-xl);  margin-bottom: var(--space-md); }

p  { margin-bottom: var(--space-md); max-width: 68ch; }
strong { font-weight: 600; }
em { font-style: italic; }
ul, ol { margin-bottom: var(--space-md); padding-left: var(--space-xl); }
li { margin-bottom: var(--space-xs); }
hr { border: none; border-top: 1px solid var(--color-border); margin: var(--space-2xl) 0; }

a { color: var(--color-link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--color-link-hover); }

/* Layout */
.container         { width: 100%; max-width: var(--max-width-wide); margin: 0 auto; padding: 0 var(--space-lg); }
.container--narrow { max-width: var(--max-width); }

/* ============================================
   Header & Navigation
   ============================================ */

.site-header {
  background: #fff;
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-nav {
  display: flex;
  align-items: center;
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 0 var(--space-lg);
  height: 64px;
  gap: var(--space-xl);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-logo:hover { color: var(--color-accent); text-decoration: none; }

/* Nav links list */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  padding: 0;
  margin: 0;
  flex: 1;
  justify-content: center;
}

.nav-links > li { position: relative; }

.nav-links > li > a {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border-radius: var(--border-radius);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  transition: background 0.12s;
  white-space: nowrap;
  user-select: none;
}
.nav-links > li > a:hover { background: var(--color-bg-alt); color: var(--color-primary); }
.nav-links > li[data-open] > a { background: var(--color-bg-alt); color: var(--color-primary); }

.nav-caret {
  width: 14px;
  height: 14px;
  opacity: 0.4;
  flex-shrink: 0;
  transition: transform 0.15s, opacity 0.15s;
}
[data-open] .nav-caret { transform: rotate(180deg); opacity: 0.7; }

/* Dropdown panel */
.dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  padding: 16px 10px 10px;
  min-width: 230px;
  z-index: 200;
}
.dropdown[hidden] { display: none !important; }

.dropdown-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--color-text-muted);
  padding: 4px 10px;
  margin-bottom: 4px;
}

.dropdown-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.dropdown-list li { margin: 0; }

.dropdown-list a {
  display: flex;
  align-items: center;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: var(--text-sm);
  color: var(--color-text) !important;
  text-decoration: none;
  font-weight: 400;
  transition: background 0.1s;
}
.dropdown-list a:hover { background: var(--color-bg-alt); color: var(--color-primary) !important; }

.badge-soon {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  color: var(--color-text-muted);
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 1px 5px;
  margin-left: auto;
  flex-shrink: 0;
  white-space: nowrap;
}

/* Contact CTA */
.nav-cta {
  display: inline-flex;
  align-items: center;
  background: var(--color-accent);
  color: #fff !important;
  padding: 8px 18px;
  border-radius: 8px;
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.15s;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-cta:hover { opacity: 0.88; color: #fff !important; }

/* Hamburger */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: var(--border-radius);
  gap: 5px;
  margin-left: auto;
  flex-shrink: 0;
}
.burger:hover { background: var(--color-bg-alt); }
.burger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; width: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  border-top: 1px solid var(--color-border);
  background: #fff;
  padding: var(--space-md) var(--space-lg) var(--space-lg);
}
.mobile-menu[hidden] { display: none !important; }

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-width: var(--max-width-wide);
  margin: 0 auto;
}
.mobile-nav a {
  display: block;
  padding: 10px 12px;
  border-radius: var(--border-radius);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
}
.mobile-nav a:hover { background: var(--color-bg-alt); color: var(--color-primary); }
.mobile-nav hr { border: none; border-top: 1px solid var(--color-border); margin: 6px 0; }
.mobile-nav .mobile-cta { color: var(--color-accent); font-weight: 600; margin-top: 2px; }
.mobile-nav .mobile-cta:hover { background: rgba(233,69,96,0.06); }

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-cta   { display: none; }
  .burger    { display: flex; }
}

/* ============================================
   Artikel-Seiten
   ============================================ */

.article-header {
  padding: var(--space-2xl) var(--space-lg) var(--space-xl);
  max-width: var(--max-width);
  margin: 0 auto;
}

.article-meta {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.article-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg) var(--space-3xl);
}

/* Inhaltsverzeichnis */
.table-of-contents {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  padding: var(--space-lg);
  margin-bottom: var(--space-2xl);
}
.table-of-contents h2 {
  font-size: var(--text-xs);
  font-family: var(--font-body);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  margin: 0 0 var(--space-sm);
}
.table-of-contents ol { margin: 0; padding-left: var(--space-xl); }
.table-of-contents li { margin-bottom: var(--space-xs); }
.table-of-contents a { font-size: var(--text-sm); }

/* Affiliate Disclosure */
.affiliate-disclosure {
  background: #fffbeb;
  border-left: 3px solid #f59e0b;
  padding: var(--space-md) var(--space-lg);
  margin-bottom: var(--space-xl);
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
  font-size: var(--text-sm);
}

/* Comparison Table */
.comparison-table { width: 100%; border-collapse: collapse; margin-bottom: var(--space-xl); overflow-x: auto; display: block; }
.comparison-table th { background: var(--color-primary); color: #fff; padding: var(--space-sm) var(--space-md); text-align: left; font-size: var(--text-sm); white-space: nowrap; font-family: var(--font-body); }
.comparison-table td { padding: var(--space-sm) var(--space-md); border-bottom: 1px solid var(--color-border); font-size: var(--text-sm); }
.comparison-table tr:nth-child(even) td { background: var(--color-bg-alt); }

/* CTA Box */
.cta-box {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-accent);
  border-radius: var(--border-radius-lg);
  padding: var(--space-xl);
  margin: var(--space-2xl) 0;
  text-align: center;
}
.cta-box h3 { margin-top: 0; }

/* Buttons */
.btn {
  display: inline-block;
  background: var(--color-accent);
  color: #fff;
  padding: 0.6em var(--space-xl);
  border-radius: var(--border-radius);
  text-decoration: none;
  font-weight: 600;
  font-size: var(--text-base);
  transition: opacity 0.15s;
  cursor: pointer;
  border: none;
}
.btn:hover { opacity: 0.9; color: #fff; }

/* Affiliate Links */
.affiliate-link {
  display: inline-block;
  background: var(--color-accent);
  color: #fff;
  padding: 0.4em 1em;
  border-radius: var(--border-radius);
  text-decoration: none;
  font-weight: 600;
  font-size: var(--text-sm);
  margin-top: var(--space-md);
}
.affiliate-link:hover { opacity: 0.9; color: #fff; }

/* Interlink Placeholder */
.interlink-placeholder {
  background: #eff6ff;
  border: 2px dashed #3b82f6;
  border-radius: var(--border-radius);
  padding: var(--space-sm) var(--space-md);
  margin: var(--space-md) 0;
  font-size: var(--text-sm);
  color: #1d4ed8;
}

/* Breadcrumb */
.breadcrumb { margin-bottom: var(--space-lg); }
.breadcrumb ol { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-xs); font-size: var(--text-sm); color: var(--color-text-muted); }
.breadcrumb li::after { content: " /"; }
.breadcrumb li:last-child::after { content: ""; }
.breadcrumb a { color: var(--color-text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--color-accent); }

/* FAQ Accordion */
.faq-item { border-bottom: 1px solid var(--color-border); }
.faq-item:last-child { border-bottom: none; }
.faq-question {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  gap: var(--space-md); padding: var(--space-lg) 0; background: none; border: none;
  cursor: pointer; font-size: var(--text-base); font-weight: 600; text-align: left;
  color: var(--color-text); font-family: inherit; line-height: 1.4;
}
.faq-question:hover { color: var(--color-accent); }
.faq-icon { flex-shrink: 0; width: 18px; height: 18px; transition: transform 0.25s ease; }
.faq-item.is-open .faq-icon { transform: rotate(180deg); }
.faq-answer { overflow: hidden; max-height: 0; transition: max-height 0.3s ease; }
.faq-item.is-open .faq-answer { max-height: 400px; }
.faq-answer p { margin-top: 0; padding-bottom: var(--space-lg); }

/* Tool Section */
.tool-section { border-left: 3px solid var(--color-accent); padding-left: var(--space-lg); margin: var(--space-2xl) 0; }

/* ============================================
   Kontaktformular
   ============================================ */

.form-group { margin-bottom: var(--space-lg); }
.form-group label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: var(--space-xs);
  color: var(--color-primary);
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.7em 1em;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
  appearance: none;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(233,69,96,0.1);
}
.form-group textarea { resize: vertical; min-height: 160px; }

/* ============================================
   Über-mich-Seite
   ============================================ */

.ueber-mich-header {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-lg);
  padding: var(--space-xl);
  margin-bottom: var(--space-2xl);
  display: flex;
  gap: var(--space-xl);
  align-items: flex-start;
}
.ueber-mich-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  flex-shrink: 0;
}
@media (max-width: 500px) { .ueber-mich-header { flex-direction: column; } }

/* ============================================
   Footer
   ============================================ */

footer {
  background: var(--color-primary);
  color: #94a3b8;
  padding: var(--space-2xl) 0;
  margin-top: var(--space-3xl);
  font-size: var(--text-sm);
}
.footer-inner {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 0 var(--space-lg);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: var(--space-2xl);
}
footer ul { list-style: none; padding: 0; margin: 0; }
footer ul li { margin-bottom: 6px; }
footer a { color: #94a3b8; text-decoration: none; }
footer a:hover { color: #fff; }
.footer-disclosure {
  font-size: var(--text-xs);
  margin-top: var(--space-xl);
  color: #475569;
  max-width: var(--max-width-wide);
  margin-left: auto;
  margin-right: auto;
  padding: 0 var(--space-lg);
}

/* ============================================
   Responsive — Artikel
   ============================================ */

@media (min-width: 768px) {
  h1 { font-size: var(--text-4xl); }
  .article-header { padding-left: 0; padding-right: 0; }
  .article-content { padding-left: 0; padding-right: 0; }
}

/* ============================================
   Artikel-Zweispalten-Layout (Sidebar + ToC)
   ============================================ */

.article-author {
  display: block;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-top: calc(-1 * var(--space-sm));
  margin-bottom: var(--space-xl);
}

.article-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 3rem;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.article-main {
  min-width: 0;
}

.article-sidebar {
  position: relative;
  width: 280px;
  align-self: stretch;
}

.toc-sticky {
  position: sticky;
  top: 90px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}

.sidebar-disclosure {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  background: var(--color-bg-alt);
  border-left: 3px solid var(--color-accent);
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  border-radius: 4px;
  line-height: 1.5;
}

.toc-box {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-lg);
  padding: 1.25rem;
}

.toc-box h3 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  margin: 0 0 0.75rem;
}

.toc-box a {
  display: block;
  font-size: 0.875rem;
  color: var(--color-text);
  text-decoration: none;
  padding: 0.3rem 0.75rem;
  border-left: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
  line-height: 1.4;
}

.toc-box a:hover,
.toc-box a.active {
  color: var(--color-accent);
  border-left-color: var(--color-accent);
}

/* Mobile ToC accordion (details/summary) */
.toc-mobile {
  display: none;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  padding: 1rem 1.25rem;
  margin-bottom: var(--space-xl);
}

.toc-mobile summary {
  font-weight: 600;
  font-size: var(--text-sm);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.toc-mobile summary::-webkit-details-marker { display: none; }

.toc-mobile[open] summary svg { transform: rotate(180deg); }
.toc-mobile summary svg { transition: transform 0.2s; }

.toc-mobile nav { margin-top: 0.75rem; }
.toc-mobile nav ol { padding-left: var(--space-xl); margin: 0; }
.toc-mobile nav li { margin-bottom: 0.25rem; }
.toc-mobile nav a { font-size: var(--text-sm); }

/* Preisstand-Hinweis */
.price-note {
  color: var(--color-text-muted);
  margin-top: calc(-1 * var(--space-sm));
  margin-bottom: var(--space-md);
}

@media (max-width: 900px) {
  .article-layout {
    grid-template-columns: 1fr;
    padding: var(--space-xl) var(--space-md) var(--space-3xl);
  }
  .article-sidebar {
    display: none;
  }
  .toc-mobile {
    display: block;
  }
}
