/*
Theme Name: Smartteller V2
Theme URI: https://guenstig-essen-planer.de
Author: wabulat
Author URI: https://guenstig-essen-planer.de
Description: SEO-Traffic-Maschine + AdSense-Geldmaschine + App-Download-Hub für Smartteller-App. Mobile-First, Lighthouse 90+, DSGVO-konform.
Version: 2.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: smartteller
Domain Path: /languages
Tags: seo, adsense, mobile-first, recipe, city-pages, affiliate
*/

/* ============================================
   CSS CUSTOM PROPERTIES (DESIGN SYSTEM)
   ============================================ */
:root {
  /* Farbsystem */
  --primary-green: #1E8E3E;
  --secondary-green: #2D8A3E;
  --light-green: #4CAF50;
  --accent-yellow: #F4B400;
  --dark-navy: #1A1A2E;
  --text-primary: #1A1A2E;
  --text-secondary: #5F6368;
  --bg-white: #FFFFFF;
  --bg-light: #F5F7FA;
  --border-light: #E8EAED;
  
  /* Hover-States */
  --primary-green-hover: #167D32;
  --light-green-hover: #43A047;
  
  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
  --shadow-primary: 0 4px 12px rgba(30,142,62,0.3);
  --shadow-card: 0 4px 20px rgba(0,0,0,0.06);
  --shadow-card-hover: 0 8px 30px rgba(0,0,0,0.12);
  
  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  
  /* Typography */
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-heading: var(--font-body);
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;
  
  /* 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 */
  --container-max: 1280px;
  --container-padding: 1rem;
  --section-py-mobile: 3rem;
  --section-py-desktop: 4rem;
  
  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 350ms ease;
  
  /* Z-Index */
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-modal: 300;
  --z-cookie: 400;
  --z-floating: 500;
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-white);
  overflow-x: hidden;
}

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

input, button, textarea, select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

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

ul, ol {
  list-style: none;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

.section-padding {
  padding-top: var(--section-py-mobile);
  padding-bottom: var(--section-py-mobile);
}

@media (min-width: 1024px) {
  .section-padding {
    padding-top: var(--section-py-desktop);
    padding-bottom: var(--section-py-desktop);
  }
}

.bg-light { background-color: var(--bg-light); }
.bg-white { background-color: var(--bg-white); }
.bg-primary { background-color: var(--primary-green); }
.bg-navy { background-color: var(--dark-navy); }

.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-white { color: var(--bg-white); }
.text-green { color: var(--primary-green); }
.text-yellow { color: var(--accent-yellow); }

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

.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }
.font-normal { font-weight: 400; }

.uppercase {
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tracking-wide { letter-spacing: 0.025em; }

/* ============================================
   HEADINGS
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--dark-navy);
}

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

@media (min-width: 768px) {
  h1 { font-size: var(--text-5xl); }
  h2 { font-size: var(--text-4xl); }
  h3 { font-size: var(--text-2xl); }
}

@media (min-width: 1024px) {
  h1 { font-size: var(--text-6xl); }
}

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

/* ============================================
   ADSENSE CONTAINER BASE
   ============================================ */
.ad-container {
  position: relative;
  width: 100%;
  text-align: center;
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.ad-label {
  display: block;
  font-size: var(--text-xs);
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: var(--space-2) 0;
}

.ad-container ins.adsbygoogle {
  display: block;
  margin: 0 auto;
}

/* ============================================
   LAZY LOADING
   ============================================ */
.lazyload,
.lazyloading {
  opacity: 0;
  transition: opacity var(--transition-slow);
}

.lazyloaded {
  opacity: 1;
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
:focus-visible {
  outline: 2px solid var(--primary-green);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}