/* CSS RESET & NORMALIZE */
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,
main, 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;
}
article, aside, details, figcaption, figure,
footer, header, hgroup, main, menu, nav, section {
  display: block;
}
ul, ol {
  list-style: none;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  text-decoration: none;
  color: inherit;
}
button {
  border: none;
  background: none;
  font: inherit;
  cursor: pointer;
}
input, textarea, select {
  font: inherit;
  border-radius: 0;
}

/* BRAND & SCANDINAVIAN VARIABLES */
:root {
  --color-primary: #2B3856;
  --color-secondary: #A89F68;
  --color-accent: #F2F2F2;
  --color-bg: #FCFCFA;
  --color-white: #fff;
  --color-text: #263040;
  --color-muted: #757575;
  --color-border: #E3E4E4;
  --color-success: #388e3c;
  --color-danger: #c62828;

  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Open Sans', Arial, Helvetica, sans-serif;
}

/* BASE */
html {
  font-size: 16px;
  background: var(--color-bg);
}
body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--color-text);
  background: var(--color-bg);
  min-height: 100vh;
}
.container {
  max-width: 1080px;
  width: 100%;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-primary);
}
h1 { font-size: 2.5rem; line-height: 1.15; margin-bottom: 16px; }
h2 { font-size: 2rem; line-height: 1.20; margin-bottom: 12px; }
h3 { font-size: 1.5rem; line-height: 1.28; margin-bottom: 10px; }
h4 { font-size: 1.1rem; }
p, ul, ol, span, li, a {
  font-size: 1rem;
  line-height: 1.6;
}
pc {
  color: var(--color-muted);
}
p, ul, ol { margin-bottom: 10px; }
strong {
  color: var(--color-secondary);
  font-weight: 600;
}

/* BUTTONS & CTA */
.cta-btn {
  background: var(--color-secondary);
  color: var(--color-white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 32px;
  border-radius: 28px;
  box-shadow: 0 2px 12px rgba(43, 56, 86, 0.07);
  transition: background 0.2s, color 0.2s, box-shadow 0.25s, transform 0.18s;
  letter-spacing: 0.01em;
  display: inline-block;
  margin-top: 12px;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--color-primary);
  color: var(--color-white);
  box-shadow: 0 4px 22px rgba(43, 56, 86, 0.16);
  transform: translateY(-2px) scale(1.03);
}

/* HEADER */
header {
  background: var(--color-white);
  box-shadow: 0 4px 16px rgba(43, 56, 86, 0.04);
  position: relative;
  z-index: 20;
}
header .container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding-top: 12px;
  padding-bottom: 12px;
}
header nav {
  display: flex;
  flex-direction: row;
  gap: 16px;
  align-items: center;
}
header nav a {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  padding: 6px 13px;
  border-radius: 18px;
  color: var(--color-primary);
  transition: background 0.18s, color 0.16s;
}
header nav a:hover,
header nav a:focus {
  background: var(--color-accent);
  color: var(--color-secondary);
}
header img {
  max-height: 42px;
}
/* Hide burger on desktop */
.mobile-menu-toggle {
  display: none;
}

/* BURGER MENU (mobile only) */
.mobile-menu-toggle {
  background: var(--color-white);
  font-size: 2rem;
  line-height: 1;
  color: var(--color-primary);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s, box-shadow 0.18s;
  position: absolute;
  right: 10px;
  top: 14px;
  z-index: 110;
  box-shadow: 0 2px 14px rgba(43,56,86,0.08);
}
.mobile-menu-toggle:active {
  background: var(--color-accent);
}

/* MOBILE MENU OVERLAY */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--color-white);
  box-shadow: 0 12px 40px rgba(43,56,86,0.12);
  z-index: 120;
  transform: translateX(-110%);
  transition: transform 0.38s cubic-bezier(.62,.06,.34,1.11);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 0 0; /* mobile-nav handles its container */
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: var(--color-accent);
  color: var(--color-primary);
  font-size: 2.2rem;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  align-self: flex-end;
  margin: 22px 22px 0 0;
  transition: background 0.18s;
}
.mobile-menu-close:active {
  background: var(--color-secondary);
  color: var(--color-white);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 12px;
  padding: 40px 32px;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 600;
  padding: 14px 8px;
  border-radius: 22px;
  color: var(--color-primary);
  transition: background 0.16s, color 0.16s;
  margin-bottom: 6px;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: var(--color-accent);
  color: var(--color-secondary);
}

