/* ============================================
   ALPENPOST Design System
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
  /* Primary Green */
  --color-primary-900: #064d18;
  --color-primary-800: #087522;
  --color-primary-700: #0a7d26;
  --color-primary-600: #0c9d30;
  --color-primary-500: #2db553;
  --color-primary-400: #5ccf78;
  --color-primary-300: #8ade9d;
  --color-primary-200: #b8edc4;
  --color-primary-100: #e8f7ec;
  --color-primary-50: #f4fbf6;

  /* Neutral */
  --color-neutral-950: #0f1419;
  --color-neutral-900: #1a2028;
  --color-neutral-800: #2a3038;
  --color-neutral-700: #3d4550;
  --color-neutral-600: #5c6370;
  --color-neutral-500: #787f8c;
  --color-neutral-400: #9ca3af;
  --color-neutral-300: #c0c5cc;
  --color-neutral-200: #e5e7eb;
  --color-neutral-100: #f3f4f6;
  --color-neutral-50: #f9fafb;
  --color-white: #ffffff;

  /* Accent (Premium / e-Alpenpost+) */
  --color-accent-700: #8b6914;
  --color-accent-600: #b8860b;
  --color-accent-500: #d4a017;
  --color-accent-400: #e8bf3d;
  --color-accent-300: #f0d56e;
  --color-accent-200: #f7e8a8;
  --color-accent-100: #fef8e7;
  --color-accent-50: #fffdf5;

  /* Semantic */
  --color-success: #0c9d30;
  --color-warning: #f59e0b;
  --color-error: #ef4444;
  --color-info: #3b82f6;

  /* Typography */
  --font-display: 'Source Serif 4', Georgia, serif;
  --font-body: 'Work Sans', system-ui, -apple-system, sans-serif;

  /* Spacing (rem-based) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Layout */
  --container-max: 75rem;
  --container-wide: 87.5rem;
  --container-narrow: 45rem;

  /* Fluid typography */
  --fluid-xs: clamp(0.7rem, 0.65rem + 0.25vw, 0.8rem);
  --fluid-sm: clamp(0.8rem, 0.75rem + 0.25vw, 0.9rem);
  --fluid-base: clamp(0.9rem, 0.85rem + 0.25vw, 1rem);
  --fluid-lg: clamp(1rem, 0.9rem + 0.5vw, 1.15rem);
  --fluid-xl: clamp(1.1rem, 1rem + 0.5vw, 1.3rem);
  --fluid-2xl: clamp(1.25rem, 1.1rem + 0.75vw, 1.6rem);
  --fluid-3xl: clamp(1.5rem, 1.2rem + 1.5vw, 2.25rem);
  --fluid-4xl: clamp(1.75rem, 1.3rem + 2.25vw, 3rem);
  --fluid-hero: clamp(2.25rem, 1.5rem + 3.75vw, 4.5rem);

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
  --shadow-xl: 0 16px 48px rgba(0,0,0,0.16);

  /* Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  font-feature-settings: 'kern' 1, 'liga' 1;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  color: var(--color-neutral-800);
  background: var(--color-white);
  letter-spacing: -0.01em;
  line-height: 1.6;
  hyphens: auto;
  -webkit-hyphens: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

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

ul, ol {
  list-style: none;
}

address {
  font-style: normal;
}

/* --- Layout --- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(1rem, 3vw, 1.5rem);
}

.container--wide {
  max-width: var(--container-wide);
}

.container--narrow {
  max-width: var(--container-narrow);
}

/* --- Typography --- */
p, li, td, address, blockquote {
  max-width: 62ch;
}

/* In centered contexts, paragraphs center too */
.section-header p,
.pricing-hero p,
.page-header p,
.proof-header p,
.media-hero p,
.media-cta p,
.archive-teaser-cta p,
.faq-section p,
[class*="--center"] p {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* In flex/grid children, don't constrain width */
.tier-card-feature,
.pricing-card-feature,
.nav-link,
.btn,
.footer-link,
.purchase-item-title,
.detail-abo-card-desc,
.detail-single-note {
  max-width: none;
}

h1, h2, h3, h4, h5, h6, .section-title, .hero-title {
  text-wrap: balance;
  hyphens: none;
}

.overline {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-primary-600);
  margin-bottom: var(--space-3);
  hyphens: none;
}

