/* pubgists.com — Material Design 3 palette, matching the editorial dashboard */

:root {
  --md-primary: #1a5fb4;
  --md-on-primary: #ffffff;
  --md-primary-container: #d4e3ff;
  --md-on-primary-container: #001c3b;
  --md-surface: #fffbfe;
  --md-surface-variant: #e1e2ec;
  --md-on-surface: #1c1b1f;
  --md-on-surface-variant: #44474f;
  --md-outline: #74777f;
  --md-outline-variant: #c4c6d0;
  --md-elevation-1: 0 1px 2px rgba(0,0,0,0.3), 0 1px 3px 1px rgba(0,0,0,0.15);
  --md-elevation-2: 0 1px 2px rgba(0,0,0,0.3), 0 2px 6px 2px rgba(0,0,0,0.15);
  --md-elevation-3: 0 4px 8px 3px rgba(0,0,0,0.15), 0 1px 3px rgba(0,0,0,0.3);
  --md-shape-xl: 28px;
  /* Semantic aliases used throughout the page */
  --blue: #1a5fb4;
  --blue-light: #d4e3ff;
  --blue-dark: #1550a0;
  --green: #2e7d32;
  --green-light: #c8e6c9;
  --green-dark: #1b5e20;
  --bg: #fffbfe;
  --bg-alt: #e1e2ec;
  --text: #1c1b1f;
  --text-muted: #44474f;
  --text-light: #74777f;
  --white: #ffffff;
  --radius: 16px;
  --radius-sm: 8px;
  --radius-pill: 28px;
  --shadow-sm: var(--md-elevation-1);
  --shadow: var(--md-elevation-2);
  --shadow-lg: var(--md-elevation-3);
  --shadow-xl: 0 4px 16px rgba(0,0,0,0.2), 0 8px 24px rgba(0,0,0,0.15);
  --shadow-bubble: var(--md-elevation-3);
  --font: Arial, Helvetica, sans-serif;
  --max-width: 1120px;
}

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

html {
  background: var(--bg);
}

body {
  font-family: var(--font);
  background: transparent;
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  position: relative;
}


.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.hidden { display: none !important; }

