/* =============================== */
/*        RESET & NORMALIZE         */
/* =============================== */
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,
main, 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, main, nav, section {
  display: block;
}
body {
  line-height: 1.6;
  background: #F5F5F5;
  color: #3E4A6D;
  font-family: 'Roboto', 'Georgia', serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a {
  color: #3E4A6D;
  text-decoration: none;
  transition: color .2s;
}
a:hover, a:focus {
  color: #A07B2B;
  outline: none;
}
ul, ol {
  margin: 16px 0 16px 24px;
  padding: 0;
}
img {
  max-width: 100%;
  display: block;
  border: 0;
  border-radius: 4px;
}
button {
  font: inherit;
  background: none;
  border: none;
  outline: none;
  cursor: pointer;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Georgia', serif;
  color: #2D3248;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-bottom: 16px;
  line-height: 1.13;
}
h1 { font-size: 2.8rem; margin-bottom: 24px; }
h2 { font-size: 2rem; margin-bottom: 20px; }
h3 { font-size: 1.4rem; margin-bottom: 16px; }
h4 { font-size: 1.1rem; }
p, li, address {
  font-size: 1rem;
  font-family: 'Roboto', 'Georgia', serif;
  color: #3E4A6D;
}
strong { font-weight: 700; }
em { font-style: italic; }
hr { border: none; border-top: 1px solid #eee; margin: 32px 0; }

/* =============================== */
/*         COLOR VARIABLES         */
/* =============================== */
:root {
  --primary: #3E4A6D;
  --primary-dark: #2D3248;
  --secondary: #D1B777;
  --secondary-dark: #A07B2B;
  --accent: #F5F5F5;
  --bg-light: #FFFDF8;
  --bg-section: #FAF9F6;
  --bg-card: #FFFFFF;
  --gray: #E9E6DD;
  --gray-dark: #AFB5C0;
  --error: #b51d1d;
  --success: #175122;
}

/* =============================== */
/*          LAYOUT BASE            */
/* =============================== */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.text-section {
  background: var(--bg-section);
  border-radius: 18px;
  box-shadow: 0 2px 16px 0 rgba(62,74,109,0.06);
  padding: 24px 24px;
  margin-bottom: 24px;
}
.activity-feed {
  background: var(--accent);
  border-radius: 8px;
  padding: 16px 20px;
  margin-top: 20px;
}

/* =============================== */
/*           HEADER/NAV            */
/* =============================== */
header {
  background: var(--bg-light);
  box-shadow: 0 2px 12px rgba(62,74,109,0.06);
  margin-bottom: 0px;
  position: relative;
  z-index: 100;
}
header nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 20px 20px 20px;
}
header nav > a img {
  max-height: 52px;
  width: auto;
  margin-right: 20px;
  vertical-align: middle;
}
header nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  list-style: none;
}
header nav ul li {
  margin: 0;
}
header nav ul li a {
  font-family: 'Montserrat', 'Georgia', serif;
  font-size: 1rem;
  color: var(--primary-dark);
  padding: 8px 12px;
  border-radius: 6px;
  transition: background 0.18s, color 0.18s;
}
header nav ul li a:hover, header nav ul li a:focus {
  background: var(--secondary);
  color: #fff;
}
.cta-btn {
  display: inline-block;
  font-family: 'Montserrat', serif;
  font-weight: 600;
  font-size: 1.08rem;
  color: #fff;
  background: var(--primary);
  border-radius: 8px;
  padding: 10px 32px;
  box-shadow: 0 1.5px 12px 0 rgba(62,74,109,0.12);
  border: none;
  margin-left: 24px;
  transition: background 0.23s, box-shadow 0.23s, transform 0.18s;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--secondary-dark);
  color: #fff;
  box-shadow: 0 4px 24px 0 rgba(209,183,119,0.16);
  transform: translateY(-2px) scale(1.02);
}
header .mobile-menu-toggle {
  display: none;
}

