/* ===== CSS RESET & ROOT ===== */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0; padding: 0; border: 0;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
html { font-size: 100%; }
body { line-height: 1.5; background: #fff; color: #1A2540; min-height: 100vh; }
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
img, picture, svg {
  display: block;
  max-width: 100%;
  height: auto;
}
ul, ol {
  list-style: none;
}
a { color: inherit; text-decoration: none; }
button { background: none; border: none; cursor: pointer; font: inherit; }
:focus { outline: none; }
::-webkit-scrollbar { width: 8px; background: #f2f2f2; }
::-webkit-scrollbar-thumb { background: #f5cb5c; border-radius: 4px; }

/* ===== CSS VARIABLES (with fallbacks for main colors) ===== */
:root {
  --color-primary: #1A2540;
  --color-secondary: #F5CB5C;
  --color-accent: #FFFFFF;
  --color-body: #1A2540;
  --color-muted: #8a95b5;
  --color-bg-light: #fff;
  --color-bg-card: #fff;
  --font-display: 'Montserrat', Arial, sans-serif;
  --font-body: 'Roboto', Arial, sans-serif;
  -- radius-s: 8px;
  -- radius-m: 12px;
  --shadow-card: 0 2px 16px rgba(30,33,44,0.06);
  --transition-main: 0.18s cubic-bezier(0.4,0,0.2,1);
}

/* Fall back for custom props */
body { background: #fff; color: #1A2540; }


/* ===== TYPOGRAPHY ===== */
body, input, button, textarea, select {
  font-family: var(--font-body), Arial, sans-serif;
  font-size: 16px;
  color: var(--color-body);
  background: var(--color-bg-light);
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display), Arial, sans-serif;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}
h1 { font-size: 2.8rem; line-height: 1.1; margin-bottom: 24px; }
h2 { font-size: 2rem; line-height: 1.15; margin-bottom: 20px; }
h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: 12px; }
h4, h5, h6 { font-size: 1rem; font-weight: 500; }
p, ul, ol, li {
  font-size: 1rem;
  color: var(--color-body);
  margin-bottom: 12px;
  line-height: 1.7;
}
.subheadline {
  font-size: 1.25rem;
  color: var(--color-muted);
  margin-bottom: 24px;
}
strong { font-weight: 600; color: var(--color-primary); }

/* ===== CONTAINER & LAYOUT ===== */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
section {
  margin-bottom: 60px;
  padding: 40px 0;
  background: var(--color-bg-light);
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
  justify-content: flex-start;
  margin-bottom: 8px;
}

/* MANDATORY FLEXBOX PATTERNS */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--color-bg-card);
  border-radius: var(-- radius-s);
  box-shadow: var(--shadow-card);
  padding: 32px 24px;
  min-width: 240px;
}
.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;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.service-list,
.testimonials {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.service-item {
  background: var(--color-bg-card);
  border-radius: var(-- radius-s);
  box-shadow: var(--shadow-card);
  padding: 28px 20px 20px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 230px;
  flex: 1 1 250px;
  margin-bottom: 20px;
  transition: box-shadow var(--transition-main), transform var(--transition-main);
}
.service-item:hover {
  box-shadow: 0 4px 20px rgba(30,33,44,0.12);
  transform: translateY(-3px) scale(1.015);
}

/* ===== HEADER & NAVBAR ===== */
header {
  width: 100%;
  background: var(--color-accent);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(30,33,44,0.04);
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 14px 20px;
}
header img[alt="RedeKraft Zurich"] {
  height: 36px;
  width: auto;
  margin-right: 28px;
}
header nav {
  display: flex;
  flex-direction: row;
  gap: 18px;
}
header nav a {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-primary);
  padding: 7px 0;
  transition: color .14s;
  border-bottom: 2px solid transparent;
}
header nav a:hover,
header nav a:focus {
  color: var(--color-secondary);
  border-bottom: 2px solid var(--color-secondary);
}
.cta-btn {
  background: var(--color-secondary);
  color: var(--color-primary);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  border: none;
  border-radius: var(-- radius-m);
  padding: 11px 28px;
  margin-left: 32px;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(30,33,44,0.03);
  transition: background var(--transition-main), color var(--transition-main), box-shadow var(--transition-main);
  display: inline-block;
}
.cta-btn:hover,
.cta-btn:focus {
  background: var(--color-primary);
  color: var(--color-accent);
  box-shadow: 0 6px 24px rgba(30,33,44,0.10);
}

