/*
Theme Name: WhiteTheme starter
Theme URI: https://mrwhite-agency.de
Author: Mr. White Webagentur
Author URI: https://mrwhite-agency.de
Description: Professionelles Theme für Mr. White Webagentur – Webentwicklung, WordPress, Printmedien, 3D-Druck & Domains
Version: 5.6.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: whitetheme
Tags: business, portfolio, light, one-page, responsive
*/

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

/* Global: Keine Silbentrennung – Wörter nie umbrechen */
*, *::before, *::after {
    -webkit-hyphens: none !important;
    hyphens: none !important;
}
body, h1, h2, h3, h4, h5, h6, p, li, span, a, td, th, label, blockquote, figcaption, button {
    word-break: normal;
    overflow-wrap: break-word;
    -webkit-hyphens: none;
    hyphens: none;
}

:root {
  /* ──────────────────────────────────────────────────────
     SEMANTIC TOKENS – Light Theme (Classic-Corporate)
     ────────────────────────────────────────────────────── */

  /* Surfaces */
  --color-bg:                #FFFFFF;   /* Page background */
  --color-surface:           #FFFFFF;   /* Cards on alt sections */
  --color-surface-alt:       #F5F7FA;   /* Alternating section background */
  --color-surface-muted:     #EEF1F4;   /* Tags, chips, code headers */
  --color-surface-elevated:  #FFFFFF;   /* Cards with shadow */
  --color-surface-inverse:   #0F172A;   /* Dark "island" surfaces (code blocks) */
  --color-footer-bg:         #F1F5F9;   /* Footer */

  /* Text hierarchy */
  --color-text-heading:      #0F172A;   /* Headlines */
  --color-text-body:         #334155;   /* Paragraphs */
  --color-text-muted:        #64748B;   /* Captions, labels */
  --color-text-subtle:       #94A3B8;   /* Placeholders, meta */
  --color-text-on-accent:    #FFFFFF;   /* Text on teal backgrounds */
  --color-text-on-inverse:   #E2E8F0;   /* Text on dark islands */

  /* Borders */
  --color-border:            #E2E8F0;   /* Standard */
  --color-border-strong:     #CBD5E1;   /* Hover, dividers */
  --color-border-subtle:     #EEF1F4;   /* Very light dividers */

  /* Accent (Teal – Brand) */
  --color-accent:            #1B3740;
  --color-accent-hover:      #264C57;
  --color-accent-dark:       #122830;
  --color-accent-soft:       rgba(27, 55, 64, 0.08);
  --color-accent-border:     rgba(27, 55, 64, 0.25);
  --color-accent-rgb:        6, 139, 139;

  /* Semantic states */
  --color-success:           #16A34A;
  --color-success-soft:      rgba(22, 163, 74, 0.08);
  --color-warning:           #D97706;
  --color-warning-soft:      rgba(217, 119, 6, 0.08);
  --color-danger:            #DC2626;
  --color-danger-soft:       rgba(220, 38, 38, 0.08);

  /* ──────────────────────────────────────────────────────
     LEGACY ALIASES – behalten wir für Backward-Compat,
     so dass main.css und Page-Templates nicht in einem Schritt
     komplett umgeschrieben werden müssen. Werte sind aber
     NEU und passen zur Light-Palette.
     ────────────────────────────────────────────────────── */
  --color-black:       var(--color-bg);              /* war page bg dunkel → jetzt weiß */
  --color-dark:        var(--color-surface-alt);     /* war section--dark → jetzt light alt */
  --color-dark-2:      var(--color-surface);         /* war card-bg dunkel → jetzt weiß */
  --color-dark-3:      var(--color-surface-muted);   /* war deeper card → jetzt muted */
  --color-gray-dark:   var(--color-border);          /* war border dunkel → jetzt light */
  --color-gray:        var(--color-text-subtle);     /* war mid-gray → jetzt subtle */
  --color-gray-mid:    var(--color-text-muted);      /* war muted text → jetzt muted */
  --color-gray-light:  var(--color-text-body);       /* war body text hell → jetzt body */
  --color-off-white:   var(--color-text-body);       /* war bright body → jetzt body */
  --color-white:       var(--color-text-heading);    /* war fast-weiß → jetzt headline-slate */
  --color-pure-white:  var(--color-text-heading);    /* war pures weiß → jetzt headline-slate.
                                                        Stellen mit echtem Weiß-Bedarf
                                                        (Text auf Akzent) verwenden
                                                        --color-text-on-accent oder #FFFFFF */

  /* Typography */
  --font-display: 'Bebas Neue', 'Impact', sans-serif;
  --font-heading: 'Montserrat', sans-serif;
  --font-body:    'DM Sans', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  /* Layout */
  --border-radius: 4px;
  --border-radius-lg: 8px;
  --container-width: 1280px;
  --section-padding: 100px 0;

  /* Transitions – GPU-beschleunigt für besseren CLS */
  --transition: color 0.3s ease, background-color 0.3s ease, opacity 0.3s ease, transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;

  /* Shadows – auf hellem Grund subtil und mehrstufig */
  --shadow-sm:     0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow:        0 2px 8px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-lg:     0 8px 24px rgba(15, 23, 42, 0.08), 0 2px 6px rgba(15, 23, 42, 0.04);
  --shadow-xl:     0 20px 40px rgba(15, 23, 42, 0.10), 0 4px 12px rgba(15, 23, 42, 0.06);
  --shadow-accent: 0 4px 16px rgba(27, 55, 64, 0.15);
  --shadow-card-hover: 0 8px 24px rgba(15, 23, 42, 0.08), 0 0 0 1px var(--color-border-strong);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text-body);
  font-family: var(--font-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: var(--transition); }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* ==========================================================
   TYPOGRAPHY
   ========================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text-heading);
  letter-spacing: -0.02em;
}

