/*
Theme Name: Wirtschaftsmagazin
Theme URI: https://wirtschaftmagazin.techleads.ai
Author: Techleads GmbH
Author URI: https://techleads.ai
Description: Custom WordPress Theme for Wirtschaftsmagazin.de Relaunch — NO Elementor
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.1
License: Private
Text Domain: wirtschaftmagazin
*/

/* ==========================================================================
   DESIGN TOKENS — _tokens.css
   Mirror these in Laravel for consistency (Allauddin)
   ========================================================================== */

:root {
  /* ── Color Palette ─────────────────────────────────────────────────── */
  --red:        #C41A1A;   /* kickers, lines, CTAs, accents, active nav */
  --black:      #0D0D0D;   /* headlines, primary text */
  --off:        #F7F5F0;   /* page background */
  --light:      #F5F5F3;   /* info boxes, KPI background */
  --border:     #D4D0C8;   /* all dividers */
  --green:      #1A6B2A;   /* verified status text */
  --green-bg:   #E8F4EC;   /* verified status background */
  --white:      #FFFFFF;
  --gray-500:   #6B6B6B;   /* secondary text */
  --gray-300:   #AAAAAA;   /* placeholder, muted */

  /* ── Typography Families ────────────────────────────────────────────── */
  --font-display: 'Playfair Display', Georgia, serif;   /* headlines, logo */
  --font-body:    'Source Serif 4', Georgia, serif;     /* body text */
  --font-ui:      'DM Sans', system-ui, sans-serif;     /* navigation, UI */

  /* ── Font Weights ───────────────────────────────────────────────────── */
  --fw-light:     300;
  --fw-regular:   400;
  --fw-medium:    500;
  --fw-bold:      700;
  --fw-black:     900;

  /* ── Type Scale ─────────────────────────────────────────────────────── */
  --text-xs:    0.75rem;    /* 12px */
  --text-sm:    0.875rem;   /* 14px */
  --text-base:  1rem;       /* 16px */
  --text-lg:    1.125rem;   /* 18px */
  --text-xl:    1.25rem;    /* 20px */
  --text-2xl:   1.5rem;     /* 24px */
  --text-3xl:   1.875rem;   /* 30px */
  --text-4xl:   2.25rem;    /* 36px */
  --text-5xl:   3rem;       /* 48px */
  --text-6xl:   3.75rem;    /* 60px */

  /* ── Spacing ────────────────────────────────────────────────────────── */
  --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 ─────────────────────────────────────────────────────────── */
  --max-width:        1280px;   /* content shell */
  --viewport-max:     1440px;   /* viewport max-width */
  --col-gap:          1.5rem;
  --section-padding:  var(--space-16) var(--space-6);

  /* ── Border Radius ──────────────────────────────────────────────────── */
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   12px;
  --radius-full: 9999px;

  /* ── Shadows ────────────────────────────────────────────────────────── */
  --shadow-sm:  0 1px 3px rgba(13, 13, 13, 0.08);
  --shadow-md:  0 4px 12px rgba(13, 13, 13, 0.10);
  --shadow-lg:  0 8px 24px rgba(13, 13, 13, 0.12);

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

  /* ── Z-index Stack ──────────────────────────────────────────────────── */
  --z-base:     1;
  --z-dropdown: 100;
  --z-sticky:   200;
  --z-overlay:  300;
  --z-modal:    400;
  --z-toast:    500;
}

/* ==========================================================================
   RESET & BASE
   ========================================================================== */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-weight: var(--fw-regular);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--black);
  background-color: var(--off);
  margin: 0 auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

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

a:hover {
  text-decoration: underline;
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  font-family: var(--font-ui);
  border: none;
  background: none;
}

input, textarea, select {
  font-family: var(--font-ui);
  font-size: var(--text-base);
}