/* Header */
.header {
  position: sticky;
  top: 0;
  background: var(--md-primary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: var(--shadow-lg);
  z-index: 100;
  padding: 16px 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-link { text-decoration: none; }
.logo { height: 65px; display: block; filter: brightness(1.1); }

.sh-header img { height: 65px; filter: brightness(1.1); }

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.15s;
}
.nav-link:hover { color: #ffffff; }

.lang-switch {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s;
}
.lang-switch:hover { background: rgba(255, 255, 255, 0.3); }

.lang-option {
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.15s;
}
.lang-option.active { color: #ffffff; }
.lang-divider { color: rgba(255, 255, 255, 0.4); font-weight: 300; }

/* Hero */
.hero {
  padding: 80px 0 60px;
  overflow: hidden;
  background-image:
    linear-gradient(to right, rgba(253,251,247,1) 18%, rgba(253,251,247,0.50) 30%, rgba(253,251,247,0.30) 60%, rgba(253,251,247,0.25) 100%),
    url('/assets/distributioncenter.jpg');
  background-size: 75%;
  background-position: right 60%;
  background-repeat: no-repeat;
}

.hero-inner {
  max-width: 600px;
}

.hero-title {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1px;
  color: var(--md-primary);
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 32px;
  max-width: 480px;
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--radius-pill);
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s, box-shadow 0.2s;
  cursor: pointer;
  border: none;
  letter-spacing: 0.1px;
  box-shadow: var(--md-elevation-1);
}

.btn-primary {
  background: var(--md-primary);
  color: var(--md-on-primary);
  box-shadow: var(--md-elevation-1);
}
.btn-primary:hover {
  background: var(--blue-dark);
  box-shadow: var(--md-elevation-2);
}
.btn-primary:active {
  background: var(--blue-dark);
  box-shadow: var(--md-elevation-1);
}

.btn-outline {
  background: var(--md-surface);
  color: var(--md-primary);
  border: 1px solid var(--md-primary);
  box-shadow: var(--md-elevation-1);
}
.btn-outline:hover {
  background: var(--md-primary-container);
  color: var(--md-on-primary-container);
  border-color: var(--md-primary);
  box-shadow: var(--md-elevation-2);
}

.btn-large {
  padding: 18px 40px;
  font-size: 18px;
}

.btn-green {
  background: var(--md-primary);
  color: var(--md-on-primary);
  box-shadow: var(--md-elevation-1);
}
.btn-green:hover {
  background: var(--blue-dark);
  box-shadow: var(--md-elevation-2);
}

.interest-note {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.7;
}
.interest-link {
  color: var(--blue);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid var(--blue-light);
}
.interest-link:hover { border-bottom-color: var(--blue); }

/* Phone mockup */
.hero-mockup-wrapper {
  filter: drop-shadow(0 24px 48px rgba(0,0,0,0.18)) drop-shadow(0 8px 16px rgba(0,0,0,0.12));
}
.hero-mockup {
  display: flex;
  justify-content: flex-start;
  padding-left: 30px;
}
.phone-photo {
  width: 350px;
  filter: drop-shadow(0 24px 48px rgba(0,0,0,0.22)) drop-shadow(0 8px 16px rgba(0,0,0,0.14));
}

.phone-frame {
  width: 300px;
  background: var(--text);
  border-radius: 36px;
  padding: 12px;
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(255,255,255,0.1) inset;
  transform: rotate(2deg);
}

.phone-screen {
  background: var(--white);
  border-radius: 26px;
  overflow: hidden;
  padding: 16px;
}

.mock-header {
  text-align: center;
  padding-bottom: 12px;
  border-bottom: 1px solid #eee;
  margin-bottom: 12px;
}

.mock-logo-bar {
  font-size: 18px;
  font-weight: 800;
  color: var(--md-primary);
}

.mock-date {
  font-size: 11px;
  color: var(--text-light);
  margin-top: 2px;
}

.mock-item {
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
}
.mock-item:last-child { border-bottom: none; }

.mock-badge {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 4px;
}
.badge-green { background: var(--green-light); color: var(--green-dark); }
.badge-blue { background: var(--md-primary-container); color: var(--md-on-primary-container); }

.mock-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 3px;
  line-height: 1.3;
}

.mock-text {
  font-size: 10px;
  color: var(--text-muted);
  line-height: 1.4;
}

.mock-source {
  font-size: 9px;
  color: var(--text-light);
  margin-top: 4px;
  font-style: italic;
}

/* What is section */
.what-is {
  padding: 80px 0;
  background: rgba(245, 245, 245, 0.65);
}

.section-title {
  font-size: 36px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 16px;
  color: var(--text);
}

.section-subtitle {
  text-align: center;
  color: var(--text);
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 48px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.what-is-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.what-is-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}
.what-is-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-bubble);
}

.what-is-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--md-primary);
  color: var(--md-on-primary);
  font-size: 18px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  box-shadow: var(--md-elevation-2);
}

.what-is-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.what-is-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Tiers */
.tiers {
  padding: 80px 0;
}

.tier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.tier-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 28px;
  box-shadow: var(--shadow);
  text-align: center;
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
}
.tier-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-bubble);
}

.tier-featured {
  border: 2px solid var(--blue);
  box-shadow: var(--shadow-bubble);
}

.tier-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--md-primary);
  color: var(--md-on-primary);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 18px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: var(--md-elevation-1);
}

.tier-name {
  font-size: 32px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 8px;
}

.tier-price {
  font-size: 36px;
  font-weight: 800;
  color: var(--md-primary);
  margin-bottom: 4px;
}

