:root {
  /* Color Scheme declaration for native light controls and scrollbars */
  color-scheme: light;

  /* Fresh, Luminous Light Backgrounds */
  --bg-page: #fbfbfe;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #f4f4f8;
  --bg-glass: rgba(255, 255, 255, 0.95);
  
  /* Crisp Subtle Borders */
  --border: #e4e4eb;
  --border-focus: #e11d48;
  --border-hover: #fda4af;
  
  /* Glamour Boulevard Ruby & Rose Accents */
  --primary: #e11d48;
  --primary-hover: #be123c;
  --primary-light: #fff1f2;
  --primary-glow: rgba(225, 29, 72, 0.25);
  --primary-dark: #881337;
  --primary-gradient: linear-gradient(135deg, #f43f5e 0%, #e11d48 50%, #9f1239 100%);

  --accent-pink: #f43f5e;
  --accent-gold: #f59e0b;
  --cyan: #0284c7;
  --cyan-glow: rgba(2, 132, 199, 0.2);
  --purple: #8b5cf6;
  --purple-glow: rgba(139, 92, 246, 0.2);
  --emerald: #10b981;
  --amber: #f59e0b;
  --rose: #e11d48;

  /* Typography Colors - High-Contrast Slate & Deep Navy */
  --navy: #09090b;
  --slate: #27272a;
  --slate-muted: #71717a;
  --card-bg: #ffffff;

  --ai-badge-bg: rgba(9, 9, 11, 0.88);
  --ai-badge-text: #ffffff;
  --source-badge-bg: #fff1f2;
  --source-badge-text: #be123c;

  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px 0 rgba(0, 0, 0, 0.03);
  --shadow-md: 0 4px 14px -1px rgba(0, 0, 0, 0.08), 0 2px 5px -2px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 14px 28px -4px rgba(0, 0, 0, 0.09), 0 4px 8px -2px rgba(0, 0, 0, 0.04);
  --shadow-orange: 0 6px 20px -2px rgba(225, 29, 72, 0.28);

  --radius-lg: 16px;
  --radius-md: 10px;
  --radius-sm: 6px;
  /* 100% GDPR-compliant, high-performance system font stacks (no US external requests) */
  --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-heading: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-editorial: 'Playfair Display', Georgia, Cambria, 'Times New Roman', Times, serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;

  accent-color: var(--primary);
}

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

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

::selection {
  background: #ffe4e6;
  color: #be123c;
}

html {
  scrollbar-color: #cbd5e1 #f8fafc;
}

@supports not (scrollbar-color: auto) {
  ::-webkit-scrollbar {
    width: 10px;
    height: 10px;
  }
  ::-webkit-scrollbar-track {
    background: #f8fafc;
  }
  ::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 5px;
  }
  ::-webkit-scrollbar-thumb:hover {
    background: #e11d48;
  }
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-page);
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(249, 115, 22, 0.06) 0%, transparent 60%),
    radial-gradient(circle at 85% 20%, rgba(234, 88, 12, 0.03) 0%, transparent 40%);
  background-attachment: fixed;
  color: var(--slate);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--navy);
  font-family: var(--font-heading);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: all 0.2s ease;
}
a:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

/* Header & Navigation */
header.site-header {
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.header-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--navy);
}

.brand-icon {
  width: 44px;
  height: 44px;
  background: var(--primary-gradient);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(225, 29, 72, 0.35);
  position: relative;
  overflow: hidden;
}
.brand-icon::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.35) 0%, transparent 100%);
  pointer-events: none;
}

.brand-icon svg {
  width: 24px;
  height: 24px;
  fill: #ffffff;
}

.brand-text h1 {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: #09090b;
}

.brand-text span {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* International Country Selector Component (DE, US, GB, FR, IT, ES, NL) */
.country-switcher {
  position: relative;
  display: inline-block;
  user-select: none;
}
.country-btn-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border);
  border-radius: 9999px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--slate);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-sm);
  line-height: 1.2;
}
.country-btn-trigger:hover {
  border-color: var(--border-hover);
  background: #ffffff;
  color: var(--primary);
  box-shadow: 0 3px 10px rgba(225, 29, 72, 0.15);
}
.country-btn-trigger .chevron-icon {
  transition: transform 0.2s ease;
  color: var(--slate-muted);
}
.country-btn-trigger[aria-expanded="true"] .chevron-icon {
  transform: rotate(180deg);
}
.country-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 210px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12), 0 4px 8px rgba(0, 0, 0, 0.04);
  padding: 6px;
  z-index: 1000;
}
.country-dropdown-menu.show {
  display: flex;
  flex-direction: column;
  animation: countryFadeDown 0.18s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes countryFadeDown {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.country-opt-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 12px;
  background: transparent;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--slate);
  text-align: left;
  cursor: pointer;
  transition: all 0.15s ease;
}
.country-opt-btn:hover {
  background: var(--primary-light);
  color: var(--primary);
}
.country-opt-btn.active {
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 800;
}
.country-flag {
  font-size: 16px;
  line-height: 1;
}