/* Overline with leading line */
.overline--line {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.overline--line::before {
  content: '';
  width: 24px;
  height: 1.5px;
  background: currentColor;
  flex-shrink: 0;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fluid-3xl);
  line-height: 1.15;
  color: var(--color-neutral-950);
  letter-spacing: -0.025em;
}

.section-title--lg {
  font-size: var(--fluid-4xl);
}

.section-title--sm {
  font-size: 1.75rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--color-neutral-500);
  margin-top: var(--space-3);
  max-width: 520px;
  line-height: 1.6;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-16);
}

.section-header .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

/* Typographic accents */
.quote-mark {
  font-family: var(--font-display);
  font-size: 5rem;
  font-weight: 700;
  line-height: 0.8;
  color: var(--color-primary-100);
  position: absolute;
  top: -8px;
  left: -4px;
  user-select: none;
}

/* --- Sections --- */
.section {
  padding: var(--space-24) 0;
}

.section--green {
  background: var(--color-primary-600);
  color: var(--color-white);
  padding-bottom: var(--space-16);
}

.section--green .overline {
  color: var(--color-primary-200);
}

.section--green .section-title {
  color: var(--color-white);
}

.section--light {
  background: var(--color-neutral-50);
}

/* --- Badges --- */
.badge {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 4px 10px;
  border-radius: 100px;
  text-transform: uppercase;
}

.badge--green {
  background: var(--color-primary-600);
  color: var(--color-white);
}

.badge--gold {
  background: linear-gradient(135deg, var(--color-accent-500), var(--color-accent-600));
  color: var(--color-white);
}

.badge--outline {
  background: transparent;
  border: 1.5px solid var(--color-neutral-300);
  color: var(--color-neutral-600);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  border: 2px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition-fast);
  padding: 10px 24px;
  height: 44px;
  white-space: nowrap;
  gap: var(--space-2);
}

.btn--sm {
  font-size: 13px;
  padding: 6px 16px;
  height: 36px;
}

.btn--lg {
  font-size: 16px;
  padding: 14px 32px;
  height: 52px;
  border-radius: 4px;
}

.btn--primary {
  background: var(--color-primary-600);
  color: var(--color-white);
  border-color: var(--color-primary-600);
  outline: 1.5px solid rgba(255,255,255,0.55);
  outline-offset: -5px;
}

.btn--primary:hover {
  background: var(--color-primary-700);
  border-color: var(--color-primary-700);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.btn--secondary {
  background: var(--color-white);
  color: var(--color-primary-600);
  border-color: var(--color-primary-600);
  outline: 1.5px solid rgba(12,157,48,0.35);
  outline-offset: -5px;
}

.btn--secondary:hover {
  background: var(--color-primary-50);
}

.btn--ghost {
  background: transparent;
  color: var(--color-primary-600);
  border-color: transparent;
}

.btn--ghost:hover {
  background: var(--color-primary-50);
}

.btn--ghost-light {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(255,255,255,0.3);
  outline: 1.5px solid rgba(255,255,255,0.4);
  outline-offset: -5px;
}

.btn--ghost-light:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.5);
}

.btn--white {
  background: var(--color-white);
  color: var(--color-primary-700);
  border-color: var(--color-white);
  outline: 1.5px solid rgba(12,157,48,0.25);
  outline-offset: -5px;
}

