/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Brand Colors */
  --color-primary: #1a3a5c;
  --color-primary-dark: #0f2540;
  --color-primary-light: #e8f1f9;
  --color-primary-muted: #6fa3c4;

  /* Text */
  --color-text: #1a2a3a;
  --color-text-muted: #5a6878;
  --color-text-light: #8a9aaa;

  /* Backgrounds */
  --color-bg: #fffaf8;
  --color-bg-alt: #fdf0f7;
  --color-bg-card: #ffffff;

  /* Borders */
  --color-border: #edd5e5;
  --color-border-light: #f5e8ef;

  /* Typography */
  --font-display: 'Playfair Display', 'Palatino Linotype', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Layout */
  --max-width: 1200px;
  --max-width-content: 760px;
  --radius: 10px;
  --radius-lg: 18px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 4px rgba(45, 27, 46, 0.06);
  --shadow: 0 4px 20px rgba(200, 37, 110, 0.10);
  --shadow-hover: 0 14px 44px rgba(200, 37, 110, 0.18);
  --shadow-card: 0 2px 14px rgba(45, 27, 46, 0.07);

  /* Transitions */
  --transition: 0.22s ease;
  --transition-slow: 0.4s ease;

  /* Section spacing */
  --section-padding: 5rem;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { color: var(--color-primary-dark); }

/* === CONTAINER === */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* === HEADER === */
.site-header {
  background: rgba(255, 250, 248, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-border-light);
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 1px 0 var(--color-border-light), 0 4px 24px rgba(45, 27, 46, 0.05);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 2rem;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.logo-icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
}

.logo-text-group {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.logo-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.02em;
}

.logo-name .logo-eu { color: var(--color-primary); }

.logo-tagline {
  font-family: var(--font-sans);
  font-size: 0.625rem;
  color: var(--color-text-muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Navigation */
.main-nav { display: flex; align-items: center; }

.nav-list {
  display: flex;
  gap: 0.2rem;
  list-style: none;
}

.nav-link {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-muted);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  transition: color var(--transition), background var(--transition);
  text-decoration: none;
  letter-spacing: 0.01em;
}

.nav-link:hover, .nav-link.active {
  color: var(--color-primary);
  background: var(--color-primary-light);
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: var(--transition);
}

/* === HERO === */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(155deg, #fff5f9 0%, #fffaf8 45%, #fce4ef 100%);
  padding: 6.5rem 0 5.5rem;
  text-align: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(200, 37, 110, 0.06) 0%, transparent 65%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -80px;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(196, 149, 106, 0.05) 0%, transparent 65%);
  pointer-events: none;
}

.hero-content { position: relative; z-index: 1; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
  padding: 0.45rem 1.1rem;
  background: var(--color-primary-light);
  border-radius: var(--radius-full);
  border: 1px solid rgba(200, 37, 110, 0.15);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.5vw, 4.25rem);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 1.5rem;
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.hero-title em {
  font-style: italic;
  color: var(--color-primary);
}

.hero-title span { color: var(--color-primary); font-style: italic; }

.hero-subtitle {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  color: var(--color-text-muted);
  max-width: 560px;
  margin: 0 auto 2.75rem;
  line-height: 1.75;
}

.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* === BUTTONS === */
.btn-primary, .btn-outline, .btn-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.8rem 1.75rem;
  border-radius: var(--radius-full);
  transition: all var(--transition);
  text-decoration: none;
  cursor: pointer;
  letter-spacing: 0.01em;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  border: 2px solid var(--color-primary);
  box-shadow: 0 4px 18px rgba(200, 37, 110, 0.28);
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(200, 37, 110, 0.38);
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn-outline:hover {
  background: var(--color-primary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(200, 37, 110, 0.25);
}

.btn-back {
  background: var(--color-bg-alt);
  color: var(--color-text-muted);
  border: 1.5px solid var(--color-border);
  font-size: 0.85rem;
  padding: 0.55rem 1.1rem;
}

.btn-back:hover {
  background: var(--color-primary-light);
  color: var(--color-primary);
  border-color: var(--color-primary-muted);
}

/* === SECTION TITLES === */
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 2.25rem;
  position: relative;
  padding-bottom: 1rem;
  letter-spacing: -0.02em;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 44px;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-muted));
  border-radius: 2px;
}

