/* style.css for HaushaltsKompass - SOFT PASTEL FLEXBOX */

/* --- RESET & BASE --- */
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: 16px;
  background: #FCFCFE;
  color: #28457a;
}
body {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.7;
  background: #F8FAFB;
  min-height: 100vh;
  color: #28457a;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: #3373a7;
  text-decoration: none;
  transition: color .2s;
}
a:hover, a:focus {
  color: #f5c440;
  outline: none;
}
button, input[type="button"], input[type="submit"] {
  font-family: inherit;
  font-size: 1rem;
  appearance: none;
  background: none;
  border: none;
  cursor: pointer;
}
::selection {
  background: #e7eafc;
}

/* --- VARIABLES --- */
:root {
  --color-primary: #28457A;
  --color-secondary: #F2F7FA;
  --color-accent: #F5C440;
  --color-error: #fa9899;
  --color-pastel-blue: #e7eafc;
  --color-pastel-pink: #fae6ec;
  --color-pastel-yellow: #fff5d0;
  --color-pastel-mint: #e5f8e5;
  --color-pastel-violet: #ede2fa;

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

/* --- CONTAINER & SPACING --- */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: 20px;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #28457a;
}
h1 {
  font-size: 2.4rem;
  margin-bottom: 16px;
}
h2 {
  font-size: 1.7rem;
  margin-bottom: 16px;
}
h3 {
  font-size: 1.22rem;
  margin-bottom: 10px;
}
h4 {
  font-size: 1.05rem;
}
.subheadline {
  font-size: 1.19rem;
  line-height: 1.6;
  color: #407ad5;
  font-family: var(--font-body);
}
.brand-story, .confirmation-message, .next-steps {
  font-size: 1.11rem;
  color: #4d4e79;
}
p {
  margin-bottom: 16px;
  color: #42587A;
}
.strong, strong {
  font-weight: bold;
  color: #28457a;
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-size: 1.06rem;
  font-family: var(--font-display);
  font-weight: 600;
  border-radius: 36px;
  box-shadow: 0 2px 12px 0 #eef1fd;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s, border 0.18s;
  border: 2px solid transparent;
  cursor: pointer;
  margin-top: 8px;
}
.btn-primary {
  background: linear-gradient(90deg, #e7eafc 0%, #f5c440 100%);
  color: #28457a;
  border-color: #e7eafc;
}
.btn-primary:hover,
.btn-primary:focus {
  background: linear-gradient(90deg, #f5c440 0%, #e7eafc 100%);
  color: #fff;
  box-shadow: 0 4px 22px 0 #dfdbfa;
}
.btn-secondary {
  background: #28457a;
  color: #fff;
  border: 2px solid #f5c440;
}
.btn-secondary:hover,
.btn-secondary:focus {
  background: #f5c440;
  color: #28457a;
  border: 2px solid #f5c440;
}

/* --- HEADER & NAV --- */
header {
  width: 100%;
  background: #f7faff;
  box-shadow: 0 2px 24px 0 #f5f8ff30;
  position: relative;
  z-index: 601;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
}
header img[alt="HaushaltsKompass"] {
  height: 44px;
  margin-right: 18px;
}
.main-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 28px;
}
.main-nav a {
  font-family: var(--font-display);
  font-size: 1.04rem;
  color: #4b609b;
  padding: 6px 6px;
  border-radius: 6px;
  transition: background .18s, color .18s;
}
.main-nav a:hover, .main-nav a:focus {
  color: #28457a;
  background: #e7eafc;
}
.mobile-menu-toggle {
  display: none;
  background: transparent;
  font-size: 2rem;
  line-height: 1;
  color: #28457a;
  margin-left: 16px;
  border: none;
  border-radius: 12px;
  padding: 5px 11px;
  transition: background .17s;
  z-index: 700;
}
.mobile-menu-toggle:hover {
  background: #e7eafc;
}
.btn.btn-primary {
  margin-left: 22px;
  margin-right: 8px;
}

/* -- MOBILE MENU -- */
.mobile-menu {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(240,247,251,0.98);
  box-shadow: 0 8px 32px #e7eafc;
  z-index: 9999;
  transform: translateX(100%);
  transition: transform .36s cubic-bezier(.68,-0.55,.27,1.55);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 30px 32px;
  gap: 25px;
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  font-size: 2rem;
  color: #28457a;
  background: transparent;
  border: none;
  border-radius: 8px;
  padding: 6px 14px;
  margin-bottom: 10px;
  transition: background .13s;
}
.mobile-menu-close:hover {
  background: #f5c44044;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
}
.mobile-nav a {
  font-size: 1.17rem;
  color: #28457a;
  font-family: var(--font-display);
  padding: 14px 0;
  border-radius: 5px;
  transition: background .08s, color .18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #e5f8e5;
  color: #28457a;
}

/* --- FLEXBOX MANDATORY PATTERNS --- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 1px 8px 0 #e7eafc;
  padding: 28px 20px;
  position: relative;
  transition: box-shadow .2s, transform .18s;
}
.card:hover {
  box-shadow: 0 8px 32px 0 #e7eafc;
  transform: translateY(-4px) scale(1.015);
}
.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;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: #fff5d0;
  border-radius: 18px;
  margin-bottom: 20px;
  box-shadow: 0 1px 8px #e0e3d8a0;
  font-size: 1.12rem;
  color: #28457a;
}
.testimonial-card p {
  color: #28457a;
  margin-bottom: 6px;
  font-weight: 500;
  font-size: 1.12rem;
}
.testimonial-info {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  font-size: 0.99rem;
  color: #7c7152;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
/* END mandatory flex patterns */

/* --- HOME PAGE: HERO, FEATURES, SERVICES --- */
.section {
  background: #fbfbfe;
  border-radius: 26px;
  margin-bottom: 60px;
  padding: 40px 20px;
  box-shadow: 0 1px 9px #edf3fc7e;
}
ul.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  list-style: none;
  margin: 0;
  justify-content: space-between;
}
ul.feature-grid li {
  flex: 1 1 210px;
  min-width: 210px;
  max-width: 250px;
  background: #e7eafc;
  border-radius: 17px;
  padding: 23px 16px 22px 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 13px;
  box-shadow: 0 1px 7px #e0e3f7ae;
  transition: box-shadow .18s, background .18s;
}
ul.feature-grid li:hover {
  background: #ede2fa;
  box-shadow: 0 4px 18px #e0e3fa6c;
}
ul.feature-grid img {
  width: 40px;
  height: 40px;
  margin-bottom: 4px;
}
ul.feature-grid h3 {
  font-size: 1.13rem;
  color: #28457a;
  margin-bottom: 0;
}
.service-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 0 0 10px 0;
  padding: 0;
}
.service-list li {
  background: #e5f8e5;
  border-radius: 13px;
  flex: 1 1 310px;
  min-width: 210px;
  padding: 20px 18px 16px 18px;
  box-shadow: 0 1px 8px #e0fae0bb;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  transition: box-shadow .18s, background .12s;
}
.service-list li h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: space-between;
}
.service-list li span {
  font-size: 0.98rem;
  color: #f5c440;
  font-weight: 700;
}
.service-list li:hover {
  background: #f7faff;
  box-shadow: 0 8px 30px #cef8ff1c;
}