.btn--white:hover {
  background: var(--color-primary-50);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn--full {
  width: 100%;
}

/* ============================================
   Navigation
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  z-index: 100;
  transition: all var(--transition-base);
}

.nav.scrolled {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}

.nav-inner {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 clamp(1rem, 3vw, 2rem);
  height: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
}

/* Logo left */
.nav-logo {
  display: flex;
  align-items: center;
  z-index: 101;
}

.nav-logo-img {
  height: 42px;
  width: auto;
  transition: opacity var(--transition-base);
}

/* Center links */
.nav-left {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

/* Right links + CTA + account */
.nav-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
}

/* Base link style */
.nav-link {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: rgba(255,255,255,0.75);
  padding: 7px 14px;
  border-radius: 100px;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--color-white);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 14px;
  right: 14px;
  height: 1px;
  background: currentColor;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.nav-link {
  position: relative;
}

.nav-link:hover::after {
  opacity: 0.4;
}

/* Scrolled state links */
.nav.scrolled .nav-link {
  color: var(--color-neutral-600);
}

.nav.scrolled .nav-link:hover {
  color: var(--color-neutral-950);
}

/* Active link */
.nav-link--active {
  font-weight: 600;
  color: var(--color-white);
}

.nav.scrolled .nav-link--active {
  color: var(--color-neutral-950);
}

/* CTA link (e-Alpenpost) */
.nav-link--cta {
  font-weight: 600;
  color: var(--color-white);
  background: var(--color-primary-600);
  border: none;
}

.nav-link--cta::after {
  display: none;
}

.nav-link--cta:hover {
  background: var(--color-primary-700);
  color: var(--color-white);
}

.nav.scrolled .nav-link--cta {
  color: var(--color-white);
  background: var(--color-primary-600);
}

.nav.scrolled .nav-link--cta:hover {
  background: var(--color-primary-700);
}

/* Nav Dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  padding: var(--space-2) 0;
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 24px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.06);
  min-width: 180px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
}

.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(4px);
}

.nav-dropdown-menu a {
  display: block;
  padding: 8px 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-neutral-600);
  transition: all var(--transition-fast);
}

.nav-dropdown-menu a:hover {
  color: var(--color-primary-600);
  background: var(--color-primary-50);
}

/* Account icon */
.nav-account {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  padding: 7px 14px;
  border-radius: 100px;
  transition: all var(--transition-fast);
  margin-left: var(--space-2);
}

.nav-account:hover {
  color: var(--color-white);
  background: rgba(255,255,255,0.1);
}

.nav.scrolled .nav-account {
  color: var(--color-neutral-500);
}

.nav.scrolled .nav-account:hover {
  color: var(--color-neutral-950);
  background: var(--color-neutral-100);
}

/* Nav Burger — show on small screens */
@media (max-width: 52rem) {
  .nav-left, .nav-right { display: none; }
  .nav-burger { display: flex !important; }
  .nav-inner { grid-template-columns: 1fr auto; }
}

.nav-burger {
  display: none;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  z-index: 101;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-burger span {
  width: 22px;
  height: 2px;
  background: var(--color-white);
  border-radius: 1px;
  transition: all var(--transition-fast);
}

.nav.scrolled .nav-burger span {
  background: var(--color-neutral-800);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--color-white);
  z-index: 99;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}

.mobile-menu.open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
}

.mobile-menu-link {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--color-neutral-800);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.mobile-menu-link:hover {
  color: var(--color-primary-600);
}

.mobile-menu-link--primary {
  color: var(--color-primary-600);
}

/* ============================================
   Hero
   ============================================ */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: clamp(5rem, 15vw, 7.5rem) 0 clamp(3rem, 8vw, 5rem);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url('../img/hero-bg.jpg') center/cover no-repeat;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10, 30, 20, 0.72);
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 clamp(1rem, 3vw, 1.5rem);
  width: 100%;
  min-height: 28rem;
}

.hero-content {
  text-align: left;
  flex: 1 1 20rem;
  min-width: 0;
  position: relative;
  z-index: 2;
}

.hero-overline {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: var(--space-5);
}

