/* ========================
   CSS RESET & BASE STYLES
   ======================== */
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;
}
html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  background: #fff;
}
body {
  font-family: 'Open Sans', Arial, sans-serif;
  color: #181818;
  background: #fff;
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #181818;
  text-decoration: none;
  transition: color 0.2s;
}
a:focus {
  outline: 2px solid #000;
  outline-offset: 2px;
}
ul, ol {
  padding-left: 24px;
  margin-bottom: 20px;
}
li + li {
  margin-top: 8px;
}
strong, b {
  font-weight: bold;
  color: #070707;
}
hr {
  border: none;
  border-bottom: 1px solid #dadada;
  margin: 40px 0;
}

/* =======================
   TYPOGRAPHY HIERARCHY
   ======================= */
h1, .h1 {
  font-family: 'Rubik', 'Open Sans', Arial, sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: #101010;
  margin-bottom: 18px;
}
h2, .h2 {
  font-family: 'Rubik', 'Open Sans', Arial, sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: #151515;
  margin-bottom: 14px;
}
h3, .h3 {
  font-family: 'Rubik', 'Open Sans', Arial, sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: #232323;
  margin-bottom: 10px;
}
h4, .h4 {
  font-family: 'Rubik', 'Open Sans', Arial, sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: #323232;
}
p, .subheadline {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  color: #262626;
  margin-bottom: 16px;
}
.subheadline {
  font-size: 1.18rem;
  color: #5A5A5A;
  margin-bottom: 24px;
}
.section h2 + p {
  margin-top: 0;
}

/* =====================================
   FLEXBOX LAYOUTS & CONTAINER CLASSES
   ===================================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 0;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
@media (max-width: 768px) {
  .section {
    padding: 28px 8px;
    margin-bottom: 36px;
  }
  .container {
    padding-left: 8px;
    padding-right: 8px;
  }
}

/* Flexible card container layouts (MANDATORY) */
.card-container, .features-grid, .content-grid, .practical-tips-grid, .highlighted-posts {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  margin-top: 16px;
  margin-bottom: 16px;
}
@media (max-width: 768px) {
  .card-container, .features-grid, .content-grid, .practical-tips-grid, .highlighted-posts {
    flex-direction: column;
    gap: 18px;
  }
}
.card, .offer-card, .testimonial-card, .article-list > li, .practical-tips-grid > div {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 18px rgba(20,20,20,0.085), 0 1.5px 6px rgba(30,30,30,0.06);
  padding: 26px 28px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 260px;
  flex: 1 1 260px;
  border: 1.5px solid #ECECEC;
  transition: box-shadow 0.18s, border 0.18s, background 0.18s;
}
.card:hover, .offer-card:hover, .testimonial-card:hover, .practical-tips-grid > div:hover {
  box-shadow: 0 8px 22px rgba(22,22,22,0.13), 0 3px 14px rgba(10,10,10,0.08);
  background: #F6F6F6;
  border-color: #DADADA;
}
@media (max-width: 600px) {
  .card, .offer-card, .testimonial-card, .practical-tips-grid > div {
    padding: 16px 10px;
    min-width: 0;
  }
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Testimonial distinctiveness and readability */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #f9f9f9;
  border: 1.2px solid #E1E1E1;
  box-shadow: 0 3px 14px rgba(0,0,0,0.07);
  color: #141414;
  font-size: 1.05rem;
  border-radius: 18px;
  margin-bottom: 20px;
}
.testimonial-name {
  color: #222;
  font-weight: 600;
  margin-top: 4px;
  font-family: 'Rubik', Arial, sans-serif;
  font-size: 1rem;
}
.star-rating {
  color: #222;
  font-family: 'Rubik', Arial, sans-serif;
  font-size: 1.08em;
  letter-spacing: 2px;
  margin-bottom: 3px;
  display: inline-block;
}

/* Feature items & tags */
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.level-tag, .discount-badge, .limited-time, .category {
  display: inline-block;
  background: #fff;
  color: #1c1c1c;
  border: 1.4px solid #252525;
  border-radius: 13px;
  padding: 2px 11px;
  font-size: 0.97rem;
  font-family: 'Rubik', Arial, sans-serif;
  margin-top: 2px;
  margin-bottom: 1px;
  letter-spacing: 0.025em;
  font-weight: 500;
  line-height: 1.4;
}
.discount-badge {
  background: #181818;
  color: #fff;
  border: 1.2px solid #2d2d2d;
}
.limited-time {
  background: #fff;
  color: #232323;
  border-color: #5a5a5a;
}
.category {
  background: #222;
  color: #fff;
  border: 1.2px solid #111;
}

