/* RESET & BASE STYLES --------------------------------------------- */

/* Box sizing reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Roboto', Arial, sans-serif;
  background-color: #23282B;
  color: #F2EDE6;
  min-height: 100vh;
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  padding-left: 1.2em;
}

li {
  margin-bottom: 8px;
}

strong {
  color: #CBC5B7;
}

a {
  color: #CBC5B7;
  text-decoration: none;
  transition: color 0.2s;
}

a:hover, a:focus {
  color: #F2EDE6;
  text-decoration: underline;
}

h1, h2, h3, h4 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  color: #F2EDE6;
  font-weight: 700;
  letter-spacing: 0.01em;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 24px;
}

h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

h4 {
  font-size: 1.125rem;
  margin-bottom: 8px;
}

p {
  margin-bottom: 18px;
}

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

.container {
  width: 100%;
  max-width: 1176px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
  display: flex;
  flex-direction: column;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}

.section, section:not(.hero) {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* HERO --------------------------- */
.hero {
  background: #22595A;
  color: #F2EDE6;
  padding: 64px 0 40px 0;
  box-shadow: 0 4px 32px rgba(24,26,28,0.06);
  border-bottom: 2px solid #CBC5B7;
}
.hero .container,
.hero .content-wrapper {
  align-items: center;
  text-align: center;
}
.hero h1 {
  font-size: 2.7rem;
  color: #F2EDE6;
  margin-bottom: 20px;
  letter-spacing: 2px;
}
.hero .subheadline {
  font-size: 1.15rem;
  color: #CBC5B7;
  margin-bottom: 26px;
  font-family: 'Roboto', Arial, sans-serif;
  letter-spacing: 1px;
}

/* FEATURE GRID, FLEXBOX ONLY --------------------------------- */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  margin-top: 24px;
}
.feature-grid li {
  background: #293133;
  border: 1px solid #44494A;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(34,89,90,0.12);
  padding: 28px 20px;
  flex: 1 1 250px;
  min-width: 220px;
  max-width: 330px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: box-shadow 0.25s, border-color 0.25s;
}
.feature-grid li:hover {
  border-color: #CBC5B7;
  box-shadow: 0 4px 24px rgba(203,197,183,0.15);
  background: #314344;
}
.feature-grid img {
  width: 46px;
  margin-bottom: 10px;
  filter: grayscale(0.3) brightness(0.8);
}
.feature-grid h3 {
  margin-bottom: 10px;
  color: #CBC5B7;
  font-family: 'Montserrat', Arial, sans-serif;
  text-align: center;
}
.feature-grid p {
  color: #F2EDE6;
  text-align: center;
}

/* CARD / CARD-CONTAINER STRUCTURE ------------------- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 40px;
}
.card {
  background: #293133;
  border-radius: 10px;
  margin-bottom: 20px;
  box-shadow: 0 2px 14px rgba(34,89,90,0.06);
  padding: 20px 24px;
  border: 1.5px solid #353C41;
  position: relative;
  transition: box-shadow 0.22s, border-color 0.24s;
}
.card:hover {
  box-shadow: 0 4px 32px rgba(34,89,90,0.18);
  border-color: #CBC5B7;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}

/* TEXT & IMAGE SECTION FLEX ----------------------------------- */
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.text-image-section .text {
  flex: 1 1 220px;
}
.text-image-section .image {
  flex: 1 1 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* FEATURE ITEM FLEX ------------------------------------------ */
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  padding: 14px 0 12px 0;
}

/* CTA BUTTONS ------------------------------------------------- */
.cta-btn,
.cta .cta-btn,
.card a.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: bold;
  color: #23282B;
  background-color: #CBC5B7;
  border: none;
  padding: 16px 34px;
  border-radius: 40px;
  letter-spacing: 1px;
  font-size: 1.065rem;
  transition: background-color 0.22s, color 0.18s, box-shadow 0.22s, transform 0.13s;
  box-shadow: 0 2px 14px rgba(34,89,90,0.08), 0 1px 1.5px 0 rgba(68,73,74,0.064);
  outline: none;
  cursor: pointer;
  margin-top: 18px;
}
.cta-btn:hover, .cta-btn:focus {
  background-color: #F2EDE6;
  color: #22595A;
  box-shadow: 0 4px 20px rgba(203,197,183,0.21);
  transform: translateY(-2px) scale(1.03);
  text-decoration: none;
}

