/* =====================================================
   CSS RESET & BASELINE (Normalize, box-sizing, base font)
   ===================================================== */
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-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}

/* Set base font size and box-sizing for all */
*, *:before, *:after {
  box-sizing: inherit;
}

html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
body {
  font-family: 'Roboto', Arial, sans-serif;
  background: #F7F8FA;
  color: #263A3A;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #263A3A;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:active {
  color: #E1A95F;
}
ul, ol {
  margin-left: 24px;
  margin-bottom: 16px;
}
li {
  margin-bottom: 8px;
}

address {
  font-style: normal;
  color: #8C8C90;
  font-size: 15px;
  margin-top: 10px;
}

/* ========================================
    TYPOGRAPHY / HEADINGS / DISPLAY
   ======================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Lato', 'Roboto', Arial, sans-serif;
  color: #263A3A;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}
h1 {
  font-size: 2.3rem;
  line-height: 1.15;
  margin-bottom: 28px;
}
h2 {
  font-size: 1.7rem;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 14px;
}
h4, h5, h6 {
  font-size: 1.1rem;
  margin-bottom: 12px;
}
p, .tagline {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  margin-bottom: 18px;
  color: #263A3A;
}
.tagline {
  color: #8C8C90;
  font-style: italic;
}

strong {
  font-weight: 700;
}

blockquote {
  font-family: 'Lato', 'Roboto', Arial, sans-serif;
  font-style: italic;
  color: #263A3A;
  background: #F1F2F6;
  border-left: 4px solid #E1A95F;
  padding: 14px 24px;
  border-radius: 10px;
  margin-bottom: 10px;
  font-size: 1.05rem;
}

/* ==================
   LAYOUT CONTAINERS
   ================== */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 18px;
}
.content-wrapper {
  width: 100%;
  background: #FFFFFF;
  border-radius: 18px;
  box-shadow: 0 2px 18px rgba(38,58,58,0.06); /* subtle shadow */
  padding: 32px 24px;
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.text-section {
  background: #FAFAFE;
  box-shadow: 0 2px 10px rgba(38,58,58,0.03);
}

/* .section spacing */
section {
  margin-bottom: 60px;
  padding: 40px 0 0 0;
  position: relative;
}
.section {
  margin-bottom: 60px; 
  padding: 40px 20px;
  background: transparent;
}

/* CARD CONTAINERS / FLEXBOX UTILITY */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #FAFAFE;
  border-radius: 12px;
  box-shadow: 0 1px 8px rgba(38,58,58,0.07);
  padding: 26px 22px;
  margin-bottom: 20px;
  position: relative;
  min-width: 260px;
  flex: 1 1 310px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.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;
  flex-direction: column;
  gap: 16px;
  background: #F6F8F9;
  border-radius: 14px;
  border: 1px solid #E1E4EC;
  padding: 20px;
  margin-bottom: 24px;
  box-shadow: 0 1px 10px rgba(38,58,58,0.05);
}
.testimonial-card blockquote {
  background: transparent;
  padding: 0;
  border-left: none;
  margin-bottom: 6px;
  color: #263A3A;
  font-size: 1.05rem;
}
.testimonial-card span {
  color: #E1A95F;
  font-size: 1.15rem;
  margin-left: 10px;
}
.testimonial-card div {
  color: #8C8C90;
  font-size: 0.95rem;
}

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

/* Features/Benefit - icon in list */
ul li img, ol li img {
  width: 22px;
  height: 22px;
  margin-right: 10px;
  vertical-align: middle;
  filter: grayscale(60%);
}
ul li, ol li {
  display: flex;
  align-items: center;
  gap: 7px;
}

/* =============================
   BUTTONS & CTA
   ============================= */
.cta-btn {
  display: inline-block;
  padding: 12px 34px;
  background: #263A3A;
  color: #fff;
  border: none;
  border-radius: 30px;
  font-family: 'Lato', 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  margin-top: 8px;
  margin-bottom: 10px;
  box-shadow: 0 1px 8px rgba(38,58,58,0.08);
  cursor: pointer;
  transition: background 0.22s, color 0.22s, transform 0.13s;
}
.cta-btn:hover, .cta-btn:focus {
  background: #E1A95F;
  color: #263A3A;
  transform: translateY(-2px) scale(1.04);
}