/* Backward-compatible legacy lang switcher */
.lang-switcher {
  display: inline-flex;
  align-items: center;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border);
  border-radius: 9999px;
  padding: 2px 4px;
  gap: 2px;
  box-shadow: var(--shadow-sm);
}
.lang-btn {
  background: transparent;
  border: none;
  padding: 5px 10px;
  border-radius: 9999px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--slate-muted);
  cursor: pointer;
  transition: all 0.18s ease;
  line-height: 1.2;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.lang-btn:hover {
  color: var(--navy);
  background: rgba(225, 29, 72, 0.08);
}
.lang-btn.active {
  background: var(--primary-gradient);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(225, 29, 72, 0.35);
}

/* Sofort-Kontakt & Contact Request styles */
.contact-form-card {
  box-shadow: var(--shadow-md);
  transition: transform 0.2s ease;
}
.contact-msg-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}
.contact-msg-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
}

/* Mobile Menu Toggle & Backdrop (Hidden on Desktop) */
.mobile-menu-toggle {
  display: none;
}

.mobile-menu-backdrop {
  display: none;
}

.mobile-only-link {
  display: none !important;
}

nav.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: 100%;
}

.nav-pages-container {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}

nav.nav-links a {
  font-size: 14px;
  font-weight: 600;
  color: var(--slate);
  transition: all 0.2s;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  text-decoration: none;
}

nav.nav-links a:hover {
  color: var(--primary);
  background: #fff1f2;
}

.admin-nav-btn {
  background: #fff1f2 !important;
  border: 1px solid #fecdd3 !important;
  color: #be123c !important;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px !important;
  border-radius: 9999px !important;
  font-family: var(--font-mono);
  font-size: 12px !important;
  font-weight: 700;
  text-decoration: none !important;
}
.admin-nav-btn:hover {
  background: #ffe4e6 !important;
  color: #9f1239 !important;
  box-shadow: 0 2px 8px rgba(234, 88, 12, 0.2);
}

/* Main Content Container (Identisch zu Apothekenstimme) */
main#app {
  flex: 1;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 32px 24px;
}

/* Hero Section (wie auf Apothekenstimme) */
.magazine-hero, .hero-box {
  text-align: center;
  margin-bottom: 36px;
  padding: 20px 0;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff1f2;
  border: 1px solid #fecdd3;
  color: #be123c;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 11.5px;
  padding: 6px 14px;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(225, 29, 72, 0.08);
}

.hero-title {
  font-family: var(--font-editorial), var(--font-heading);
  font-size: 38px;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-top: 10px;
  margin-bottom: 10px;
  color: #09090b;
}

.hero-subtitle {
  color: var(--slate-muted);
  max-width: 680px;
  margin: 0 auto;
  font-size: 16.5px;
  line-height: 1.6;
}

/* Magazine Search Bar */
.search-container {
  position: relative;
  max-width: 650px;
  margin: 0 auto 28px;
  width: 100%;
}

.search-bar-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.search-leading-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  background: #fff1f2;
  border: 1.5px solid #fecdd3;
  border-radius: 12px;
  color: var(--primary);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 6px rgba(225, 29, 72, 0.08);
}

.search-leading-icon:hover {
  background: #ffe4e6;
  border-color: var(--primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(225, 29, 72, 0.16);
}

.search-leading-icon .search-icon {
  position: static;
  color: currentColor;
  transition: transform 0.2s ease;
}

.search-leading-icon:hover .search-icon {
  transform: scale(1.1);
}

.search-container:focus-within .search-leading-icon {
  background: #ffe4e6;
  border-color: var(--primary);
  box-shadow: 0 0 0 3.5px rgba(234, 88, 12, 0.15);
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
}

.search-container .search-input,
input.search-input {
  width: 100% !important;
  padding: 12px 42px 12px 16px !important;
  background: #ffffff !important;
  border: 1.5px solid var(--border) !important;
  border-radius: 12px !important;
  font-size: 14.5px !important;
  color: var(--navy) !important;
  font-family: var(--font-main) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
  transition: all 0.2s ease !important;
  outline: none !important;
  box-sizing: border-box !important;
}

.search-container .search-input:focus,
input.search-input:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3.5px rgba(234, 88, 12, 0.15), 0 4px 16px rgba(0, 0, 0, 0.06) !important;
}

