/* =============================
   Bright Atom Zuhause – Scandinavian Clean CSS
   ============================= */

/*------------- CSS RESET / NORMALIZE -------------*/
html, body, div, section, article, aside, header, footer, main, nav, ul, ol, li,
h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, address, img, button {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  height: 100%;
  scroll-behavior: smooth;
}
body {
  min-height: 100%;
  background-color: #F4F4F7;
  color: #222;
  font-family: 'Roboto', Arial, sans-serif;
  line-height: 1.7;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}

*::selection {
  background: #F6C12C;
  color: #fff;
}

a {
  color: #2B418D;
  text-decoration: none;
  transition: color .2s;
}
a:hover,
a:focus {
  color: #F6C12C;
  outline: none;
}

img {
  max-width: 100%;
  display: block;
}
ul, ol {
  list-style: none;
}
button {
  outline: none;
  font-family: inherit;
  cursor: pointer;
  background: none;
  border: none;
  font-size: 1em;
  color: inherit;
}

/*------------- TYPOGRAPHY -------------*/
h1, h2, h3, h4, h5, h6 {
  color: #2B418D;
  margin-bottom: 16px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  line-height: 1.18;
}
h1 { font-size: 2.5rem; margin-bottom: 24px; letter-spacing: 0.01em; }
h2 { font-size: 2rem; margin-bottom: 20px; }
h3 { font-size: 1.25rem; margin-bottom: 12px; }
h4 { font-size: 1.1rem; }

.subheadline {
  color: #444;
  font-size: 1.125rem;
  margin-bottom: 2rem;
  font-family: 'Roboto', Arial, sans-serif;
}

p, li, address {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  color: #222;
}
strong {
  font-weight: 700;
  color: #2B418D;
}

/*------------- LAYOUT CONTAINERS -------------*/

.container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
  box-sizing: border-box;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 10px rgba(43,65,141,0.05);
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.text-section {
  background: #F4F4F7;
  border-radius: 12px;
  padding: 32px 24px;
  box-shadow: 0 1px 6px rgba(43,65,141, 0.04);
}

/*------------- HEADER / NAVIGATION -------------*/
header {
  width: 100%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(43,65,141,0.02);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  min-height: 72px;
  position: relative;
  z-index: 20;
}
header > a img {
  height: 40px;
}
header nav {
  display: flex;
  gap: 24px;
}
header nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #2B418D;
  font-weight: 500;
  letter-spacing: 0.02em;
  font-size: 1rem;
  padding: 6px 10px;
  border-radius: 6px;
  transition: background .18s, color .18s;
}
header nav a:hover, header nav a:focus {
  background: #F4F4F7;
  color: #F6C12C;
}
.cta-primary {
  background: #F6C12C;
  color: #2B418D;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  display: inline-block;
  padding: 10px 26px;
  border-radius: 24px;
  font-size: 1.15rem;
  margin-left: 18px;
  box-shadow: 0 2px 8px rgba(246,193,44,0.12);
  transition: background .21s, color .21s, box-shadow .21s;
  border: none;
  position: relative;
  z-index: 1;
}
.cta-primary:hover, .cta-primary:focus {
  background: #2B418D;
  color: #fff;
  box-shadow: 0 4px 14px rgba(43,65,141,0.10);
}
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: #2B418D;
  min-width: 48px;
  min-height: 48px;
  border-radius: 50%;
  transition: background .22s;
  z-index: 50;
}
.mobile-menu-toggle:active,
.mobile-menu-toggle:focus {
  background: #F4F4F7;
  outline: none;
}

/*------------- MOBILE MENU -------------*/
.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: #fff;
  box-shadow: 0 0 0 1000px rgba(43,65,141,0.13);
  transform: translateX(100%);
  transition: transform .36s cubic-bezier(.36,1.15,.15,1);
  z-index: 1200;
  opacity: 0;
  pointer-events: none;
}
.mobile-menu.active {
  transform: translateX(0);
  opacity: 1;
  pointer-events: all;
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 20px 24px;
  font-size: 2.4rem;
  background: #F4F4F7;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: #2B418D;
  border: none;
  transition: background .18s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #F6C12C;
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 36px 32px;
}
.mobile-nav a {
  color: #2B418D;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.25rem;
  padding: 12px 0;
  border-bottom: 1px solid #F4F4F7;
  transition: color .17s, background .17s;
}
.mobile-nav a:last-child {
  border-bottom: none;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #F6C12C;
}

/*------------- MAIN: FLEXBOX CONTENT LAYOUTS -------------*/
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 14px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(43,65,141,0.05);
  position: relative;
  padding: 28px 22px;
  min-width: 220px;
  flex: 1 1 260px;
  transition: box-shadow .18s, transform .18s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 6px 18px rgba(43,65,141,0.12);
  transform: translateY(-4px) scale(1.01);
}
.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;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.feature-grid li {
  flex: 1 1 200px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 5px rgba(43,65,141,0.04);
  margin-bottom: 20px;
  gap: 10px;
  padding: 24px 20px 20px 20px;
  transition: box-shadow .15s, transform .15s;
}
.feature-grid li img {
  width: 40px; height: 40px;
  margin-bottom: 8px;
}
.feature-grid li:hover, .feature-grid li:focus-within {
  box-shadow: 0 3px 16px rgba(43,65,141,0.09);
  transform: translateY(-3px) scale(1.01);
}

