/* ========================================================
  PristineHue Beratung - style.css
  Warm, friendly, modern, professional, flexbox-based layout only
======================================================== */

/* ===================== CSS RESET ===================== */
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;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.6;
}
ol, ul {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  border: none;
  background: none;
  outline: none;
}
img {
  max-width: 100%;
  display: block;
}

/* ================== FONT IMPORTS ================== */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,600,400&display=swap');
@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,600,700&display=swap');

/* ================= COLOR PALETTE ================= */
:root {
  --color-primary: #235574;
  --color-primary-dark: #17405c;
  --color-secondary: #E3ECF2;
  --color-background: #fffefa;
  --color-accent: #227965;
  --color-accent-darker: #195e4f;
  --color-card-bg: #fff;
  --color-card-border: #e9ebeb;
  --color-shadow: rgba(35, 85, 116, 0.06);
  --color-shadow-heavy: rgba(35, 85, 116, 0.11);
  --color-divider: #e7eaf0;
  --color-link: #227965;
  --color-link-hover: #389E89;
  --color-success: #227965;
  --color-error: #b14545;
  --color-warning: #f2c594;
  --color-neutral: #faf7f3;
  --color-cookies-bg: #fff7e6;
}

body {
  font-family: 'Open Sans', Arial, sans-serif;
  background: var(--color-background);
  color: #30333a;
  font-size: 16px;
  min-height: 100vh;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}

/* =============== TYPOGRAPHY =============== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  line-height: 1.15;
  color: var(--color-primary);
  margin-bottom: 16px;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 24px;
}
h2 {
  font-size: 1.75rem;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 16px;
}
h4, h5, h6 {
  font-size: 1.1rem;
  font-weight: 600;
}
p,
ul,
ol {
  margin-bottom: 16px;
}
li {
  margin-bottom: 10px;
  position: relative;
  padding-left: 0;
}
strong {
  font-weight: 700;
}
.text-section ul li::before {
  content: '';
}
/* Links */
a {
  color: var(--color-link);
  transition: color .18s;
}
a:hover,
a:focus {
  color: var(--color-link-hover);
  text-decoration: underline;
}

/* ===================== LAYOUT UTILS ===================== */
.container {
  width: 100%;
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ================== SECTION SPACING ================== */
.section,
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}

/* ================= HEADER / MAIN-NAV ================ */
header {
  background: var(--color-primary);
  color: #fff;
  width: 100%;
  min-height: 66px;
  box-shadow: 0 2px 16px var(--color-shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.main-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  height: 66px;
  width: 100%;
}
.main-nav > a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  opacity: 0.96;
  padding: 8px 14px;
  border-radius: 24px;
  transition: background .16s, color .16s, box-shadow .18s;
  display: flex;
  align-items: center;
}
.main-nav > a img {
  height: 34px;
  width: auto;
  margin-right: 5px;
  border-radius: 8px;
}
.main-nav > a.cta-primary {
  margin-left: auto;
  background: var(--color-accent);
  color: #fff;
  font-size: 1rem;
  font-weight: bold;
  border-radius: 24px;
  box-shadow: 0 2px 8px var(--color-shadow);
  padding: 9px 22px;
  transition: background 0.16s, box-shadow 0.18s, transform 0.14s;
}
.main-nav > a.cta-primary:hover, .main-nav > a.cta-primary:focus {
  background: var(--color-accent-darker);
  box-shadow: 0 4px 24px var(--color-shadow-heavy);
  transform: translateY(-1px) scale(1.03);
}
.main-nav > a:not(.cta-primary):hover, .main-nav > a:not(.cta-primary):focus {
  background: var(--color-accent);
  color: #fff;
}
.main-nav > a.active {
  background: var(--color-accent);
}
/* ================= MOBILE MENU ================ */
.mobile-menu-toggle {
  background: var(--color-accent);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 2rem;
  width: 48px;
  height: 48px;
  position: absolute;
  top: 12px;
  right: 20px;
  display: none;
  cursor: pointer;
  z-index: 2200;
  box-shadow: 0 1px 8px var(--color-shadow);
  transition: background 0.15s;
}
.mobile-menu-toggle:hover {
  background: var(--color-accent-darker);
}
.mobile-menu {
  /* Initially hidden */
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: #fffefa;
  box-shadow: 0 0 24px var(--color-shadow-heavy);
  z-index: 2500;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transform: translateX(-100%);
  transition: transform 0.32s cubic-bezier(.77,0,.18,1);
  padding: 36px 28px 28px 28px;
  gap: 36px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  background: transparent;
  border: none;
  color: var(--color-primary);
  font-size: 2.2rem;
  cursor: pointer;
  margin-bottom: 20px;
  border-radius: 50%;
  transition: background 0.13s, color 0.14s;
  padding: 6px 13px;
}
.mobile-menu-close:hover {
  background: var(--color-secondary);
  color: var(--color-accent);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}