.hero-title {
  font-family: var(--font-display);
  font-size: var(--fluid-hero);
  font-weight: 700;
  color: var(--color-white);
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: var(--space-6);
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 400;
  color: rgba(255,255,255,0.55);
  margin-bottom: var(--space-10);
  max-width: 420px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.hero-device {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 1;
}

.hero-device-img {
  width: clamp(22rem, 42vw, 38rem);
  height: auto;
  display: block;
}

/* Hero cover (WP template: edition card in hero) */
.hero-cover {
  position: absolute;
  right: clamp(2rem, 5vw, 4rem);
  bottom: clamp(2rem, 5vw, 3rem);
  z-index: 1;
  max-width: clamp(14rem, 25vw, 20rem);
}

@media (max-width: 52rem) {
  .hero-device,
  .hero-cover {
    display: none;
  }
}

/* ============================================
   Current Issue
   ============================================ */
.current-issue {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-10);
  align-items: start;
  max-width: 60rem;
  margin: 0 auto;
}

.current-issue-cover {
  flex: 0 0 clamp(12rem, 25vw, 21rem);
}

.current-issue-content {
  flex: 1 1 20rem;
  min-width: 0;
}

.current-issue-cover {
  order: 0;
}

.current-issue::before {
  content: '';
  background: var(--color-neutral-200);
  width: 1px;
  align-self: stretch;
  margin: var(--space-4) 0;
  order: 1;
}

.current-issue-content {
  order: 2;
}

.current-issue-content {
  padding-top: var(--space-4);
}

.current-issue-date {
  font-size: 1rem;
  color: var(--color-neutral-500);
  margin-top: var(--space-2);
  margin-bottom: var(--space-10);
}

.current-issue-articles {
  margin-bottom: var(--space-10);
}

.current-issue-articles-title {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-neutral-400);
  margin-bottom: var(--space-4);
}

.article-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.article-list-item {
  display: flex;
  align-items: baseline;
  gap: var(--space-4);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-neutral-100);
}

.article-list-page {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-neutral-400);
  min-width: 32px;
  font-variant-numeric: tabular-nums;
}

.article-list-title {
  font-size: 1rem;
  color: var(--color-neutral-800);
  line-height: 1.4;
}

.current-issue-actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* ============================================
   Edition Card
   ============================================ */
.edition-card {
  position: relative;
  border-radius: var(--radius-sm);
  transition: transform 0.3s cubic-bezier(0.2, 0, 0, 1);
  cursor: pointer;
  /* Padding so stacked pages + shadows don't clip */
  padding: 6px;
  /* Create stacking context so z-index:-1 children stay inside this card, not behind parent bg */
  isolation: isolate;
}

.edition-card:hover {
  transform: translateY(-2px);
}

/* Wrapper for the cover + stacked pages (needed for 3rd page via wrapper pseudo) */
.edition-card-cover {
  aspect-ratio: 3 / 4;
  position: relative;
  overflow: visible;
  border-radius: 1px;
  background: var(--color-neutral-100);
  /* Contact shadow: wide, soft, close to surface */
  box-shadow:
    0 1px 3px rgba(0,0,0,0.1),
    0 4px 12px rgba(0,0,0,0.08),
    0 0px 40px 4px rgba(0,0,0,0.04);
  transition: box-shadow 0.3s cubic-bezier(0.2, 0, 0, 1);
}

.edition-card:hover .edition-card-cover {
  box-shadow:
    0 2px 6px rgba(0,0,0,0.1),
    0 10px 24px rgba(0,0,0,0.1),
    0 0px 48px 4px rgba(0,0,0,0.03);
}

/* Stacked pages behind the cover */
.edition-card-cover::before,
.edition-card-cover::after {
  content: '';
  position: absolute;
  /* Slightly larger than cover to peek out at edges */
  top: -1px;
  left: -1px;
  right: -1px;
  bottom: -1px;
  border-radius: 1px;
  z-index: -1;
  transition: transform 0.3s cubic-bezier(0.2, 0, 0, 1);
  /* Paper edge: bright line on right/bottom edge */
  border-right: 1px solid rgba(255,255,255,0.7);
  border-bottom: 1px solid rgba(255,255,255,0.5);
}