button, .button {
  font-family: 'Lato', 'Roboto', Arial, sans-serif;
  border: none;
  border-radius: 22px;
  background: #CFCFEA;
  color: #263A3A;
  font-size: 1rem;
  padding: 8px 20px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.18s;
}
button:hover, button:focus, .button:hover, .button:focus {
  background: #E1A95F;
  color: #263A3A;
  box-shadow: 0 2px 10px rgba(38,58,58,0.13);
}

/* ================================
   HEADER / NAVIGATION DESKTOP
   ================================ */
header {
  width: 100%;
  background: #fff;
  box-shadow: 0 1.5px 10px rgba(38,58,58,0.03);
  position: relative;
  z-index: 200;
}
header nav {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: flex-start;
  padding: 16px 0 12px 0;
}
header nav a {
  font-family: 'Lato', 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  color: #263A3A;
  font-weight: 500;
  margin-right: 12px;
  padding: 6px 10px;
  transition: color 0.2s, background 0.18s, border-radius 0.18s;
  border-radius: 16px;
}
header nav a:hover, header nav a:focus {
  color: #E1A95F;
  background: #F6EFE4;
}
header nav img {
  margin-right: 16px;
  width: 40px;
  height: 40px;
  vertical-align: middle;
}

@media (max-width: 768px) {
  header nav {
    display: none; /* Hide desktop on mobile */
  }
}

/* ================================
   MOBILE NAVIGATION & OVERLAY MENU
   ================================ */
.mobile-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #CFCFEA;
  color: #263A3A;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 14px;
  position: absolute;
  right: 20px;
  top: 12px;
  font-size: 2rem;
  z-index: 250;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #E1A95F;
  color: #263A3A;
}

.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 900;
  background: rgba(38,58,58,0.80);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateX(100%);
  transition: all 0.36s cubic-bezier(.76,.16,.24,1.07);
}
.mobile-menu.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0);
}
.mobile-menu-close {
  background: #fff;
  color: #263A3A;
  border: none;
  font-size: 2.1rem;
  margin: 18px 24px 0 0;
  border-radius: 12px;
  cursor: pointer;
  width: 42px;
  height: 42px;
  align-self: flex-end;
  box-shadow: 0 1px 8px rgba(38,58,58,0.11);
  transition: background 0.18s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: #E1A95F;
}
.mobile-nav {
  background: #fff;
  border-radius: 18px 0 0 18px;
  margin-top: 32px;
  margin-right: 0;
  width: 87vw;
  max-width: 330px;
  min-height: 89vh;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 32px 24px 28px 32px;
  box-shadow: 0 0px 16px rgba(38,58,58,0.09);
}
.mobile-nav a {
  color: #263A3A;
  font-family: 'Lato', 'Roboto', Arial, sans-serif;
  font-size: 1.07rem;
  font-weight: 600;
  padding: 9px 0;
  margin-bottom: 2px;
  width: 100%;
  border-radius: 8px;
  transition: background 0.18s, color 0.18s;
  letter-spacing: 0.02em;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: #E1A95F;
  color: #263A3A;
}
@media (min-width: 769px) {
  .mobile-menu-toggle {
    display: none;
  }
  .mobile-menu {
    display: none !important;
  }
}

/* =============================
   FOOTER
   ============================= */
footer {
  background: #fff;
  color: #7D7D85;
  padding: 28px 0 16px 0;
  border-top: 1.5px solid #EFEFEF;
  font-size: 0.98rem;
  margin-top: 20px;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  justify-content: center;
  margin-bottom: 12px;
}
footer nav a {
  color: #263A3A;
  font-weight: 500;
  font-size: 0.98rem;
  padding: 4px 8px;
  border-radius: 9px;
  transition: background 0.19s, color 0.19s;
}
footer nav a:hover, footer nav a:focus {
  background: #E1A95F;
  color: #263A3A;
}
footer address, footer div {
  text-align: center;
}
footer address a {
  color: #263A3A;
}

/* =============================
   MAP PLACEHOLDER (Kontakt)
   ============================= */