.search-clear-btn {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  font-size: 20px;
  line-height: 1;
  color: var(--slate-muted);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s, background-color 0.15s;
}

.search-clear-btn:hover {
  color: var(--navy);
  background: #f1f5f9;
}

/* Autocomplete Dropdown */
.autocomplete-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 16px 36px -6px rgba(0, 0, 0, 0.14), 0 4px 12px rgba(0, 0, 0, 0.05);
  max-height: 400px;
  overflow-y: auto;
  z-index: 100;
  padding: 6px;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
}

.autocomplete-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--navy);
  cursor: pointer;
  transition: background 0.15s ease;
}

.autocomplete-item:hover,
.autocomplete-item.selected {
  background: #fff1f2;
}

.autocomplete-thumb {
  width: 58px;
  height: 38px;
  border-radius: 6px;
  object-fit: cover;
  background: #e2e8f0;
  flex-shrink: 0;
}

.autocomplete-info {
  flex: 1;
  min-width: 0;
}

.autocomplete-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.autocomplete-meta {
  font-size: 11px;
  color: var(--slate-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 3px;
}

.autocomplete-footer {
  padding: 10px 14px;
  border-top: 1px solid var(--border);
  margin-top: 4px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--primary);
  text-align: center;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.15s ease;
}

.autocomplete-footer:hover {
  background: #fff1f2;
  text-decoration: underline;
}

.autocomplete-no-results {
  padding: 20px 16px;
  text-align: center;
  font-size: 13.5px;
  color: var(--slate-muted);
}

mark.search-highlight {
  background: #fecdd3;
  color: #9f1239;
  font-weight: 700;
  border-radius: 2px;
  padding: 0 2px;
}

/* Active Search Filter Bar */
.search-active-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff1f2;
  border: 1px solid #fecdd3;
  padding: 10px 16px;
  border-radius: 12px;
  margin-bottom: 24px;
  font-size: 13.5px;
  color: #9f1239;
}

.search-active-bar strong {
  color: #be123c;
}

.btn-clear-search {
  background: #ffffff;
  border: 1px solid #fecdd3;
  color: #be123c;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-clear-search:hover {
  background: #ffe4e6;
  color: #7c2d12;
}

/* Magazine Pagination (Aktiv ab 25 Beiträgen) */
.pagination-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.pagination-info {
  font-size: 13px;
  color: var(--slate-muted);
  font-weight: 500;
}

.pagination-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}

.pagination-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid var(--border);
  color: var(--navy);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.pagination-btn:hover:not(:disabled) {
  border-color: var(--primary);
  color: var(--primary);
  background: #fff1f2;
}

.pagination-btn.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(234, 88, 12, 0.3);
}

.pagination-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  border-color: var(--border);
}

.pagination-ellipsis {
  padding: 0 6px;
  color: var(--slate-muted);
  font-size: 14px;
}

/* Category Filter Bar (Identisch zu Apothekenstimme) */
.filter-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 32px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.filter-bar::-webkit-scrollbar {
  display: none;
}

.filter-btn {
  background: #ffffff;
  border: 1px solid var(--border);
  color: var(--slate);
  padding: 8px 16px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

.filter-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.filter-btn.active {
  background: var(--primary);
  color: #ffffff;
  font-weight: 700;
  border-color: var(--primary);
}

/* Magazine Grid (1:1 Identisch zu Apothekenstimme) */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
}

/* Post Card (1:1 Identisch zu Apothekenstimme) */
.post-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}

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

/* Image Wrapper with 16:9 Aspect Ratio (1:1 Identisch zu Apothekenstimme) */
.post-img-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #e2e8f0;
  overflow: hidden;
}

.post-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* AI Badge (Identisch zu Apothekenstimme) */
.ai-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  left: auto;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.8px;
  padding: 3px 6px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  user-select: none;
  z-index: 2;
  cursor: default;
}

.post-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.post-meta-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 12px;
}

.category-tag {
  background: #fff1f2;
  color: #be123c;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 9999px;
  text-transform: uppercase;
  font-size: 11px;
  border: 1px solid #fecdd3;
}

