/*
 Theme Name:   macbay Starter Theme
 Theme URI:    https://generatepress.com
 Description:  macbay digital starter theme (A GeneratePress child theme)
 Author:       Sascha Liem
 Author URI:   https://macbay.net
 Template:     generatepress
 Version:      0.9.0
 Changes:      added tweaks from theadminbar.com/generate, re-ordered code, removed unused css
*/

/* Site Wrapper */
.site-wrapper {
    width: 100%;
    max-width: 1920px;
    margin-inline: auto;
}

/* Optimize Header for responsive screens */
header.site-header {
    padding-inline: 1rem;
}
header.site-header .inside-header {
    max-width: 1200px;
    padding-inline: 0;
}

/* Tweak 3 - Remove bottom margin on last paragraph - source check functions.php */
.gb-container p:last-child:last-of-type {
    margin-bottom: 0px;
}
.block-editor-block-list__layout .gb-container p:nth-last-child(2) {
    margin-bottom: 0px;
}

/* Visually Hidden */
.visually-hidden:not(:focus):not(:active) {
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

/* No Underline */
.no-ul, .no-ul a {
	text-decoration: none;
}

/* ============================================
   MACBAY DESIGN SYSTEM - CORE FRAMEWORK
   ============================================ */

:root {
  
  /* ==================
     FARBEN (COLORS)
     ================== */
  
  /* Brand Colors */
  --color-brand-blue: hsl(227, 55%, 13%);      /* #0F1934 - Dunkelblau */
  --color-brand-orange: hsl(17, 100%, 60%);    /* #FF6C31 - Orange */
  
  /* Base Colors (Hintergründe) */
  --color-bg-primary: hsl(210, 17%, 98%);      /* #F8F9FA - Content BG */
  --color-bg-secondary: hsl(210, 16%, 95%);    /* #F1F3F5 - Body BG */
  --color-bg-tertiary: hsl(210, 14%, 89%);     /* #DEE2E6 - Subtle BG */
  
  /* Text Colors */
  --color-text-primary: hsl(210, 10%, 23%);    /* #343A40 - Haupttext */
  --color-text-secondary: hsl(210, 9%, 45%);   /* #6C757D - Sekundärtext */
  --color-text-tertiary: hsl(210, 14%, 71%);   /* #ADB5BD - Platzhalter */
  
  /* UI Feedback */
  --color-success: hsl(134, 61%, 41%);         /* #28A745 */
  --color-warning: hsl(45, 100%, 51%);         /* #FFC107 */
  --color-error: hsl(354, 70%, 54%);           /* #DC3545 */
  
  /* Transparenzen (für Overlays, Hover etc.) */
  --color-brand-blue-10: hsla(227, 55%, 13%, 0.1);
  --color-brand-blue-20: hsla(227, 55%, 13%, 0.2);
  --color-brand-orange-10: hsla(17, 100%, 60%, 0.1);
  --color-brand-orange-20: hsla(17, 100%, 60%, 0.2);
  
  
  /* ==================
     TYPOGRAFIE (FLUID)
     ================== */
  
  /* Font Families */
  --font-family-base: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-family-headings: 'Exo', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  
  /* Fluid Font Sizes */
  --font-size-xs: clamp(0.813rem, 0.79rem + 0.11vw, 0.875rem);        /* 13px → 14px */
  --font-size-sm: clamp(0.875rem, 0.84rem + 0.17vw, 0.9375rem);       /* 14px → 15px */
  --font-size-base: clamp(1rem, 0.93rem + 0.35vw, 1.125rem);          /* 16px → 18px */
  --font-size-md: clamp(1.125rem, 1.02rem + 0.52vw, 1.375rem);        /* 18px → 22px */
  --font-size-lg: clamp(1.25rem, 1.07rem + 0.87vw, 1.5rem);           /* 20px → 24px (H4) */
  --font-size-xl: clamp(1.5rem, 1.2rem + 1.5vw, 2rem);                /* 24px → 32px (H3) */
  --font-size-xxl: clamp(1.875rem, 1.43rem + 2.22vw, 2.625rem);       /* 30px → 42px (H2) */
  --font-size-xxxl: clamp(2.25rem, 1.61rem + 3.2vw, 3.625rem);        /* 36px → 58px (H1) */
  
  /* Font Weights */
  --font-weight-normal: 400;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  
  /* Line Heights */
  --line-height-tight: 1.2;      /* Headlines */
  --line-height-snug: 1.4;       /* Subheadings */
  --line-height-normal: 1.6;     /* UI-Elemente, Lead */
  --line-height-relaxed: 1.7;    /* Body Text */
  
  
  /* ==================
     SPACING (Perfect Fourth: 1.333)
     ================== */
  
  --space-3xs: clamp(0.25rem, 0.23rem + 0.09vw, 0.31rem);    /* ~4-5px */
  --space-2xs: clamp(0.5rem, 0.48rem + 0.09vw, 0.56rem);     /* ~8-9px */
  --space-xs: clamp(0.75rem, 0.7rem + 0.23vw, 0.94rem);      /* ~12-15px */
  --space-s: clamp(1rem, 0.95rem + 0.23vw, 1.19rem);         /* ~16-19px */
  --space-m: clamp(1.5rem, 1.43rem + 0.35vw, 1.75rem);       /* ~24-28px */
  --space-l: clamp(2rem, 1.91rem + 0.47vw, 2.38rem);         /* ~32-38px */
  --space-xl: clamp(3rem, 2.86rem + 0.7vw, 3.56rem);         /* ~48-57px */
  --space-2xl: clamp(4rem, 3.82rem + 0.93vw, 4.75rem);       /* ~64-76px */
  --space-3xl: clamp(6rem, 5.73rem + 1.4vw, 7.13rem);        /* ~96-114px */
  
  /* One-up pairs */
  --space-3xs-2xs: clamp(0.25rem, 0.14rem + 0.56vw, 0.69rem);
  --space-s-m: clamp(1rem, 0.77rem + 1.17vw, 1.94rem);
  --space-l-xl: clamp(2rem, 1.55rem + 2.34vw, 3.88rem);
  
  
  /* ==================
     BORDER RADIUS
     ================== */
  
  --radius-sm: 4px;
  --radius-base: 6px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;
  
  
  /* ==================
     SHADOWS (Elevation)
     ================== */
  
  --shadow-sm: 0 4px 6px -1px hsla(227, 55%, 13%, 0.08), 
               0 2px 4px -2px hsla(227, 55%, 13%, 0.05);
  --shadow-md: 0 10px 15px -3px hsla(227, 55%, 13%, 0.1), 
               0 4px 6px -4px hsla(227, 55%, 13%, 0.08);
  --shadow-lg: 0 20px 25px -5px hsla(227, 55%, 13%, 0.1), 
               0 8px 10px -6px hsla(227, 55%, 13%, 0.08);
  --shadow-xl: 0 25px 50px -12px hsla(227, 55%, 13%, 0.25);
  
  
  /* ==================
     LAYOUT
     ================== */
  
  --container-max-width: 1280px;
  --container-padding: var(--space-m);
  
  /* Breakpoints */
  --breakpoint-sm: 640px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 1024px;
  --breakpoint-xl: 1280px;
  
  
  /* ==================
     TRANSITIONS
     ================== */
  
  --transition-fast: 150ms ease-in-out;
  --transition-base: 250ms ease-in-out;
  --transition-slow: 400ms ease-in-out;
}

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

body {
  font-family: var(--font-family-base);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-normal);
  line-height: var(--line-height-relaxed);
  color: var(--color-text-primary);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family-headings);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  color: var(--color-brand-blue);
  margin-bottom: var(--space-m);
}