.service-teasers {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 8px;
}
.service-teasers > div {
  background: #fff;
  border-radius: 14px;
  padding: 22px 18px;
  flex: 1 1 220px;
  min-width: 200px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 1px 6px rgba(43,65,141,0.06);
  transition: box-shadow .18s, transform .18s;
}
.service-teasers > div a {
  color: #2B418D;
  font-weight: 600;
  font-family: 'Montserrat', Arial, sans-serif;
  text-decoration: underline;
  align-self: flex-start;
  margin-top: 6px;
  font-size: 1em;
}
.service-teasers > div:hover,
.service-teasers > div:focus-within {
  box-shadow: 0 6px 18px rgba(43,65,141,0.13);
  transform: translateY(-5px);
}

/* Testimonials */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #F4F4F7;
  border-radius: 13px;
  margin-bottom: 20px;
  box-shadow: 0 1px 6px rgba(43,65,141,0.07);
  color: #222;
  font-size: 1.08rem;
  transition: box-shadow .22s;
  min-height: 70px;
}
.testimonial-card p {
  color: #2B418D;
  font-style: italic;
  flex: 1 1 0;
}
.testimonial-card strong {
  color: #444;
  font-style: normal;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1em;
}

/* Lists with icons (Kontakt page) */
.text-section ul {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 16px;
}
.text-section ul li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 1rem;
}
.text-section ul li img {
  width: 23px;
  height: 23px;
  margin-top:1.5px;
}

/* Main calls to action */
main .cta-primary {
  margin-top: 14px;
  align-self: flex-start;
}

/* Misc. general flex container utilities */
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

/*------------- FOOTER -------------*/
footer {
  background: #fff;
  padding: 32px 20px 16px 20px;
  border-top: 1px solid #e7e7ef;
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 0.95rem;
  margin-top: 48px;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 10px;
}
footer nav a {
  color: #2B418D;
  text-decoration: none;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1em;
  transition: color .19s;
}
footer nav a:hover, footer nav a:focus {
  color: #F6C12C;
}
footer address {
  font-style: normal;
  color: #444;
  font-size: 1em;
}

/*------------- COOKIE CONSENT BANNER -------------*/
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #fff;
  box-shadow: 0 -2px 18px rgba(43,65,141,0.09);
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 20px 24px;
  z-index: 2500;
  width: 100%;
  transition: transform 0.33s, opacity 0.24s;
  opacity: 1;
  transform: translateY(0);
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(100%);
}
.cookie-banner p {
  flex:1 1 0;
  color: #2B418D;
  font-size: 1rem;
}
.cookie-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.cookie-banner button,
.cookie-banner .cookie-btn {
  padding: 8px 22px;
  border: none;
  border-radius: 20px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background .18s, color .18s;
}
.cookie-banner .accept-all {
  background: #2B418D;
  color: #fff;
}
.cookie-banner .accept-all:hover {
  background: #F6C12C;
  color: #2B418D;
}
.cookie-banner .reject-all {
  background: #F6C12C;
  color: #2B418D;
}
.cookie-banner .reject-all:hover {
  background: #2B418D;
  color: #fff;
}
.cookie-banner .cookie-settings {
  background: #F4F4F7;
  color: #2B418D;
  border: 1px solid #e7e7ef;
}
.cookie-banner .cookie-settings:hover {
  background: #2B418D;
  color: #fff;
}