/* --- OTHER COMPONENTS --- */
ul.tip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  list-style: none;
}
ul.tip-grid li {
  background: #fae6ec;
  border-radius: 14px;
  flex: 1 1 245px;
  min-width: 185px;
  padding: 18px 16px 15px 16px;
  box-shadow: 0 1px 7px #f3e5fd6e;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
  margin-bottom: 20px;
}
ul.tip-grid img {
  width: 32px;
  height: 32px;
  margin-bottom: 5px;
}
ul.tip-grid span {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.07rem;
  color: #407ad5;
}

.infoboxes, .fact-boxes {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.infoboxes > div, .fact-box {
  background: #ede2fa;
  border-radius: 12px;
  flex: 1 1 210px;
  min-width: 160px;
  padding: 18px 16px;
  color: #28457a;
  box-shadow: 0 1px 6px #e1e1fa6e;
  font-size: 1rem;
  margin-bottom: 20px;
}

ul.feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  list-style: none;
  margin: 18px 0 0 0;
  padding: 0;
}
ul.feature-list li {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  background: #fff5d0;
  border-radius: 12px;
  padding: 13px 18px;
  font-size: 1.04rem;
  color: #49617d;
  box-shadow: 0 1px 7px #f7eecd4b;
}
ul.feature-list img {
  width: 24px;
  height: 24px;
}

ul.course-list, .resource-links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  list-style: none;
  margin: 0 0 15px 0;
  padding: 0;
}
ul.course-list li, .resource-links ul li {
  background: #e7eafc;
  border-radius: 13px;
  flex: 1 1 220px;
  min-width: 150px;
  padding: 13px 11px;
  box-shadow: 0 1px 7px #e0e3fa67;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  font-size: 1.03rem;
}
ul.course-list img, .resource-links ul img {
  width: 29px;
  height: 29px;
}