/* ==========================================================================
   LAYOUT
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: var(--space-6);
  padding-right: var(--space-6);
}

.container--narrow {
  max-width: 800px;
}

.container--wide {
  max-width: var(--viewport-max);
  padding-left: var(--space-8);
  padding-right: var(--space-8);
}

.site-main {
  min-height: 60vh;
}

/* Grid System */
.grid {
  display: grid;
  gap: var(--col-gap);
}

.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--12 { grid-template-columns: repeat(12, 1fr); }

.grid--sidebar {
  grid-template-columns: 1fr 320px;
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  line-height: 1.2;
  color: var(--black);
}

h1 { font-size: var(--text-5xl); font-weight: var(--fw-black); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-3xl); color: var(--red); } /* H3 in red per spec */
h4 { font-size: var(--text-2xl); }
h5 { font-size: var(--text-xl); }
h6 { font-size: var(--text-lg); }

p {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.8;
  color: var(--black);
  margin-bottom: var(--space-4);
}

p:last-child {
  margin-bottom: 0;
}

.lead {
  font-size: var(--text-xl);
  font-weight: var(--fw-light);
  line-height: 1.6;
  color: var(--black);
}

.eyebrow {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: var(--fw-bold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
}

blockquote {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: var(--fw-bold);
  line-height: 1.4;
  color: var(--black);
  border-left: 4px solid var(--red);
  padding-left: var(--space-6);
  margin: var(--space-8) 0;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-ui);
  font-weight: var(--fw-medium);
  font-size: var(--text-sm);
  letter-spacing: 0.02em;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-sm);
  transition: background-color var(--transition-fast),
              color var(--transition-fast),
              border-color var(--transition-fast),
              box-shadow var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

/* Primary Button */
.btn--primary {
  background-color: var(--red);
  color: var(--white);
  border: 2px solid var(--red);
}

.btn--primary:hover {
  background-color: #a81515;
  border-color: #a81515;
  text-decoration: none;
  box-shadow: var(--shadow-md);
}

/* Secondary Button */
.btn--secondary {
  background-color: transparent;
  color: var(--red);
  border: 2px solid var(--red);
}

.btn--secondary:hover {
  background-color: var(--red);
  color: var(--white);
  text-decoration: none;
}

/* Ghost Button */
.btn--ghost {
  background-color: transparent;
  color: var(--black);
  border: 2px solid var(--border);
}

.btn--ghost:hover {
  border-color: var(--black);
  text-decoration: none;
}

/* Button Sizes */
.btn--sm  { padding: var(--space-2) var(--space-4); font-size: var(--text-xs); }
.btn--lg  { padding: var(--space-4) var(--space-8); font-size: var(--text-base); }

/* ==========================================================================
   CARDS
   ========================================================================== */

/* Article Card */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}

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

.card__image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.card__body {
  padding: var(--space-5);
}

.card__eyebrow {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--red);
  margin-bottom: var(--space-2);
}

.card__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--fw-bold);
  line-height: 1.3;
  color: var(--black);
  margin-bottom: var(--space-3);
}

.card__excerpt {
  font-size: var(--text-sm);
  color: var(--gray-500);
  line-height: 1.6;
  margin-bottom: var(--space-4);
}

.card__meta {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  color: var(--gray-300);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

/* Profile Card */
.profile-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
}

.profile-card__avatar {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-full);
  object-fit: cover;
  flex-shrink: 0;
}

.profile-card__name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: var(--fw-bold);
}

.profile-card__company {
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  color: var(--gray-500);
}

/* ==========================================================================
   BADGES
   ========================================================================== */

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: var(--fw-bold);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 3px var(--space-2);
  border-radius: var(--radius-sm);
}

.badge--verified {
  color: var(--green);
  background-color: var(--green-bg);
}

.badge--verified::before {
  content: "✓";
  font-size: 10px;
}

.badge--interview {
  color: var(--white);
  background-color: var(--red);
}

.badge--new {
  color: var(--black);
  background-color: var(--light);
}

/* ==========================================================================
   BREADCRUMBS
   ========================================================================== */

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  color: var(--gray-500);
  padding: var(--space-3) 0;
}