/* Infoboxes and Highlighted Posts */
.infoboxes {
  display: flex;
  flex-direction: column;
  gap: 15px;
  color: #fff;
  margin-top: 16px;
}
.infoboxes > div {
  background: #ada8a8;
  color: #fff;
  border-radius: 11px;
  padding: 13px 18px;
  font-size: 1rem;
  font-family: 'Open Sans', Arial, sans-serif;
  box-shadow: 0 2px 7px rgba(28,28,28,0.10);
}
.highlighted-posts ul {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-left: 0;
}
@media (max-width: 440px) {
  .infoboxes > div {
    padding: 9px 6px;
    font-size: 0.97rem;
  }
}

/* =======================
   HEADER & NAVIGATION
   ======================= */
header {
  width: 100%;
  box-shadow: 0 2px 10px rgba(21,21,21,0.06);
  background: #fff;
  padding: 0;
  position: relative;
  z-index: 22;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
  gap: 16px;
}
.logo img {
  width: 128px;
  height: auto;
  display: block;
}
/* MAIN NAV */
.main-nav {
  display: flex;
  gap: 18px;
  align-items: center;
}
.main-nav a {
  font-family: 'Rubik', 'Open Sans', Arial, sans-serif;
  font-size: 1.08rem;
  color: #232323;
  font-weight: 500;
  padding: 5px 8px;
  border-radius: 4px;
  transition: color 0.13s, background 0.18s;
  position: relative;
}
.main-nav a:hover,
.main-nav a:focus {
  color: #fff;
  background: #232323;
}
.main-nav .btn-primary {
  padding: 9px 19px;
  font-size: 1.09rem;
  border-radius: 6px;
  border-color: #228877;
  background: #181818;
  color: #fff;
  font-weight: 700;
  border: none;
  letter-spacing: 0.01em;
  box-shadow: 0 2px 7px rgba(0,0,0,0.06);
  transition: background 0.17s, color 0.16s, box-shadow 0.16s;
}
.main-nav .btn-primary:hover {
  background: #111;
}

/* ===============================
   MOBILE MENU
   =============================== */
.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  font-size: 2.2rem;
  color: #232323;
  cursor: pointer;
  z-index: 100;
  padding: 4px 10px 4px 4px;
  border-radius: 6px;
}
@media (max-width: 960px) {
  .main-nav { display: none; }
  .mobile-menu-toggle {
    display: block;
  }
}

.mobile-menu {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(14,14,14,0.97);
  z-index: 1001;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transform: translateX(100vw);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.32s cubic-bezier(.66,.08,.36,1), opacity 0.18s;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  align-self: flex-end;
  font-size: 2.3rem;
  color: #fff;
  background: transparent;
  border: none;
  margin: 21px 21px 0 0;
  cursor: pointer;
  padding: 1px 6px;
}
.mobile-nav {
  margin-top: 36px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: flex-start;
  padding-left: 34px;
}
.mobile-nav a {
  font-family: 'Rubik', 'Open Sans', Arial, sans-serif;
  font-size: 1.25rem;
  color: #fff;
  font-weight: 500;
  padding: 6px 11px 6px 1px;
  border-radius: 4px;
  transition: background 0.17s, color 0.18s;
}
.mobile-nav a:active, .mobile-nav a:focus, .mobile-nav a:hover {
  background: #fff;
  color: #111;
}
.mobile-nav .btn-primary {
  background: #fff;
  color: #111;
  font-weight: 700;
  padding: 11px 32px;
  border-radius: 7px;
  font-size: 1.21rem;
  margin-top: 16px;
  letter-spacing: 0.025em;
  transition: background 0.16s, color 0.16s;
}

/* =======================
   HERO SECTION
   ======================= */