.display-title {
  font-family: var(--font-display);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

h1 { font-size: clamp(2.5rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 2rem); }
h4 { font-size: 1.3rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p { margin-bottom: 1.2rem; color: var(--color-text-body); }
p:last-child { margin-bottom: 0; }

/* ==========================================================
   LAYOUT UTILITIES
   ========================================================== */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 40px;
}

.section { padding: var(--section-padding); background-color: var(--color-bg); }

/* Sektions-Varianten – alle hell, dezent unterschiedlich für Rhythmus */
.section--dark   { background-color: var(--color-surface-alt); }
.section--dark-2 { background-color: var(--color-surface-alt); }
.section--dark-3 { background-color: var(--color-surface-muted); }
.section--promo {
    background: linear-gradient(135deg, var(--color-surface-alt) 0%, var(--color-surface-muted) 100%);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.grid { display: grid; gap: 32px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ── CONTENT GRIDS (Responsive) ── */
.content-grid {
    display: grid;
    gap: 48px;
    align-items: center;
}
.content-grid--2col { grid-template-columns: 1fr 1fr; }
.content-grid--sidebar-left { grid-template-columns: 1fr 1.5fr; align-items: start; }
.content-grid--sidebar-right { grid-template-columns: 1.5fr 1fr; align-items: start; }
.content-grid--cta { grid-template-columns: 1fr auto; }
.content-grid--detail { grid-template-columns: 1fr 320px; align-items: start; }

/* ── PROMO SECTION STYLES ── */
.promo-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.2;
    color: var(--color-text-heading);
}
.promo-text {
    color: var(--color-text-muted);
    max-width: 520px;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 0;
}
.promo-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 200px;
}
.promo-buttons .btn { justify-content: center; }
.btn-sm { font-size: 0.78rem; }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-gap { gap: 20px; }

.text-center { text-align: center; }
.text-left { text-align: left; }

/* ==========================================================
   BUTTONS
   ========================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--border-radius);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.12);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

.btn:hover::before { transform: translateX(0); }

/* Primary – Teal */
.btn-primary {
  background: var(--color-accent) !important;
  color: var(--color-text-on-accent) !important;
  border: 2px solid var(--color-accent) !important;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--color-accent-hover) !important;
  border-color: var(--color-accent-hover) !important;
  box-shadow: var(--shadow-accent);
}

/* Dark – für Sekundär-Aktionen auf hellem Grund */
.btn-white {
  background: var(--color-text-heading) !important;
  color: #FFFFFF !important;
  border: 2px solid var(--color-text-heading) !important;
}
.btn-white:hover {
  background: transparent !important;
  color: var(--color-text-heading) !important;
}