/* Bottom page (3rd layer) */
.edition-card-cover::after {
  transform: rotate(-1.2deg) translate(-2px, 4px);
  background: #e4e4e4;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  /* Peek out a bit more */
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
}

/* Middle page (2nd layer) */
.edition-card-cover::before {
  transform: rotate(0.7deg) translate(2px, 2px);
  background: #ebebeb;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.edition-card:hover .edition-card-cover::before {
  transform: rotate(1.2deg) translate(3px, 2px);
}

.edition-card:hover .edition-card-cover::after {
  transform: rotate(-1.8deg) translate(-3px, 5px);
}

.edition-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 1px;
  position: relative;
  z-index: 1;
}

.edition-card-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(145deg, var(--color-neutral-100), var(--color-neutral-200));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  border: 1px solid var(--color-neutral-200);
  border-radius: 2px;
  position: relative;
  z-index: 1;
}

.edition-card-placeholder-logo {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-primary-600);
  letter-spacing: 0.05em;
}

.edition-card-placeholder-nr {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-neutral-700);
}

.edition-card-placeholder-date {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--color-neutral-500);
}

.edition-card--large .edition-card-placeholder-logo {
  font-size: 3.5rem;
}

.edition-card--large .edition-card-placeholder-nr {
  font-size: 1.25rem;
}

.edition-card .badge {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  z-index: 2;
}

/* Edition Card -- Locked State */
.edition-card--locked .edition-card-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(4px);
}

.edition-card--locked .edition-card-lock {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 40px;
  height: 40px;
  background: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  color: var(--color-neutral-500);
}

/* Edition Card Info */
.edition-card-info {
  padding: var(--space-3) 0 0;
}

.edition-card-title {
  display: block;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-neutral-800);
}

.edition-card-date {
  display: block;
  font-size: 12px;
  color: var(--color-neutral-500);
  margin-top: 4px;
}

/* ============================================
   Product Showcase (e-Alpenpost)
   ============================================ */
.section--light:has(.product-showcase) {
  position: relative;
  overflow: hidden;
  padding: 0;
}

.product-showcase {
  position: relative;
  min-height: 34rem;
}

.product-showcase-image {
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(-50vw + 50%);
  z-index: 0;
}

.product-showcase-img {
  height: 100%;
  width: auto;
  display: block;
}

.product-showcase-text {
  font-size: 1.05rem;
  color: var(--color-neutral-600);
  line-height: 1.65;
  margin-top: var(--space-5);
}

.product-showcase-features {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-5);
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-neutral-200);
}

.product-showcase-feature {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-neutral-600);
}

.product-showcase-feature svg {
  color: var(--color-primary-600);
  flex-shrink: 0;
}

.product-showcase-content {
  position: relative;
  z-index: 1;
  margin-left: 50%;
  padding: var(--space-16) 0 var(--space-16) var(--space-10);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.product-showcase-content .btn {
  margin-top: var(--space-8);
}

@media (max-width: 52rem) {
  .section--light:has(.product-showcase) {
    padding: 0;
  }
  .product-showcase {
    min-height: auto;
  }
  .product-showcase-image {
    position: relative;
    left: auto;
  }
  .product-showcase-img {
    width: 100%;
    height: auto;
  }
  .product-showcase-content {
    margin-left: 0;
    padding: var(--space-10) clamp(1rem, 3vw, 1.5rem);
  }
}

.product-showcase-covers .edition-card {
  padding: 4px;
}

/* ============================================
   Value Propositions
   ============================================ */
.value-props {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  text-align: center;
  margin-bottom: var(--space-12);
}

.value-prop {
  flex: 1 1 15rem;
  padding: 0 var(--space-6);
  min-width: 0;
}

.value-prop-separator {
  width: 1px;
  background: rgba(255,255,255,0.2);
  flex-shrink: 0;
}

.value-prop-icon {
  margin: 0 auto var(--space-5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  opacity: 0.85;
}

.value-prop-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 0;
}

.value-prop-divider {
  width: 32px;
  height: 1px;
  background: rgba(255,255,255,0.25);
  margin: var(--space-4) auto;
}

.value-prop-text {
  font-size: 0.9rem;
  opacity: 0.7;
  line-height: 1.5;
  max-width: 260px;
  margin: 0 auto;
}

.value-props-cta {
  text-align: center;
}

/* ============================================
   Tier Cards (Homepage Preview)
   ============================================ */
.tiers {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-8);
  max-width: 820px;
  margin: 0 auto;
}