/* --- Tip lists and Do/Don't --- */
ul.tip-list {
  list-style: disc;
  margin-left: 1.5em;
  margin-bottom: 18px;
}
.do-dont-list {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 8px;
  margin-bottom: 18px;
}
.do-dont-list h3 {
  margin-bottom: 6px;
}
.do-dont-list ul {
  margin-left: 1.2em;
  list-style: disc;
}

.common-mistakes {
  background: #fae6ec;
  border-radius: 10px;
  padding: 17px 14px;
  margin: 20px 0;
  box-shadow: 0 1px 6px #fae6ec49;
}
.example-boxes {
  background: #ede2fa;
  border-radius: 10px;
  padding: 17px 14px;
  box-shadow: 0 1px 6px #ede2fa31;
  margin: 14px 0 20px 0;
}
.tip-boxes {
  background: #e5f8e5;
  border-radius: 10px;
  padding: 15px 13px;
  box-shadow: 0 1px 6px #e5f8e5a1;
  margin: 17px 0 15px;
}

.location-highlight {
  display: flex;
  align-items: center;
  gap: 22px;
  background: #e7eafc;
  border-radius: 10px;
  padding: 19px 19px;
  box-shadow: 0 1px 7px #e7eafc74;
  margin-bottom: 10px;
}
.location-highlight img {
  width: 36px;
  height: 36px;
}

.address-block, .email-block, .hours-block {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #F2F7FA;
  border-radius: 9px;
  padding: 12px 13px;
  margin-bottom: 13px;
  color: #28457a;
  font-size: 1.02rem;
}
.address-block img, .email-block img, .hours-block img {
  width: 22px;
  height: 22px;
}

.downloads {
  margin-top: 18px;
}

/* --- FOOTER --- */
footer {
  width: 100%;
  background: #F2F7FA;
  border-radius: 30px 30px 0 0;
  margin-top: 60px;
  padding-top: 8px;
  box-shadow: 0 -2px 10px #e7eafc45;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 16px 16px 26px;
  align-items: center;
}
.mini-nav {
  display: flex;
  flex-direction: row;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  font-size: 0.99rem;
  color: #4d4e79;
}
.mini-nav a {
  color: #6d77a3;
  transition: color .14s, text-decoration .14s;
  text-decoration: underline dotted #ede2fa;
}
.mini-nav a:hover, .mini-nav a:focus {
  color: #F5C440;
}
.contact-info {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: center;
  font-size: 0.97rem;
  color: #37416a;
  text-align: center;
}
.contact-info a {
  color: #407ad5;
}
.social-links {
  display: flex;
  gap: 15px;
  margin-top: 10px;
}
.social-links img {
  width: 30px;
  height: 30px;
}