/* =============================== */
/*         MOBILE NAVIGATION       */
/* =============================== */
.mobile-menu-toggle {
  display: none;
  background: var(--secondary);
  color: #fff;
  font-size: 2.1rem;
  border-radius: 8px;
  padding: 4px 22px 4px 14px;
  margin: 0 10px 0 0;
  border: none;
  z-index: 1051;
  position: relative;
  transition: background .2s;
}
.mobile-menu-toggle:active, .mobile-menu-toggle:focus {
    background: var(--primary);
    outline: none;
}
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(62,74,109,0.96);
  z-index: 1050;
  flex-direction: column;
  align-items: flex-start;
  transition: transform .36s cubic-bezier(.71,.06,.28,.98);
  transform: translateX(100%);
  overflow-y: auto;
}
.mobile-menu.active {
  display: flex;
  transform: translateX(0);
}
.mobile-menu-close {
  color: #fff;
  background: none;
  border: none;
  font-size: 2.2rem;
  font-weight: 500;
  align-self: flex-end;
  margin: 32px 26px 16px 0;
  cursor: pointer;
  transition: color .19s;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  color: var(--secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  align-items: flex-start;
  padding: 0 36px;
  margin-top: 20px;
}
.mobile-nav a {
  font-family: 'Montserrat', serif;
  font-size: 1.26rem;
  color: #fff;
  background: transparent;
  padding: 10px 0 10px 8px;
  border-radius: 8px;
  transition: background .2s, color .2s;
  width: 100%;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--secondary);
  color: var(--primary-dark);
}
/* Hide regular nav in mobile, show burger */
@media (max-width: 900px) {
    header nav ul,
    header nav .cta-btn {
      display: none !important;
    }
    .mobile-menu-toggle {
      display: inline-block;
    }
}
@media (max-width: 900px) {
  header nav {
    padding-right: 0;
  }
}

/* =============================== */
/*            MAIN/SECTION         */
/* =============================== */
main {
  min-height: 62vh;
  background: transparent;
  padding-bottom: 40px;
}
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
  display: flex;
  flex-direction: column;
  gap: 0;
}
@media (max-width: 600px) {
  section { padding: 32px 6px; }
}

/* =============================== */
/*           FLEX PATTERNS         */
/* =============================== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--bg-card);
  border-radius: 16px;
  box-shadow: 0 1.5px 12px 0 rgba(62,74,109,0.07);
  padding: 32px 24px 24px 24px;
  flex: 1 1 260px;
  transition: box-shadow 0.22s, transform 0.16s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 6px 32px 0 rgba(62,74,109,0.13);
  transform: translateY(-2.5px) 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;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: var(--bg-card);
  border-radius: 12px;
  box-shadow: 0 3px 26px 0 rgba(62,74,109,0.09);
  margin-bottom: 20px;
  flex-direction: row;
  min-height: 68px;
}
.testimonial-card p {
  color: #22243B;
  font-size: 1.04rem;
  flex: 1;
}
.testimonial-card span {
  font-size: .98rem;
  color: var(--secondary-dark);
  font-style: italic;
  font-family: 'Georgia', serif;
  white-space: nowrap;
}
.review-summary {
  background: var(--bg-section);
  border-radius: 8px;
  padding: 12px 20px;
  margin-top: 16px;
  box-shadow: 0 1px 5px 0 rgba(209,183,119,0.10);
  display: flex;
  align-items: center;
}
.review-summary p {
  color: #3E4A6D;
  font-size: 1.04rem;
  display: flex;
  align-items: center;
  gap: 7px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* =============================== */
/*         FEATURE GRIDS           */
/* =============================== */
.feature-grid,
.benefit-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 12px;
  margin-bottom: 20px;
  align-items: stretch;
}
.feature-grid li,
.benefit-grid > div {
  flex: 1 1 240px;
  min-width: 180px;
  max-width: 350px;
  background: var(--bg-card);
  border-radius: 14px;
  box-shadow: 0 1px 6px 0 rgba(62,74,109,0.08);
  padding: 20px 18px 18px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1rem;
  line-height: 1.5;
  margin: 0 0 0 0;
}
.feature-grid img,
.benefit-grid img {
  height: 36px;
  width: 36px;
  margin-right: 9px;
}

/* =============================== */
/*             TABLES              */
/* =============================== */
table {
  width: 100%;
  border-spacing: 0;
  font-size: 1rem;
  margin: 18px 0 18px 0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 10px 0 rgba(62,74,109,0.09);
}
thead, th, tr:first-child {
  background: var(--secondary);
  color: #fff;
  font-family: 'Montserrat',serif;
  font-size: 1.05rem;
  border: none;
}
th, td {
  padding: 14px 12px;
  text-align: left;
}
tbody tr {
  background: var(--bg-card);
  border-bottom: 1px solid #EFE7CD;
}
tbody tr:last-child {
  border-bottom: none;
}