/* CARDS / BLOG GRID ------------------------------------------ */
.blog-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  width: 100%;
  margin-top: 18px;
}
.blog-grid li {
  background: #293133;
  border-radius: 10px;
  box-shadow: 0 1.5px 8px rgba(34,89,90,0.08);
  border: 1.5px solid #353C41;
  flex: 1 1 230px;
  min-width: 210px;
  max-width: 370px;
  padding: 20px 20px 14px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow 0.21s, border-color 0.22s;
}
.blog-grid li:hover {
  border-color: #CBC5B7;
  box-shadow: 0 4px 24px rgba(203,197,183,0.15);
}

/* TESTIMONIALS STYLES ---------------------------------------- */
.testimonials {
  background: #283132;
  margin-bottom: 60px;
  padding: 40px 0;
}
.testimonials h2 {
  color: #CBC5B7;
  margin-bottom: 18px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  background: #F2EDE6;
  color: #23282B;
  border: 1.5px solid #CBC5B7;
  border-radius: 12px;
  padding: 20px 28px;
  margin-bottom: 20px;
  box-shadow: 0 2px 20px rgba(203,197,183,0.20);
  max-width: 600px;
  width: 100%;
  font-size: 1.08rem;
  transition: box-shadow 0.16s, transform 0.13s;
}
.testimonial-card p {
  color: #23282B;
  margin-bottom: 6px;
}
.testimonial-card div {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #22595A;
  font-weight: 500;
}
.testimonial-card:hover {
  box-shadow: 0 6px 32px rgba(34,89,90,0.16);
  transform: translateY(-2px) scale(1.01);
}

/* CTA SECTIONS ------------------------------------------------ */
.cta {
  background: #22595A;
  color: #F2EDE6;
  padding: 48px 0;
  box-shadow: 0 4px 24px rgba(34,89,90,0.13);
  border-radius: 16px 16px 0 0;
  margin-bottom: 0;
}
.cta h2 {
  color: #CBC5B7;
  margin-bottom: 12px;
  font-size: 2.1rem;
}
.cta p {
  color: #F2EDE6;
}

/* PRICING TABLE ----------------------------------------------- */
.pricing-table {
  width: 100%;
  background: #293133;
  border-radius: 10px;
  border: 1.5px solid #353C41;
  box-shadow: 0 1.5px 10px rgba(34,89,90,0.11);
  margin: 18px 0 32px 0;
  overflow-x: auto;
  font-size: 1.03rem;
  border-collapse: separate;
  border-spacing: 0;
}
.pricing-table th,
.pricing-table td {
  padding: 16px 20px;
  text-align: left;
}
.pricing-table thead th {
  background: #22595A;
  color: #CBC5B7;
  border-bottom: 2px solid #CBC5B7;
  font-family: 'Montserrat', Arial, sans-serif;
}
.pricing-table tbody td {
  border-bottom: 1px solid #353C41;
  color: #F2EDE6;
}
.pricing-table tbody tr:last-child td {
  border-bottom: none;
}

/* LEGAL SECTION (IMPRINT, Datenschutz etc.)  ------------------ */
.legal {
  background: #23282B;
  color: #CBC5B7;
  border-radius: 14px;
  border: 1.5px solid #353C41;
  box-shadow: 0 2px 10px rgba(34,89,90,0.08);
  margin-bottom: 60px;
  padding: 44px 24px;
}
.legal h1, .legal h2 {
  color: #F2EDE6;
}

/* THANK YOU PAGE ---------------------------------------------- */
.thank-you {
  background: #23282B;
  color: #F2EDE6;
  border-radius: 12px;
  border: 1.5px solid #CBC5B7;
  box-shadow: 0 3px 18px rgba(34,89,90,0.13);
  padding: 48px 24px 52px 24px;
  margin-bottom: 60px;
}
.thank-you h1 {
  color: #CBC5B7;
}

/* FOOTER ------------------------------------------------------ */
footer {
  background: #202426;
  color: #CBC5B7;
  font-size: 1rem;
  padding: 32px 0 18px 0;
  border-top: 2px solid #353C41;
  z-index: 2;
}
footer .container {
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 12px;
}
footer nav a {
  color: #CBC5B7;
  font-size: 1rem;
  letter-spacing: 1px;
  transition: color 0.15s;
}
footer nav a:hover, footer nav a:focus {
  color: #F2EDE6;
}
footer p {
  margin-bottom: 0;
  color: #CBC5B7;
}

