/* =============================================================================
   PAXPOST24 - EDITORIAL PREMIUM v2.0 - GLOBAL UNIFICATION OVERRIDE
   Diese Datei vereinheitlicht ALLE Pages auf identischen Look.
   Wird als LETZTES CSS geladen â†’ hÃ¶chste PrioritÃ¤t.
   ============================================================================= */

:root {
  --pp-bg:        #0F1419;
  --pp-bg2:       #1A2332;
  --pp-bg3:       #243447;
  --pp-ink:       #F0F4F8;
  --pp-ink-dim:   rgba(240,244,248,0.65);
  --pp-line:      rgba(240,244,248,0.08);
  --pp-line-2:    rgba(240,244,248,0.16);
  --pp-primary:   #2DD4BF;
  --pp-primary-2: #5EEAD4;
  --pp-secondary: #FB923C;
  --pp-crimson:   #EF4444;
  --pp-radius-sm: 12px;
  --pp-radius:    20px;
  --pp-radius-lg: 28px;
  --pp-radius-pill: 100px;
  --pp-shadow:    0 8px 32px rgba(0,0,0,0.25);
  --pp-shadow-lg: 0 24px 64px rgba(0,0,0,0.45);
  --pp-blur:      blur(14px);
  --pp-ease:      cubic-bezier(0.4, 0, 0.2, 1);
}

/* =============================================
   1. FOUNDATION
   ============================================= */
body.pp-theme {
  background: radial-gradient(circle at 0% 0%, rgba(45,212,191,0.06) 0%, transparent 40%),
              radial-gradient(circle at 100% 100%, rgba(251,146,60,0.04) 0%, transparent 40%),
              var(--pp-bg) !important;
  color: var(--pp-ink) !important;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body.pp-theme * { box-sizing: border-box; }

/* =============================================
   2. TYPOGRAPHY (Playfair + IBM Plex Mono)
   ============================================= */
body.pp-theme h1,
body.pp-theme h2,
body.pp-theme h3,
body.pp-theme h4,
body.pp-theme h5,
body.pp-theme .headline,
body.pp-theme .title {
  font-family: 'Playfair Display', Georgia, serif !important;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--pp-ink);
  margin: 0 0 16px 0;
}

body.pp-theme h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
body.pp-theme h2 { font-size: clamp(1.5rem, 3.5vw, 2.5rem); }
body.pp-theme h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
body.pp-theme h4 { font-size: 1.25rem; }

body.pp-theme h1 em,
body.pp-theme h2 em,
body.pp-theme h3 em,
body.pp-theme .accent,
body.pp-theme .text-accent {
  color: var(--pp-primary);
  font-style: italic;
  font-weight: 700;
}

body.pp-theme p { margin: 0 0 16px 0; color: var(--pp-ink-dim); }
body.pp-theme strong { color: var(--pp-ink); font-weight: 600; }

body.pp-theme .label,
body.pp-theme .eyebrow,
body.pp-theme .kicker,
body.pp-theme .tag-mono {
  font-family: 'IBM Plex Mono', monospace !important;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--pp-primary);
}

/* =============================================
   3. LINKS
   ============================================= */
body.pp-theme a:not(.btn):not(.button):not(.pp-nav-link):not([class*="nav-"]) {
  color: var(--pp-primary);
  text-decoration: none;
  transition: opacity 0.2s var(--pp-ease);
}
body.pp-theme a:not(.btn):not(.button):hover { opacity: 0.75; }

/* =============================================
   4. BUTTONS â€” Pill-Editorial Ã¼berall
   ============================================= */
body.pp-theme button,
body.pp-theme .btn,
body.pp-theme .button,
body.pp-theme input[type="button"],
body.pp-theme input[type="submit"],
body.pp-theme a.btn,
body.pp-theme a.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--pp-radius-pill);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s var(--pp-ease);
  text-decoration: none;
  line-height: 1;
  background: var(--pp-bg3);
  color: var(--pp-ink);
  white-space: nowrap;
}

body.pp-theme button:hover,
body.pp-theme .btn:hover,
body.pp-theme .button:hover {
  transform: translateY(-1px);
  box-shadow: var(--pp-shadow);
}