/* === MSD BANNER === */
.msd-banner {
  overflow: hidden;
  position: relative;
  background-image: url('/assets/images/msd-banner-bg.jpg');
  background-size: cover;
  background-position: 60% 15%;
}
/* Left-to-right overlay: dunkel links (lesbar), transparent rechts (Bild sichtbar) */
.msd-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(8, 2, 12, 0.82) 0%,
    rgba(8, 2, 12, 0.65) 35%,
    rgba(8, 2, 12, 0.25) 65%,
    rgba(8, 2, 12, 0.05) 100%
  );
  pointer-events: none;
  z-index: 0;
}
.msd-banner-link {
  display: block;
  text-decoration: none;
  color: inherit;
  position: relative;
  z-index: 1;
}
.msd-banner-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  min-height: 260px;
  position: relative;
}
.msd-banner-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 3rem 0;
  z-index: 1;
  max-width: 480px;
}
.msd-banner-logo {
  height: 26px;
  width: auto;
  margin-bottom: 0.5rem;
  display: block;
}
.msd-banner-tagline {
  font-family: 'Tinos', 'Georgia', serif;
  font-size: 2.1rem;
  color: #fff;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 0;
  line-height: 1.15;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.6);
}
.msd-banner-sub {
  font-family: 'Roboto', sans-serif;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.75);
  margin: 0;
  font-weight: 300;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 8px rgba(0,0,0,0.5);
}
.msd-banner-divider {
  width: 36px;
  height: 1px;
  background: #C82151;
  margin: 0.15rem 0;
}
.msd-banner-cta {
  display: inline-block;
  margin-top: 0.4rem;
  padding: 11px 28px;
  background-color: #C82151;
  background-image: linear-gradient(to right, transparent 33%, rgba(255,255,255,0.3) 50%, transparent 66%);
  background-size: 300% 100%;
  animation: msd-shine 4s infinite;
  color: #fff;
  font-family: 'Roboto', sans-serif;
  font-size: 0.8rem;
  font-weight: 400;
  text-transform: uppercase;
  border-radius: 3px;
  letter-spacing: 1px;
  white-space: nowrap;
  box-shadow: 0 4px 20px rgba(200, 33, 81, 0.5);
}
@keyframes msd-shine {
  0% { background-position: 200% center; }
  100% { background-position: -100% center; }
}
@media (max-width: 768px) {
  .msd-banner { background-position: 70% 30%; }
  .msd-banner::before {
    background: linear-gradient(
      to right,
      rgba(8, 2, 12, 0.88) 0%,
      rgba(8, 2, 12, 0.7) 50%,
      rgba(8, 2, 12, 0.2) 100%
    );
  }
  .msd-banner-inner { min-height: 200px; }
  .msd-banner-tagline { font-size: 1.45rem; }
  .msd-banner-cta { font-size: 0.75rem; padding: 9px 18px; }
}
@media (max-width: 480px) {
  .msd-banner { background-position: 65% 30%; }
  .msd-banner-inner { min-height: 170px; }
  .msd-banner-tagline { font-size: 1.15rem; }
  .msd-banner-logo { height: 20px; }
  .msd-banner-sub { display: none; }
  .msd-banner-content { padding: 2rem 0; }
}

/* === STICKY AFFILIATE BAR === */
.sticky-affiliate-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #fff;
  border-top: 2px solid #C82151;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.12);
  display: flex;
  align-items: center;
  padding: 0 1rem;
  min-height: 64px;
}
.sticky-affiliate-bar__inner {
  flex: 1;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.75rem 0;
}
.sticky-affiliate-bar__text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  flex: 1;
  min-width: 0;
}
.sticky-affiliate-bar__title {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: #1a1a2e;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sticky-affiliate-bar__sub {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  color: #777;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sticky-affiliate-bar__cta {
  display: inline-block;
  padding: 10px 24px;
  background: #C82151;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 4px;
  white-space: nowrap;
  letter-spacing: 0.3px;
  flex-shrink: 0;
  transition: background 0.2s;
}
.sticky-affiliate-bar__cta:hover { background: #a01a41; color: #fff; }
.sticky-affiliate-bar__close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0 0.5rem 0 1rem;
  font-size: 1.5rem;
  color: #bbb;
  line-height: 1;
  flex-shrink: 0;
}
.sticky-affiliate-bar__close:hover { color: #555; }
@media (max-width: 600px) {
  .sticky-affiliate-bar { padding: 0 0.75rem; min-height: 56px; }
  .sticky-affiliate-bar__inner { gap: 0.75rem; }
  .sticky-affiliate-bar__sub { display: none; }
  .sticky-affiliate-bar__title { font-size: 0.85rem; }
  .sticky-affiliate-bar__cta { padding: 9px 14px; font-size: 0.78rem; }
}

/* === POSTS SECTIONS === */
.latest-posts {
  padding: var(--section-padding) 0;
  background: var(--color-bg);
}

.topics-section {
  padding: var(--section-padding) 0;
  background: var(--color-bg-alt);
}

/* === POSTS GRID === */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.post-card {
  background: var(--color-bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--color-border-light);
}

.post-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.post-card-image-link {
  display: block;
  overflow: hidden;
}

.post-card-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  background-size: cover;
  background-position: center;
  background-color: var(--color-primary-light);
  transition: transform var(--transition-slow);
}

