/* =====================================================
   Kante & Kelle – style.css
   Creative Artistic theme: vibrant colors, creative layouts, artistic fonts
   Mobile-first, flexbox-only
   ===================================================== */

/* -------------------------------
   1) RESET & NORMALIZE
--------------------------------*/
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Montserrat:wght@600;700;800&display=swap');

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { line-height: 1.6; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
img, picture, svg, video { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; }
button { background: none; border: none; padding: 0; cursor: pointer; }
a { text-decoration: none; color: inherit; }
ul, ol { padding-left: 1.25rem; }

/* -------------------------------
   2) THEME VARIABLES
--------------------------------*/
:root {
  --color-primary: #2F3E46; /* brand slate */
  --color-secondary: #C96B3C; /* brand terracotta */
  --color-accent: #F4F7F8; /* brand light */
  --color-ink: #1F2426; /* main text */
  --color-muted: #5C6970; /* muted text */
  --color-white: #FFFFFF;
  /* Creative Artistic supporting colors (solid; used as decorative accents only) */
  --ca-purple: #7C3AED; /* vibrant purple */
  --ca-teal: #06B6D4;   /* vibrant teal */
  --ca-amber: #F59E0B;  /* vibrant amber */
  --ca-pink: #EC4899;   /* vibrant pink */

  --radius-s: 10px;
  --radius-m: 16px;
  --radius-l: 22px;
  --shadow-s: 0 2px 10px rgba(0,0,0,0.06);
  --shadow-m: 0 6px 20px rgba(0,0,0,0.12);
  --shadow-l: 0 14px 48px rgba(0,0,0,0.18);

  --space-8: 8px;
  --space-12: 12px;
  --space-16: 16px;
  --space-20: 20px;
  --space-24: 24px;
  --space-32: 32px;
  --space-40: 40px;
  --space-48: 48px;
  --space-60: 60px;
  --maxw: 1160px;
}

/* -------------------------------
   3) TYPOGRAPHY
--------------------------------*/
body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--color-ink);
  background: var(--color-accent);
  font-size: 16px;
}

h1, h2, h3, h4 { font-family: 'Montserrat', 'Inter', Arial, sans-serif; color: var(--color-primary); line-height: 1.2; }

h1 { font-size: 32px; letter-spacing: -0.02em; }
h2 { font-size: 24px; margin-top: var(--space-24); }
h3 { font-size: 18px; color: var(--color-ink); }

p { margin: 0 0 var(--space-16); color: var(--color-ink); }
strong { font-weight: 700; }

/* Links */
a { color: var(--color-secondary); text-decoration-thickness: 2px; text-underline-offset: 2px; }
a:hover { color: #b35f36; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--ca-teal); outline-offset: 3px; border-radius: 6px; }

/* Lists */
ul li, ol li { margin-bottom: 10px; }

/* -------------------------------
   4) LAYOUT CONTAINERS (FLEX ONLY)
--------------------------------*/
.container {
  width: 100%;
  padding: 0 var(--space-20);
  display: flex; /* flex-only layout */
  justify-content: center;
}

.content-wrapper {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex; /* flex-only layout */
  flex-direction: column;
  gap: var(--space-20);
}

/* Mandatory spacing pattern */
.section { margin-bottom: 60px; padding: 40px 20px; }

/* Default <section> spacing for pages without .section class */
section { margin-bottom: var(--space-60); padding: var(--space-40) var(--space-20); }

/* Generic grids using flex-wrap (no grid) */
.content-grid { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; }

.text-image-section { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }

/* Cards and patterns */
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; background: var(--color-white); border-radius: var(--radius-m); box-shadow: var(--shadow-s); padding: var(--space-20); }

.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