/* --- COOKIE BANNER & MODAL --- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: #e7eafc;
  color: #28304d;
  box-shadow: 0 -2px 20px #aabde852;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 22px 20px 18px 20px;
  z-index: 10001;
  transition: transform .4s cubic-bezier(.86,-0.5,.73,1.22), opacity .3s;
  opacity: 1;
  transform: translateY(0%);
}
.cookie-banner.hide {
  opacity: 0;
  transform: translateY(100%);
  pointer-events: none;
}
.cookie-banner .cookie-message {
  font-size: 1.04rem;
  font-family: var(--font-body);
  flex: 1 1 200px;
}
.cookie-banner .cookie-btns {
  display: flex;
  flex-direction: row;
  gap: 12px;
}
.cookie-banner .btn {
  font-size: 1.04rem;
  padding: 9px 22px;
  border-radius: 26px;
}
.cookie-banner .btn-accept {
  background: #e5f8e5;
  color: #28457a;
  border: 2px solid #e5f8e5;
}
.cookie-banner .btn-accept:hover {
  background: #28457a;
  color: #fff;
}
.cookie-banner .btn-reject {
  background: #fae6ec;
  color: #28457a;
  border: 2px solid #fae6ec;
}
.cookie-banner .btn-reject:hover {
  background: #fa9899;
  color: #fff;
}
.cookie-banner .btn-settings {
  background: #fff5d0;
  color: #28457a;
  border: 2px solid #fff5d0;
}
.cookie-banner .btn-settings:hover {
  background: #f5c440;
  color: #28457a;
}

/* COOKIE MODAL */
.cookie-modal {
  position: fixed;
  left: 0; top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(40,69,122, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10010;
  opacity: 0;
  pointer-events: none;
  transition: opacity .23s;
}
.cookie-modal.active {
  opacity: 1;
  pointer-events: all;
}
.cookie-modal .cookie-modal-box {
  background: #fff;
  padding: 35px 28px 28px 28px;
  border-radius: 15px;
  max-width: 425px;
  box-shadow: 0 4px 26px #e7eafc;
  display: flex;
  flex-direction: column;
  gap: 17px;
  animation: modalIn .34s cubic-bezier(.68,-0.4,.27,1.28) 1;
  min-width: 298px;
}
@keyframes modalIn { from { transform: scale(.88) translateY(55px); opacity: 0; } to { transform: scale(1) translateY(0); opacity:1; } }
.cookie-modal-title {
  font-size: 1.24rem;
  font-family: var(--font-display);
  font-weight: 700;
  color: #28457a;
  margin-bottom: 4px;
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f2f7fa;
  border-radius: 9px;
  margin-bottom: 8px;
  padding: 10px 13px;
  font-size: 1.07rem;
  color: #28457a;
}
.cookie-toggles {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.toggle-switch {
  position: relative;
  width: 38px;
  height: 22px;
}
.toggle-switch input {
  opacity: 0;
  width: 0; height: 0; pointer-events: none;
}
.toggle-slider {
  position: absolute;
  cursor: pointer;
  left: 0; top: 0; right: 0; bottom: 0;
  background: #e5f8e5;
  border-radius: 13px;
  transition: background .2s;
}
.toggle-switch input:checked + .toggle-slider {
  background: #f5c440;
}
.toggle-slider:before {
  content: '';
  position: absolute;
  left: 2px; top: 2px;
  width: 18px; height: 18px;
  background: #fff;
  border-radius: 50%;
  transition: transform .21s;
  box-shadow: 0 2px 3px #d0dec8a1;
}
.toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(16px);
}
.cookie-modal-bottom {
  display: flex;
  flex-direction: row;
  gap: 12px;
  margin-top: 10px;
  justify-content: flex-end;
  font-family: var(--font-display);
}
.cookie-modal .cookie-close {
  position: absolute;
  top: 9px; right: 18px;
  background: transparent;
  color: #28457a;
  font-size: 1.36rem;
  border: none;
  cursor: pointer;
}

/* --- RESPONSIVE (MOBILE-FIRST) --- */
@media (max-width: 1080px) {
  .container {
    padding: 0 11px;
  }
}
@media (max-width: 900px) {
  .main-nav a {
    font-size: 1rem;
    padding: 6px 1px;
    gap: 0;
  }
}
@media (max-width: 768px) {
  .container {
    max-width: 99vw;
    padding: 0 5px;
  }
  header .container {
    gap: 9px;
    padding: 13px 7px 13px 5px;
  }
  .section {
    padding: 28px 6px;
  }
  .content-wrapper, .do-dont-list, .course-list, .resource-links ul, .fact-boxes, .card-container, ul.feature-grid {
    flex-direction: column;
    gap: 16px;
  }
  ul.feature-grid, .service-list, ul.tip-grid, .infoboxes, .fact-boxes {
    flex-direction: column;
    gap: 14px;
    align-items: stretch;
  }
  .main-nav {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: block !important;
  }
  .btn.btn-primary {
    margin-left: 0;
    margin-right: 0;
  }
  .testimonial-card, .card, ul.feature-grid li, .service-list li, ul.tip-grid li, .infoboxes > div, .fact-box {
    min-width: unset!important;
    width: 100%;
  }
  .location-highlight {
    flex-direction: column;
    align-items: flex-start;
    gap: 13px;
  }
  .mini-nav, .contact-info {
    flex-direction: column;
    gap: 5px;
    text-align: center;
  }
  footer .container {
    gap: 6px;
    padding: 11px 6px 21px;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
    padding: 16px 12px 13px 12px;
  }
  .cookie-banner .cookie-btns {
    flex-direction: column;
    gap: 7px;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 15px;
  }
  h1 { font-size: 1.55rem; }
  h2 { font-size: 1.20rem; }
  h3 { font-size: 1.08rem; }
}

/* --- TRANSITIONS & MICRO-INTERACTIONS --- */
.card, ul.feature-grid li, .service-list li, ul.tip-grid li, .infoboxes > div, .fact-box {
  transition: box-shadow .18s, background .17s, transform .16s;
}
.card:focus-within, ul.feature-grid li:focus-within, .service-list li:focus-within, ul.tip-grid li:focus-within {
  outline: 2px solid #f5c440;
}

/* --- UTILS --- */
.hide { display: none !important; }
.flex { display: flex !important; }
.flex-center { display: flex!important; align-items: center; justify-content: center; }
.text-center { text-align: center!important; }

/* --- END style.css --- */