/* Cookie settings modal */
.cookie-modal {
  position: fixed;
  inset: 0;
  background: rgba(43,65,141,0.11);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.cookie-modal.active {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal-dialog {
  background: #fff;
  padding: 38px 32px 32px 32px;
  border-radius: 18px;
  min-width: 320px;
  max-width: 94vw;
  box-shadow: 0 3px 28px rgba(43,65,141,0.10);
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  animation: showModal .3s;
}
@keyframes showModal {
  from { opacity:0; transform: translateY(60px) scale(.97); }
  to { opacity:1; transform: translateY(0) scale(1); }
}
.cookie-modal-close {
  position: absolute;
  top: 12px; right: 14px;
  background: #F4F4F7;
  border-radius: 50%;
  height: 38px; width: 38px;
  font-size: 1.35rem;
  color: #2B418D;
  border: none;
  transition: background .16s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: #F6C12C;
  color: #fff;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.cookie-category-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0 9px 0;
  border-bottom: 1px solid #F4F4F7;
}
.cookie-category-row:last-child {
  border-bottom: none;
}
.cookie-category-label {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  color: #2B418D;
}
.cookie-category-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'Montserrat', Arial, sans-serif;
}
.cookie-switch {
  --on: #2B418D;
  --off: #ccc;
  width: 42px; height: 22px;
  background: var(--off);
  border-radius: 14px;
  position: relative;
  transition: background .2s;
  cursor: pointer;
}
.cookie-switch[data-enabled="true"] { background: var(--on); }
.cookie-switch .knob {
  position: absolute;
  left: 3px; top: 3px;
  width: 16px; height: 16px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(43,65,141,0.11);
  transition: left .18s;
}
.cookie-switch[data-enabled="true"] .knob { left: 23px; }
.cookie-category-desc {
  font-size: .92rem;
  color: #444;
  margin-top: 3px;
}
.cookie-modal .cookie-btns {
  margin-top: 18px;
  display: flex;
  gap: 13px;
  flex-wrap: wrap;
}

/* Hide modal visually if inactive */
.cookie-modal:not(.active) {
  display: flex; /* preserve flex context for animations */
}

/*------------- MEDIA QUERIES: RESPONSIVE DESIGN -------------*/
@media (max-width: 1100px) {
  .container {
    max-width: 900px;
  }
}
@media (max-width: 900px) {
  .container {
    max-width: 98vw;
  }
  .section {
    padding: 32px 10px;
  }
}
@media (max-width: 768px) {
  header nav {
    display: none;
  }
  .cta-primary {
    margin-left: 0;
  }
  .mobile-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .feature-grid {
    flex-direction: column;
    gap: 18px;
  }
  .service-teasers {
    flex-direction: column;
    gap: 18px;
  }
  .content-grid {
    flex-direction: column;
    gap: 16px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 20px;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    font-size: 1rem;
  }
  .card-container {
    flex-direction: column;
    gap: 18px;
  }
  .cookie-banner {
    flex-direction: column;
    gap: 12px;
    padding: 15px 8px;
    font-size: .97rem;
    text-align: left;
  }
  .cookie-modal-dialog {
    min-width: 90vw;
    padding: 22px 10px 16px 10px;
  }
  footer nav {
    flex-direction: column;
    gap: 10px;
  }
}

@media (max-width: 600px) {
  h1 { font-size: 1.65rem; }
  h2 { font-size: 1.25rem; }
  .container {
    padding-left: 10px;
    padding-right: 10px;
  }
  .section {
    padding: 18px 2px;
  }
  .card, .service-teasers > div, .feature-grid li {
    padding: 15px 8px 14px 8px;
  }
}

/*------------- SCROLLBAR (Light & Subtle) -------------*/
html {
  scrollbar-width: thin;
  scrollbar-color: #F6C12C #F4F4F7;
}
body::-webkit-scrollbar { width: 8px; }
body::-webkit-scrollbar-thumb {
  background: #F6C12C;
  border-radius: 6px;
}
body::-webkit-scrollbar-track {
  background: #F4F4F7;
}

/*------------- FORM ELEMENTS (for Contact/etc) -------------*/
input, textarea, select {
  min-width: 140px;
  border: 1px solid #d9dbe8;
  background: #F9F9FC;
  border-radius: 9px;
  padding: 9px 14px;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  color: #222;
  margin-bottom: 16px;
  transition: border-color .16s;
}
input:focus, textarea:focus, select:focus {
  border-color: #2B418D;
  outline: none;
  background: #fff;
}

button, .button, .btn {
  background: #2B418D;
  color: #fff;
  border-radius: 20px;
  padding: 10px 22px;
  border: none;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  cursor: pointer;
  transition: background .18s, color .18s;
  font-weight: 600;
  margin-top: 9px;
}
button:hover, button:focus, .btn:hover, .btn:focus {
  background: #F6C12C;
  color: #2B418D;
}

/*------------- MICRO-INTERACTIONS -------------*/
.card, .feature-grid li, .service-teasers > div, .testimonial-card, .cookie-modal-dialog {
  transition: box-shadow .17s, transform .17s;
}
.card:focus-within, .feature-grid li:focus-within, .service-teasers > div:focus-within {
  box-shadow: 0 6px 18px rgba(43,65,141,0.12);
}

main a:active, nav a:active {
  text-decoration: underline;
}

/*------------- VISUAL HIERARCHY -------------*/
.section > .container > .content-wrapper > h2,
.section > .container > .content-wrapper > h1 {
  margin-bottom: 8px;
}
.card > h3, .feature-grid li > h3, .service-teasers > div > h3 {
  margin-bottom: 6px;
}
main
  .section:last-child {
    margin-bottom: 0;
  }

/*------------- ACCESSIBILITY / CONTRAST -------------*/
.testimonial-card, .testimonial-card p, .testimonial-card strong {
  color: #222;
  background: #F4F4F7;
  font-size: 1.08rem;
}

/*------------- MISC UTILS -------------*/
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
  padding: 0;
}

/*------------- END -------------*/
