/* ======================================================
   CSS RESET & BASELINE NORMALIZATION
======================================================== */

html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *::before, *::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Roboto', Arial, sans-serif;
  color: #191C22;
  background: #F7F6F2;
  font-size: 16px;
  line-height: 1.75;
  min-height: 100vh;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #CBA135;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover,
a:focus {
  color: #191C22;
  text-decoration: underline;
}
ul, ol {
  padding-left: 1.3em;
  margin-bottom: 12px;
  color: #191C22;
}
li {
  margin-bottom: 8px;
}
::selection {
  background: #CBA13533;
}

/* ======================================================
   TYPOGRAPHY HIERARCHY
======================================================== */
h1, .h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem; /* 40px */
  font-weight: 700;
  margin-bottom: 24px;
  color: #191C22;
  letter-spacing: 0.01em;
}
h2, .h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem; /* 32px */
  font-weight: 600;
  margin-bottom: 18px;
  color: #191C22;
}
h3, .h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.375rem; /* 22px */
  font-weight: 600;
  margin-bottom: 12px;
}
h4, .h4 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 8px;
}
p {
  font-size: 1rem;
  margin-bottom: 1em;
  color: #191C22;
}
strong {
  font-weight: 700;
}

/* ======================================================
   LAYOUT CONTAINERS & SECTIONS
======================================================== */
.container {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
  width: 100%;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
  border-radius: 16px;
  box-shadow: none;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
  width: 100%;
}

.text-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 18px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 3px 14px 0 rgba(25, 28, 34, 0.04);
  padding: 24px;
  min-width: 260px;
  flex: 1 1 260px;
  transition: box-shadow 0.18s;
}
.card:hover {
  box-shadow: 0 6px 32px 0 rgba(25, 28, 34, 0.10);
}
.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;
  margin-bottom: 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px 0 rgba(25, 28, 34, 0.05);
  min-width: 220px;
  max-width: 520px;
  font-size: 1.05rem;
  color: #191C22;
  transition: box-shadow 0.18s;
}
.testimonial-card p:last-child {
  font-weight: 600;
  color: #CBA135;
  margin-bottom: 0;
}
.testimonial-card:hover {
  box-shadow: 0 8px 30px 0 rgba(203,161,53,0.11);
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* Ordered lists for Ablauf steps */
ol {
  list-style: decimal inside;
  color: #191C22;
  margin-left: 0;
  padding-left: 0;
  margin-bottom: 16px;
}
ol li {
  margin-bottom: 10px;
  padding-left: 0;
}

/* Table Styling (Ablauf & Preise) */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
}
thead tr {
  border-bottom: 2px solid #e6e6e6;
}
tbody tr {
  border-bottom: 1px solid #f2f2f2;
}
th, td {
  padding: 10px 12px;
  text-align: left;
  font-size: 1rem;
  color: #191C22;
}
th {
  font-weight: 700;
  font-family: 'Playfair Display', serif;
}
td {
  font-weight: 400;
}

/* ======================================================
   HEADER & NAVIGATION
======================================================== */
header {
  background: #fff;
  box-shadow: 0 2px 16px 0 rgba(25,28,34,0.06);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 970;
}
header nav {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 20px;
  min-height: 78px;
  flex-wrap: wrap;
}
header nav a {
  font-family: 'Roboto', Arial, sans-serif;
  color: #191C22;
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.19s;
  padding: 10px 6px;
  border-radius: 6px;
}
header nav a.cta-btn {
  background: #CBA135;
  color: #fff;
  font-weight: 600;
  border-radius: 8px;
  padding: 12px 24px;
  box-shadow: 0 2px 8px 0 rgba(203,161,53,0.08);
  margin-left: 10px;
  transition: box-shadow 0.19s, background 0.15s;  
  letter-spacing: 0.03em;
}
header nav a.cta-btn:hover,
header nav a.cta-btn:focus {
  background: #b89531;
  color: #fff;
  box-shadow: 0 4px 16px 0 rgba(203,161,53,0.13);
}
header nav a:hover,
header nav a:focus {
  color: #CBA135;
  background: #F7F6F2;
}
header nav a img {
  vertical-align: middle;
  margin-right: 8px;
  height: 40px;
  width: auto;
}

/* Hamburger Mobile Toggle */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: #191C22;
  padding: 14px 20px;
  cursor: pointer;
  z-index: 980;
  transition: color 0.2s;
}
.mobile-menu-toggle:focus {
  outline: 2px solid #CBA135;
}