h1 {
  font-size: var(--font-size-xxxl);
  margin-bottom: var(--space-l);
}

h2 {
  font-size: var(--font-size-xxl);
  line-height: var(--line-height-snug);
}

h3 {
  font-size: var(--font-size-xl);
  line-height: var(--line-height-snug);
  font-weight: var(--font-weight-semibold);
}

h4 {
  font-size: var(--font-size-lg);
  line-height: var(--line-height-snug);
  font-weight: var(--font-weight-semibold);
}

h5 {
  font-size: var(--font-size-md);
  line-height: var(--line-height-normal);
  font-weight: var(--font-weight-semibold);
}

h6 {
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

p {
  margin-bottom: var(--space-m);
}

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

.lead,
.intro-text {
  font-size: var(--font-size-md);
  line-height: var(--line-height-normal);
  color: var(--color-text-primary);
  margin-bottom: var(--space-l);
}

small,
.text-small {
  font-size: var(--font-size-sm);
  line-height: var(--line-height-normal);
}

a {
  color: var(--color-brand-orange);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-brand-blue);
}

a:focus {
  outline: 2px solid var(--color-brand-orange);
  outline-offset: 2px;
  border-radius: 2px;
}

ul, ol {
  margin-bottom: var(--space-m);
  padding-left: var(--space-l);
}