/* --- MOBILE MENU --- */
.mobile-menu-toggle {
  display: none;
  font-size: 2rem;
  color: var(--color-primary);
  background: transparent;
  border: none;
  margin-left: 24px;
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--color-primary);
  z-index: 200;
  width: 100vw;
  height: 100vh;
  transform: translateX(100%);
  transition: transform .34s cubic-bezier(.67,.13,.1,.81);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 40px 28px 0 28px;
  opacity: 0;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  font-size: 2rem;
  color: var(--color-secondary);
  background: none;
  border: none;
  align-self: flex-end;
  margin-bottom: 28px;
  cursor: pointer;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 20px;
}
.mobile-nav a {
  color: var(--color-secondary);
  font-size: 1.25rem;
  font-family: var(--font-display);
  font-weight: 600;
  padding: 10px 0;
  border-radius: var(-- radius-s);
  transition: background var(--transition-main), color var(--transition-main);
}
.mobile-nav a:focus, .mobile-nav a:hover {
  background: rgba(245,203,92,0.13);
  color: #fff;
}

/* Hamburger visible on mobile only */
@media (max-width: 1024px) {
  header nav, .cta-btn {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* --- MAIN & SECTIONS --- */
main {
  width: 100%;
  min-height: 400px;
}
section {
  border-radius: 0;
  box-shadow: none;
  background: var(--color-bg-light);
  margin-bottom: 60px;
}


/* --- SERVICE LIST & CARDS --- */
.service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 16px;
}
.service-item .price, .service-list .price {
  display: inline-block;
  margin-top: 8px;
  font-weight: 600;
  color: var(--color-primary);
  font-size: 1.08rem;
  background: rgba(245,203,92,0.10);
  padding: 4px 12px;
  border-radius: var(-- radius-s);
}

/* --- TESTIMONIALS --- */
.testimonials {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: #fcfcfc;
  border-radius: var(-- radius-s);
  box-shadow: 0 2px 16px rgba(30,33,44,0.09);
  padding: 28px 22px;
  min-width: 260px;
  max-width: 440px;
  margin-bottom: 20px;
  font-size: 1.07rem;
  color: var(--color-primary);
  transition: box-shadow var(--transition-main), transform var(--transition-main);
}
.testimonial-card p {
  color: var(--color-primary);
  margin-bottom: 12px;
  font-style: italic;
}
.testimonial-card span {
  color: var(--color-muted);
  font-size: 1rem;
  font-family: var(--font-display);
}
.testimonial-card:hover {
  box-shadow: 0 4px 24px rgba(30,33,44,0.17);
  transform: translateY(-3px) scale(1.01);
}

/* --- FOOTER --- */
footer {
  background: #f7f7fb;
  border-top: 1px solid #eaeaea;
  padding: 32px 0;
}
footer .container {
  flex-direction: column;
  align-items: center;
  gap: 22px;
}
footer img {
  width: 34px;
  height: 34px;
  margin-bottom: 8px;
  display: block;
  filter: grayscale(0.6) brightness(1.1);
}
footer nav {
  display: flex;
  flex-direction: row;
  gap: 22px;
}
footer nav a {
  color: var(--color-muted);
  font-size: 1rem;
  font-family: var(--font-display);
  margin-bottom: 0;
  border-bottom: 1px solid transparent;
  padding: 4px 0;
  transition: color .13s, border-bottom-color .13s;
}
footer nav a:hover,
footer nav a:focus {
  color: var(--color-primary);
  border-bottom: 1px solid var(--color-primary);
}
footer p {
  color: var(--color-muted);
  font-size: .96rem;
  margin-top: 10px;
}


/* --- MAP/CONTACT --- */
.map {
  background: #f5f6fa;
  color: #7f899c;
  font-size: 1rem;
  border-radius: var(-- radius-s);
  padding: 18px 12px;
  margin-top: 12px;
}

/* ===== OVERALL UTILITIES ===== */
.mt-2 { margin-top: 16px !important; }
.mb-2 { margin-bottom: 16px !important; }
.mb-3 { margin-bottom: 24px !important; }
.text-center { text-align: center !important; }

/* ===== BUTTONS & FORMS ===== */
button, .cta-btn {
  box-shadow: 0 2px 8px rgba(30,33,44,0.02);
  font-family: var(--font-display);
  transition: background var(--transition-main), color var(--transition-main), box-shadow var(--transition-main);
}
button:active, .cta-btn:active {
  transform: scale(0.97);
}
button:focus-visible, .cta-btn:focus-visible {
  outline: 2px solid var(--color-secondary);
}

/* ====== RESPONSIVE DESIGN ====== */
@media (max-width: 1024px) {
  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.2rem; }
}
@media (max-width: 900px) {
  .container { max-width: 96vw; }
  .service-list, .testimonials {
    gap: 16px;
  }
  .service-item, .testimonial-card { min-width: 210px; }
}
@media (max-width: 768px) {
  section, .section {
    padding: 28px 0;
    margin-bottom: 42px;
  }
  .container {
    padding: 0 10px;
  }
  header .container {
    padding: 10px 10px 8px 10px;
  }
  .content-wrapper, .card-container, .content-grid, .service-list, .feature-item, .testimonials {
    flex-direction: column !important;
    gap: 16px;
    justify-content: flex-start;
    align-items: stretch;
  }
  .card, .service-item, .testimonial-card {
    min-width: unset;
    width: 100%;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
  }
  .cta-btn { margin-left: 0; margin-top: 16px; }
}
@media (max-width: 480px) {
  h1 { font-size: 1.5rem; }
}