.tiers--four {
  grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr));
  max-width: 75rem;
  gap: var(--space-5);
}

.tier-card {
  position: relative;
  background: var(--color-white);
  border: 1.5px solid var(--color-neutral-200);
  border-radius: var(--radius-md);
  padding: var(--space-8);
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
}

.tier-card:hover {
  border-color: var(--color-primary-400);
  box-shadow: var(--shadow-md);
}

.tier-card--featured {
  border-color: var(--color-primary-600);
  box-shadow: 0 0 0 1px var(--color-primary-600);
  transform: scale(1.03);
  border-top: 3px solid var(--color-primary-600);
}

.tier-card--featured:hover {
  border-color: var(--color-primary-600);
  box-shadow: 0 0 0 1px var(--color-primary-600), var(--shadow-lg);
}

.tier-card--featured .tier-card-amount {
  color: var(--color-primary-600);
  font-size: 2.25rem;
}

.tier-card-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
}

.tier-card-header {
  margin-bottom: var(--space-8);
}

.tier-card-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-neutral-950);
}

.tier-card-desc {
  font-size: 0.85rem;
  color: var(--color-neutral-500);
  margin-top: var(--space-1);
  min-height: 2.4em;
}

.tier-card-plus {
  color: var(--color-accent-600);
  font-weight: 700;
}

.tier-card-price {
  font-size: 0.95rem;
  color: var(--color-neutral-500);
  margin-top: var(--space-4);
}

.tier-card-amount {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-neutral-950);
  font-variant-numeric: tabular-nums;
}

.tier-card-price-note {
  font-size: 0.8rem;
  color: var(--color-neutral-400);
  margin-top: var(--space-1);
  min-height: 1.2em;
}

.tier-card-features {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-10);
  flex: 1;
}

.tier-card-feature {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: 0.85rem;
  color: var(--color-neutral-700);
}

.tier-card-check {
  color: var(--color-primary-600);
  flex-shrink: 0;
}

.tier-card-check--gold {
  color: var(--color-accent-600);
}

.tier-card-x {
  color: var(--color-neutral-300);
  flex-shrink: 0;
}

.tier-card-feature--highlight {
  font-weight: 600;
  color: var(--color-neutral-900);
}

.tier-card-feature--disabled {
  color: var(--color-neutral-400);
}

.tier-card--featured .tier-card-feature--highlight .tier-card-check {
  color: var(--color-accent-600);
}

/* ============================================
   Region Section
   ============================================ */
.region {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-10);
  align-items: center;
}

.region-content {
  flex: 1 1 22rem;
  min-width: 0;
}

.region-image {
  flex: 1 1 18rem;
}

.region-text {
  font-size: 1.05rem;
  color: var(--color-neutral-600);
  line-height: 1.7;
  margin-top: var(--space-5);
  margin-bottom: var(--space-8);
}

.region-stats {
  display: flex;
  gap: var(--space-10);
}

.region-stat-number {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-primary-600);
  line-height: 1;
}

.region-stat-label {
  font-size: 0.8rem;
  color: var(--color-neutral-500);
  margin-top: var(--space-1);
}

.region-image {
  border-radius: var(--radius-md);
  overflow: hidden;
}

.region-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  aspect-ratio: 4 / 3;
}

/* ============================================
   Advertiser Teaser
   ============================================ */