/* =============================== */
/*      BUTTONS & MICROINTERACTIONS */
/* =============================== */
button, .cta-btn {
  transition: background 0.20s, color 0.16s, box-shadow 0.20s, transform 0.14s;
}

/* =============================== */
/*      FORM ELEMENTS (future)      */
/* =============================== */
input[type="text"],
input[type="email"],
textarea {
  border: 1px solid #D1B777;
  border-radius: 8px;
  padding: 12px 10px;
  font-size: 1rem;
  background: #fff;
  margin-bottom: 20px;
  min-width: 0;
  outline: none;
  transition: border .15s;
}
input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
  border: 1.5px solid #3E4A6D;
}

/* =============================== */
/*             FOOTER               */
/* =============================== */
footer {
  background: var(--primary);
  color: #fff;
  border-radius: 28px 28px 0 0;
  box-shadow: 0 -3px 22px 0 rgba(62,74,109,0.09);
  margin: 0;
  margin-top: 60px;
  padding: 46px 0 24px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
footer img {
  max-width: 76px;
  margin-bottom: 16px;
}
footer nav {
  display: flex;
  gap: 24px;
  margin-bottom: 8px;
}
footer nav a {
  color: #fff;
  font-family: 'Montserrat', serif;
  font-size: 1rem;
  font-weight: 500;
  transition: color 0.18s, text-decoration 0.18s;
}
footer nav a:hover, footer nav a:focus {
  color: var(--secondary);
  text-decoration: underline;
}
footer address, footer p {
  color: #edead5;
  font-size: 0.99rem;
  text-align: center;
  font-style: normal;
}
footer a {
  text-decoration: underline;
  color: var(--secondary);
}
footer a:hover, footer a:focus {
  color: #fff;
}

/* =============================== */
/*    COOKIE CONSENT (MANDATORY)   */
/* =============================== */
.cookie-consent-banner {
  position: fixed;
  bottom: 0; left: 0;
  width: 100vw;
  background: #FFFDF8;
  color: #3E4A6D;
  box-shadow: 0 -2px 26px 0 rgba(62,74,109,0.12);
  padding: 26px 16px 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  z-index: 2000;
  border-top: 1.5px solid #EEE7CB;
  animation: fadeInUp .5s cubic-bezier(.60,.4,.38,.9);
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.cookie-consent-banner p {
  font-size: 1rem;
  color: #42465C;
  text-align: center;
}
.cookie-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}
.cookie-btn {
  font-family: 'Montserrat', serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 8px 22px;
  border-radius: 8px;
  border: none;
  background: var(--secondary);
  color: var(--primary-dark);
  cursor: pointer;
  box-shadow: 0 1px 12px 0 rgba(62,74,109,0.06);
  transition: background 0.18s, color 0.18s;
}
.cookie-btn.accept {
  background: var(--primary);
  color: #fff;
}
.cookie-btn.reject {
  background: #eee;
  color: var(--error);
}
.cookie-btn:focus, .cookie-btn:hover {
  background: var(--secondary-dark);
  color: #fff;
  outline: none;
}
.cookie-settings-btn {
  background: none;
  color: #3E4A6D;
  border: 1.5px solid #D1B777;
  padding: 8px 18px;
  border-radius: 8px;
  font-family: 'Montserrat', serif;
  font-size: 1rem;
  font-weight: 600;
  margin-left: 8px;
  transition: background 0.15s, color 0.15s;
}
.cookie-settings-btn:hover, .cookie-settings-btn:focus {
  background: var(--secondary);
  color: #fff;
  border-color: var(--secondary-dark);
}

/* =============================== */
/*   COOKIE MODAL DIALOG           */
/* =============================== */
.cookie-modal {
  position: fixed;
  bottom: 0; left: 50%;
  transform: translate(-50%, 100%);
  width: 97vw;
  max-width: 430px;
  background: #fff;
  box-shadow: 0 1.5px 26px 0 rgba(62,74,109,0.16);
  z-index: 2002;
  border-radius: 20px 20px 0 0;
  padding: 38px 22px 24px 22px;
  transition: transform .36s cubic-bezier(.73,.27,.26,.97);
  opacity: 0;
  pointer-events: none;
}
.cookie-modal.active {
  transform: translate(-50%, 0);
  opacity: 1;
  pointer-events: all;
  animation: fadeInUp .53s cubic-bezier(.63,.43,.33,.89);
}
.cookie-modal h2 {
  font-size: 1.5rem;
  margin-bottom: 14px;
}
.cookie-modal label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-size: 1rem;
  font-family: 'Roboto',serif;
  color: #534d34;
}
.cookie-modal input[type=checkbox] {
  accent-color: var(--secondary);
  width: 18px; height: 18px;
}
.cookie-modal .cookie-category {
  margin-bottom: 22px;
  padding: 12px 10px 10px 10px;
  background: #F7F2E7;
  border-radius: 8px;
  font-size: 0.98rem;
  color: #3E4A6D;
}
.cookie-modal .category-essential input[type=checkbox] {
  display: none;
}
.cookie-modal .category-essential label:after {
  content: ' (immer aktiv)';
  color: #9B934D;
  font-size: 0.91em;
}
.cookie-modal .close-cookie-modal {
  display: inline-block;
  background: none;
  color: #646464;
  border: none;
  font-size: 1.8rem;
  position: absolute;
  top: 10px;
  right: 24px;
  cursor: pointer;
  transition: color .2s;
}
.cookie-modal .close-cookie-modal:hover, .cookie-modal .close-cookie-modal:focus {
  color: var(--primary);
}
.cookie-modal .cookie-btns {
  margin-top: 24px;
  justify-content: flex-end;
}