/* ===== ANIMATIONS & FX ===== */
.card, .service-item, .testimonial-card, .cta-btn {
  transition: box-shadow 0.15s, transform 0.13s, background 0.12s, color 0.12s;
}

/* ========== COOKIE BANNER ========== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #222A3A;
  color: #fff;
  box-shadow: 0 -6px 36px rgba(30,33,44,0.09);
  padding: 26px 18px 22px 18px;
  z-index: 1200;
  font-size: 1rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  opacity: 1;
  transition: transform .41s cubic-bezier(.4,.21,.1,1), opacity .23s;
  border-radius: 10px 10px 0 0;
}
.cookie-banner.hide { opacity: 0; pointer-events: none; transform: translateY(40px); }
.cookie-banner-buttons {
  display: flex; gap: 16px; margin-top: 10px;
}
.cookie-btn {
  font-family: var(--font-display);
  border: none;
  border-radius: var(-- radius-s);
  padding: 9px 22px;
  font-size: 1rem;
  font-weight: 600;
  margin: 0 4px;
  cursor: pointer;
  transition: background var(--transition-main), color var(--transition-main), box-shadow var(--transition-main);
}
.cookie-btn.accept {
  background: var(--color-secondary);
  color: var(--color-primary);
}
.cookie-btn.accept:hover,
.cookie-btn.accept:focus {
  background: #ffd981;
}
.cookie-btn.reject {
  background: #d0d5e6;
  color: var(--color-primary);
}
.cookie-btn.reject:hover,
.cookie-btn.reject:focus {
  background: #c3cbe4;
}
.cookie-btn.settings {
  background: transparent;
  color: #fff;
  border: 1.5px solid #fff;
}
.cookie-btn.settings:hover,
.cookie-btn.settings:focus {
  background: rgba(255,255,255,0.07);
  color: var(--color-secondary);
  border-color: var(--color-secondary);
}

/* ========== COOKIE DIALOG/MODAL ========== */
.cookie-modal-overlay {
  position: fixed;
  z-index: 1300;
  left: 0; right: 0; bottom: 0; top: 0;
  background: rgba(25,30,40,0.36);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .23s;
}
.cookie-modal {
  background: #fff;
  color: var(--color-primary);
  border-radius: 14px;
  box-shadow: 0 8px 38px rgba(30,33,44,0.17);
  width: 96%;
  max-width: 460px;
  padding: 36px 30px 32px 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  opacity: 1;
  transform: translateY(0);
  animation: cookieModalFadeIn .34s cubic-bezier(.69,0,.12,1);
}
@keyframes cookieModalFadeIn {
  from { opacity:0; transform: translateY(32px); }
  to { opacity:1; transform: translateY(0); }
}
.cookie-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  font-family: var(--font-display);
}
.cookie-modal-close {
  background: none;
  border: none;
  color: var(--color-primary);
  font-size: 1.6rem;
  cursor: pointer;
  margin-left: 16px;
  opacity: .8;
}
.cookie-modal-content {
  margin-top: 5px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.cookie-toggle {
  appearance: none;
  outline: none;
  width: 36px;
  height: 20px;
  border-radius: 12px;
  background: #dadce6;
  transition: background .23s;
  position: relative;
  cursor: pointer;
}
.cookie-toggle:checked {
  background: var(--color-secondary);
}
.cookie-toggle::before {
  content: "";
  position: absolute;
  left: 3px; top: 3px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(30,33,44,0.07);
  transition: transform .22s cubic-bezier(.89,.07,.36,1);
}
.cookie-toggle:checked::before {
  transform: translateX(16px);
}
.cookie-category label {
  font-family: var(--font-body);
  font-size: 1.07rem;
  cursor: pointer;
}
.cookie-category.essential label {
  color: #898a8e;
}
.cookie-category.essential .cookie-toggle {
  opacity: .45;
  pointer-events: none;
}

/* Small screens for cookie banner/modal */
@media (max-width: 500px) {
  .cookie-banner {
    padding: 16px 7px 16px 7px;
    font-size: 0.97rem;
  }
  .cookie-modal {
    padding: 18px 6px 22px 6px;
  }
}

/* ====== ACCESSIBILITY ====== */
[tabindex]:focus-visible {
  outline: 2px dashed var(--color-secondary);
}

/* ====== MICRO-INTERACTIONS ====== */
.cta-btn, .cookie-btn, button, .service-item, .testimonial-card {
  will-change: transform, box-shadow;
}

/* ==== MISC ==== */
a:focus, .cta-btn:focus, .mobile-menu-close:focus, .mobile-menu-toggle:focus,
.cookie-btn:focus, .cookie-modal-close:focus, .cookie-toggle:focus {
  outline: 2px solid var(--color-secondary);
  outline-offset: 1px;
}

/* Avoid overlap and set proper minimum spacing for all content wrappers */
.content-wrapper + .content-wrapper,
.section + .section,
.card + .card,
.service-item + .service-item,
.testimonial-card + .testimonial-card {
  margin-top: 20px;
}

/* --- VISUAL REFINEMENTS --- */
hr {
  border: none;
  border-top: 1px solid #e5e7f0;
  margin: 32px 0;
}

/* Remove redundant border radius from sections on mobile */
@media (max-width:480px) {
  section, .section {
    border-radius: 0;
    box-shadow: none;
  }
}

/* --- Card borders only on hover for extra minimalism --- */
.card, .service-item { border: 1.5px solid #f7f7fb; }
.card:hover, .service-item:hover { border: 1.5px solid var(--color-secondary); }

/* --- Hide scroll on body when menu/modal open (expected to be toggled via .no-scroll on <body>) --- */
body.no-scroll { overflow: hidden !important; }

/* END OF CSS */
