/*
 Theme Name:   Astra Child
 Theme URI:    https://nikundrik.de
 Description:  Astra Child Theme für Nik & Rik
 Author:       Nik & Rik
 Author URI:   https://nikundrik.de
 Template:     astra
 Version:      1.0.0
 Text Domain:  astra-child
*/

/* === CORPORATE DESIGN VARIABLEN === */
:root {
  --nr-primary: #4169E1;        /* Royal Blue - Hauptfarbe */
  --nr-primary-light: #6495ED;  /* Cornflower Blue - Hellere Variante */
  --nr-primary-dark: #3558C0;   /* Dunklere Variante */
  --nr-accent: #4169E1;         /* Akzentfarbe (gleich wie primary) */
}

/* === HIGHLIGHT KLASSE für wichtige Wörter === */
.nr-highlight {
  color: var(--nr-primary) !important;
  font-weight: inherit;
}

/* KITT automatisch in Corporate-Farbe (überschreibt orange) */
span[style*="color:#ff"]:not(.keep-color),
span[style*="color: #ff"]:not(.keep-color),
span[style*="color:#e6"]:not(.keep-color),
span[style*="color: #e6"]:not(.keep-color) {
  color: var(--nr-primary) !important;
}

/* Highlight mit mehr Gewicht */
.nr-highlight-bold {
  color: var(--nr-primary) !important;
  font-weight: 700;
}

/* Gradient Highlight */
.nr-highlight-gradient {
  background: linear-gradient(135deg, var(--nr-primary), var(--nr-primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* === NIK & RIK CUSTOM STYLES === */

/* Full Width Layout Override */
.site-content .ast-container,
#primary {
  max-width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.entry-content {
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Hero Section */
.nr-hero {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

/* Section Titles */
.nr-section-title {
  font-weight: 700;
  letter-spacing: -0.5px;
}

/* Services Grid - Abstände reduziert */
.nr-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;  /* Reduziert von 30px */
}

/* References Grid */
.nr-references-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;  /* Reduziert von 30px */
}

/* WordPress Block Columns - kompaktere Abstände */
.wp-block-columns {
  gap: 20px !important;
}

.wp-block-column {
  margin-bottom: 0 !important;
}

/* Sections Full Width */
section {
  width: 100%;
  box-sizing: border-box;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Links */
a {
  transition: all 0.3s ease;
}

/* Hide page title */
.entry-title,
.page-title,
.ast-archive-description {
  display: none !important;
}

/* Remove default margins */
article.page {
  margin: 0 !important;
  padding: 0 !important;
}

/* === DESKTOP: Schmaler Content für bessere Lesbarkeit === */
@media (min-width: 1200px) {
  /* Sections behalten volle Breite (für Hintergrund-Boxen) */
  section {
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  
  /* NUR der Content INNERHALB der Sections wird zentriert und begrenzt */
  section > div,
  section > .elementor-container,
  section > .wp-block-group__inner-container,
  .entry-content > div:not(.kitt-container),
  .entry-content > p,
  .entry-content > h1,
  .entry-content > h2,
  .entry-content > h3 {
    max-width: 1000px;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 40px;
    padding-right: 40px;
  }
}

/* Mobile Responsive */
@media (max-width: 992px) {
  .nr-services-grid,
  .nr-references-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nr-hero h1 {
    font-size: 36px !important;
  }
  
  .nr-services-grid,
  .nr-references-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .nr-section-title {
    font-size: 32px !important;
  }
  
  section {
    padding: 60px 20px !important;
  }
  
  section > div {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
}