/* HEADER & NAVIGATION ----------------------------------------- */
header {
  background: #23282B;
  border-bottom: 2px solid #353C41;
  padding: 0 0 0 0;
  position: relative;
  z-index: 44;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
  gap: 0;
}
header a img {
  height: 56px;
  margin-right: 16px;
}
header nav {
  display: flex;
  flex-direction: row;
  gap: 18px;
  align-items: center;
  margin-left: 16px;
}
header nav a {
  color: #CBC5B7;
  font-family: 'Montserrat', Arial, sans-serif;
  padding: 6px 8px;
  font-size: 1rem;
  border-radius: 6px;
  transition: color 0.18s, background 0.15s;
}
header nav a.cta-btn {
  background: #CBC5B7;
  color: #23282B;
  padding: 10px 24px;
  margin-left: 10px;
  border-radius: 30px;
  font-size: 1.07rem;
  font-weight: 600;
  transition: background 0.2s, color 0.2s;
  box-shadow: 0 1.5px 8px rgba(34,89,90,0.09);
}
header nav a.cta-btn:hover, header nav a.cta-btn:focus {
  background: #F2EDE6;
  color: #22595A;
}
header nav a:hover, header nav a:focus:not(.cta-btn) {
  background: #353C41;
}

/* MOBILE NAVIGATION --------------------------------------------- */
.mobile-menu-toggle {
  display: none;
  background: transparent;
  color: #CBC5B7;
  border: none;
  font-size: 2.1rem;
  margin-left: 22px;
  cursor: pointer;
  z-index: 402;
  transition: color 0.22s;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  color: #F2EDE6;
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(26,28,32,0.98);
  transform: translateX(100%);
  transition: transform 0.36s cubic-bezier(0.7,0,0.2,1);
  z-index: 400;
  padding-top: 48px;
  padding-left: 30px;
  display: flex;
  flex-direction: column;
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
  opacity: 1;
}
.mobile-menu-close {
  position: absolute;
  top: 18px;
  right: 32px;
  color: #F2EDE6;
  background: transparent;
  border: none;
  font-size: 2.1rem;
  cursor: pointer;
  z-index: 401;
  transition: color 0.19s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: #CBC5B7;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 26px;
  margin-top: 32px;
}
.mobile-nav a {
  font-size: 1.3rem;
  font-family: 'Montserrat', Arial, sans-serif;
  color: #CBC5B7;
  background: none;
  border-radius: 8px;
  padding: 14px 12px;
  line-height: 1.5;
  letter-spacing: 1px;
  display: flex;
  width: 85vw;
  max-width: 390px;
  transition: background 0.16s, color 0.13s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #293133;
  color: #F2EDE6;
}
.mobile-nav a.cta-btn {
  background: #CBC5B7;
  color: #23282B;
  font-weight: bold;
  text-align: center;
  margin: 18px 0 0 0;
  padding: 18px 0;
  border-radius: 32px;
}
.mobile-nav a.cta-btn:hover, .mobile-nav a.cta-btn:focus {
  background: #F2EDE6;
  color: #22595A;
}

/* COOKIE CONSENT BANNER ----------------------------------- */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #23282B;
  border-top: 2px solid #CBC5B7;
  box-shadow: 0 -4px 32px rgba(34,89,90,0.13);
  padding: 26px 20px 24px 20px;
  z-index: 5500;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  animation: fadeInBanner 0.55s cubic-bezier(.22,.68,.46,1.18);
}
@keyframes fadeInBanner {
  0% { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0); }
}
.cookie-banner p {
  color: #F2EDE6;
  font-size: 1rem;
  margin-bottom: 0;
}
.cookie-banner .cookie-btns {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 0;
}
.cookie-banner button {
  min-width: 134px;
  border: none;
  border-radius: 32px;
  padding: 12px 22px;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  cursor: pointer;
  background: #CBC5B7;
  color: #23282B;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
  box-shadow: 0 1px 4px rgba(203,197,183,0.12);
}
.cookie-banner button:hover, .cookie-banner button:focus {
  background: #F2EDE6;
  color: #22595A;
  box-shadow: 0 2px 12px rgba(203,197,183,0.21);
}
.cookie-banner button.reject {
  background: #293133;
  color: #CBC5B7;
  border: 1.5px solid #CBC5B7;
}
.cookie-banner button.reject:hover, .cookie-banner button.reject:focus {
  background: #22595A;
  color: #F2EDE6;
}
.cookie-banner button.settings {
  background: #23282B;
  color: #CBC5B7;
  border: 1.5px solid #CBC5B7;
}
.cookie-banner button.settings:hover, .cookie-banner button.settings:focus {
  background: #283132;
  color: #F2EDE6;
}