/* MAIN SPACING & STRUCTURE */
main {
  margin-top: 0;
  padding-bottom: 90px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-accent);
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(43,56,86,0.04);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}
@media (max-width: 768px){
  .section {
    padding: 32px 8px;
    margin-bottom: 36px;
    border-radius: 10px;
  }
  .container {
    padding: 0 6px;
  }
}

/* FLEXBOX MANDATORY CONTAINERS*/
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--color-white);
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(43,56,86,0.08);
  padding: 24px 18px;
  min-width: 230px;
  transition: box-shadow 0.19s, transform 0.18s;
  display: flex;
  flex-direction: column;
}
.card:hover, .card:focus-within {
  box-shadow: 0 8px 32px rgba(43,56,86,0.14);
  transform: translateY(-2px) scale(1.02);
}
.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;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: var(--color-white);
  border-left: 6px solid var(--color-secondary);
  border-radius: 16px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(43,56,86,0.05);
  color: var(--color-text);
  font-size: 1.05rem;
  transition: box-shadow 0.18s, border-color 0.16s;
  position: relative;
}
.testimonial-card p {
  font-size: 1.08rem;
  margin-bottom: 0;
  color: var(--color-text);
}
.testimonial-card span {
  color: var(--color-secondary);
  font-weight: 700;
  font-size: 0.97rem;
}
.testimonial-card:hover {
  box-shadow: 0 8px 26px rgba(43,56,86,0.12);
  border-left: 6px solid var(--color-primary);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.team-card {
  display: flex;
  flex-direction: column;
  background: var(--color-white);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(43,56,86,0.06);
  padding: 18px 14px;
  margin-bottom: 20px;
  gap: 10px;
  min-width: 220px;
}
.team-card strong { color: var(--color-primary); font-size: 1.1rem; }
.team-card span { color: var(--color-muted); }

/* FAQ / LISTS */
ul, ol {
  margin-left: 16px;
  margin-bottom: 16px;
  color: var(--color-text);
  padding-left: 0;
}
ul li, ol li {
  line-height: 1.7;
  margin-bottom: 10px;
  padding-left: 0.5em;
  font-size: 1rem;
}
ul li strong, ol li strong {
  color: var(--color-secondary);
  font-weight: 600;
}

/* LINK */
a {
  color: var(--color-primary);
  transition: color 0.16s, text-decoration 0.16s;
}
a:not(.cta-btn):hover, a:not(.cta-btn):focus {
  color: var(--color-secondary);
  text-decoration: underline;
}

/* Text-section for address block in Kontakt */
.text-section {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-top: 6px;
  margin-bottom: 12px;
}
.text-section div {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
}
.text-section img {
  width: 22px;
  height: 22px;
}

/* FOOTER */
footer {
  background: var(--color-accent);
  border-top: 1px solid var(--color-border);
  padding: 32px 0 16px 0;
  font-size: 0.98rem;
}
footer .container {
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}
footer nav {
  display: flex;
  flex-direction: row;
  gap: 18px;
  margin-bottom: 8px;
}
footer nav a {
  color: var(--color-primary);
  font-family: var(--font-display);
  font-weight: 500;
  transition: color 0.16s;
  padding: 4px 9px;
  border-radius: 12px;
  background: transparent;
}
footer nav a:hover, footer nav a:focus {
  background: var(--color-secondary);
  color: var(--color-white);
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-contact span {
  display: flex;
  align-items: center;
  color: var(--color-muted);
  gap: 8px;
  font-size: 0.98rem;
}
.footer-contact img {
  width: 18px;
  height: 18px;
}

/* RESPONSIVE DESIGN */
@media (max-width: 991px) {
  header .container { flex-direction: row; gap: 10px; }
}
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.4rem; }
  .cta-btn { width: 100%; text-align: center; }
  header .container { flex-direction: row; gap: 0; }
  header nav { display: none; }
  .mobile-menu-toggle { display: flex; }
}
@media (max-width: 400px) {
  h1 { font-size: 1.35rem; }
  h2 { font-size: 1.14rem; }
}

@media (max-width: 768px) {
  .mobile-menu { padding: 0; }
  .mobile-nav { padding: 30px 18px; }
  .footer-contact { font-size: 0.9rem; }
  .feature-item, .team-card, .card, .testimonial-card {
    min-width: 0;
    width: 100%;
  }
}

