@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --brand-primary: #2563eb;
  --brand-primary-dark: #1d4ed8;
  --brand-accent: #2563eb;
  --brand-bg: #ffffff;
  --brand-surface: #ffffff;
  --brand-muted: #475569;
  --brand-border: rgba(37, 99, 235, 0.16);
  --brand-soft: rgba(37, 99, 235, 0.08);
  --brand-shadow: 0 24px 48px rgba(15, 23, 42, 0.08);
  --content-max: min(1100px, calc(100vw - 2.5rem));
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  background: var(--brand-bg);
  color: #0f172a;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--brand-primary);
  text-decoration: none;
}

a:hover,
a:focus {
  color: var(--brand-primary-dark);
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  padding: 0.65rem 1rem;
  background: #ffffff;
  border-radius: 0.75rem;
  box-shadow: 0 18px 32px rgba(15, 23, 42, 0.18);
  z-index: 50;
}

.brand-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--brand-bg);
}

.brand-topbar {
  background: #ffffff;
  border-bottom: none;
  padding-bottom: 0.35rem;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.brand-inner {
  width: var(--content-max);
  margin: 0 auto;
  padding: 1.05rem 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 800;
  font-size: 1.1rem;
  color: #0f172a;
}

.brand-logo img {
  height: 46px;
  width: auto;
}
.brand-logo span {
  display: none;
}

.brand-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.brand-actions .brand-pill[href="/"],
.brand-actions .brand-pill[href="https://www.aktie.de"],
.brand-actions .brand-pill[href="https://aktie.de"] {
  display: none;
}

.brand-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  border: 1px solid rgba(37, 99, 235, 0.18);
  background: var(--brand-soft);
  color: #0f172a;
  font-weight: 600;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.brand-pill.primary {
  background: var(--brand-primary);
  color: #ffffff;
  border-color: var(--brand-primary);
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.18);
}

.footer-links{
  display:flex;
  gap:0.45rem;
  flex-wrap:wrap;
  justify-content:center;
  align-items:center;
  margin:1.1rem auto 2rem;
}
.footer-links a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0.32rem 0.8rem;
  border-radius:999px;
  border:1px solid rgba(37, 99, 235, 0.16);
  background:#ffffff;
  box-shadow:0 8px 18px rgba(37, 99, 235, 0.1);
  font-weight:600;
  font-size:0.7rem;
  color:var(--brand-primary-dark);
  text-decoration:none;
  transition:box-shadow 0.18s ease, transform 0.18s ease;
}
.footer-links a:hover{
  transform:translateY(-1px);
  box-shadow:0 12px 24px rgba(37, 99, 235, 0.14);
}
@media(max-width:640px){
  .footer-links a{
    width:calc(50% - 0.45rem);
    justify-content:center;
  }
}

body.brand-shell::after{
  content:"© Aktie.de";
  display:block;
  text-align:center;
  font-size:0.72rem;
  color:rgba(15,23,42,0.65);
  margin:0.35rem 0 1.75rem;
}

.brand-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.12);
}

.brand-hero {
  width: var(--content-max);
  margin: 0 auto;
  padding: clamp(1.8rem, 4vw, 2.6rem) 0;
  display: grid;
  gap: 0.75rem;
}

.brand-breadcrumbs,
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  font-size: 0.95rem;
  color: var(--brand-muted);
}

.brand-breadcrumbs a,
.breadcrumbs a {
  color: var(--brand-muted);
}

.brand-eyebrow,
.tag,
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: var(--brand-soft);
  border: 1px solid rgba(37, 99, 235, 0.2);
  color: var(--brand-primary);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.brand-title {
  margin: 0;
  font-size: clamp(2.15rem, 4vw, 3.05rem);
  line-height: 1.08;
  font-weight: 800;
  color: #0f172a;
}

.brand-lead {
  margin: 0;
  font-size: 1.08rem;
  color: rgba(15, 23, 42, 0.8);
  line-height: 1.65;
  max-width: 900px;
}