/* Outline – auf hellem Grund: dunkler Text mit dezentem Border */
.btn-outline {
  background: var(--color-bg) !important;
  color: var(--color-text-heading) !important;
  border: 2px solid var(--color-border-strong) !important;
}
.btn-outline:hover {
  border-color: var(--color-accent) !important;
  color: var(--color-accent) !important;
  background: var(--color-accent-soft) !important;
}

/* Ghost – minimal */
.btn-ghost {
  background: transparent;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
  padding: 10px 20px;
  font-size: 0.8rem;
}
.btn-ghost:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
  background: var(--color-accent-soft);
}

/* ==========================================================
   SECTION HEADERS
   ========================================================== */
.section-header {
  margin-bottom: 64px;
}

.section-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 16px;
  padding: 4px 12px;
  border: 1px solid var(--color-accent-border);
  border-radius: 2px;
  background: var(--color-accent-soft);
}

.section-title {
  margin-bottom: 20px;
  color: var(--color-text-heading);
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  max-width: 600px;
}

/* ==========================================================
   CARDS – auf hellem Grund: weiß + dezenter Border + Schatten
   ========================================================== */
.card {
  background: var(--color-surface-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-lg);
  padding: 40px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}

.card:hover {
  border-color: var(--color-accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card:hover::before { transform: translateX(0); }

.card-icon {
  width: 56px; height: 56px;
  background: var(--color-accent-soft);
  border: 1px solid var(--color-accent-border);
  border-radius: var(--border-radius);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px;
  font-size: 1.5rem;
  color: var(--color-accent);
}

.card h3 { margin-bottom: 12px; font-size: 1.25rem; color: var(--color-text-heading); }
.card p  { font-size: 0.95rem; margin-bottom: 0; color: var(--color-text-body); }

/* ==========================================================
   DIVIDER / SEPARATOR
   ========================================================== */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-border) 20%, var(--color-border) 80%, transparent);
  margin: 0;
}

/* ==========================================================
   BADGES & TAGS
   ========================================================== */
.badge {
  display: inline-block;
  padding: 3px 10px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 2px;
}

.badge-outline {
  border: 1px solid var(--color-border);
  background: var(--color-surface-muted);
  color: var(--color-text-muted);
}

/* ==========================================================
   NOISE TEXTURE OVERLAY – auf hellem Grund deutlich subtiler
   ========================================================== */
.noise::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.02'/%3E%3C/svg%3E");
  pointer-events: none;
  opacity: 0.3;
}

/* ==========================================================
   SCROLL ANIMATIONS
   ========================================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ==========================================================
   FOCUS STATES – Accessibility auf hellem Grund
   ========================================================== */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: 2px;
}
button:focus-visible,
a:focus-visible {
  outline-offset: 3px;
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 1024px) {
  .container { padding: 0 24px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }

  .content-grid--2col,
  .content-grid--sidebar-left,
  .content-grid--sidebar-right,
  .content-grid--detail {
      grid-template-columns: 1fr;
      gap: 40px;
  }
  .content-grid--cta {
      grid-template-columns: 1fr;
      gap: 32px;
      text-align: center;
  }
  .content-grid--cta .promo-text { max-width: none; }
  .promo-buttons {
      min-width: auto;
      width: 100%;
      max-width: 300px;
      margin: 0 auto;
  }
}

@media (max-width: 768px) {
  :root { --section-padding: 64px 0; }
  .container { padding: 0 20px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section-header { margin-bottom: 40px; }

  .content-grid { gap: 32px; }
  .promo-title { font-size: 1.4rem; }
  .promo-text { font-size: 0.9rem; }
  .promo-buttons { max-width: 100%; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }

  .content-grid { gap: 24px; }
  .promo-title { font-size: 1.25rem; }
}

/* overflow-x auf site-content statt body — damit mega-menu nicht abgeschnitten wird */
.site-content { overflow-x: hidden; }

/* ==========================================================
   GLOBAL IMAGE FIX — Prevent icon/logo distortion
   ========================================================== */
.mt-hero__badge img,
.tv-hero__badge img,
.pr-hero__logo,
.pr-flow-item__icon img,
.pr-flow-item__icon--pr img,
.mega-link__icon img {
    width: auto !important;
    object-fit: contain !important;
}