.breadcrumbs__separator {
  color: var(--border);
  font-size: var(--text-xs);
}

.breadcrumbs a {
  color: var(--gray-500);
  transition: color var(--transition-fast);
}

.breadcrumbs a:hover {
  color: var(--red);
  text-decoration: none;
}

.breadcrumbs__current {
  color: var(--black);
}

/* ==========================================================================
   SECTION LABELS
   ========================================================================== */

.section-label {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.section-label::before {
  content: "";
  display: block;
  width: 24px;
  height: 3px;
  background-color: var(--red);
  flex-shrink: 0;
}

.section-label__text {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: var(--fw-bold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--black);
}

/* ==========================================================================
   DIVIDERS
   ========================================================================== */

hr,
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: var(--space-8) 0;
}

.divider--red {
  border-top-color: var(--red);
  border-top-width: 2px;
}

/* ==========================================================================
   FORMS
   ========================================================================== */

.form-group {
  margin-bottom: var(--space-5);
}

.form-label {
  display: block;
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  color: var(--black);
  margin-bottom: var(--space-2);
}

.form-control {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-ui);
  font-size: var(--text-base);
  color: var(--black);
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  outline: none;
}

.form-control:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(196, 26, 26, 0.12);
}

.form-control::placeholder {
  color: var(--gray-300);
}

/* ==========================================================================
   UTILITIES
   ========================================================================== */

/* Text Colors */
.text-red   { color: var(--red); }
.text-black { color: var(--black); }
.text-gray  { color: var(--gray-500); }
.text-muted { color: var(--gray-300); }

/* Font Families */
.font-display { font-family: var(--font-display); }
.font-body    { font-family: var(--font-body); }
.font-ui      { font-family: var(--font-ui); }

/* Font Weights */
.fw-light   { font-weight: var(--fw-light); }
.fw-regular { font-weight: var(--fw-regular); }
.fw-medium  { font-weight: var(--fw-medium); }
.fw-bold    { font-weight: var(--fw-bold); }
.fw-black   { font-weight: var(--fw-black); }

/* Display */
.d-none  { display: none; }
.d-block { display: block; }
.d-flex  { display: flex; }
.d-grid  { display: grid; }

/* Flex helpers */
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-2 { gap: var(--space-2); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }

/* Spacing */
.mt-4  { margin-top: var(--space-4); }
.mt-8  { margin-top: var(--space-8); }
.mb-4  { margin-bottom: var(--space-4); }
.mb-8  { margin-bottom: var(--space-8); }
.py-8  { padding-top: var(--space-8); padding-bottom: var(--space-8); }
.py-16 { padding-top: var(--space-16); padding-bottom: var(--space-16); }

/* Background Colors */
.bg-white  { background-color: var(--white); }
.bg-off    { background-color: var(--off); }
.bg-light  { background-color: var(--light); }
.bg-red    { background-color: var(--red); }
.bg-black  { background-color: var(--black); }

/* Text alignment */
.text-left   { text-align: left; }
.text-center { text-align: center; }
.text-right  { text-align: right; }

/* Visibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 1280px) {
  :root {
    --max-width: 100%;
  }
}

@media (max-width: 1024px) {
  h1 { font-size: var(--text-4xl); }
  h2 { font-size: var(--text-3xl); }

  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--sidebar { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root {
    --space-6: 1rem;
  }

  h1 { font-size: var(--text-3xl); }
  h2 { font-size: var(--text-2xl); }
  h3 { font-size: var(--text-xl); }

  .grid--4,
  .grid--3,
  .grid--2 {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 480px) {
  h1 { font-size: var(--text-2xl); }
}

/* ==========================================================================
   PRINT
   ========================================================================== */

@media print {
  .site-header,
  .site-footer,
  .sidebar {
    display: none;
  }

  body {
    background: white;
    color: black;
    font-size: 12pt;
  }
}