/* =============================== */
/*     RESPONSIVE MEDIA QUERIES    */
/* =============================== */
@media (max-width: 1100px) {
  .container { max-width: 100%; }
  header nav {padding-left: 12px;padding-right: 12px;}
}
@media (max-width: 900px) {
    .feature-grid, .benefit-grid { gap: 14px;}
    .card-container, .content-grid { gap: 14px;}
}
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  .feature-grid, .benefit-grid, .card-container, .content-grid {
    flex-direction: column;
    gap: 14px;
  }
  .feature-grid li, .benefit-grid > div {
    min-width: 0;
    max-width: 100%;
  }
  .testimonial-card { flex-direction: column; align-items: flex-start; gap: 10px; }
  .content-wrapper, .text-section, .card {
    padding: 18px 8px;
  }
  section { padding: 28px 8px; }
}
@media (max-width: 500px) {
  h1 { font-size: 1.2rem; }
  h2 { font-size: 1.02rem; }
  .container { padding-left: 4px; padding-right: 4px; }
  .text-section, .card, .content-wrapper {
    padding-left: 4px; padding-right: 4px;
  }
}

/* =============================== */
/*   ADDITIONAL REUSABLE ELEMENTS  */
/* =============================== */
ol {
  margin: 0 0 18px 22px;
  padding: 0;
}
ul li, ol li {
  margin-bottom: 6px;
  font-size: 1rem;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* =============================== */
/*    UTILITY, ACCESSIBILITY, ETC   */
/* =============================== */
.sr-only {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* =============================== */
/*         ANIMATIONS ETC          */
/* =============================== */
.cta-btn, .btn, .mobile-menu-toggle, .mobile-menu-close, .cookie-btn, .cookie-settings-btn {
  transition: background .16s, color .14s, box-shadow .22s, transform .18s;
}

/* =============================== */
/*       MISC and ADA FOCUS        */
/* =============================== */
*:focus {
  outline: 2.5px solid var(--secondary-dark);
  outline-offset: 2px;
}

/* =============================== */
/*        OVERLAY FOR MODALS       */
/* =============================== */
.cookie-modal-backdrop {
  position: fixed;
  left: 0; top: 0; width: 100vw; height: 100vh;
  z-index: 2001;
  background: rgba(62,74,109,0.22);
  opacity: 1;
  transition: opacity .22s;
  pointer-events: all;
  display: none;
}
.cookie-modal.active ~ .cookie-modal-backdrop {
  display: block;
}

/* =============================== */
/*           PRINT STYLES          */
/* =============================== */
@media print {
  nav, .mobile-menu, .cookie-consent-banner, .cookie-modal, .cookie-modal-backdrop, .cta-btn { display: none !important; }
  section { padding: 0 !important; margin-bottom: 20px !important; }
}

/* =============================== */
/*        END OF CSS FILE          */
/* =============================== */