/* MICRO-ANIMATIONS */
*:focus-visible {
  outline: 2px solid var(--color-secondary);
  outline-offset: 2px;
}
.cta-btn, .mobile-menu-toggle, .mobile-menu-close, .feature-item, .testimonial-card, .card {
  transition: box-shadow 0.18s, background 0.13s, color 0.14s, transform 0.12s;
}

/* COOKIE CONSENT BANNER & MODAL */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  background: var(--color-white);
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -2px 14px rgba(43,56,86,0.10);
  z-index: 2000;
  padding: 20px 16px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 18px;
  animation: slideUp 0.55s cubic-bezier(.6,.23,.15,.97);
}
@media (max-width: 768px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 17px 8px;
  }
}
.cookie-banner-content {
  color: var(--color-primary);
  font-family: var(--font-body);
  font-size: 1.03rem;
  margin-right: 1em;
  max-width: 420px;
}
.cookie-banner-actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
}
.cookie-btn {
  background: var(--color-secondary);
  color: var(--color-white);
  border-radius: 16px;
  padding: 10px 26px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  transition: background 0.18s, color 0.13s, transform 0.12s;
}
.cookie-btn:active,
.cookie-btn:focus {
  background: var(--color-primary);
  color: var(--color-white);
}
.cookie-btn.reject {
  background: var(--color-danger);
}
.cookie-btn.reject:hover,.cookie-btn.reject:focus {
  background: #9c1b1b;
}
.cookie-btn.settings {
  background: var(--color-accent);
  color: var(--color-primary);
  border: 1px solid var(--color-border);
}
.cookie-btn.settings:hover,
.cookie-btn.settings:focus {
  background: var(--color-white);
}

@keyframes slideUp {
  0% {transform: translateY(120%); opacity:0;}
  80% {transform: translateY(-10px);opacity:1;}
  100% {transform: translateY(0); opacity:1;}
}

/* Cookie modal (centered popup) */
.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(43,56,86,0.18);
  z-index: 2100;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadein 0.24s cubic-bezier(.66,.07,.47,1.11);
}
@keyframes fadein {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.cookie-modal {
  background: var(--color-white);
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(43,56,86,0.22);
  padding: 38px 32px 28px 32px;
  min-width: 300px;
  max-width: 98vw;
  max-height: 80vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.cookie-modal h2 {
  margin-bottom: 6px;
  font-size: 1.4rem;
  color: var(--color-primary);
}
.cookie-modal-category {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 16px;
  font-size: 1.08rem;
  padding-bottom: 4px;
}
.cookie-modal-category input[type=checkbox] {
  width: 22px;
  height: 22px;
  accent-color: var(--color-primary);
  border-radius: 6px;
  border: 1.5px solid var(--color-secondary);
}
.cookie-modal .category-essential {
  color: var(--color-muted);
  font-style: italic;
}
.cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 14px;
  justify-content: flex-end;
  margin-top: 8px;
}
.cookie-modal-close {
  position: absolute;
  right: 26px;
  top: 18px;
  color: var(--color-primary);
  background: none;
  font-size: 2.2rem;
  border: none;
  cursor: pointer;
  z-index: 9000;
}
.cookie-modal-close:focus {
  color: var(--color-secondary);
}

/* UTILITIES */
.mt-0 { margin-top: 0!important; }
.mb-0 { margin-bottom: 0!important; }
.mt-2 { margin-top: 2px!important; }
.mb-2 { margin-bottom: 2px!important; }
.mt-4 { margin-top: 4px!important; }
.mb-4 { margin-bottom: 4px!important; }
.mt-8 { margin-top: 8px!important; }
.mb-8 { margin-bottom: 8px!important; }
.mt-16 { margin-top: 16px!important; }
.mb-16 { margin-bottom: 16px!important; }
.mt-32 { margin-top: 32px!important; }
.mb-32 { margin-bottom: 32px!important; }

@media (max-width: 600px) {
  .cookie-modal {
    padding: 18px 10px;
    min-width: 0;
    max-width: 98vw;
  }
}

/* ACCESSIBILITY: Hide visually, keep for screenreaders */
.visually-hidden {
  border: 0 !important;
  clip: rect(1px, 1px, 1px, 1px) !important;
  -webkit-clip-path: inset(50%) !important;
  clip-path: inset(50%) !important;
  height: 1px !important;
  margin: -1px !important;
  overflow: hidden !important;
  padding: 0 !important;
  position: absolute !important;
  width: 1px !important;
  white-space: nowrap !important;
}