.hero {
  padding: 68px 0 45px 0;
  background: #181818;
  color: #fff;
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
.hero .content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.hero h1,.hero .h1 {
  color: #fff;
  font-size: 2.5rem;
  text-shadow: 0 2px 24px rgba(0,0,0,0.09);
}
.hero .subheadline {
  color: #ECECEC;
  font-size: 1.23rem;
}
@media (max-width: 600px) {
  .hero {
    padding: 30px 0 23px 0;
  }
  .hero .content-wrapper h1 {
    font-size: 1.45rem;
  }
}

/* =======================
   BUTTONS & INTERACTIVES
   ======================= */
.btn-primary,
.btn-accept-cookies, .btn-reject-cookies, .btn-cookie-settings {
  padding: 11px 30px;
  font-family: 'Rubik', 'Open Sans', Arial, sans-serif;
  font-size: 1.06rem;
  border-radius: 7px;
  background: #686767;
  color: #fff;
  border-color: #228877;
  font-weight: 700;
  letter-spacing: 0.016em;
  border: none;
  outline: none;
  transition: background 0.2s, box-shadow 0.2s, color 0.2s;
  box-shadow: 0 2px 9px rgba(0,0,0,0.10);
  margin-top: 12px;
  margin-bottom: 12px;
  cursor: pointer;
  display: inline-block;
  min-width: 128px;
  text-align: center;
}
.btn-primary:focus, .btn-primary:hover {
  background: #111;
  box-shadow: 0 3px 15px rgba(11,11,11,0.15);
  color: #ECECEC;
}

/* Cookie buttons */
.btn-accept-cookies {
  background: #111;
  color: #fff;
  margin-right: 13px;
}
.btn-accept-cookies:hover, .btn-accept-cookies:focus {
  background: #228877;
  color: #fff;
}
.btn-reject-cookies {
  background: #fff;
  color: #111;
  border: 1.3px solid #232323;
}
.btn-reject-cookies:hover, .btn-reject-cookies:focus {
  background: #232323;
  color: #fff;
}
.btn-cookie-settings {
  background: #fff;;
  color: #232323;
  border: 1.3px solid #232323;
}
.btn-cookie-settings:hover, .btn-cookie-settings:focus {
  background: #706e6e;
  color: #fff;
}

/* =======================
   FOOTER
   ======================= */
footer {
  background: #1a1a1a;
  color: #fff;
  padding-top: 40px;
  padding-bottom: 0;
  font-family: 'Open Sans', Arial, sans-serif;
}
.footer-main {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
  justify-content: space-between;
  border-bottom: 1px solid #232323;
  padding-bottom: 32px;
}
.footer-logo img {
  width: 70px;
  height: auto;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-nav a {
  color: #ECECEC;
  font-size: 1.05rem;
  margin-bottom: 1px;
  transition: color 0.18s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #fff;
  text-decoration: underline;
}
.contact-short {
  color: #ECECEC;
  font-size: 1.05rem;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}
.contact-short img {
  width: 19px;
  height: 19px;
  margin-right: 8px;
  vertical-align: middle;
}
.footer-bottom {
  font-size: 0.99rem;
  color: #d7d7d7;
  text-align: center;
  margin-top: 22px;
  padding: 12px 0;
}
@media (max-width:900px) {
  .footer-main {
    flex-direction: column;
    gap: 28px;
    align-items: flex-start;
  }
  .footer-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 14px;
  }
}

/* =========================
   CONTENT & TEXT SECTIONS
   ========================= */
.text-section {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-bottom: 8px;
}
.text-section ul,
.text-section ol {
  margin-top: 11px;
  margin-bottom: 12px;
}

/* Article List (Blog/Ratgeber) */
.article-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.article-list > li {
  background: #fff;
  color: #181818;
  border-radius: 12px;
  box-shadow: 0 3px 13px rgba(23,23,23,0.08);
  padding: 21px 22px;
  flex: 1 1 240px;
  min-width: 200px;
  border: 1.1px solid #E8E8E8;
  margin-bottom: 18px;
}
@media (max-width: 600px) {
  .article-list > li {
    padding: 13px 7px;
  }
}

/* =========================
   ALL FLEX ALIGNMENT RULES
   ========================= */
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    gap: 18px;
  }
}

.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
@media (max-width:900px) {
  .footer-main {
    flex-direction: column;
    gap: 28px;
    align-items: flex-start;
  }
  .content-grid {
    flex-direction: column;
    gap: 18px;
  }
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
}

/* practical-tips-grid */
.practical-tips-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 18px;
}
.practical-tips-grid > div {
  flex: 1 1 220px;
  min-width: 180px;
  background: #f7f7f7;
  border-radius: 12px;
  box-shadow: 0 2px 9px rgba(15,15,15,0.06);
  border: 1px solid #EAEAEA;
  padding: 21px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  transition: box-shadow 0.18s, background 0.18s;
}