/* Mobile Menu Overlay */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  z-index: 999;
  transition: transform 0.28s cubic-bezier(.77,0,.18,1);
  transform: translateX(-100vw);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  box-shadow: 0 2px 32px 0 rgba(25,28,34,0.2);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  background: none;
  border: none;
  font-size: 2rem;
  color: #191C22;
  padding: 18px 28px 4px 0;
  cursor: pointer;
  margin-bottom: 8px;
  transition: color 0.18s;
}
.mobile-menu-close:focus {
  outline: 2px solid #CBA135;
}
.mobile-nav {
  display: flex;
  flex-direction: column !important;
  gap: 16px;
  width: 100%;
  padding: 20px 32px;
  margin-top: 24px;
}
.mobile-nav a {
  display: flex !important;
  color: #191C22;
  font-size: 1.18rem;
  font-weight: 500;
  padding: 15px 0;
  border-bottom: 1px solid #F0EFE8;
  transition: color 0.12s, background 0.12s;
  border-radius: 0;
}
.mobile-nav a:last-child {
  border-bottom: none;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #F7F6F2;
  color: #CBA135;
}

@media (max-width: 1024px) {
  header nav {
    gap: 11px;
  }
}

@media (max-width: 860px) {
  header nav a:not(.cta-btn):not(:first-child) {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
    header nav {
      min-height: auto;
    }
}

@media (max-width: 600px) {
  header nav a img {
    height: 32px;
  }
}

/* ======================================================
   MAIN CTA BUTTONS (APPLIES TO ALL .cta-btn)
======================================================== */
.cta-btn {
  background: #CBA135;
  color: #fff;
  border: none;
  outline: none;
  font-size: 1.16rem;
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 600;
  padding: 13px 32px;
  border-radius: 8px;
  margin-top: 10px;
  cursor: pointer;
  box-shadow: 0 2px 8px 0 rgba(203,161,53,0.10);
  transition: box-shadow 0.18s, background 0.14s, color 0.14s;
  display: inline-block;
  letter-spacing: 0.04em;
}
.cta-btn:hover, .cta-btn:focus {
  background: #aa892e;
  color: #fff;
  box-shadow: 0 4px 14px 0 rgba(203,161,53,0.21);
  text-decoration: none;
  outline: none;
}

/* ======================================================
   ICON + TEXT LISTS (ADVANTAGES, CONTACT, ETC.)
======================================================== */
ul li img, ol li img, p img {
  display: inline-block;
  width: 28px;
  height: 28px;
  margin-right: 8px;
  vertical-align: middle;
}
ul li,
ol li {
  display: flex;
  align-items: center;
  gap: 7px;
}

/* ======================================================
   FOOTER
======================================================== */
footer {
  background: #fff;
  padding: 32px 20px 18px 20px;
  color: #191C22;
  border-top: 1px solid #ececec;
  margin-top: 50px;
}
footer nav {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
footer nav a {
  color: #696969;
  font-size: 1rem;
  padding: 4px 6px;
  transition: color 0.11s;
}
footer nav a:hover,
footer nav a:focus {
  color: #CBA135;
  text-decoration: underline;
}
footer .text-section {
  margin-top: 8px;
  font-size: 0.96rem;
  color: #9A9A9A;
  gap: 4px;
}
footer .text-section p strong {
  color: #191C22;
}

/* ======================================================
   RESPONSIVE BREAKPOINTS
======================================================== */
@media (max-width: 1100px) {
  .container {
    max-width: 99vw;
  }
}
@media (max-width: 900px) {
  .container {
    max-width: 100vw;
    padding-left: 13px;
    padding-right: 13px;
  }
}
@media (max-width: 768px) {
  h1, .h1 {
    font-size: 2rem;
    margin-bottom: 18px;
  }
  h2, .h2 {
    font-size: 1.33rem;
    margin-bottom: 15px;
  }
  .section {
    padding: 22px 5px;
    margin-bottom: 39px;
  }
  .content-wrapper,
  .text-section {
    gap: 10px;
  }
  .testimonial-card {
    max-width: 420px;
    padding: 13px;
    gap: 11px;
  }
  .card {
    padding: 14px;
    border-radius: 11px;
  }
  .card-container,
  .content-grid {
    gap: 10px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 17px;
    align-items: flex-start;
  }
}
@media (max-width: 430px) {
  .card, .testimonial-card {
    min-width: unset;
    width: 100%;
    max-width: 97vw;
    padding: 8px;
  }
}

/* ======================================================
   COOKIE CONSENT BANNER
======================================================== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: #191C22;
  color: #fff;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 -2px 14px rgba(25,28,34,.10);
  padding: 22px 10px 22px 10px;
  gap: 18px;
  font-size: 1rem;
  animation: banner-in 0.7s cubic-bezier(.64,.04,.39,1) both;
}
@keyframes banner-in {
  0% { transform: translateY(100%); opacity: 0; }
  80% { transform: translateY(-8px); }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-banner p {
  margin: 0;
  color: #fff;
  line-height: 1.5;
}
.cookie-banner .cookie-btns {
  display: flex;
  gap: 16px;
  margin-top: 7px;
}
.cookie-banner .cookie-btn {
  background: #fff;
  color: #191C22;
  border: none;
  padding: 9px 22px;
  border-radius: 6px;
  font-weight: 600;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.16s, color 0.14s, box-shadow 0.21s;
  box-shadow: 0 2px 8px 0 rgba(25,28,34,0.04);
}
.cookie-banner .cookie-btn.settings {
  background: #CBA135;
  color: #fff;
}
.cookie-banner .cookie-btn:hover, .cookie-banner .cookie-btn:focus {
  background: #CBA135;
  color: #fff;
  outline: none;
}
.cookie-banner .cookie-btn.settings:hover, .cookie-banner .cookie-btn.settings:focus {
  background: #aa892e;
  color: #fff;
}

/* ======================================================
   COOKIE MODAL (PREFERENCES)
======================================================== */
.cookie-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 10000;
  transform: translate(-50%, -50%) scale(0.98);
  background: #fff;
  color: #191C22;
  border-radius: 20px;
  box-shadow: 0 8px 40px 0 rgba(25,28,34,0.18);
  padding: 34px 35px 27px 35px;
  min-width: 320px;
  max-width: 97vw;
  display: flex;
  flex-direction: column;
  gap: 22px;
  animation: modal-in 0.55s cubic-bezier(.64,.04,.39,1);
}
@keyframes modal-in {
  from { opacity: 0; transform: translate(-50%, -40%) scale(0.9); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
.cookie-modal h2 {
  font-size: 1.4rem;
  font-weight: 700;
  font-family: 'Playfair Display', serif;
  color: #191C22;
  margin-bottom: 7px;
}
.cookie-modal .category {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 12px;
}
.cookie-modal .category label {
  font-weight: 500;
  cursor: pointer;
}
.cookie-modal .switch {
  position: relative;
  width: 38px;
  height: 22px;
  display: inline-block;
}
.cookie-modal .switch input {
  display: none;
}
.cookie-modal .slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #F7F6F2;
  border-radius: 23px;
  transition: background .18s;
}
.cookie-modal .switch input:checked + .slider {
  background: #CBA135;
}
.cookie-modal .slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.18s;
  box-shadow: 0px 1px 6px 0 rgba(25,28,34,0.10);
}
.cookie-modal .switch input:checked + .slider:before {
  transform: translateX(16px);
}
/* Essential cookies locked */
.cookie-modal .category.essential label::after {
  content: "(immer aktiv)";
  color: #aaa;
  font-size: 0.96em;
  margin-left: 8px;
  font-weight: 400;
}
.cookie-modal .category.essential .switch {
  pointer-events: none;
  opacity: 0.4;
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  gap: 13px;
  margin-top: 13px;
}
.cookie-modal .cookie-btn {
  background: #191C22;
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 9px 19px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
}
.cookie-modal .cookie-btn.cancel {
  background: #F7F6F2;
  color: #191C22;
  border: 1px solid #ececec;
}
.cookie-modal .cookie-btn:hover,
.cookie-modal .cookie-btn:focus {
  background: #CBA135;
  color: #fff;
}
.cookie-modal .cookie-btn.cancel:hover,
.cookie-modal .cookie-btn.cancel:focus {
  background: #f2efd9;
  color: #191C22;
}

@media (max-width: 500px) {
  .cookie-modal {
    padding: 20px 8px 15px 8px;
    min-width: unset;
  }
}

/* Overlay for modal */
.cookie-modal-overlay {
  position: fixed;
  z-index: 9999;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(25,28,34,0.16);
  animation: fade-in 0.36s;
}
@keyframes fade-in {
  from {opacity: 0;}
  to   {opacity: 1;}
}

/* ======================================================
   ANIMATIONS & MICRO-INTERACTIONS
======================================================== */
section, .card, .card-container, .testimonial-card, .cta-btn, .cookie-banner, .cookie-modal {
  transition: box-shadow 0.18s, background 0.18s, color 0.17s, border-radius 0.18s;
}

/* subtle up-on-hover card animation */
.card:hover, .testimonial-card:hover {
  transform: translateY(-3px) scale(1.018);
}
.cta-btn:active {
  transform: scale(0.98);
}

/* ======================================================
   UTILITIES FOR SPACING / FLEX
======================================================== */
.flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
}
.flex-spread {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mt-24 { margin-top: 24px !important; }
.mb-24 { margin-bottom: 24px !important; }
.mt-16 { margin-top: 16px !important; }
.mb-16 { margin-bottom: 16px !important; }

/* prevent overlap for any cards */
.card, .testimonial-card {
  margin-bottom: 20px !important;
}
.section > *:not(:last-child) {
  margin-bottom: 20px;
}

/* Add gap for ul/ol in .content-wrapper to prevent list overlapping */
.content-wrapper ul,
.content-wrapper ol {
  margin-bottom: 12px;
  line-height: 1.8;
}

/* ======================================================
   SCROLLBAR
======================================================== */
::-webkit-scrollbar { width: 9px; background: #F7F6F2; }
::-webkit-scrollbar-thumb { background: #ececec; border-radius: 12px; }

/* =============== END OF STYLES =============== */
