/* ============================================
   SADON.CH - MODERN CSS FRAMEWORK
   Natürlich. Lokal. Wohltuend.
   ============================================ */

/* --- CSS CUSTOM PROPERTIES (DESIGN TOKENS) --- */
:root {
  /* Farben */
  --color-accent: #8B4A2F;
  --color-text: #1E1B16;
  --color-bg-start: #F9F5F0;
  --color-bg-end: #F2E7DE;

  /* Legacy Farben (für Kompatibilität mit bestehenden Seiten) */
  --color-brown: #4A3B32;
  --color-terra: #C86B53;
  --color-beige: #FDFBF7;
  --color-peach: #FFEAD5;
  --color-rose: #FFD6C6;

  /* Schatten */
  --shadow-soft: 0 24px 48px rgba(20, 16, 12, 0.12);
  --shadow-md: 0 12px 24px rgba(20, 16, 12, 0.08);
  --shadow-sm: 0 4px 12px rgba(20, 16, 12, 0.04);

  /* Radien */
  --radius-lg: 20px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --radius-pill: 999px;

  /* Abstände */
  --space-xs: 0.5rem;    /* 8px */
  --space-sm: 1rem;      /* 16px */
  --space-md: 1.5rem;    /* 24px */
  --space-lg: 2rem;      /* 32px */
  --space-xl: 3rem;      /* 48px */
  --space-2xl: 4rem;     /* 64px */
  --space-3xl: 6rem;     /* 96px */

  /* Schriften */
  --font-serif: 'Merriweather', serif;
  --font-sans: 'Nunito', sans-serif;
  --font-hand: 'Dancing Script', cursive;

  /* Typografie Größen */
  --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 */

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 350ms ease;

  /* Container */
  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1280px;
  --container-2xl: 1536px;
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: linear-gradient(to bottom, var(--color-bg-start), var(--color-bg-end));
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  line-height: 1.2;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-md);
}

h1 { font-size: clamp(2rem, 5vw, var(--text-5xl)); }
h2 { font-size: clamp(1.75rem, 4vw, var(--text-4xl)); }
h3 { font-size: clamp(1.5rem, 3vw, var(--text-3xl)); }
h4 { font-size: var(--text-2xl); }
h5 { font-size: var(--text-xl); }
h6 { font-size: var(--text-lg); }

p {
  margin-bottom: var(--space-md);
  line-height: 1.7;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-terra);
}

strong, b {
  font-weight: 700;
}

em, i {
  font-style: italic;
}

/* --- GRID SYSTEM --- */
.grid {
  display: grid;
  gap: var(--space-lg);
}

/* --- UTILITIES --- */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }





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

/* --- ANIMATIONS --- */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.animate-float {
  animation: float 4s ease-in-out infinite;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.fade-in {
  animation: fadeIn var(--transition-base);
}

/* --- CUSTOM SCROLLBAR --- */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--color-terra);
  border-radius: var(--radius-sm);
  border: 2px solid var(--color-rose);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-accent);
}

/* --- SELECTION --- */
::selection {
  background: var(--color-terra);
  color: white;
}

::-moz-selection {
  background: var(--color-terra);
  color: white;
}

/* --- ACCESSIBILITY --- */
/* Focus styles */
*:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

/* --- COOKIE BANNER (injiziert durch js/consent.js) --- */
#cookie-banner {
  position: fixed;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 24px);
  max-width: 420px;
  background: #fff7f3;
  border: 1px solid rgba(200, 107, 83, 0.25);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  padding: 12px 14px;
  display: none;
  z-index: 9999;
  font-family: 'Nunito', sans-serif;
  color: #4A3B32;
}

#cookie-banner .actions {
  display: flex;
  gap: 10px;
  flex-direction: column;
  margin-top: 10px;
}

#cookie-banner button {
  border-radius: 9999px;
  padding: 9px 14px;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 14px;
}

#cookie-accept {
  background: #C86B53;
  color: #fff;
  border-color: #C86B53;
}

#cookie-decline {
  background: #fff;
  color: #4A3B32;
  border-color: rgba(0, 0, 0, 0.14);
}

@media (min-width: 480px) {
  #cookie-banner {
    padding: 14px 16px;
  }

  #cookie-banner .actions {
    flex-direction: row;
  }
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}