.post-card:hover .post-card-image {
  transform: scale(1.05);
}

.post-card-image.placeholder {
  background: linear-gradient(135deg, var(--color-primary-light), #fce8f0);
  min-height: 200px;
}

.post-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.post-card-tags { margin-bottom: 0.75rem; display: flex; flex-wrap: wrap; gap: 0.4rem; }

.post-card-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.post-card-title a { color: var(--color-text); }
.post-card-title a:hover { color: var(--color-primary); }

.post-card-excerpt {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 1rem;
}

.post-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--color-text-light);
  border-top: 1px solid var(--color-border-light);
  padding-top: 0.875rem;
  margin-top: auto;
}

.read-more {
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
}

.read-more:hover {
  color: var(--color-primary-dark);
}

.section-cta { text-align: center; }

/* === TAGS === */
.tag {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  background: var(--color-primary-light);
  color: var(--color-primary);
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: all var(--transition);
  white-space: nowrap;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.tag:hover {
  background: var(--color-primary);
  color: #fff;
}

.tag-sm {
  font-size: 0.68rem;
  padding: 0.2rem 0.55rem;
}

/* === FEATURED TOPICS === */
.featured-topics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.featured-topic {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.5rem 1.75rem;
  background: linear-gradient(135deg, var(--color-primary) 0%, #9e1d56 100%);
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 20px rgba(200, 37, 110, 0.22);
  position: relative;
  overflow: hidden;
}

.featured-topic::before {
  content: '';
  position: absolute;
  top: -30px;
  right: -30px;
  width: 120px;
  height: 120px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 50%;
  pointer-events: none;
}

.featured-topic:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(200, 37, 110, 0.35);
  color: inherit;
}

.featured-topic-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}

.featured-topic-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.featured-topic-arrow {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 0.25rem;
  transition: transform var(--transition), color var(--transition);
}

.featured-topic:hover .featured-topic-arrow {
  transform: translateX(4px);
  color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 640px) {
  .featured-topics { grid-template-columns: 1fr; }
}

@media (min-width: 641px) and (max-width: 900px) {
  .featured-topics { grid-template-columns: repeat(3, 1fr); }
}

/* === TOPIC CONTENT BLOCKS === */
.topic-content-blocks {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.topic-content-block {
  background: var(--color-bg);
  border: 1px solid rgba(200, 37, 110, 0.15);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  transition: box-shadow var(--transition), transform var(--transition);
}

.topic-content-block:hover {
  box-shadow: 0 8px 28px rgba(200, 37, 110, 0.12);
  transform: translateY(-2px);
}

.topic-block-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 0.75rem;
}

.topic-block-text {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--color-text-muted);
  margin: 0;
}

@media (max-width: 640px) {
  .topic-content-blocks { grid-template-columns: 1fr; }
}

/* === TOPICS CLOUD === */
.topics-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.topics-cloud--large .topic-tag {
  font-size: 1rem;
  padding: 0.55rem 1.3rem;
}

.topic-tag {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 1.15rem;
  background: var(--color-bg-card);
  color: var(--color-text-muted);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: all var(--transition);
}

.topic-tag:hover {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(200, 37, 110, 0.22);
}

/* === PAGE HEADER === */
.page-header {
  background: linear-gradient(155deg, var(--color-bg-alt) 0%, var(--color-bg) 100%);
  border-bottom: 1px solid var(--color-border-light);
  padding: 3.5rem 0 2.5rem;
  margin-bottom: 3rem;
}

.page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.page-header p {
  color: var(--color-text-muted);
  font-size: 1rem;
}

.breadcrumb {
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
  color: var(--color-text-muted);
}

/* === POSTS LIST (Blog page) === */
.posts-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 3rem;
}

.post-list-item {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--color-border-light);
}

.post-list-image-link {
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  flex-shrink: 0;
}

.post-list-image {
  width: 260px;
  height: 175px;
  background-size: cover;
  background-position: center;
  background-color: var(--color-primary-light);
  border-radius: var(--radius);
  transition: transform var(--transition-slow);
}