li {
  margin-bottom: var(--space-2xs);
  line-height: var(--line-height-relaxed);
}

blockquote {
  font-size: var(--font-size-md);
  font-style: italic;
  line-height: var(--line-height-normal);
  color: var(--color-text-secondary);
  border-left: 4px solid var(--color-brand-orange);
  padding-left: var(--space-l);
  margin: var(--space-xl) 0;
}

blockquote cite {
  display: block;
  font-size: var(--font-size-sm);
  font-style: normal;
  font-weight: var(--font-weight-semibold);
  color: var(--color-brand-blue);
  margin-top: var(--space-s);
}

code {
  font-family: 'Courier New', Consolas, Monaco, monospace;
  font-size: 0.9em;
  background-color: var(--color-bg-tertiary);
  color: var(--color-brand-blue);
  padding: var(--space-3xs) var(--space-2xs);
  border-radius: var(--radius-sm);
}

pre {
  background-color: var(--color-brand-blue);
  color: var(--color-brand-orange);
  padding: var(--space-m);
  border-radius: var(--radius-base);
  overflow-x: auto;
  margin-bottom: var(--space-m);
}

pre code {
  background: none;
  padding: 0;
  color: inherit;
}

strong, b {
  font-weight: var(--font-weight-bold);
}

em, i {
  font-style: italic;
}

hr {
  border: none;
  border-top: 1px solid var(--color-bg-tertiary);
  margin: var(--space-xl) 0;
}


/* ============================================
   GENERATEPRESS THEME OVERRIDES
   ============================================ */

.entry-content a:not(.button) {
  color: var(--color-brand-orange);
  transition: color var(--transition-fast);
}

.entry-content a:not(.button):hover {
  color: var(--color-brand-blue);
}

.main-navigation a {
  color: var(--color-text-primary);
  transition: color var(--transition-fast);
}

.main-navigation a:hover {
  color: var(--color-brand-orange);
}

.wp-block-button__link,
.button,
button[type="submit"] {
  background-color: var(--color-brand-orange);
  color: #FFFFFF;
  border-radius: var(--radius-base);
  padding: var(--space-s) var(--space-m);
  font-family: var(--font-family-base);
  font-weight: var(--font-weight-bold);
  transition: all var(--transition-base);
  border: none;
  cursor: pointer;
}

.wp-block-button__link:hover,
.button:hover,
button[type="submit"]:hover {
  background-color: var(--color-brand-blue);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}


/* ============================================
   GENERATEBLOCKS BUTTON SYSTEM
   ============================================ */

body .btn-primary.gb-button,
body .btn-primary .gb-button,
body a.btn-primary.gb-button,
body .gb-button-wrapper.btn-primary .gb-button {
  background-color: var(--color-brand-orange);
  color: #FFFFFF;
  border: 2px solid var(--color-brand-orange);
  border-radius: var(--radius-base);
  padding: var(--space-s) var(--space-m);
  font-family: var(--font-family-base);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-normal);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2xs);
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

body .btn-primary.gb-button:hover,
body .btn-primary .gb-button:hover,
body a.btn-primary.gb-button:hover,
body .gb-button-wrapper.btn-primary .gb-button:hover {
  background-color: var(--color-brand-blue);
  border-color: var(--color-brand-blue);
  color: #FFFFFF;
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

body .btn-primary.gb-button:focus,
body .btn-primary .gb-button:focus,
body a.btn-primary.gb-button:focus {
  outline: 3px solid var(--color-brand-orange-20);
  outline-offset: 2px;
  box-shadow: var(--shadow-md);
}

body .btn-primary.gb-button:active,
body .btn-primary .gb-button:active,
body a.btn-primary.gb-button:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

body .btn-secondary.gb-button,
body .btn-secondary .gb-button,
body a.btn-secondary.gb-button,
body .gb-button-wrapper.btn-secondary .gb-button {
  background-color: var(--color-brand-blue);
  color: #FFFFFF;
  border: 2px solid var(--color-brand-blue);
  border-radius: var(--radius-base);
  padding: var(--space-s) var(--space-m);
  font-family: var(--font-family-base);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-normal);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2xs);
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