.tier-period {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-light);
}

.tier-note {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
  font-style: italic;
  margin-bottom: 8px;
  line-height: 1.4;
}

.tier-card-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  text-align: left;
  margin-bottom: 20px;
}

.tier-features {
  list-style: none;
  text-align: left;
  margin-bottom: 28px;
}

.tier-features li {
  font-size: 14px;
  color: var(--text-muted);
  padding: 6px 0;
  padding-left: 24px;
  position: relative;
}
.tier-features li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}

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

/* Topics */
.topics {
  padding: 60px 0;
  background: rgba(245, 245, 245, 0.65);
}

.topic-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  max-width: 700px;
  margin: 32px auto 0;
}

.topic-pill {
  background: var(--md-surface);
  border: 1px solid var(--md-outline-variant);
  border-radius: var(--radius-pill);
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--md-primary);
  box-shadow: var(--md-elevation-1);
  transition: background 0.15s, box-shadow 0.2s;
  cursor: pointer;
}
.topic-pill:hover {
  background: var(--md-primary-container);
  color: var(--md-on-primary-container);
  box-shadow: var(--md-elevation-2);
}
.topic-pill.active {
  background: var(--md-primary);
  color: var(--md-on-primary);
  border-color: transparent;
  box-shadow: var(--md-elevation-2);
}

/* Topic popup */
.topic-popup-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(26, 26, 46, 0.4);
  z-index: 200;
  backdrop-filter: blur(2px);
}
.topic-popup-overlay.visible { display: block; }
.topic-popup {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(560px, 92vw);
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xl);
  padding: 32px;
  z-index: 201;
}
.topic-popup.visible { display: block; }
.topic-popup-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  font-size: 22px;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background 0.15s;
}
.topic-popup-close:hover { background: #f0f0f0; }
.topic-popup-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--blue-dark);
  margin-bottom: 10px;
  padding-right: 32px;
}
.topic-popup-desc {
  font-size: 14px;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 20px;
}
.topic-popup-sources { margin-bottom: 16px; }
.topic-popup-source-head {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-muted);
  margin: 14px 0 6px;
}
.topic-popup-sources ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.topic-popup-sources li {
  font-size: 13px;
  color: var(--text);
  padding-left: 14px;
  position: relative;
  line-height: 1.5;
}
.topic-popup-sources li::before {
  content: "·";
  position: absolute;
  left: 4px;
  color: var(--blue);
  font-weight: 700;
}
.topic-popup-note {
  font-size: 12px;
  color: var(--text-muted);
  font-style: italic;
  border-top: 1px solid #eee;
  padding-top: 12px;
  margin-top: 4px;
}
.pill-alt {
  border-color: var(--md-outline-variant);
  color: var(--md-primary);
}
.pill-alt:hover {
  background: var(--md-primary-container);
  color: var(--md-on-primary-container);
}

/* CTA bottom */
.cta-bottom {
  padding: 80px 0;
}

.cta-box {
  background: var(--md-primary);
  border-radius: 24px;
  padding: 60px 40px;
  text-align: center;
  color: var(--md-on-primary);
  box-shadow: var(--md-elevation-3);
}

.cta-box h2 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 12px;
}

.cta-box p {
  font-size: 16px;
  opacity: 0.9;
  margin-bottom: 28px;
}

.cta-box .btn-primary {
  background: var(--white);
  color: var(--blue-dark);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}
.cta-box .btn-primary:hover {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
}

.cta-box .interest-note { color: rgba(255,255,255,0.9); }
.cta-box .interest-link {
  color: var(--white);
  border-bottom-color: rgba(255,255,255,0.5);
}

/* Footer */
.footer {
  padding: 24px 0;
  border-top: 1px solid rgba(26, 26, 46, 0.06);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-light);
}

.footer-right {
  display: flex;
  gap: 20px;
}