.advertiser-teaser {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-8);
  align-items: center;
  background: var(--color-neutral-50);
  border-radius: var(--radius-md);
  padding: var(--space-12);
}

.advertiser-teaser-text {
  font-size: 1rem;
  color: var(--color-neutral-600);
  line-height: 1.6;
  margin-top: var(--space-3);
  margin-bottom: var(--space-6);
  max-width: 440px;
}

.advertiser-teaser-stats {
  display: flex;
  gap: var(--space-5);
}

.stat-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  text-align: center;
  min-width: 120px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-neutral-100);
}

.stat-card-number {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary-600);
  line-height: 1;
}

.stat-card-label {
  display: block;
  font-size: 0.75rem;
  color: var(--color-neutral-500);
  margin-top: var(--space-2);
}

/* ============================================
   Social Proof
   ============================================ */
.section--proof {
  background: var(--color-neutral-50);
  padding: var(--space-24) 0;
}

.proof-header {
  text-align: center;
  margin-bottom: var(--space-16);
}

.proof-stat {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--color-neutral-950);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.proof-sub {
  font-size: 0.9rem;
  color: var(--color-neutral-500);
  margin-top: var(--space-3);
}

.proof-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: var(--space-5);
}

@media (max-width: 48rem) {
  .proof-grid {
    grid-template-columns: 1fr;
  }
  .proof-card:first-child {
    grid-row: auto;
  }
}

.proof-card {
  position: relative;
  background: var(--color-white);
  border: 1px solid var(--color-neutral-200);
  border-radius: var(--radius-md);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color 0.2s ease;
}

.proof-card:hover {
  border-color: var(--color-primary-300);
}

/* First quote: spans 2 rows, larger text */
.proof-card:first-child {
  grid-row: 1 / 3;
  padding: var(--space-10);
}

.proof-card:first-child .proof-quote {
  font-size: 1.35rem;
  line-height: 1.55;
}

.proof-quote {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 400;
  font-style: italic;
  color: var(--color-neutral-700);
  line-height: 1.6;
  margin-bottom: var(--space-6);
}

.proof-author {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.proof-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-neutral-950);
}

.proof-location {
  font-size: 0.8rem;
  color: var(--color-neutral-500);
}

.quote-mark {
  color: var(--color-primary-100);
}

/* ============================================
   Sticky CTA
   ============================================ */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.2, 0, 0, 1);
}

.sticky-cta.visible {
  transform: translateY(0);
}

.sticky-cta-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--space-3) var(--space-8);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--color-white);
  border-top: 1px solid var(--color-neutral-200);
  box-shadow: 0 -4px 16px rgba(0,0,0,0.06);
}

.sticky-cta-text {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-neutral-700);
}

@media (max-width: 30rem) {
  .sticky-cta-inner {
    flex-direction: column;
    text-align: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
  }
}

/* Old advertiser (removed from LP, kept for mediadaten reference) */
.advertiser-teaser-text {
  font-size: 1.1rem;
  color: var(--color-neutral-600);
  line-height: 1.6;
  margin-top: var(--space-4);
  margin-bottom: var(--space-8);
  max-width: 520px;
}

.advertiser-teaser-stats {
  display: flex;
  gap: var(--space-6);
}

.stat-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  text-align: center;
  min-width: 140px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-neutral-100);
}

.stat-card-number {
  display: block;
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--color-primary-600);
  line-height: 1;
}

.stat-card-label {
  display: block;
  font-size: 0.8rem;
  color: var(--color-neutral-500);
  margin-top: var(--space-2);
}

/* ============================================
   Footer
   ============================================ */
.footer {
  position: relative;
  background: url('../img/hero-bg.jpg') center/cover no-repeat;
  color: var(--color-neutral-700);
  padding: var(--space-16) 0 0;
}

.footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10, 30, 20, 0.4) 0%, rgba(10, 30, 20, 0.75) 100%);
}

.footer > .container {
  position: relative;
  z-index: 1;
  max-width: none;
  padding: 0 clamp(1rem, 3vw, 2.5rem);
}