body .btn-secondary.gb-button:hover,
body .btn-secondary .gb-button:hover,
body a.btn-secondary.gb-button:hover,
body .gb-button-wrapper.btn-secondary .gb-button:hover {
  background-color: var(--color-brand-orange);
  border-color: var(--color-brand-orange);
  color: #FFFFFF;
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

body .btn-secondary.gb-button:focus,
body .btn-secondary .gb-button:focus,
body a.btn-secondary.gb-button:focus {
  outline: 3px solid var(--color-brand-blue-20);
  outline-offset: 2px;
  box-shadow: var(--shadow-md);
}

body .btn-secondary.gb-button:active,
body .btn-secondary .gb-button:active,
body a.btn-secondary.gb-button:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

body .btn-tertiary.gb-button,
body .btn-tertiary .gb-button,
body a.btn-tertiary.gb-button,
body .gb-button-wrapper.btn-tertiary .gb-button {
  background-color: transparent;
  color: var(--color-text-primary);
  border: 2px solid var(--color-bg-tertiary);
  border-radius: var(--radius-base);
  padding: var(--space-s) var(--space-m);
  font-family: var(--font-family-base);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-normal);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2xs);
  transition: all var(--transition-base);
  cursor: pointer;
}

body .btn-tertiary.gb-button:hover,
body .btn-tertiary .gb-button:hover,
body a.btn-tertiary.gb-button:hover,
body .gb-button-wrapper.btn-tertiary .gb-button:hover {
  background-color: var(--color-bg-secondary);
  color: var(--color-brand-blue);
  border-color: var(--color-text-secondary);
}

body .btn-tertiary.gb-button:focus,
body .btn-tertiary .gb-button:focus,
body a.btn-tertiary.gb-button:focus {
  outline: 3px solid var(--color-brand-blue-10);
  outline-offset: 2px;
  background-color: var(--color-bg-secondary);
}

body .btn-tertiary.gb-button:active,
body .btn-tertiary .gb-button:active,
body a.btn-tertiary.gb-button:active {
  background-color: var(--color-bg-tertiary);
}

body .btn-sm.gb-button,
body .btn-sm .gb-button {
  font-size: var(--font-size-sm);
  padding: var(--space-2xs) var(--space-s);
}

body .btn-lg.gb-button,
body .btn-lg .gb-button {
  font-size: var(--font-size-md);
  padding: var(--space-s) var(--space-l);
}

.gb-button .gb-icon,
.gb-button svg {
  width: 1.25em;
  height: 1.25em;
  flex-shrink: 0;
}


/* ============================================
   STYLE GUIDE COMPONENTS (FLUID-OPTIMIERT)
   Spezielle Elemente für die Style-Guide-Seite
   ============================================ */

/* Style Guide Wrapper */
.style-guide-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-m);
}

.style-guide-wrapper > .gb-container:first-child {
  margin-left: calc(-1 * var(--space-m));
  margin-right: calc(-1 * var(--space-m));
  width: calc(100% + (2 * var(--space-m)));
  max-width: none;
}

/* Style Guide Container */
.sg-section {
  margin-bottom: clamp(4rem, 3.5rem + 2.5vw, 6rem);
  padding-bottom: clamp(2rem, 1.5rem + 2.5vw, 4rem);
  border-bottom: 1px solid var(--color-bg-tertiary);
}

.sg-section:last-child {
  border-bottom: none;
}

/* Section Heading */
.sg-section-title {
  font-family: var(--font-family-headings);
  font-size: clamp(1.5rem, 1.3rem + 1vw, 2rem);
  font-weight: var(--font-weight-bold);
  color: var(--color-brand-blue);
  margin-bottom: clamp(1.5rem, 1.2rem + 1.5vw, 2.5rem);
  padding-bottom: var(--space-s);
  border-bottom: 3px solid var(--color-brand-orange);
  display: inline-block;
}