/* COOKIE MODAL ----------------------------------------------- */
.cookie-modal-overlay {
  position: fixed;
  left: 0;right:0;top:0;bottom:0;
  background: rgba(34,89,90,0.70);
  z-index: 6000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeInModal 0.3s cubic-bezier(.18,.67,.41,1.13);
}
@keyframes fadeInModal {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
.cookie-modal {
  background: #23282B;
  border: 2px solid #CBC5B7;
  color: #F2EDE6;
  border-radius: 18px;
  max-width: 400px;
  width: 96vw;
  padding: 36px 24px 30px 24px;
  box-shadow: 0 8px 40px rgba(203,197,183,0.23);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  position: relative;
}
.cookie-modal h2 {
  color: #CBC5B7;
  margin-bottom: 6px;
  font-size: 1.35rem;
}
.cookie-modal label {
  font-family: 'Roboto', Arial, sans-serif;
  color: #CBC5B7;
  font-size: 1.03rem;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 9px;
}
.cookie-modal input[type="checkbox"] {
  accent-color: #22595A;
  margin-right: 6px;
}
.cookie-modal-category {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 10px;
}
.cookie-modal .modal-btns {
  display: flex;
  gap: 14px;
  justify-content: flex-end;
  width: 100%;
  margin-top: 10px;
}
.cookie-modal .close-modal {
  position: absolute;
  top: 14px;
  right: 24px;
  background: transparent;
  border: none;
  color: #CBC5B7;
  font-size: 1.5rem;
  cursor: pointer;
}
.cookie-modal .close-modal:hover,
.cookie-modal .close-modal:focus {
  color: #F2EDE6;
}

/* CONTACT ICONS & DETAILS ------------------------------------ */
.text-section img {
  display: inline-block;
  width: 21px;
  margin-right: 7px;
  vertical-align: middle;
  filter: contrast(0.86) grayscale(0.2) brightness(0.88);
}
.text-section p {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 1.08rem;
  color: #CBC5B7;
  margin-bottom: 8px;
}

/* BLOG LIST/POSTS -------------------------------------------- */
.blog-list {
  margin-bottom: 56px;
}
.blog-list h2 {
  margin-top: 14px;
}

/* TABLET & DESKTOP RESPONSIVE --------------------------------- */
@media (min-width: 769px) {
  .hero .container,
  .hero .content-wrapper {
    align-items: flex-start;
    text-align: left;
  }
  .blog-grid {
    justify-content: flex-start;
  }
  .content-wrapper {
    gap: 32px;
  }
  .section, section:not(.hero) {
    padding: 60px 0 54px 0;
  }
}

/* FLEX WRAPS ------------------------------------------------- */
@media (max-width: 1080px) {
  .container {
    max-width: 100%;
    padding-left: 12px;
    padding-right: 12px;
  }
}
@media (max-width: 950px) {
  .feature-grid, .card-container, .blog-grid {
    gap: 16px;
  }
}

/* MOBILE FIRST: NAVIGATION & LAYOUT -------------------------- */
@media (max-width: 900px) {
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 15px;
  }
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.45rem;
  }
  .container {
    padding: 0 8px;
  }
  .section, section:not(.hero) {
    padding: 32px 4px;
  }
  .feature-grid, .blog-grid, .card-container {
    flex-direction: column;
    gap: 16px;
  }
  .testimonial-card, .card, .legal, .thank-you {
    padding: 18px 8px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 20px;
  }
}

/* For smallest screens */
@media (max-width: 480px) {
  html {
    font-size: 14px;
  }
  .hero h1 {
    font-size: 1.45rem;
  }
}

/* SCROLLBARS: Subtle for modern touch ---------------------- */
body, .mobile-menu {
  scrollbar-color: #CBC5B7 #23282B;
  scrollbar-width: thin;
}
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-thumb {
  background: #CBC5B7;
  border-radius: 6px;
}
::-webkit-scrollbar-track {
  background: #23282B;
}

/* UTILITY CLASSES -------------------------------------------- */
.mb-0 { margin-bottom: 0 !important; }
.mt-0 { margin-top: 0 !important; }

/* RESPONSIVE ALIGNMENT/WRAPPING ----------------------------- */
.features, .card-container, .blog-list, .content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  width: 100%;
}

/* PREVENT CARD OVERLAPPING ---------------------------------- */
.card-container > *, .blog-grid > *, .feature-grid > *, .content-grid > * {
  margin-bottom: 20px;
}

/* VISUAL METALLIC ACCENTS (SEPARATOR LINES)------------------ */
hr {
  border: none;
  height: 1px;
  background: linear-gradient(to right, #CBC5B7 33%, #23282B 73%);
  margin: 40px 0;
}

/* BUTTON FOCUS VISIBILITY ----------------------------------- */
button:focus, .cta-btn:focus {
  outline: 3px solid #22595A;
  outline-offset: 2px;
}

/* Miscellaneous --------------------------------------------- */
address {
  font-style: normal;
  color: #CBC5B7;
  margin-bottom: 10px;
  letter-spacing: 1px;
}