.post-list-image-link:hover .post-list-image {
  transform: scale(1.04);
}

.post-list-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.post-list-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 0.6rem;
  letter-spacing: -0.01em;
}

.post-list-title a { color: var(--color-text); }
.post-list-title a:hover { color: var(--color-primary); }

.post-list-excerpt {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  line-height: 1.65;
  margin-bottom: 0.75rem;
  flex: 1;
}

.post-meta {
  font-size: 0.82rem;
  color: var(--color-text-light);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.sep { color: var(--color-border); }

/* === PAGINATION === */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 2rem 0 3rem;
}

.pagination-prev, .pagination-next {
  padding: 0.65rem 1.5rem;
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  transition: background var(--transition), transform var(--transition);
}

.pagination-prev:hover, .pagination-next:hover {
  background: var(--color-primary-dark);
  color: #fff;
  transform: translateY(-1px);
}

.pagination-info {
  color: var(--color-text-muted);
  font-size: 0.875rem;
}

/* === SINGLE POST === */
.post {
  max-width: var(--max-width-content);
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}

.post-header {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--color-border-light);
}

.post-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1rem; }

.post-date {
  display: block;
  font-size: 0.875rem;
  color: var(--color-text-light);
  margin-bottom: 1.25rem;
  letter-spacing: 0.02em;
}

.post-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.9rem);
  font-weight: 700;
  line-height: 1.14;
  color: var(--color-text);
  margin-bottom: 1.25rem;
  letter-spacing: -0.025em;
}

.post-excerpt {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  line-height: 1.75;
  font-style: italic;
  margin-bottom: 1.5rem;
  padding: 1.25rem 1.5rem;
  border-left: 3px solid var(--color-primary);
  background: var(--color-bg-alt);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.post-featured-image {
  margin: 2rem 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.post-featured-image img {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: cover;
}

.post-byline {
  font-size: 0.875rem;
  color: var(--color-text-light);
  margin-top: 1.25rem;
}

/* === POST CONTENT TYPOGRAPHY === */
.post-content {
  font-size: 1.05rem;
  line-height: 1.85;
}

.post-content h2 {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 2.75rem 0 1rem;
  letter-spacing: -0.02em;
}

.post-content h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 2rem 0 0.75rem;
  letter-spacing: -0.01em;
}

.post-content h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin: 1.5rem 0 0.5rem;
}

.post-content p { margin-bottom: 1.5rem; }

.post-content a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(200, 37, 110, 0.35);
  transition: text-decoration-color var(--transition);
}

.post-content a:hover {
  text-decoration-color: var(--color-primary);
  color: var(--color-primary-dark);
}

.post-content ul, .post-content ol {
  margin: 1rem 0 1.5rem 1.5rem;
}

.post-content li { margin-bottom: 0.4rem; }

.post-content blockquote {
  border-left: 3px solid var(--color-primary);
  padding: 1.25rem 1.75rem;
  margin: 2rem 0;
  background: var(--color-bg-alt);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--color-text-muted);
}

.post-content img {
  border-radius: var(--radius);
  margin: 2rem auto;
  box-shadow: var(--shadow);
}

.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9rem;
}

.post-content th, .post-content td {
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  text-align: left;
}

.post-content th {
  background: var(--color-bg-alt);
  font-weight: 600;
}

.post-content code {
  font-family: 'Courier New', monospace;
  background: var(--color-bg-alt);
  padding: 0.15em 0.4em;
  border-radius: 4px;
  font-size: 0.9em;
}

.post-content pre {
  background: var(--color-text);
  color: #f0f0ff;
  padding: 1.5rem;
  border-radius: var(--radius);
  overflow-x: auto;
  margin: 1.5rem 0;
}

.post-content pre code {
  background: none;
  color: inherit;
  padding: 0;
  font-size: 0.9rem;
}

/* === RELATED POSTS === */
.related-posts {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--color-border);
}

.related-posts__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 1.5rem;
}

.related-posts__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.related-post-card {
  background: var(--color-bg-alt);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}

.related-post-card:hover {
  box-shadow: 0 8px 28px rgba(200, 37, 110, 0.12);
  transform: translateY(-3px);
}

.related-post-card__image-link { display: block; }

.related-post-card__image {
  width: 100%;
  height: 150px;
  background-size: cover;
  background-position: center;
}

.related-post-card__image--placeholder {
  background-color: var(--color-primary-light);
}