/* Primary */
body.pp-theme button.primary,
body.pp-theme button.btn-primary,
body.pp-theme .btn.primary,
body.pp-theme .btn-primary,
body.pp-theme button[type="submit"]:not(.ghost):not(.secondary):not(.danger):not(.outline) {
  background: var(--pp-primary) !important;
  color: var(--pp-bg) !important;
  border-color: var(--pp-primary);
  font-weight: 700;
}
body.pp-theme button.primary:hover,
body.pp-theme .btn.primary:hover,
body.pp-theme button[type="submit"]:hover {
  background: var(--pp-primary-2) !important;
  box-shadow: 0 8px 24px rgba(45,212,191,0.35);
}

/* Ghost / Secondary / Outline */
body.pp-theme .btn.ghost,
body.pp-theme .btn.secondary,
body.pp-theme .btn.outline,
body.pp-theme button.ghost,
body.pp-theme button.secondary,
body.pp-theme button.outline {
  background: transparent !important;
  color: var(--pp-ink) !important;
  border-color: var(--pp-line-2);
}
body.pp-theme .btn.ghost:hover,
body.pp-theme button.ghost:hover {
  border-color: var(--pp-primary);
  color: var(--pp-primary) !important;
}

/* Danger */
body.pp-theme .btn.danger,
body.pp-theme button.danger,
body.pp-theme button[class*="delete"],
body.pp-theme button[class*="remove"] {
  background: var(--pp-crimson) !important;
  color: white !important;
  border-color: var(--pp-crimson);
}

body.pp-theme button:disabled,
body.pp-theme .btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none !important;
}

/* =============================================
   5. INPUTS â€” vereinheitlicht
   ============================================= */
body.pp-theme input:not([type="button"]):not([type="submit"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]):not([type="color"]),
body.pp-theme textarea,
body.pp-theme select,
body.pp-theme .input {
  width: 100%;
  background: rgba(36, 52, 71, 0.55) !important;
  border: 1px solid var(--pp-line) !important;
  border-radius: var(--pp-radius-sm) !important;
  padding: 14px 18px !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 15px;
  color: var(--pp-ink) !important;
  transition: all 0.2s var(--pp-ease);
  box-sizing: border-box;
}

body.pp-theme input:focus,
body.pp-theme textarea:focus,
body.pp-theme select:focus {
  outline: none !important;
  border-color: var(--pp-primary) !important;
  background: rgba(36,52,71,0.85) !important;
  box-shadow: 0 0 0 3px rgba(45,212,191,0.18) !important;
}

body.pp-theme input::placeholder,
body.pp-theme textarea::placeholder { color: rgba(240,244,248,0.35); }

body.pp-theme label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--pp-primary);
  display: block;
  margin-bottom: 8px;
}

body.pp-theme select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%232DD4BF' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  padding-right: 44px !important;
}

/* Checkbox / Radio Akzent */
body.pp-theme input[type="checkbox"],
body.pp-theme input[type="radio"] {
  accent-color: var(--pp-primary);
  width: 18px;
  height: 18px;
  cursor: pointer;
}

/* =============================================
   6. CARDS â€” Glassmorphism Editorial
   ============================================= */
body.pp-theme .card,
body.pp-theme .panel,
body.pp-theme .box,
body.pp-theme .pg-card,
body.pp-theme .tp-card,
body.pp-theme .ad-card,
body.pp-theme .order-card,
body.pp-theme .item-card,
body.pp-theme .stat-card,
body.pp-theme .info-card,
body.pp-theme [class*="-card"]:not([class*="card-header"]):not([class*="card-body"]):not([class*="card-footer"]) {
  background: linear-gradient(135deg, rgba(36,52,71,0.6) 0%, rgba(26,35,50,0.4) 100%) !important;
  backdrop-filter: var(--pp-blur);
  -webkit-backdrop-filter: var(--pp-blur);
  border: 1px solid var(--pp-line) !important;
  border-radius: var(--pp-radius) !important;
  padding: 28px;
  box-shadow: var(--pp-shadow);
  transition: all 0.3s var(--pp-ease);
}

body.pp-theme .card:hover,
body.pp-theme .pg-card:hover,
body.pp-theme .tp-card:hover {
  border-color: rgba(45,212,191,0.35) !important;
  transform: translateY(-2px);
  box-shadow: var(--pp-shadow-lg);
}

/* =============================================
   7. TABLES
   ============================================= */
body.pp-theme table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(36,52,71,0.4);
  border-radius: var(--pp-radius-sm);
  overflow: hidden;
  margin: 16px 0;
}