.mobile-nav a {
  color: var(--color-primary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.25rem;
  padding: 16px 0 14px 0;
  border-radius: 12px;
  transition: background .19s, color .19s;
  letter-spacing: 0.02em;
}
.mobile-nav a:active,
.mobile-nav a:hover,
.mobile-nav a:focus {
  color: #fff;
  background: var(--color-primary);
}
/* MOBILE MENU: hide/show rules */
@media (max-width: 990px) {
  .main-nav {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .mobile-menu {
    display: flex;
  }
}
@media (min-width: 991px) {
  .mobile-menu,
  .mobile-menu.open,
  .mobile-menu-close,
  .mobile-menu-toggle {
    display: none !important;
  }
  .main-nav {
    display: flex !important;
  }
}

/* ================== HERO SECTION ================== */
.hero {
  background: linear-gradient(180deg, var(--color-secondary) 60%, #fffefa 100%);
  border-radius: 0 0 32px 32px;
  box-shadow: 0 8px 28px var(--color-shadow);
  margin-bottom: 60px;
}
.hero .container {
  padding-top: 48px;
  padding-bottom: 48px;
}
.hero .content-wrapper {
  align-items: flex-start;
  gap: 18px;
  max-width: 780px;
}
.hero h1 {
  color: var(--color-primary);
  font-size: 2.2rem;
  margin-bottom: 20px;
}
.hero p {
  color: #26443e;
  font-size: 1.13rem;
  margin-bottom: 24px;
}

/* ================== CTA BUTTONS ================== */
.cta-primary {
  background: var(--color-accent);
  color: #fff !important;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.16rem;
  padding: 13px 32px;
  border-radius: 30px;
  box-shadow: 0 3px 22px var(--color-shadow);
  cursor: pointer;
  transition: background 0.18s, transform 0.14s, box-shadow 0.13s;
  text-align: center;
  display: inline-block;
  border: none;
  outline: none;
}
.cta-primary:hover, .cta-primary:focus {
  background: var(--color-accent-darker);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 30px var(--color-shadow-heavy);
}

/* ================== FEATURES SECTION ================== */
.features {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 2px 18px var(--color-shadow);
}
.features .content-wrapper > ul {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.features li {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  background: var(--color-neutral);
  border-radius: 18px;
  padding: 18px 18px 18px 18px;
  box-shadow: 0 1px 10px var(--color-shadow);
  margin-bottom: 12px;
  min-height: 68px;
  font-size: 1.1rem;
  position: relative;
  transition: box-shadow 0.18s;
}
.features li img {
  height: 32px;
  width: 32px;
  flex-shrink: 0;
}
.features li strong {
  color: var(--color-primary);
}
.features li:hover {
  box-shadow: 0 3px 26px var(--color-shadow-heavy);
}

/* ==================== TESTIMONIALS ==================== */
.testimonials {
  background: var(--color-secondary);
  border-radius: 28px;
  box-shadow: 0 2px 18px var(--color-shadow);
}
.testimonials h2 {
  color: var(--color-accent);
}
.testimonials .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 16px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 26px 26px 18px 26px;
  background: var(--color-card-bg);
  color: #173137;
  border-radius: 20px;
  box-shadow: 0 2px 10px var(--color-shadow);
  margin-bottom: 20px;
  min-width: 270px;
  max-width: 360px;
  flex: 1 1 290px;
  font-size: 1.07rem;
  transition: box-shadow 0.17s, transform 0.13s;
  border: 1px solid var(--color-divider);
}
.testimonial-card p {
  color: #173137;
  margin-bottom: 10px;
}
.testimonial-card span {
  font-size: 0.97rem;
  color: var(--color-accent);
  letter-spacing: 0.01em;
}
.testimonial-card:hover, .testimonial-card:focus {
  box-shadow: 0 6px 30px var(--color-shadow-heavy);
  transform: translateY(-2px) scale(1.015);
}

/* ===================== CTA SECTIONS ===================== */
.cta {
  background: var(--color-accent);
  color: #fff;
  border-radius: 20px;
  box-shadow: 0 4px 24px var(--color-shadow);
}
.cta .content-wrapper {
  align-items: center;
}
.cta h2 {
  color: #fff;
  font-size: 1.7rem;
  margin-bottom: 14px;
}
.cta p {
  color: #e6f0eb;
  margin-bottom: 12px;
}
.cta .cta-primary {
  background: #fff;
  color: var(--color-accent)!important;
  font-weight: bold;
  border-radius: 30px;
  border: 1.5px solid var(--color-accent);
  box-shadow: 0 2px 22px var(--color-shadow);
}
.cta .cta-primary:hover, .cta .cta-primary:focus {
  background: var(--color-accent-darker);
  color: #fff;
}

/* ===================== CARD PATTERNS ===================== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--color-card-bg);
  border-radius: 18px;
  box-shadow: 0 2px 10px var(--color-shadow);
  margin-bottom: 20px;
  position: relative;
  padding: 22px 22px 18px 22px;
  flex: 1 1 286px;
  transition: box-shadow 0.17s;
  border: 1px solid var(--color-card-border);
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.card:hover {
  box-shadow: 0 6px 22px var(--color-shadow-heavy);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

/* ===================== TEXT-IMAGE SECTIONS ===================== */
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

/* ===================== CONTENT-GRID ===================== */
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

/* ================== FEATURE ITEMS ================== */
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--color-card-bg);
  border-radius: 18px;
  box-shadow: 0 2px 10px var(--color-shadow);
  padding: 28px 20px;
  margin-bottom: 20px;
  transition: box-shadow 0.17s;
}
.feature-item:hover {
  box-shadow: 0 8px 36px var(--color-shadow-heavy);
}

/* ===================== KARTEN / MAP ===================== */
.karte {
  background: var(--color-secondary);
  border-radius: 17px;
  padding: 18px 20px;
  box-shadow: 0 2px 8px var(--color-shadow);
  color: var(--color-primary);
  margin-top: 12px;
  font-size: 1.08rem;
}

/* ===================== FOOTER ===================== */
footer {
  background: var(--color-primary);
  color: #fff;
  padding: 38px 0 18px 0;
  border-top-left-radius: 32px;
  border-top-right-radius: 32px;
  box-shadow: 0 -4px 24px var(--color-shadow);
}
footer .container {
  padding-bottom: 0;
}
footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
}
.footer-section {
  display: flex;
  flex-direction: column;
  gap: 13px;
  min-width: 220px;
}
.footer-section img {
  width: 47px;
  height: auto;
  margin-bottom: 12px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-nav a {
  color: #d6eeea;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.01rem;
  opacity: 0.95;
  transition: color 0.17s, opacity 0.09s, text-decoration 0.15s;
  padding: 4px 2px;
  border-radius: 8px;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #fff;
  opacity: 1;
  text-decoration: underline;
}
footer p {
  color: #ebfcf2;
  font-size: 0.98rem;
}

/* ============ TEXT-SECTION UNIVERSAL ============== */
.text-section {
  font-size: 1.09rem;
  color: #234343;
}
.text-section ul {
  margin-left: 0;
  padding-left: 0;
}
.text-section li {
  padding-left: 0;
  background: none;
  box-shadow: none;
  border-radius: 0;
  margin-bottom: 10px;
}
.text-section li span {
  color: var(--color-accent);
  font-weight: bold;
  margin-left: 5px;
}

/* Responsive Table (not present, but normalize just in case) */
table {
  border-collapse: collapse;
  width: 100%;
  background: #fff;
  border-radius: 18px;
  overflow: auto;
  box-shadow: 0 1px 12px var(--color-shadow);
}
th, td {
  padding: 12px 16px;
  border: 1px solid var(--color-card-border);
  text-align: left;
}

/*  =========== COOKIE CONSENT BANNER =========== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  width: 100vw;
  background: var(--color-cookies-bg);
  color: #2d3649;
  box-shadow: 0 -4px 32px var(--color-warning);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 24px 20px 20px 28px;
  z-index: 99999;
  font-size: 1.03rem;
  border-top-left-radius: 17px;
  border-top-right-radius: 17px;
  animation: slideInCookie 0.6s cubic-bezier(0.86,0,0.07,1);
}
.cookie-banner p {
  flex: 1 1 210px;
  margin-bottom: 0;
}
.cookie-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.cookie-banner button {
  padding: 10px 22px;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  border-radius: 18px;
  border: none;
  cursor: pointer;
  font-weight: bold;
  box-shadow: 0 2px 12px var(--color-shadow);
  transition: background 0.14s, color 0.14s, box-shadow 0.11s;
}
.btn-cookie-accept {
  background: var(--color-success);
  color: #fff;
}
.btn-cookie-accept:hover {
  background: var(--color-accent-darker);
}
.btn-cookie-reject {
  background: var(--color-warning);
  color: #915a19;
}
.btn-cookie-reject:hover {
  background: #f2b875;
}
.btn-cookie-settings {
  background: #fff;
  border: 1.5px solid var(--color-primary);
  color: var(--color-primary);
}
.btn-cookie-settings:hover {
  background: var(--color-secondary);
  color: var(--color-accent);
}
@keyframes slideInCookie {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Cookie Modal (for settings) */
.cookie-modal-overlay {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(32,44,67,0.34);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeInCookieModal 0.33s;
}
@keyframes fadeInCookieModal {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: #fffefa;
  min-width: 324px;
  max-width: 99vw;
  border-radius: 22px;
  box-shadow: 0 6px 48px var(--color-shadow-heavy);
  padding: 34px 38px 25px 38px;
  color: var(--color-primary-dark);
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: popInCookieModal 0.24s 0.06s backwards cubic-bezier(.87,0,.13,1.01);
  position: relative;
}
@keyframes popInCookieModal {
  from { transform: scale(.88) translateY(30px); opacity: 0; }
  to   { transform: scale(1) translateY(0); opacity: 1;}
}
.cookie-modal h2 {
  color: var(--color-primary);
  margin-bottom: 20px;
  font-size: 1.24rem;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cookie-modal .cookie-category label {
  font-weight: 600;
  color: var(--color-primary-dark);
  font-size: 1.06rem;
}
.cookie-modal .cookie-category input[type=checkbox]:not(:disabled) {
  accent-color: var(--color-accent);
  transform: scale(1.2);
  margin-right: 6px;
}
.cookie-modal .cookie-category input[type=checkbox]:disabled {
  accent-color: #aaa;
  opacity: 0.7;
}
.cookie-modal p {
  color: #2c2c2c;
  font-size: 1.02rem;
}
.cookie-modal .cookie-modal-btns {
  display: flex;
  gap: 15px;
  margin-top: 10px;
}
.cookie-modal .cookie-modal-close {
  position: absolute;
  top: 14px;
  right: 19px;
  background: transparent;
  border: none;
  font-size: 1.7rem;
  color: var(--color-accent);
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.13s, color 0.14s;
}
.cookie-modal .cookie-modal-close:hover {
  background: var(--color-secondary);
  color: var(--color-error);
}

/* ===================== RESPONSIVE LAYOUT ===================== */
@media (max-width: 1100px) {
  .container {
    padding-left: 10px;
    padding-right: 10px;
  }
}
@media (max-width: 900px) {
  .footer-section {
    min-width: 160px;
  }
  .testimonial-card {
    min-width: 200px;
    max-width: 100%;
  }
}
@media (max-width: 768px) {
  h1 {
    font-size: 2.1rem;
  }
  h2 {
    font-size: 1.38rem;
  }
  .hero .container {
    padding-top: 24px;
    padding-bottom: 32px;
  }
  .card-container,
  .features .content-wrapper > ul,
  .content-wrapper,
  .testimonials .content-wrapper {
    flex-direction: column;
    gap: 18px;
  }
  .card, .testimonial-card {
    min-width: 0;
    width: 100%;
    max-width: 100%;
    margin-bottom: 18px;
  }

  .footer-section {
    min-width: 0;
    width: 100%;
  }
  footer .content-wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
  }
  .section,
  section {
    padding: 28px 7px;
    margin-bottom: 34px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 22px;
  }
  .mobile-menu {
    padding: 22px 10px 18px 10px;
  }
  .cookie-modal {
    padding: 18px 8vw 20px 8vw;
    min-width: 0;
    width: 98vw;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 20px 8px 18px 14px;
    font-size: 0.98rem;
  }
}
@media (max-width: 600px) {
  h1 {
    font-size: 1.41rem;
  }
  .main-nav > a.cta-primary {
    padding: 8px 18px;
    font-size: 1rem;
  }
  .card, .testimonial-card {
    padding: 14px 10px 14px 10px;
  }
}

/* ================ MICRO-INTERACTIONS & ANIMATIONS ================= */
.cta-primary,
.card, .testimonial-card, .features li,
.cookie-banner button, .footer-nav a, .mobile-nav a {
  transition: box-shadow 0.17s, background 0.17s, transform 0.13s, color 0.13s, opacity 0.12s;
}

/* ================ MISC/SHARED UTILS ================ */
::-webkit-input-placeholder { color: #c5bba2; }
::-moz-placeholder { color: #c5bba2; }
:-ms-input-placeholder { color: #c5bba2; }
::placeholder { color: #c5bba2; }

@media print {
  .cookie-banner, .cookie-modal-overlay, .mobile-menu { display: none !important; }
}

/* END */