/* ================================
   HOVER EFFECTS and MICROINTERACTION
   ================================ */
a, button {
  transition: color 0.16s, background 0.19s, border 0.16s, box-shadow 0.1s;
}
a:active { color: #0062ad; }
button:active { box-shadow: 0 1px 2px rgba(0,0,0,0.08); }
.card:active { box-shadow: 0 1.5px 7px rgba(0,0,0,0.13); }
.offer-card:hover .discount-badge {
  background: #222;
  color: #fff;
}
.level-tag:hover, .category:hover {
  background: #F7F7F2;
  color: #232323;
}

/* =====================
   SECTION SPACING, ETC
   ===================== */
@media (max-width: 600px) {
  h1,.h1 { font-size: 1.4rem; }
  h2,.h2 { font-size: 1.16rem; }
  h3,.h3 { font-size: 1rem; }
  .footer-main { padding-bottom: 16px; }
}
@media (max-width: 1170px) {
  .container { max-width: 100%; }
}

/* =====================
   COOKIE CONSENT BANNER
   ===================== */
#cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 1998;
  background: #232323;
  color: #fff;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  align-items: center;
  gap: 13px;
  box-shadow: 0 -2px 16px rgba(0,0,0,0.13);
  padding: 25px 16px 18px 16px;
  min-height: 70px;
  font-size: 1.05rem;
  opacity: 0;
  transform: translateY(100%);
  pointer-events: none;
  transition: opacity 0.25s, transform 0.26s;
}
#cookie-banner.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
#cookie-banner-text {
  max-width: 720px;
  text-align: center;
  margin-bottom: 6px;
}
#cookie-banner-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  margin-top: 6px;
}

/* COOKIE PREFERENCES MODAL */
#cookie-modal {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  width: 100vw; height: 100vh;
  background: rgba(15,15,15,0.81);
  z-index: 1999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
#cookie-modal.visible {
  opacity: 1;
  pointer-events: auto;
}
#cookie-modal-content {
  background: #fff;
  color: #232323;
  border-radius: 16px;
  box-shadow: 0 8px 46px rgba(10,10,10,0.19);
  padding: 38px 35px 30px 35px;
  min-width: 340px;
  max-width: 98vw;
  font-size: 1.07rem;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
  animation: cookieFadeIn 0.19s cubic-bezier(.54,.18,.27,.97);
}
@keyframes cookieFadeIn {
  0% { transform: scale(0.93); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
#cookie-modal-content h2 {
  font-size: 1.28rem;
  font-family: 'Rubik', Arial, sans-serif;
  font-weight: 700;
  color: #181818;
}
#cookie-modal-close {
  position: absolute;
  right: 19px;
  top: 14px;
  font-size: 2rem;
  color: #222;
  background: transparent;
  border: none;
  cursor: pointer;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 14px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 1.01rem;
}
.cookie-toggle {
  accent-color: #232323;
  width: 20px; height: 20px;
}
.cookie-toggle[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}
.cookie-category-label {
  font-size: 1.01rem;
  color: #232323;
  font-family: 'Open Sans', Arial, sans-serif;
}
#cookie-modal-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: flex-end;
  margin-top: 18px;
}
.btn-cookie-save {
  background: #181818;
  color: #fff;
  border-radius: 7px;
  padding: 9px 22px;
  font-size: 1rem;
  font-family: 'Rubik', Arial, sans-serif;
  cursor: pointer;
  border: none;
  font-weight: 600;
  transition: background 0.17s, color 0.16s;
}
.btn-cookie-save:hover, .btn-cookie-save:focus {
  background: #222;
}
@media (max-width: 520px) {
  #cookie-modal-content {
    padding: 20px 7px 23px 7px;
    min-width: 0; 
  }
  #cookie-modal-content h2 {
    font-size: 1rem;
  }
}

/* =============================
   SPECIALS AND UTILITY CLASSES
   ============================= */
section {
  width: 100%;
  background: #fff;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 2px 16px rgba(0,0,0,0.09);
  margin-bottom: 46px;
}
section:last-of-type {
  margin-bottom: 0;
  box-shadow: none;
  border-radius: 0;
}

ul.article-list {
  gap: 24px;
}

/* Visually hidden utility for accessibility */
.sr-only {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ==== End of CSS ==== */