/* Testimonial layout (readability on light background) */
.testimonial-card { display: flex; align-items: center; gap: 20px; padding: 20px; background: #ffffff; color: #111418; border: 1px solid rgba(47,62,70,0.08); border-radius: var(--radius-m); box-shadow: var(--shadow-s); }
.testimonial-card blockquote { margin: 0; font-style: italic; color: #111418; }
.testimonial-card blockquote::before { content: "\201C"; color: var(--ca-pink); font-size: 26px; margin-right: 8px; vertical-align: text-top; }

/* Ensure spacing between cards/sections */
article, .testimonial-card, .card, .feature-item, .text-section { margin-bottom: 20px; }

/* -------------------------------
   5) HEADER & NAVIGATION
--------------------------------*/
header {
  position: sticky; top: 0; z-index: 1000; background: var(--color-white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

header > .container { align-items: center; justify-content: space-between; gap: var(--space-16); padding-top: 14px; padding-bottom: 14px; }

.logo img { height: 36px; width: auto; }

.main-nav { display: none; gap: 14px; align-items: center; }
.main-nav a { padding: 10px 12px; border-radius: 999px; color: var(--color-primary); background: transparent; transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease; }
.main-nav a:hover { background: var(--color-accent); transform: translateY(-1px); }

/* Artistic accent dots under active links (decorative) */
.main-nav a:focus-visible { background: #ECF2F3; }

/* Burger */
.mobile-menu-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 10px; color: var(--color-white);
  background: var(--color-secondary);
  box-shadow: var(--shadow-s);
  transition: transform 0.2s ease, background 0.25s ease;
}
.mobile-menu-toggle:hover { transform: translateY(-1px); background: #b35f36; }

/* Mobile menu overlay (full screen) */
.mobile-menu {
  position: fixed; inset: 0; z-index: 1200; background: rgba(0,0,0,0.2);
  display: flex; /* flex to host the sliding panel */
  justify-content: flex-end; align-items: stretch;
  transform: translateX(100%);
  transition: transform 0.35s ease;
}
.mobile-menu.open { transform: translateX(0%); }

/* Sliding panel */
.mobile-menu .mobile-nav {
  width: 85%; max-width: 420px; background: var(--color-primary); color: var(--color-white);
  padding: var(--space-32) var(--space-24);
  display: flex; flex-direction: column; gap: 14px;
  box-shadow: var(--shadow-l);
  position: relative;
}
.mobile-menu-close {
  position: absolute; right: 14px; top: 14px; z-index: 2;
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--ca-purple); color: var(--color-white);
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-s);
}
.mobile-nav a { color: var(--color-white); padding: 12px 14px; border-radius: 12px; transition: background 0.25s ease, transform 0.2s ease; }
.mobile-nav a:hover { background: rgba(255,255,255,0.08); transform: translateX(2px); }

/* Desktop nav */
@media (min-width: 992px) {
  .main-nav { display: flex; }
  .mobile-menu-toggle { display: none; }
  .mobile-menu { display: none; }
}

/* -------------------------------
   6) HERO SECTION – Creative Artistic
--------------------------------*/
.hero { position: relative; overflow: hidden; background: var(--color-primary); color: var(--color-white); border-bottom-left-radius: 24px; border-bottom-right-radius: 24px; }
.hero .container { padding-top: var(--space-48); padding-bottom: var(--space-48); }
.hero .content-wrapper { gap: var(--space-20); }
.hero h1 { color: var(--color-white); font-size: 34px; }
.hero p { color: #EAF0F2; }

/* Decorative solid shapes (creative, non-content) */
.hero::before, .hero::after {
  content: ""; position: absolute; inset: auto auto auto auto; pointer-events: none; opacity: 0.18; z-index: 0;
}
.hero::before {
  width: 220px; height: 220px; border-radius: 28px; background: var(--ca-teal);
  top: -60px; right: -40px; transform: rotate(18deg);
}
.hero::after {
  width: 320px; height: 320px; border-radius: 50px; background: var(--ca-amber);
  bottom: -120px; left: -80px; transform: rotate(-8deg);
}
.hero .content-wrapper > * { position: relative; z-index: 1; }

/* -------------------------------
   7) TEXT BLOCKS & BUTTONS
--------------------------------*/
.text-section { display: flex; flex-direction: column; gap: 12px; }

/* Treat links in .text-section as buttons (CTA) */
.text-section a[href^="http"],
.text-section a[href^="mailto"],
.text-section a[href^="tel"],
.text-section > a {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 18px; border-radius: 999px; font-weight: 600;
  background: var(--color-secondary); color: var(--color-white);
  box-shadow: var(--shadow-s);
  transition: transform 0.2s ease, background 0.25s ease, box-shadow 0.25s ease;
}
.text-section > a + a { background: var(--ca-purple); }
.text-section a:hover { transform: translateY(-1px); box-shadow: var(--shadow-m); }

/* Secondary outline style when inside light sections */
section:not(.hero) .text-section a[href^="tel"],
section:not(.hero) .text-section a[href^="mailto"] {
  background: var(--color-white); color: var(--color-secondary); border: 2px solid var(--color-secondary);
}
section:not(.hero) .text-section a[href^="tel"]:hover,
section:not(.hero) .text-section a[href^="mailto"]:hover { background: var(--color-secondary); color: var(--color-white); }

/* Icon inline spacing if icons exist */
.text-section img + a, .text-section a + img { margin-left: 6px; }
.text-section img[alt*="Telefon"], .text-section img[alt*="E-Mail"], .text-section img[src*="icon-"] { display: inline; width: 18px; height: 18px; vertical-align: -3px; }

/* Articles styled as creative cards */
article { background: var(--color-white); border: 1px solid rgba(47,62,70,0.08); border-radius: var(--radius-m); padding: var(--space-20); box-shadow: var(--shadow-s); }
article h3 { margin: 0 0 6px; }
article a { align-self: flex-start; }

/* -------------------------------
   8) SECTIONS THEMING
--------------------------------*/
/* Alternate light/white backgrounds */
main section:nth-of-type(odd):not(.hero) { background: var(--color-accent); }
main section:nth-of-type(even):not(.hero) { background: #FFFFFF; }

/* Section headings with accent underline */
.content-wrapper > h2 {
  position: relative; padding-bottom: 6px;
}
.content-wrapper > h2::after {
  content: ""; display: block; width: 64px; height: 6px; border-radius: 6px;
  background: var(--ca-pink);
  margin-top: 8px;
}

/* Artistic dividers for lists */
.text-section ul li::marker { color: var(--ca-purple); }
.text-section ol li::marker { color: var(--ca-amber); font-weight: 700; }

/* -------------------------------
   9) FOOTER
--------------------------------*/
footer { background: var(--color-primary); color: var(--color-white); padding-top: var(--space-40); padding-bottom: var(--space-40); margin-top: var(--space-60); }
footer .content-wrapper { gap: var(--space-20); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 10px 16px; }
.footer-nav a { color: #E3ECEE; padding: 8px 12px; border-radius: 999px; background: rgba(255,255,255,0.06); transition: background 0.25s ease, transform 0.2s ease; }
.footer-nav a:hover { background: rgba(255,255,255,0.12); transform: translateY(-1px); }
footer address, footer p, footer a { color: #EAF0F2; }

/* -------------------------------
   10) COOKIE CONSENT COMPONENTS
--------------------------------*/
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1400;
  background: #FFFFFF; color: var(--color-ink);
  box-shadow: 0 -8px 28px rgba(0,0,0,0.12);
  border-top: 4px solid var(--ca-purple);
  transform: translateY(100%);
  transition: transform 0.35s ease;
}
.cookie-banner.show { transform: translateY(0%); }
.cookie-inner { display: flex; flex-direction: column; gap: var(--space-16); padding: var(--space-20); max-width: var(--maxw); margin: 0 auto; }
.cookie-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-buttons .btn { display: inline-flex; align-items: center; justify-content: center; padding: 10px 16px; border-radius: 999px; font-weight: 600; }
.cookie-accept { background: var(--ca-teal); color: #fff; }
.cookie-reject { background: #ECEFF1; color: var(--color-ink); border: 1px solid #D7E0E3; }
.cookie-settings { background: var(--color-secondary); color: #fff; }
.cookie-accept:hover { filter: brightness(0.95); }
.cookie-reject:hover { background: #E4EAED; }
.cookie-settings:hover { background: #b35f36; }

/* Preferences Modal */
.cookie-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 1500; opacity: 0; pointer-events: none; transition: opacity 0.25s ease; }
.cookie-overlay.open { opacity: 1; pointer-events: auto; }
.cookie-modal { position: fixed; z-index: 1510; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(0.98); opacity: 0; transition: transform 0.25s ease, opacity 0.25s ease; background: #fff; width: 92%; max-width: 680px; border-radius: var(--radius-l); box-shadow: var(--shadow-l); padding: var(--space-24); display: flex; flex-direction: column; gap: var(--space-16); }
.cookie-modal.open { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.cookie-modal h3 { margin: 0; }
.cookie-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; border-bottom: 1px dashed #E5EBED; }
.cookie-toggle { display: inline-flex; align-items: center; gap: 8px; }
.cookie-badge { padding: 6px 10px; border-radius: 999px; background: var(--color-accent); color: var(--color-primary); font-weight: 600; }

/* -------------------------------
   11) ACCESSIBILITY & STATES
--------------------------------*/
::selection { background: rgba(201,107,60,0.25); }
[hidden] { display: none !important; }

/* -------------------------------
   12) RESPONSIVE RULES (mobile-first)
--------------------------------*/
@media (min-width: 600px) {
  h1 { font-size: 36px; }
  h2 { font-size: 28px; }
  .logo img { height: 40px; }
}

@media (min-width: 768px) {
  .text-image-section { flex-direction: row; }
  .hero .container { padding-top: 70px; padding-bottom: 70px; }
  h1 { font-size: 40px; }
}

@media (min-width: 992px) {
  h1 { font-size: 48px; }
  h2 { font-size: 32px; }
}

/* Ensure mobiles stack neatly */
@media (max-width: 768px) {
  .text-image-section { flex-direction: column; align-items: center; }
  .content-grid { justify-content: flex-start; }
}

/* -------------------------------
   13) MICRO-INTERACTIONS & UTILITIES
--------------------------------*/
/* Subtle lift on cards */
.card:hover, article:hover, .testimonial-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-m); transition: transform 0.25s ease, box-shadow 0.25s ease; }

/* Utility spacing */
.mt-0 { margin-top: 0 !important; }
.mt-16 { margin-top: 16px !important; }
.mt-24 { margin-top: 24px !important; }
.mb-0 { margin-bottom: 0 !important; }

/* -------------------------------
   14) PAGE-SPECIFIC POLISH
--------------------------------*/
/* Index: benefits list spacing */
.hero ul { margin: 0; }
.hero li { color: #EAF0F2; }

/* Testimonials within sections already styled for readability */

/* Footer addresses */
footer address { font-style: normal; }

/* -------------------------------
   15) FLEXBOX-ONLY SAFEGUARDS
--------------------------------*/
/* Enforce flex for common layout wrappers */
header nav, .footer-nav, .card-container, .content-grid, .text-image-section, .feature-item, .testimonial-card, .content-wrapper, .cookie-buttons, .cookie-inner {
  display: flex;
}

/* Alignment rules per requirements */
.text-image-section { align-items: center; }
.feature-item { align-items: flex-start; }

/* -------------------------------
   16) COLOR CONTRAST FOR TESTIMONIALS
--------------------------------*/
/* Ensure dark text on light bg for testimonials/reviews */
.testimonial-card, .testimonial-card p, .testimonial-card blockquote { color: #101317; }

/* -------------------------------
   17) PREVENT OVERLAP & Z-INDEX SAFETY
--------------------------------*/
.hero, header, .mobile-menu, .cookie-banner, .cookie-modal, .cookie-overlay { z-index: auto; }
header { z-index: 1000; }
.mobile-menu { z-index: 1200; }
.cookie-banner { z-index: 1400; }
.cookie-overlay { z-index: 1500; }
.cookie-modal { z-index: 1510; }

/* -------------------------------
   18) PRINT BASIC (optional)
--------------------------------*/
@media print {
  .mobile-menu, .mobile-menu-toggle, .cookie-banner, .cookie-overlay, .cookie-modal { display: none !important; }
  header { position: static; box-shadow: none; }
}

/* End of style.css */