/* Subsection */
.sg-subsection {
  margin-bottom: clamp(2rem, 1.5rem + 2.5vw, 4rem);
}

.sg-subsection-title {
  font-family: var(--font-family-headings);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-m);
}

/* Color Swatches */
.sg-color-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr));
  gap: var(--space-m);
  margin-bottom: var(--space-l);
}

.sg-color-swatch {
  border-radius: var(--radius-base);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-bg-tertiary);
  transition: transform var(--transition-base);
}

.sg-color-swatch:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.sg-color-preview {
  height: clamp(100px, 15vw, 120px);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-family-base);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
}

.sg-color-info {
  padding: var(--space-s);
  background-color: var(--color-bg-primary);
}

.sg-color-name {
  font-family: var(--font-family-base);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-3xs);
}

.sg-color-value {
  font-family: 'Courier New', monospace;
  font-size: var(--font-size-xs);
  color: var(--color-text-secondary);
  word-break: break-all;
}

/* Typography Specimens */
.sg-type-specimen {
  margin-bottom: var(--space-l);
  padding: clamp(0.75rem, 0.5rem + 1.25vw, 1.5rem);
  background-color: var(--color-bg-primary);
  border-radius: var(--radius-base);
  border-left: 4px solid var(--color-brand-orange);
}

.sg-type-label {
  font-family: var(--font-family-base);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-2xs);
}

.sg-type-specs {
  font-family: 'Courier New', monospace;
  font-size: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  color: var(--color-text-secondary);
  margin-top: var(--space-s);
  line-height: 1.6;
  padding: var(--space-2xs) var(--space-s);
  background-color: var(--color-bg-secondary);
  border-radius: var(--radius-sm);
  overflow-x: auto;
}

/* Spacing Scale Visualization */
.sg-spacing-item {
  display: flex;
  align-items: center;
  gap: var(--space-m);
  margin-bottom: var(--space-m);
  padding: var(--space-s);
  background-color: var(--color-bg-primary);
  border-radius: var(--radius-base);
  flex-wrap: wrap;
}

.sg-spacing-visual {
  height: clamp(30px, 5vw, 40px);
  background-color: var(--color-brand-orange);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  transition: width var(--transition-base);
}

.sg-spacing-label {
  font-family: 'Courier New', monospace;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
  min-width: clamp(100px, 15vw, 120px);
}

.sg-spacing-value {
  font-family: 'Courier New', monospace;
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
}

/* Component Examples */
.sg-example {
  padding: clamp(1rem, 0.75rem + 1.25vw, 1.5rem);
  background-color: var(--color-bg-primary);
  border-radius: var(--radius-base);
  margin-bottom: var(--space-m);
  border: 1px solid var(--color-bg-tertiary);
}

.sg-example-label {
  font-family: var(--font-family-base);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-s);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Code Display */
.sg-code {
  background-color: var(--color-brand-blue);
  color: var(--color-brand-orange);
  padding: clamp(0.75rem, 0.5rem + 1.25vw, 1rem);
  border-radius: var(--radius-base);
  font-family: 'Courier New', monospace;
  font-size: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  overflow-x: auto;
  margin-top: var(--space-s);
  line-height: 1.6;
  word-break: break-word;
}

/* Shadow Examples */
.sg-shadow-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(180px, 100%), 1fr));
  gap: clamp(1rem, 0.75rem + 1.25vw, 1.5rem);
  margin-bottom: var(--space-l);
}

.sg-shadow-box {
  height: clamp(120px, 20vw, 150px);
  background-color: #FFFFFF;
  border-radius: var(--radius-base);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-s);
  font-family: var(--font-family-base);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
  transition: all var(--transition-base);
}

.sg-shadow-box:hover {
  transform: translateY(-4px);
}

.sg-shadow-sm {
  box-shadow: var(--shadow-sm);
}

.sg-shadow-md {
  box-shadow: var(--shadow-md);
}

.sg-shadow-lg {
  box-shadow: var(--shadow-lg);
}