.brand-meta,
.meta,
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  color: var(--brand-muted);
  font-weight: 600;
  font-size: 0.95rem;
}

.brand-meta span,
.meta span,
.article-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.18);
}

.container {
  width: var(--content-max);
  margin: 0 auto;
  padding: 0 clamp(1rem, 3vw, 1.4rem);
}

.card,
.article-card,
.toc,
.aside-card,
.notes,
.disclaimer,
.cta,
.brand-article,
article {
  background: var(--brand-surface);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 1.2rem;
  box-shadow: var(--brand-shadow);
}

.card,
.article-card,
.toc,
.aside-card,
.notes,
.disclaimer,
.cta,
.brand-article {
  padding: clamp(1.35rem, 3vw, 2rem);
}

.article-card h2,
.brand-article h2,
.toc h2,
article h2 {
  margin-top: 0;
  color: #0f172a;
}

.article-card p,
.brand-article p,
article p {
  line-height: 1.7;
  color: rgba(15, 23, 42, 0.78);
}

.section,
.brand-section {
  padding: 1.6rem 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.section:last-of-type,
.brand-section:last-of-type {
  border-bottom: none;
}

.pull-quote,
blockquote {
  margin: 1.1rem 0;
  padding: 1rem 1.2rem;
  border-left: 4px solid var(--brand-primary);
  background: var(--brand-soft);
  color: var(--brand-muted);
  border-radius: 0.5rem;
}

.notes {
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.08), rgba(37, 99, 235, 0.03));
  border: 1px solid rgba(37, 99, 235, 0.25);
}

.disclaimer {
  background: rgba(15, 23, 42, 0.03);
  border: 1px solid rgba(15, 23, 42, 0.08);
  color: rgba(15, 23, 42, 0.78);
}

.cta {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.95), rgba(37, 99, 235, 0.85));
  color: #ffffff;
  border: none;
}

.cta a {
  color: #ffffff;
  font-weight: 700;
}

.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.28), transparent);
  margin: clamp(1.8rem, 3vw, 2.6rem) 0;
}

.toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.85rem;
}

.toc a {
  text-decoration: none;
  color: #0f172a;
  font-weight: 700;
}

.toc a span {
  display: block;
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--brand-muted);
}

.btn-primary,
button.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.7rem 1.45rem;
  border-radius: 999px;
  border: 1px solid var(--brand-primary);
  background: var(--brand-primary);
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn-primary:hover,
button.brand:hover {
  background: var(--brand-primary-dark);
  box-shadow: 0 16px 32px rgba(37, 99, 235, 0.22);
  transform: translateY(-1px);
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0;
  border: 1px solid rgba(148, 163, 184, 0.35);
}

th,
td {
  padding: 0.75rem 0.9rem;
  text-align: left;
  border-top: 1px solid rgba(148, 163, 184, 0.3);
}

thead {
  background: rgba(37, 99, 235, 0.12);
  color: #0f172a;
}

.brand-footer,
footer {
  width: var(--content-max);
  margin: clamp(2rem, 4vw, 3rem) auto clamp(1.2rem, 3vw, 2rem);
  text-align: center;
  color: var(--brand-muted);
  font-size: 0.95rem;
}

footer a,
.brand-footer a {
  color: var(--brand-primary);
  text-decoration: none;
}

footer a:hover,
.brand-footer a:hover {
  text-decoration: underline;
}

@media (max-width: 720px) {
  .brand-inner {
    padding: 0.95rem 0;
  }

  .brand-logo img {
    height: 40px;
  }

  .brand-title {
    font-size: clamp(1.85rem, 6vw, 2.4rem);
  }

  .container {
    padding: 0 1rem;
  }

  .brand-inner,
  .brand-hero,
  .brand-footer {
    width: calc(100% - 1.5rem);
  }
}