.post-date {
  color: var(--slate-muted);
  font-size: 12px;
}

.post-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.35;
  margin-bottom: 10px;
}

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

.post-excerpt {
  font-size: 14px;
  color: var(--slate);
  margin-bottom: 16px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.55;
}

.post-card-footer {
  border-top: 1px solid var(--border);
  padding-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
}

.source-badge {
  background: #fff1f2;
  color: #be123c;
  padding: 3px 8px;
  border-radius: 6px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid #fecdd3;
}

.read-more-link {
  color: var(--primary);
  font-weight: 700;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
}
.read-more-link:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

/* Post Detail */
.post-detail {
  max-width: 860px;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px;
  box-shadow: var(--shadow-sm);
}

.post-detail-header {
  margin-bottom: 28px;
}

.post-detail-title {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--navy);
  margin: 16px 0;
  letter-spacing: -0.02em;
}

.post-detail-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--slate-muted);
  font-family: var(--font-mono);
  border-bottom: 1px solid var(--border);
  padding-bottom: 20px;
}

.article-lead {
  font-size: 19px;
  line-height: 1.6;
  color: var(--slate);
  font-weight: 500;
  margin: 20px 0 24px;
}

.article-featured-img,
.post-detail-hero-img {
  position: relative;
  width: 100%;
  max-width: 100%;
  max-height: 480px;
  overflow: hidden;
  border-radius: 14px;
  margin: 24px 0 28px;
  border: 1px solid var(--border);
  background: #f1f5f9;
  box-shadow: var(--shadow-sm);
}

.article-featured-img img,
.post-detail-hero-img img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 480px;
  object-fit: cover;
  display: block;
}

.post-detail-content,
.article-content {
  font-size: 17px;
  line-height: 1.8;
  color: var(--slate);
  max-width: 100%;
  overflow-wrap: break-word;
  word-break: break-word;
}

.post-detail-content img,
.article-content img,
.article-detail img,
.post-detail img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

.post-detail-content p,
.article-content p {
  margin-bottom: 22px;
}

.post-detail-content h2,
.article-content h2 {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 800;
  color: var(--navy);
  margin: 36px 0 16px;
}

.post-detail-content h2 strong,
.article-content h2 strong {
  font-weight: 800;
  color: var(--navy);
}

.post-detail-content h3,
.article-content h3 {
  font-family: var(--font-heading);
  font-size: 21px;
  font-weight: 700;
  color: var(--primary);
  margin: 28px 0 14px;
}

.post-detail-content h3 strong,
.article-content h3 strong {
  font-weight: 700;
  color: var(--primary);
}

.post-detail-content ul, .post-detail-content ol,
.article-content ul, .article-content ol {
  margin: 0 0 24px 24px;
}

.post-detail-content li,
.article-content li {
  margin-bottom: 8px;
  color: var(--slate);
}

.post-detail-content blockquote,
.article-content blockquote {
  border-left: 4px solid var(--primary);
  background: #fff1f2;
  padding: 16px 22px;
  border-radius: 0 10px 10px 0;
  margin: 24px 0;
  font-style: italic;
  color: #9f1239;
}

.post-detail-content code {
  font-family: var(--font-mono);
  background: #f1f5f9;
  border: 1px solid var(--border);
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 14px;
  color: #be123c;
}

.post-detail-content pre {
  background: #0f172a;
  border: 1px solid #1e293b;
  padding: 20px;
  border-radius: 12px;
  overflow-x: auto;
  margin: 24px 0;
  color: #f8fafc;
}
.post-detail-content pre code {
  background: transparent;
  border: none;
  padding: 0;
  color: inherit;
  font-size: 14px;
}

/* Article Detail (Pages, Impressum, Datenschutz) */
.article-detail {
  max-width: 860px;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px;
  box-shadow: var(--shadow-sm);
  color: var(--slate);
  overflow: hidden;
  box-sizing: border-box;
}
.article-detail h1 {
  font-family: var(--font-heading);
  font-size: 34px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--navy);
  margin: 12px 0 20px;
  letter-spacing: -0.02em;
}
.article-detail h2 {
  font-size: 30px;
  color: var(--navy);
  margin-bottom: 20px;
  font-weight: 800;
}
.article-detail h3 {
  font-size: 20px;
  color: var(--primary);
  margin: 28px 0 12px;
  font-weight: 700;
}
.article-detail p {
  margin-bottom: 16px;
  line-height: 1.7;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(234, 88, 12, 0.35);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #e11d48 0%, #be123c 100%);
  box-shadow: 0 6px 20px rgba(234, 88, 12, 0.45);
  transform: translateY(-1px);
  color: #ffffff;
  text-decoration: none;
}