.sg-shadow-xl {
  box-shadow: var(--shadow-xl);
}

/* Border Radius Examples */
.sg-radius-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(140px, 100%), 1fr));
  gap: var(--space-m);
  margin-bottom: var(--space-l);
}

.sg-radius-box {
  height: clamp(80px, 15vw, 100px);
  background-color: var(--color-brand-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-2xs);
  color: #FFFFFF;
  font-family: var(--font-family-base);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-bold);
  transition: transform var(--transition-base);
}

.sg-radius-box:hover {
  transform: scale(1.05);
}

.sg-radius-sm {
  border-radius: var(--radius-sm);
}

.sg-radius-base {
  border-radius: var(--radius-base);
}

.sg-radius-lg {
  border-radius: var(--radius-lg);
}

.sg-radius-xl {
  border-radius: var(--radius-xl);
}

.sg-radius-full {
  border-radius: var(--radius-full);
  aspect-ratio: 1;
}

/* Responsive Adjustments für Style Guide */
@media (max-width: 768px) {
  .sg-color-grid,
  .sg-shadow-grid,
  .sg-radius-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(150px, 100%), 1fr));
  }
  
  .sg-spacing-item {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .sg-spacing-visual {
    width: 100% !important;
    max-width: 300px;
  }
}

@media (max-width: 480px) {
  .sg-color-grid,
  .sg-shadow-grid,
  .sg-radius-grid {
    grid-template-columns: 1fr;
  }
}


/* ============================================
   CARD COMPONENTS
   Flexible Karten-System für verschiedene Inhalte
   ============================================ */

/* BASE CARD */
.card {
  background-color: var(--color-bg-primary);
  border-radius: var(--radius-lg);
  padding: var(--space-l);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  border: 1px solid var(--color-bg-tertiary);
  height: 100%;
  display: flex;
  flex-direction: column;
}

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

/* Card Header */
.card-header {
  margin-bottom: var(--space-m);
}

.card-icon {
  width: 48px;
  height: 48px;
  margin-bottom: var(--space-s);
  color: var(--color-brand-orange);
}

.card-title {
  font-family: var(--font-family-headings);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  color: var(--color-brand-blue);
  margin-bottom: var(--space-2xs);
  line-height: var(--line-height-tight);
}

.card-subtitle {
  font-family: var(--font-family-base);
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: var(--font-weight-semibold);
}

/* Card Body */
.card-body {
  flex-grow: 1;
  margin-bottom: var(--space-m);
}

.card-text {
  font-family: var(--font-family-base);
  font-size: var(--font-size-base);
  line-height: var(--line-height-relaxed);
  color: var(--color-text-primary);
}

/* Card Footer */
.card-footer {
  margin-top: auto;
  padding-top: var(--space-m);
  border-top: 1px solid var(--color-bg-tertiary);
}

/* Card Meta Info */
.card-meta {
  display: flex;
  align-items: center;
  gap: var(--space-s);
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-s);
}

.card-meta-item {
  display: flex;
  align-items: center;
  gap: var(--space-3xs);
}


/* ==================
   CARD VARIANTS
   ================== */

/* Feature Card */
.card-feature {
  text-align: center;
  padding: var(--space-xl);
}

.card-feature .card-icon {
  margin: 0 auto var(--space-m);
  width: 64px;
  height: 64px;
}

.card-feature:hover {
  border-color: var(--color-brand-orange);
}

/* Pricing Card */
.card-pricing {
  text-align: center;
  position: relative;
  overflow: hidden;
}

.card-pricing-badge {
  position: absolute;
  top: var(--space-m);
  right: calc(var(--space-m) * -1);
  background-color: var(--color-brand-orange);
  color: #FFFFFF;
  padding: var(--space-3xs) var(--space-xl);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transform: rotate(45deg);
  box-shadow: var(--shadow-sm);
}

.card-pricing-price {
  font-family: var(--font-family-headings);
  font-size: var(--font-size-xxxl);
  font-weight: var(--font-weight-bold);
  color: var(--color-brand-blue);
  line-height: 1;
  margin: var(--space-m) 0;
}

.card-pricing-price-currency {
  font-size: var(--font-size-lg);
  vertical-align: super;
}

