/* seo.css — Unified styles for all SEO article pages on mein-webserver.de */

/* === Breadcrumbs === */
.breadcrumbs {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0.75rem 1rem 0.75rem 2rem;
  font-size: 0.875rem;
  color: #6b7280;
}
.breadcrumbs a {
  color: #2196f3;
  text-decoration: none;
}
.breadcrumbs a:hover {
  text-decoration: underline;
}
.breadcrumbs span {
  margin: 0 0.375rem;
  color: #9ca3af;
}

/* === Hero Header === */
.hero {
  max-width: 48rem;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 2rem;
  text-align: center;
}
.hero h1 {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: #111827;
}
@media (min-width: 768px) {
  .hero h1 { font-size: 2.5rem; }
}
.subtitle {
  font-size: 1.125rem;
  color: #6b7280;
  line-height: 1.75;
  max-width: 42rem;
  margin: 0 auto;
}

/* === Article Body === */
.article-body {
  max-width: 48rem;
  margin: 0 auto;
  padding: 0 1.5rem 2rem;
}
.article-body h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-top: 0.5rem;
}
.article-body h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1f2937;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}
.article-body p {
  color: #4b5563;
  line-height: 1.75;
  margin-bottom: 1rem;
}
.article-body ul, .article-body ol {
  color: #4b5563;
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}
.article-body li {
  margin-bottom: 0.5rem;
  line-height: 1.625;
}
.article-body ul li { list-style-type: disc; }
.article-body ol li { list-style-type: decimal; }
.article-body a { color: #2196f3; text-decoration: underline; }
.article-body a:hover { color: #1565c0; }
.article-body blockquote {
  border-left: 4px solid #2196f3;
  padding: 1rem 1.5rem;
  background: #eff6ff;
  margin: 1.5rem 0;
  border-radius: 0.5rem;
}
.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}
.article-body th, .article-body td {
  border: 1px solid #e5e7eb;
  padding: 0.75rem 1rem;
  text-align: left;
}
.article-body th {
  background: #f9fafb;
  font-weight: 600;
}
.article-body img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
  margin: 1.5rem 0;
}

/* === Info Box === */
.info-box {
  background: #eff6ff;
  border-left: 4px solid #2196f3;
  border-radius: 0.5rem;
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
}
.info-box p {
  margin: 0;
  color: #1e40af;
  line-height: 1.625;
}

/* === Highlight / Highlight Box === */
.highlight, .highlight-box {
  background: linear-gradient(135deg, #eff6ff 0%, #f0fdf4 100%);
  border: 1px solid #bfdbfe;
  border-radius: 0.75rem;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}

/* === Code Block === */
.code-block {
  background: #1f2937;
  color: #e5e7eb;
  border-radius: 0.5rem;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.875rem;
  line-height: 1.625;
  overflow-x: auto;
  white-space: pre-wrap;
}

/* === CTA Banner === */
.cta-banner {
  background: linear-gradient(135deg, #1565c0 0%, #2196f3 100%);
  border-radius: 1rem;
  padding: 2.5rem 2rem;
  margin: 2.5rem 0;
  text-align: center;
  color: white;
}
.cta-banner h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: white;
}
.cta-banner p {
  color: #bfdbfe;
  margin-bottom: 1.5rem;
  font-size: 1.0625rem;
  line-height: 1.625;
}

/* === Button === */
.btn {
  display: inline-block;
  background: white;
  color: #1565c0;
  font-weight: 600;
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}
.btn:hover {
  background: #f0f9ff;
  transform: translateY(-1px);
}

/* === FAQ Section === */
.faq-section {
  max-width: 48rem;
  margin: 2rem auto;
  padding: 0 1.5rem 2rem;
}
.faq-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 1.5rem;
}
.faq-item {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  padding: 1.25rem 1.5rem;
  margin-bottom: 0.75rem;
}
.faq-item h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 0.5rem;
}
.faq-item p {
  color: #4b5563;
  line-height: 1.625;
  margin: 0;
}

/* === Comparison Table === */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}
.comparison-table th, .comparison-table td {
  border: 1px solid #e5e7eb;
  padding: 0.75rem 1rem;
  text-align: left;
}
.comparison-table th {
  background: #f9fafb;
  font-weight: 600;
}

/* === TOC (Table of Contents) === */
.toc {
  position: sticky;
  top: 5rem;
}
.toc a {
  color: #4b5563;
  text-decoration: none;
  font-size: 0.875rem;
  line-height: 2;
}
.toc a:hover {
  color: #2196f3;
}
@media (max-width: 1023px) {
  .toc-sidebar { display: none; }
  .toc-mobile { display: block; }
}
@media (min-width: 1024px) {
  .toc-sidebar { display: block; }
  .toc-mobile { display: none; }
}

/* === Prose helpers (if used without Tailwind Typography) === */
.prose { max-width: 48rem; }
.prose-lg { font-size: 1.125rem; line-height: 1.75; }

/* === Reveal animation (disabled — always visible) === */
.reveal {
  opacity: 1 !important;
  transform: none !important;
}

/* === TOC (Mobile + Sidebar) === */
details.toc-mobile {
  background: linear-gradient(135deg, #f8fafc 0%, #f0f7ff 100%) !important;
  border: 1px solid #dbeafe !important;
  border-radius: 1rem !important;
  padding: 1.5rem 1.75rem !important;
  margin-top: 2rem;
  margin-bottom: 2.5rem;
  box-shadow: 0 2px 8px rgba(33,150,243,.08) !important;
}
details.toc-mobile[open] {
  padding-bottom: 1.25rem !important;
}
details.toc-mobile summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 0.9375rem;
  color: #1e3a5f;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 0.25rem 0;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
details.toc-mobile summary::-webkit-details-marker { display: none; }
details.toc-mobile summary::before {
  content: "📑";
  font-size: 1.1rem;
}
details.toc-mobile summary::after {
  content: "▾";
  margin-left: auto;
  font-size: 0.75rem;
  color: #94a3b8;
  transition: transform 0.2s;
}
details.toc-mobile[open] summary::after {
  transform: rotate(180deg);
}
details.toc-mobile nav {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #dbeafe;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
details.toc-mobile nav a {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.5rem 0.875rem;
  color: #475569;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 0.5rem;
  transition: all 0.2s;
  border-left: 3px solid transparent;
}
details.toc-mobile nav a::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #93c5fd;
  flex-shrink: 0;
}
details.toc-mobile nav a:hover {
  color: #1565c0;
  background: rgba(33,150,243,.08);
  border-left-color: #2196f3;
}
details.toc-mobile nav a:hover::before {
  background: #2196f3;
}

/* Sidebar TOC (Desktop) */
.toc-sidebar .toc nav {
  padding: 0.5rem 0;
}
.toc-sidebar .toc nav h3 {
  font-weight: 700;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #1e3a5f;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #dbeafe;
}
.toc nav a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.75rem;
  color: #475569;
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 500;
  border-radius: 0.375rem;
  transition: all 0.2s;
  border-left: 2px solid transparent;
}
.toc nav a:hover {
  color: #1565c0;
  background: rgba(33,150,243,.06);
  border-left-color: #2196f3;
}