.footer-headline {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--color-white);
  text-align: center;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
}

.footer-grid {
  display: flex;
  gap: var(--space-20);
  background: rgba(15, 20, 25, 0.85);
  backdrop-filter: blur(16px);
  border-radius: var(--radius-md);
  padding: var(--space-12) clamp(1.5rem, 4vw, 4rem) var(--space-10);
  border: 1px solid rgba(255,255,255,0.08);
  margin-top: 0;
}

.footer-col--brand {
  flex: 1;
  min-width: 0;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-white);
  letter-spacing: 0.06em;
  display: block;
  margin-bottom: var(--space-4);
}

.footer-logo-img {
  height: 36px;
  width: auto;
  margin-bottom: var(--space-4);
  display: block;
}

.footer-tagline {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  margin-bottom: var(--space-6);
  line-height: 1.5;
}

.footer-address {
  font-size: 0.8rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.4);
}

.footer-address a {
  color: rgba(255,255,255,0.5);
  transition: color var(--transition-fast);
}

.footer-address a:hover {
  color: var(--color-primary-400);
}

.footer-col-title {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: var(--space-5);
}

.footer-link {
  display: block;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.55);
  padding: 4px 0;
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--color-white);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-6) 0;
  margin-top: var(--space-4);
  position: relative;
  z-index: 1;
}

.footer-copyright {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
}

.footer-legal {
  display: flex;
  gap: var(--space-6);
}

.footer-legal-link {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  transition: color var(--transition-fast);
}

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

/* ============================================
   Responsive
   ============================================ */
/* ============================================
   Responsive — minimal overrides for fluid layouts
   ============================================ */

/* Section spacing scales with viewport */
.section {
  padding: clamp(3rem, 6vw, 6rem) 0;
}

/* === 52rem breakpoint: main layout shift === */
@media (max-width: 52rem) {
  /* Hero: reduce height on mobile */
  .hero {
    min-height: 70vh;
  }

  /* Current issue: hide vertical separator when stacked */
  .current-issue::before {
    display: none;
  }

  /* Current issue cover: center and constrain when stacked */
  .current-issue-cover {
    flex: 0 0 auto;
    width: min(70%, 18rem);
    margin: 0 auto;
  }

  /* Tier cards: remove scale on featured to prevent overflow */
  .tier-card--featured {
    transform: none;
  }

  .tier-card--featured:hover {
    transform: none;
  }

  /* Region section: stack text above image */
  .region {
    flex-direction: column;
  }

  .region-content,
  .region-image {
    flex: 1 1 100%;
  }

  /* Advertiser teaser: stack vertically */
  .advertiser-teaser {
    flex-direction: column;
    padding: var(--space-8);
  }

  .advertiser-teaser-stats {
    flex-wrap: wrap;
    gap: var(--space-3);
  }

  .stat-card {
    min-width: 100px;
    flex: 1 1 100px;
  }

  /* Testimonials: already handled at 48rem */

  /* Footer: wrap at tablet size too */
  .footer-grid {
    flex-wrap: wrap;
    gap: var(--space-8);
    padding: var(--space-8) var(--space-6);
  }

  .footer-col--brand {
    flex: 1 1 100%;
    margin-bottom: var(--space-4);
  }

  .footer-col {
    flex: 1 1 8rem;
    min-width: 0;
  }

  .footer-headline {
    font-size: clamp(2rem, 5vw, 3.5rem);
    height: auto;
    padding: var(--space-10) 0;
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-4);
    text-align: center;
  }

  /* Value prop separators hide when stacked */
  .value-prop-separator {
    display: none;
  }
}

/* Small screens: buttons go full width */
@media (max-width: 30rem) {
  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
    text-align: center;
  }

  .current-issue-actions {
    flex-direction: column;
  }

  .current-issue-actions .btn {
    width: 100%;
  }

  /* Region stats stack */
  .region-stats {
    flex-direction: column;
    gap: var(--space-4);
  }
}