body.pp-theme th {
  background: rgba(15,20,25,0.65);
  color: var(--pp-primary);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid rgba(45,212,191,0.2);
}

body.pp-theme td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--pp-line);
  color: var(--pp-ink-dim);
}

body.pp-theme tr:last-child td { border-bottom: none; }
body.pp-theme tr:hover td { background: rgba(45,212,191,0.04); color: var(--pp-ink); }

/* =============================================
   8. MODALS / DIALOGS
   ============================================= */
body.pp-theme .modal,
body.pp-theme .modal-content,
body.pp-theme .dialog,
body.pp-theme .pp-modal,
body.pp-theme .modal-bg > div {
  background: var(--pp-bg2) !important;
  border: 1px solid rgba(45,212,191,0.2) !important;
  border-radius: var(--pp-radius-lg) !important;
  box-shadow: var(--pp-shadow-lg) !important;
  color: var(--pp-ink);
}

body.pp-theme .modal-bg,
body.pp-theme .overlay {
  background: rgba(15,20,25,0.85) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* =============================================
   9. BADGES / CHIPS / TAGS
   ============================================= */
body.pp-theme .badge,
body.pp-theme .chip,
body.pp-theme .tag,
body.pp-theme .pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: var(--pp-radius-pill);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: rgba(45,212,191,0.12);
  color: var(--pp-primary);
  border: 1px solid rgba(45,212,191,0.25);
}

body.pp-theme .badge.success,
body.pp-theme .chip.success { background: rgba(45,212,191,0.15); color: var(--pp-primary); }
body.pp-theme .badge.warning,
body.pp-theme .chip.warning { background: rgba(251,146,60,0.15); color: var(--pp-secondary); border-color: rgba(251,146,60,0.3); }
body.pp-theme .badge.danger,
body.pp-theme .chip.danger  { background: rgba(239,68,68,0.15); color: var(--pp-crimson); border-color: rgba(239,68,68,0.3); }

/* =============================================
   10. GRAIN OVERLAY
   ============================================= */
body.pp-theme .pp-grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.4;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.18'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

/* =============================================
   11. SCROLLBAR
   ============================================= */
body.pp-theme ::-webkit-scrollbar { width: 10px; height: 10px; }
body.pp-theme ::-webkit-scrollbar-track { background: var(--pp-bg); }
body.pp-theme ::-webkit-scrollbar-thumb { background: var(--pp-bg3); border-radius: 10px; }
body.pp-theme ::-webkit-scrollbar-thumb:hover { background: var(--pp-primary); }

/* =============================================
   12. LISTS
   ============================================= */
body.pp-theme ul, body.pp-theme ol { padding-left: 22px; color: var(--pp-ink-dim); }
body.pp-theme li { margin: 6px 0; }
body.pp-theme ul li::marker { color: var(--pp-primary); }

/* =============================================
   13. HORIZONTAL RULE
   ============================================= */
body.pp-theme hr {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--pp-line-2), transparent);
  margin: 32px 0;
}

/* =============================================
   14. UTILITY KLASSEN (fÃ¼r spÃ¤ter)
   ============================================= */
body.pp-theme .pp-section { padding: 64px 0; }
body.pp-theme .pp-container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
body.pp-theme .pp-text-dim { color: var(--pp-ink-dim); }
body.pp-theme .pp-text-primary { color: var(--pp-primary); }
body.pp-theme .pp-text-mono { font-family: 'IBM Plex Mono', monospace; letter-spacing: 0.15em; }

/* =============================================
   15. TRANSITIONS â€” global smooth
   ============================================= */
body.pp-theme * { transition-timing-function: var(--pp-ease); }

/* =============================================
   16. SELECTION
   ============================================= */
body.pp-theme ::selection { background: var(--pp-primary); color: var(--pp-bg); }

/* =============================================
   17. RESPONSIVE TWEAKS
   ============================================= */
@media (max-width: 768px) {
  body.pp-theme .card,
  body.pp-theme .pg-card,
  body.pp-theme .tp-card { padding: 20px; border-radius: 16px; }
  body.pp-theme button,
  body.pp-theme .btn { padding: 10px 22px; font-size: 13px; }
  body.pp-theme input,
  body.pp-theme textarea,
  body.pp-theme select { padding: 12px 14px; font-size: 14px; }
}