.footer-right a {
  color: var(--text-light);
  text-decoration: none;
}
.footer-right a:hover { color: var(--text); }

/* Responsive */
@media (max-width: 768px) {
  .hero { padding: 40px 0 40px; }

  .hero-inner {
    text-align: center;
    max-width: 100%;
  }

  .hero-title { font-size: 32px; }
  .hero-subtitle { font-size: 16px; max-width: 100%; }

  .phone-photo { width: 100%; max-width: 280px; display: block; margin: 0 auto; }
  .hero-mockup { justify-content: center; padding-left: 0; }

  .phone-frame {
    width: 240px;
    transform: rotate(0deg);
  }

  .what-is-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .tier-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

  .section-title { font-size: 28px; }

  .cta-box {
    padding: 40px 24px;
  }
  .cta-box h2 { font-size: 24px; }

  .footer-inner {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }

  .nav { gap: 8px; }
  .nav-link { font-size: 11px; }
  .nav a[href="impressum.html"] { display: none; }
  .lang-switch { padding: 5px 10px; font-size: 11px; gap: 4px; }

  .what-is-grid { grid-template-columns: 1fr; }

  .hero-title { font-size: 26px; letter-spacing: -0.5px; }
  .hero-subtitle { font-size: 15px; }
  .phone-photo { max-width: 220px; }

  .section-title { font-size: 22px; }
  .section-subtitle { font-size: 15px; }

  .what-is { padding: 60px 0; }
  .tiers { padding: 60px 0; }
  .cta-bottom { padding: 60px 0; }
  .topics { padding: 40px 0; }

  .tier-card { padding: 28px 20px; }

  .btn { padding: 14px 28px; font-size: 15px; }
  .btn-large { padding: 16px 32px; font-size: 16px; }
}

/* Legal pages */
.legal {
  padding: 60px 0;
  max-width: 720px;
  margin: 0 auto;
}

.legal h1 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 24px;
  color: var(--text);
}

.legal h2 {
  font-size: 20px;
  font-weight: 700;
  margin-top: 32px;
  margin-bottom: 12px;
  color: var(--text);
}

.legal p, .legal li {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 12px;
}

.legal ul { padding-left: 24px; }
.legal a { color: var(--blue); }

/* Popup scroll fix */
.topic-popup { max-height: 85vh; overflow-y: auto; -webkit-overflow-scrolling: touch; }
body.popup-open { overflow: hidden; }

/* Hamburger button */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 301;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: rgba(255,255,255,0.9);
  border-radius: 2px;
  transition: transform 0.22s ease, opacity 0.22s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav overlay */
.mnav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 299;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.mnav-overlay.open { opacity: 1; pointer-events: auto; }

/* Mobile nav drawer */
.mnav {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 280px;
  background: var(--md-primary);
  backdrop-filter: blur(16px);
  z-index: 300;
  display: flex;
  flex-direction: column;
  padding: 72px 32px 40px;
  gap: 4px;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.4,0,0.2,1);
  box-shadow: -4px 0 24px rgba(0,0,0,0.2);
}
.mnav.open { transform: translateX(0); }

.mnav-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255,255,255,0.15);
  border: none;
  color: white;
  font-size: 18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.mnav-close:hover { background: rgba(255,255,255,0.25); }

.mnav-link {
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  font-size: 20px;
  font-weight: 600;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  transition: color 0.15s;
}
.mnav-link:hover { color: white; }
.mnav-link:last-of-type { border-bottom: none; }

.mnav-lang {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.15);
}
.mnav-lang-opt {
  color: rgba(255,255,255,0.6);
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}
.mnav-lang-opt:hover, .mnav-lang-opt.active { color: white; background: rgba(255,255,255,0.15); }
.mnav-lang-divider { color: rgba(255,255,255,0.3); font-weight: 300; }

@media (max-width: 680px) {
  .hamburger { display: flex; }
  .nav { display: none; }
}