.related-post-card__body {
  padding: 1rem 1.1rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.related-post-card__tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }

.related-post-card__title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0;
}

.related-post-card__title a {
  color: var(--color-text);
  text-decoration: none;
}

.related-post-card__title a:hover { color: var(--color-primary); }

.related-post-card__link {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
  margin-top: 0.25rem;
}

.related-post-card__link:hover { text-decoration: underline; }

@media (max-width: 640px) {
  .related-posts__grid { grid-template-columns: 1fr; }
}

@media (min-width: 641px) and (max-width: 900px) {
  .related-posts__grid { grid-template-columns: repeat(2, 1fr); }
}

/* === POST FOOTER === */
.post-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border-light);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.post-tags-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

/* === FOOTER === */
.site-footer {
  background: var(--color-text);
  color: #b8a0b4;
  padding: 4rem 0 2rem;
  margin-top: 5rem;
  font-family: var(--font-sans);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  margin-bottom: 1.5rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  margin-bottom: 1rem;
}

.footer-logo-icon { width: 30px; height: 30px; flex-shrink: 0; }

.footer-logo-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
}

.footer-logo-name span { color: var(--color-primary); }

.footer-brand p {
  font-size: 0.875rem;
  line-height: 1.65;
  max-width: 320px;
  opacity: 0.6;
}

.footer-nav-group {
  display: flex;
  gap: 3.5rem;
}

.footer-nav-title {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 1rem;
}

.footer-nav ul { list-style: none; display: flex; flex-direction: column; gap: 0.55rem; }

.footer-nav a {
  color: #b8a0b4;
  text-decoration: none;
  font-size: 0.875rem;
  transition: color var(--transition);
}

.footer-nav a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.28);
}

.footer-legal-links {
  display: flex;
  gap: 1.5rem;
}

.footer-legal-links a {
  color: rgba(255, 255, 255, 0.32);
  text-decoration: none;
  font-size: 0.8rem;
  transition: color var(--transition);
}

.footer-legal-links a:hover { color: rgba(255, 255, 255, 0.7); }

/* === LEGAL PAGES (Impressum & Datenschutz) === */
.legal-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 1.5rem 5rem;
}

.legal-intro {
  color: var(--color-text-muted);
  margin-bottom: 2.5rem;
  font-size: 0.9rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-border-light);
}

.legal-page h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--color-border-light);
  letter-spacing: -0.01em;
}

.legal-page h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  margin: 1.75rem 0 0.5rem;
}

.legal-page p {
  margin-bottom: 1.25rem;
  color: var(--color-text-muted);
  line-height: 1.75;
  font-size: 0.95rem;
}

.legal-page a { color: var(--color-primary); }
.legal-page a:hover { color: var(--color-primary-dark); text-decoration: underline; }

.legal-page ul {
  margin: 0.5rem 0 1.25rem 1.5rem;
}

.legal-page li {
  margin-bottom: 0.4rem;
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
  :root { --section-padding: 3.5rem; }

  .post-list-item { grid-template-columns: 1fr; }
  .post-list-image { width: 100%; height: 220px; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-nav-group { gap: 2rem; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  :root { --section-padding: 3rem; }

  /* backdrop-filter würde den Header zum Containing Block für position:fixed machen –
     auf Mobile entfernen, damit die Overlay den gesamten Viewport bedeckt */
  .site-header {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(255, 250, 248, 0.98);
  }

  .nav-toggle {
    display: flex;
    position: relative;
    z-index: 410;
  }

  /* Burger → X wenn offen */
  .nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .nav-list {
    display: none;
    position: fixed;
    inset: 0;
    background: #fffaf8;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    z-index: 400;
    padding: 2rem;
    list-style: none;
  }

  .nav-list.open { display: flex; }

  .nav-list .nav-link {
    font-size: 1.5rem;
    font-weight: 600;
    padding: 0.8rem 2rem;
    width: 100%;
    text-align: center;
    border-radius: 8px;
    color: var(--color-text);
  }

  .main-nav { position: static; }

  .posts-grid { grid-template-columns: 1fr; }

  .hero { padding: 4rem 0 3.5rem; }
  .hero-cta { flex-direction: column; align-items: center; }

  .post { padding: 2rem 1rem 3rem; }
  .post-footer { flex-direction: column; align-items: flex-start; }

  .pagination { flex-direction: column; gap: 1rem; }

  .footer-nav-group { flex-direction: column; gap: 1.5rem; }
  .footer-nav ul { flex-direction: row; flex-wrap: wrap; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-legal-links { justify-content: center; }
}
