/* ========================================
   MAIN.CSS - DESIGN SYSTEM BASIS
   Farben, Fonts, Themes, Grundlagen
   ======================================== */

/* ========================================
   FONT IMPORTS - SELBST GEHOSTET
   ======================================== */
@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Poppins';
  src: url('../fonts/poppins-v23-latin-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Poppins';
  src: url('../fonts/poppins-v23-latin-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Poppins';
  src: url('../fonts/poppins-v23-latin-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Poppins';
  src: url('../fonts/poppins-v23-latin-900.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
    font-family: 'Playfair Display';
    src: url('../fonts/PlayfairDisplay-Regular.ttf') format('ttf');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* ========================================
   ROOT VARIABLES - DESIGN TOKENS
   ======================================== */
:root {
  /* FONTS */
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* FONT SIZES - Responsive 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 */
  
  /* LINE HEIGHTS */
  --leading-tight: 1.25;
  --leading-normal: 1.5;
  --leading-relaxed: 1.75;
  
  /* SPACING SCALE */
  --space-1: 0.25rem;     /* 4px */
  --space-2: 0.5rem;      /* 8px */
  --space-3: 0.75rem;     /* 12px */
  --space-4: 1rem;        /* 16px */
  --space-5: 1.25rem;     /* 20px */
  --space-6: 1.5rem;      /* 24px */
  --space-8: 2rem;        /* 32px */
  --space-10: 2.5rem;     /* 40px */
  --space-12: 3rem;       /* 48px */
  --space-16: 4rem;       /* 64px */
  --space-20: 5rem;       /* 80px */
  --space-24: 6rem;       /* 96px */
  
  /* BORDER RADIUS */
  --radius-sm: 0.25rem;   /* 4px */
  --radius: 0.5rem;       /* 8px */
  --radius-lg: 0.75rem;   /* 12px */
  --radius-xl: 1rem;      /* 16px */
  --radius-2xl: 1.5rem;   /* 24px */
  
  /* SHADOWS */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  /* STANDARD THEME - BASTELSERVICE (Lila) */
  --primary-color: #A02E95;
  --primary-dark: #8B2481;
  --primary-light: #B844A7;
  --highlight-color: #ECD5EA;
  --highlight-dark: #E0C4DC;
  
  /* NEUTRALE FARBEN */
  --text-primary: #1A1A1A;
  --text-secondary: #666666;
  --text-muted: #999999;
  --white: #FFFFFF;
  --background-soft: #F8F4F7;
  --background-light: #FDFCFD;
  --border-color: #E5E5E5;
  --shadow-color: rgba(0, 0, 0, 0.1);
  
  /* GRADIENTS */
  --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
  --gradient-soft: linear-gradient(135deg, var(--background-soft) 0%, var(--white) 100%);
}

/* ========================================
   THEME SWITCHER
   ======================================== */
.theme-bastelservice {
  --primary-color: #A02E95;
  --primary-dark: #8B2481;
  --primary-light: #B844A7;
  --highlight-color: #ECD5EA;
  --highlight-dark: #E0C4DC;
  --background-soft: #F8F4F7;
  --background-light: #FDFCFD;
  --gradient-primary: linear-gradient(135deg, #A02E95 0%, #B844A7 100%);
}

.theme-bastelhilfe {
  --primary-color: #2E9AA0;
  --primary-dark: #267B80;
  --primary-light: #44B7BD;
  --highlight-color: #D5EAEB;
  --highlight-dark: #C7E3E4;
  --background-soft: #F4F8F8;
  --background-light: #FCFDFD;
  --gradient-primary: linear-gradient(135deg, #2E9AA0 0%, #44B7BD 100%);
}

.theme-mixed {
  --primary-color: #A02E95;
  --primary-dark: #8B2481;
  --primary-light: #B844A7;
  --highlight-color: #ECD5EA;
  --secondary-color: #2E9AA0;
  --secondary-light: #44B7BD;
  --secondary-highlight: #D5EAEB;
  --background-soft: #F8F4F7;
  --gradient-mixed: linear-gradient(135deg, #A02E95 0%, #2E9AA0 100%);
}

/* ========================================
   BASE STYLES - RESET & GRUNDLAGEN
   ======================================== */
* {
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--text-primary);
  background-color: var(--white);
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* HEADINGS */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: var(--leading-tight);
  color: var(--text-primary);
  margin-top: 0;
  margin-bottom: var(--space-4);
}

h1 { font-size: var(--text-5xl); font-weight: 700; }
h2 { font-size: var(--text-4xl); font-weight: 700; }
h3 { font-size: var(--text-3xl); font-weight: 600; }
h4 { font-size: var(--text-2xl); font-weight: 600; }
h5 { font-size: var(--text-xl); font-weight: 600; }
h6 { font-size: var(--text-lg); font-weight: 600; }

/* RESPONSIVE HEADINGS */
@media (max-width: 768px) {
  h1 { font-size: var(--text-4xl); }
  h2 { font-size: var(--text-3xl); }
  h3 { font-size: var(--text-2xl); }
}

/* TEXT ELEMENTS */
p {
  margin-bottom: var(--space-4);
  line-height: var(--leading-relaxed);
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

strong, b {
  font-weight: 600;
}

img {
  max-width: 100%;
  height: auto;
}