.btn-cyan {
  background: linear-gradient(135deg, #fb923c 0%, #f43f5e 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(249, 115, 22, 0.35);
}
.btn-cyan:hover {
  background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(234, 88, 12, 0.45);
  text-decoration: none;
}

.btn-secondary {
  background: #ffffff;
  border: 1px solid var(--border);
  color: var(--slate);
}
.btn-secondary:hover {
  background: #fff1f2;
  color: var(--primary);
  border-color: #fecdd3;
  text-decoration: none;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12.5px;
  border-radius: 6px;
}

/* Forms & Admin Inputs */
.form-group {
  margin-bottom: 16px;
}
.form-group label, label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}

input[type="text"], input[type="password"], input[type="email"], input[type="number"], input[type="time"], select, textarea, .form-control {
  background: #ffffff;
  border: 1px solid var(--border);
  color: #0f172a;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-family: var(--font-main);
  width: 100%;
  transition: all 0.2s;
}
input:focus, select:focus, textarea:focus, .form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.15);
}

/* Footer */
footer.site-footer {
  background: #ffffff;
  border-top: 1px solid var(--border);
  padding: 40px 24px;
  margin-top: auto;
  color: var(--slate-muted);
  font-size: 13.5px;
}

.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-links {
  display: flex;
  gap: 20px;
}
.footer-links a {
  color: var(--slate-muted);
  text-decoration: none;
}
.footer-links a:hover {
  color: var(--primary);
  text-decoration: underline;
}

/* Admin Dashboard, Cards & Panels */
.admin-card, .card-panel {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.admin-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
  margin-bottom: 24px;
  overflow-x: auto;
}

.admin-tab {
  background: none;
  border: none;
  color: var(--slate-muted);
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.2s;
}
.admin-tab:hover {
  color: var(--navy);
  background: #f1f5f9;
}
.admin-tab.active {
  color: #ffffff;
  background: var(--primary);
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(234, 88, 12, 0.3);
}

/* Modals */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-content {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg), 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  color: var(--slate);
}

.modal-content h3 {
  color: var(--navy);
  font-size: 22px;
  font-weight: 800;
}

/* Tables */
.data-table, table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
  font-size: 13.5px;
}
table th {
  background: #f8fafc;
  color: var(--navy);
  font-weight: 700;
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--slate);
}
table tr:hover td {
  background: #fff1f2;
}

/* Danger Button */
.btn-danger {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
}
.btn-danger:hover {
  background: #fee2e2;
  color: #b91c1c;
  border-color: #fca5a5;
  text-decoration: none;
}