.map-placeholder {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 8px;
  background: #F1F2F5;
  border-radius: 10px;
  margin-top: 16px;
  margin-bottom: 12px;
  font-size: 1rem;
}
.map-placeholder img {
  width: 36px;
  height: 36px;
}

/* =============================
   COLORS UTILITY CLASSES
   ============================= */
.bg-primary { background: #263A3A!important; color: #fff!important; }
.bg-secondary { background: #CFCFEA!important; color: #263A3A!important; }
.bg-accent { background: #E1A95F!important; color: #263A3A!important; }
.text-primary { color: #263A3A!important; }
.text-secondary { color: #666A7A!important; }
.text-accent { color: #E1A95F!important; }
.bg-light { background: #F7F8FA!important; }

/* =============================
   RESPONSIVENESS
   ============================= */
@media (max-width: 1070px) {
  .container { max-width: 90vw; }
}

@media (max-width: 900px) {
  .container { max-width: 97vw; }
  .content-wrapper { padding: 25px 8px; }
}

@media (max-width: 768px) {
  .section {
    margin-bottom: 32px;
    padding: 24px 6px;
  }
  .content-wrapper, .text-section {
    padding: 16px 8px;
    gap: 12px;
  }
  h1 { font-size: 1.54rem; margin-bottom: 18px; }
  h2 { font-size: 1.18rem; margin-bottom: 12px; }
  h3 { font-size: 1.06rem; margin-bottom: 8px; }
  .testimonial-card { padding: 13px 6px; }
  .card, .map-placeholder {padding: 13px 10px;}
  .card-container, .content-grid, .feature-item, .testimonial-card {
    flex-direction: column;
    gap: 12px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 14px;
  }
}

/* =============================
   TABLES (if used in Policy pages)
   ============================= */
table {
  border-collapse: collapse;
  width: 100%;
  margin-bottom: 24px;
}
th, td {
  border: 1px solid #E1E4EC;
  padding: 10px 14px;
  font-size: 1rem;
}
th {
  background: #F0F2F7;
  font-family: 'Lato', 'Roboto', Arial, sans-serif;
}

/* =============================
   FORMS (basic for Kontakt)
   ============================= */
input, textarea, select {
  display: block;
  width: 100%;
  font-size: 1rem;
  font-family: 'Roboto', Arial, sans-serif;
  border-radius: 8px;
  border: 1.2px solid #BFCFEA;
  background: #FCFCFF;
  padding: 10px 12px;
  margin-bottom: 16px;
  outline: none;
  color: #263A3A;
  transition: border 0.17s;
}
input:focus, textarea:focus, select:focus {
  border: 1.2px solid #E1A95F;
  background: #FFFDF5;
}

label {
  font-family: 'Lato', 'Roboto', Arial, sans-serif;
  font-size: 0.97rem;
  color: #263A3A;
  font-weight: 500;
  margin-bottom: 7px;
}

/* =============================
   COOKIES CONSENT BANNER
   ============================= */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #FFFFFF;
  color: #263A3A;
  box-shadow: 0 -2px 22px rgba(38,58,58,0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 18px 18px 18px 18px;
  z-index: 1200;
  gap: 12px;
  min-height: 60px;
  font-size: 1rem;
  transition: transform 0.33s cubic-bezier(.5,.33,.25,1), opacity 0.3s;
  opacity: 1;
  transform: translateY(0);
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(120%);
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.cookie-banner button {
  min-width: 120px;
  padding: 7px 22px;
  border-radius: 18px;
  font-size: 1rem;
  font-weight: 700;
  margin: 2px 0;
  background: #CFCFEA;
  color: #263A3A;
  transition: background 0.15s, color 0.15s;
}
.cookie-banner button.accept {
  background: #E1A95F;
  color: #263A3A;
}
.cookie-banner button.accept:hover,
.cookie-banner button.accept:focus {
  background: #263A3A;
  color: #fff;
}
.cookie-banner button.settings {
  background: #CFCFEA;
}
.cookie-banner button.settings:hover,
.cookie-banner button.settings:focus {
  background: #E1A95F;
  color: #263A3A;
}
.cookie-banner button.reject {
  background: #f7f7fb;
  color: #263A3A;
  border: 1px solid #D7D7E9;
}
.cookie-banner button.reject:focus,
.cookie-banner button.reject:hover {
  background: #263A3A;
  color: #fff;
  border-color: #263A3A;
}

@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    font-size: 0.97rem;
    padding: 10px 4px;
  }
}

/* COOKIES PREFERENCES MODAL */
.cookie-modal-overlay {
  position: fixed;
  top:0; left: 0; right: 0; bottom: 0;
  width:100vw; height:100vh;
  z-index: 1300;
  background: rgba(38,58,58,0.30);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.23s cubic-bezier(.6,.01,.39,1);
}
.cookie-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal {
  background: #fff;
  padding: 36px 28px 24px 28px;
  border-radius: 16px;
  width: 92vw;
  max-width: 420px;
  box-shadow: 0 6px 36px rgba(38,58,58,0.13);
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.cookie-modal h2 {
  font-size: 1.2rem;
  font-family: 'Lato', 'Roboto', Arial, sans-serif;
  color: #263A3A;
  margin-bottom: 16px;
}
.cookie-modal .cookie-category {
  margin-bottom: 17px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.cookie-modal .toggle {
  width: 38px;
  height: 22px;
  border-radius: 13px;
  background: #CFCFEA;
  border: 1px solid #E1E4EC;
  transition: background 0.17s;
  position: relative;
  cursor: pointer;
}
.cookie-modal .toggle[aria-checked="true"] {
  background: #E1A95F;
}
.cookie-modal .toggle::after {
  content: '';
  display: block;
  position: absolute;
  left: 3px; top: 3px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(38,58,58,0.13);
  transition: left 0.19s;
}
.cookie-modal .toggle[aria-checked="true"]::after {
  left: 18px;
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}
.cookie-modal button {
  min-width: 100px;
}

/* Esssential cookies disabled styling */
.cookie-modal .cookie-category[data-essential] .toggle {
  pointer-events: none;
  opacity: 0.5;
  filter: grayscale(80%);
}

@media (max-width: 520px) {
  .cookie-modal {
    padding: 18px 5vw 12px 5vw;
  }
}

/* ==========================
   MICRO-INTERACTIONS & EFFECTS
   ========================== */
.cta-btn, button, .button, .mobile-menu-toggle, .mobile-menu-close, .mobile-nav a {
  outline: none;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s, transform 0.13s;
}
:focus-visible {
  box-shadow: 0 0 0 3px #E1A95F55;
}

/* Simple appearing/fading animation */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  animation: fadeIn 0.5s forwards;
}
@keyframes fadeIn {
  0% { opacity:0; transform:translateY(24px);} 
  100% { opacity:1; transform:translateY(0);}
}

/* ===============
   UTILITIES
   =============== */
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.gap-8 { gap: 8px; }
.gap-16 { gap: 16px; }
.gap-32 { gap: 32px; }
.center { text-align: center !important; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.justify-between {justify-content: space-between;}
.align-center {align-items: center;}
.align-start {align-items: flex-start;}

/* Overlap prevention */
section, .container, .content-wrapper, .card-container,
.card, .testimonial-card, .feature-item, .content-grid, footer, header {
  box-sizing: border-box;
}

/* ===============
   HIDE WHEN JS SHOWS COMPONENTS
   =============== */
[hidden] {display:none!important;}

/* ==========================
   SCANDINAVIAN DECORATIVE DETAILS
   ========================== */
.card, .text-section, .map-placeholder,
.testimonial-card, .feature-item, .cookie-modal, .content-wrapper {
  /* Wood/bamboo/natural feel - by soft shadow, subtle border */
  border: 1px solid #EEF0F8;
}

/* Subtle hover tilt for cards */
.card:hover, .testimonial-card:hover, .feature-item:hover {
  box-shadow: 0 4px 18px rgba(225, 169, 95, 0.14);
  transform: translateY(-2px) scale(1.012);
  transition: box-shadow 0.19s, transform 0.18s;
}

/* ==========================
   PRINT
   ========================== */
@media print {
  header, footer, .cookie-banner, .mobile-menu, .mobile-menu-toggle {
    display: none !important;
  }
  section, .content-wrapper, main {
    box-shadow: none !important;
    background: #fff !important;
    padding: 0 !important;
  }
}