.card-pricing-price-period {
  font-size: var(--font-size-base);
  color: var(--color-text-secondary);
  font-weight: var(--font-weight-normal);
}

.card-pricing-features {
  list-style: none;
  padding: 0;
  margin: var(--space-l) 0;
  text-align: left;
}

.card-pricing-features li {
  padding: var(--space-s) 0;
  border-bottom: 1px solid var(--color-bg-tertiary);
  display: flex;
  align-items: center;
  gap: var(--space-s);
}

.card-pricing-features li:last-child {
  border-bottom: none;
}

.card-pricing-features li::before {
  content: "✓";
  color: var(--color-success);
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-lg);
  flex-shrink: 0;
}

/* Highlighted Pricing Card */
.card-pricing-highlighted {
  border: 2px solid var(--color-brand-orange);
  box-shadow: var(--shadow-lg);
  transform: scale(1.05);
}

.card-pricing-highlighted:hover {
  transform: scale(1.05) translateY(-4px);
}

/* Testimonial Card */
.card-testimonial {
  position: relative;
  padding-top: var(--space-xl);
}

.card-testimonial-quote {
  font-size: var(--font-size-md);
  line-height: var(--line-height-snug);
  font-style: italic;
  color: var(--color-text-primary);
  margin-bottom: var(--space-m);
  position: relative;
}

.card-testimonial-quote::before {
  content: """;
  font-size: 4rem;
  color: var(--color-brand-orange);
  opacity: 0.3;
  position: absolute;
  top: -20px;
  left: -10px;
  font-family: Georgia, serif;
  line-height: 1;
}

.card-testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-s);
}

.card-testimonial-avatar {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 3px solid var(--color-brand-orange);
}

.card-testimonial-author-info {
  flex-grow: 1;
}

.card-testimonial-author-name {
  font-weight: var(--font-weight-bold);
  color: var(--color-brand-blue);
  margin-bottom: var(--space-3xs);
}

.card-testimonial-author-role {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
}

/* Blog/Post Card */
.card-blog {
  padding: 0;
  overflow: hidden;
}

.card-blog-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-blog-content {
  padding: var(--space-l);
}

.card-blog-category {
  display: inline-block;
  background-color: var(--color-brand-orange);
  color: #FFFFFF;
  padding: var(--space-3xs) var(--space-s);
  border-radius: var(--radius-sm);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-s);
}

.card-blog-title {
  margin-bottom: var(--space-s);
}

.card-blog-excerpt {
  color: var(--color-text-secondary);
  margin-bottom: var(--space-m);
}

.card-blog-link {
  color: var(--color-brand-orange);
  text-decoration: none;
  font-weight: var(--font-weight-semibold);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2xs);
  transition: gap var(--transition-fast);
}

.card-blog-link:hover {
  gap: var(--space-s);
}

/* Compact Card (für Listen) */
.card-compact {
  padding: var(--space-m);
  display: flex;
  align-items: center;
  gap: var(--space-m);
}

.card-compact .card-icon {
  width: 40px;
  height: 40px;
  margin: 0;
  flex-shrink: 0;
}

.card-compact .card-title {
  font-size: var(--font-size-base);
  margin: 0;
}

.card-compact .card-text {
  font-size: var(--font-size-sm);
  margin: 0;
}

/* Card Grid System */
.card-grid {
  display: grid;
  gap: var(--space-l);
  margin-bottom: var(--space-2xl);
}

/* 2 Spalten */
.card-grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* 3 Spalten */
.card-grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* 4 Spalten */
.card-grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

/* Responsive: Auf Mobile immer 1 Spalte */
@media (max-width: 640px) {
  .card-grid-2,
  .card-grid-3,
  .card-grid-4 {
    grid-template-columns: 1fr;
  }
}


/* ============================================
   FLUID TYPOGRAPHY - GLOBAL OVERRIDES
   Erzwingt Fluid-Werte über GP-Customizer
   ============================================ */

/* Überschreibt GP-Styles für alle Headlines */
h1 {
  font-size: var(--font-size-xxxl) !important;
}

h2 {
  font-size: var(--font-size-xxl) !important;
}

h3 {
  font-size: var(--font-size-xl) !important;
}

h4 {
  font-size: var(--font-size-lg) !important;
}