/* Spinners */
.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(234, 88, 12, 0.2);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  vertical-align: middle;
}
.spinner-primary {
  border-color: rgba(234, 88, 12, 0.2);
  border-top-color: #e11d48;
}
.spinner-lg {
  width: 28px;
  height: 28px;
  border-width: 3px;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Skeleton Placeholders for Instant Painting */
.skeleton-card {
  pointer-events: none;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.skeleton-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: skeletonPulse 1.4s ease-in-out infinite;
}
.skeleton-line {
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: skeletonPulse 1.4s ease-in-out infinite;
  border-radius: 4px;
}
@keyframes skeletonPulse {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Responsive */
@media (max-width: 768px) {
  .header-inner {
    padding: 12px 16px;
    position: relative;
  }
  .brand-text span {
    display: none;
  }
  .brand-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }
  .brand-icon svg {
    width: 20px;
    height: 20px;
  }
  .brand-text h1 {
    font-size: 18px;
  }

  /* Hamburger Toggle Button */
  .mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    color: var(--navy);
    padding: 0;
    transition: all 0.2s ease;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
  }

  .mobile-menu-toggle:hover,
  .mobile-menu-toggle:focus-visible {
    background: #f1f5f9;
    border-color: #cbd5e1;
    outline: none;
  }

  .mobile-menu-toggle .close-icon {
    display: none;
  }

  .mobile-menu-toggle .hamburger-icon {
    display: block;
  }

  body.mobile-nav-open .mobile-menu-toggle {
    background: #fff1f2;
    border-color: #fecdd3;
  }

  body.mobile-nav-open .mobile-menu-toggle .hamburger-icon {
    display: none;
  }

  body.mobile-nav-open .mobile-menu-toggle .close-icon {
    display: block;
    color: var(--primary);
  }

  body.mobile-nav-open {
    overflow: hidden;
  }

  /* Mobile Backdrop */
  .mobile-menu-backdrop {
    display: none;
  }

  body.mobile-nav-open .mobile-menu-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    z-index: 45;
    animation: seFadeIn 0.2s ease-out;
  }

  @keyframes seFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }

  @keyframes seSlideDown {
    from {
      opacity: 0;
      transform: translateY(-8px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  /* Mobile Navigation Drawer */
  nav.nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border-bottom: 2px solid var(--border);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.12), 0 8px 10px -6px rgba(0, 0, 0, 0.08);
    padding: 16px 18px 20px 18px;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    z-index: 50;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
  }

  body.mobile-nav-open nav.nav-links {
    display: flex;
    animation: seSlideDown 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .nav-pages-container {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    width: 100%;
    flex-shrink: 0;
  }

  nav.nav-links a {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    box-sizing: border-box;
    padding: 12px 16px;
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    color: var(--navy) !important;
    text-decoration: none !important;
    white-space: normal;
    transition: all 0.15s ease;
  }

  nav.nav-links a:hover,
  nav.nav-links a:focus {
    background: #fff1f2;
    border-color: #fecdd3;
    color: var(--primary) !important;
  }

  nav.nav-links a.active {
    background: #fff1f2 !important;
    border-color: #fecdd3 !important;
    color: var(--primary) !important;
  }

  .mobile-only-link {
    display: flex !important;
  }

  .admin-nav-btn {
    margin-top: 4px;
    justify-content: center !important;
    background: #fff1f2 !important;
    border: 1px solid #fecdd3 !important;
    color: #be123c !important;
  }

  main#app {
    padding: 16px 12px;
    max-width: 100vw;
    box-sizing: border-box;
  }

  .hero-title {
    font-size: 26px;
  }
  .search-bar-row {
    gap: 8px;
  }
  .search-leading-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
  }
  .posts-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .post-detail, .article-detail {
    padding: 24px 16px;
  }
  .post-detail-title {
    font-size: 26px;
  }
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

/* HTML Visual / Code Editor */
.html-visual-editor {
  min-height: 240px;
  max-height: 480px;
  overflow-y: auto;
  padding: 14px 16px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
  outline: none;
  font-family: inherit;
  font-size: 15px;
  line-height: 1.7;
  color: var(--navy);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.html-visual-editor:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.15);
}

.html-visual-editor p {
  margin-bottom: 12px;
}

.html-visual-editor h2 {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 800;
  line-height: 1.35;
  color: var(--navy);
  margin-top: 24px;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.html-visual-editor h2 strong {
  font-weight: 800;
  color: var(--navy);
}

.html-visual-editor h3 {
  font-family: var(--font-heading);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--primary);
  margin-top: 18px;
  margin-bottom: 10px;
}

.html-visual-editor h3 strong {
  font-weight: 700;
  color: var(--primary);
}

.html-visual-editor blockquote {
  border-left: 3px solid var(--primary);
  padding-left: 12px;
  color: var(--slate);
  margin: 12px 0;
  font-style: italic;
}

.html-visual-editor ul,
.html-visual-editor ol {
  margin: 10px 0;
  padding-left: 22px;
}

.html-visual-editor li {
  margin-bottom: 4px;
}

.editor-toolbar .btn-toolbar {
  transition: all 0.15s ease;
}

.editor-toolbar .btn-toolbar:hover {
  background: #e2e8f0 !important;
  color: var(--navy);
}

.editor-toolbar .btn-toolbar:active {
  transform: scale(0.96);
}

/* Legal Notice Disclaimer & Source Box (Post Detail Footer) */
.legal-disclaimer-box {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 14px 16px;
  margin-top: 28px;
  margin-bottom: 16px;
  font-size: 12.5px;
  color: var(--slate);
  line-height: 1.55;
}

.legal-disclaimer-box svg {
  width: 16px;
  height: 16px;
  min-width: 16px;
  min-height: 16px;
  max-width: 16px;
  max-height: 16px;
  margin-top: 2px;
  color: #64748b;
  flex-shrink: 0;
}

.source-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 18px;
  margin-top: 14px;
  margin-bottom: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.verified-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  white-space: nowrap;
}

.verified-check svg {
  width: 15px;
  height: 15px;
  min-width: 15px;
  flex-shrink: 0;
}


