/* -------- CSS RESET & BASE -------- */
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.5;
  background: #fff;
  color: #111;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, picture, video, canvas, svg {
  display: inline-block;
  max-width: 100%;
  height: auto;
}
ul, ol {
  margin-left: 1.2em;
}
a {
  color: #272A2E;
  text-decoration: none;
  transition: color 0.2s cubic-bezier(.4,0,.2,1);
}
a:focus {
  outline: 2px solid #AE905E;
  outline-offset: 2px;
}
strong {
  font-weight: 600;
}

/* -------- BRAND TYPOGRAPHY -------- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Oswald', 'Arial Narrow', Arial, sans-serif;
  color: #272A2E;
  font-weight: 700;
  letter-spacing: 0.01em;
}
h1 { font-size: 2.5rem; line-height: 1.15; margin-bottom: 24px; }
h2 { font-size: 2rem; line-height: 1.2; margin-bottom: 20px; margin-top: 24px; }
h3 { font-size: 1.25rem; line-height: 1.25; margin-bottom: 16px; }
.subheadline,
.cta-subtext {
  color: #555;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1.2rem;
  margin-bottom: 20px;
  max-width: 700px;
}
p, li, td, th {
  font-size: 1rem;
  color: #222;
  margin-bottom: 12px;
  line-height: 1.7;
}

/* -------- LAYOUT CONTAINERS -------- */
.container {
  width: 100%;
  max-width: 1216px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
}
@media (max-width: 768px) {
  .section {
    padding: 32px 10px;
    margin-bottom: 36px;
  }
}

/* -------- HEADER & NAVIGATION -------- */
header {
  background: #fff;
  border-bottom: 1px solid #ECECEC;
  position: sticky;
  top: 0;
  left: 0;
  z-index: 30;
  width: 100%;
  min-height: 64px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 18px 0 18px 0;
  flex-wrap: wrap;
  font-family: 'Oswald', Arial, sans-serif;
}
.main-nav img {
  height: 44px;
  width: auto;
  margin-right: 24px;
}
.main-nav a {
  font-size: 1rem;
  font-weight: 500;
  color: #272A2E;
  padding: 7px 14px;
  border-radius: 5px;
  transition: background 0.15s, color 0.15s;
}
.main-nav a:not(.button):hover {
  background: #F1EFEA;
  color: #000;
}
.main-nav .button {
  margin-left: auto;
}

/* Hide .main-nav on mobile when menu is open */
@media (max-width: 1024px) {
  .main-nav {
    display: none;
  }
}

/* -------- MOBILE MENU -------- */
.mobile-menu-toggle {
  display: none;
  background: #fff;
  color: #272A2E;
  border: none;
  font-size: 2.2rem;
  padding: 8px 20px 8px 8px;
  cursor: pointer;
  border-radius: 5px;
  z-index: 100;
  transition: background 0.15s;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: #F1EFEA;
}
@media (max-width: 1024px) {
  .mobile-menu-toggle {
    display: block;
    position: absolute;
    right: 16px;
    top: 12px;
  }
}

.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(23, 25, 27, 0.94);
  z-index: 200;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.77,0,0.175,1);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #F1EFEA;
  font-size: 2.2rem;
  position: absolute;
  right: 18px;
  top: 18px;
  cursor: pointer;
  z-index: 202;
  border-radius: 5px;
  padding: 4px 18px 4px 4px;
  transition: background 0.15s;
}
.mobile-menu-close:focus,
.mobile-menu-close:hover {
  background: #272A2E;
  color: #AE905E;
}
.mobile-nav {
  margin-top: 85px;
  display: flex;
  flex-direction: column;
  gap: 26px;
  width: 100%;
  padding: 0 32px;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Oswald', Arial, sans-serif;
  font-size: 1.5rem;
  font-weight: 500;
  background: none;
  padding: 12px 0 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: color 0.17s;
  border-radius: 3px;
}
.mobile-nav a:focus,
.mobile-nav a:hover {
  color: #AE905E;
}
@media (min-width: 1025px) {
  .mobile-menu {
    display: none !important;
  }
  .mobile-menu-toggle { display: none !important; }
}

/* -------- BUTTONS -------- */
.button,
.button.primary {
  display: inline-block;
  padding: 13px 32px;
  font-size: 1rem;
  font-family: 'Oswald', Arial, sans-serif;
  font-weight: 500;
  border: none;
  border-radius: 26px;
  cursor: pointer;
  background: #272A2E;
  color: #fff;
  box-shadow: 0 2px 16px 0 rgba(39,42,46,0.10);
  text-align: center;
  letter-spacing: 0.04em;
  transition: background 0.18s cubic-bezier(.4,0,.2,1), color 0.18s, box-shadow 0.18s;
}
.button.primary:focus,
.button.primary:hover {
  background: #AE905E;
  color: #1b1c1e;
  box-shadow: 0 6px 22px 0 rgba(174,144,94,0.10);
}
.button.secondary {
  background: #fff;
  color: #272A2E;
  border: 1.5px solid #AE905E;
}
.button.secondary:hover,
.button.secondary:focus {
  background: #AE905E;
  color: #fff;
}

/* -------- CARDS & GRIDS -------- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}
.card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 25px rgba(39,42,46,0.07);
  margin-bottom: 20px;
  padding: 28px 22px 24px 22px;
  display: flex;
  flex-direction: column;
  position: relative;
  min-width: 260px;
  transition: box-shadow 0.19s cubic-bezier(.4,0,.2,1), transform 0.15s;
}
.card:hover {
  box-shadow: 0 8px 36px 0 rgba(39,42,46,0.16);
  transform: translateY(-4px) scale(1.012);
}

.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: 18px;
  }
}

/* ------- CUSTOM FEATURE LISTS ------- */
.feature-grid, .features, .feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 32px;
  margin-top: 18px;
}
.feature-grid > div, .feature-item {
  background: #F6F5F3;
  border-radius: 13px;
  padding: 22px 20px 20px 20px;
  flex: 1 1 220px;
  min-width: 180px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  box-shadow: 0 2px 14px rgba(39,42,46,0.05);
  transition: box-shadow 0.17s, background 0.17s;
}
.feature-grid > div:hover, .feature-item:hover {
  background: #fff;
  box-shadow: 0 8px 30px rgba(39,42,46,0.10);
}
.feature-grid img, .feature-item img {
  margin-bottom: 10px;
  height: 44px;
  width: 44px;
  object-fit: contain;
}

/* -------- TESTIMONIALS -------- */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #F6F5F3;
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 4px 18px rgba(39,42,46,0.09);
  font-size: 1.05rem;
  color: #18191c;
}
.testimonial-card img {
  height: 36px;
  width: 36px;
  min-width: 36px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.85;
}
.testimonial-card strong {
  font-family: 'Oswald', Arial, sans-serif;
  font-size: 1.1rem;
  margin-left: auto;
  color: #272A2E;
  font-weight: 600;
}

/* Ensure testimonials are highly readable */
.testimonial-card p, .testimonial-card strong {
  color: #18191c;
}

/* -------- TABLES (PRICING) -------- */
.pricing-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-bottom: 20px;
  font-size: 1.08rem;
}
.pricing-table th {
  font-family: 'Oswald', Arial, sans-serif;
  background: #F1EFEA;
  color: #272A2E;
  padding: 14px;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  text-align: left;
}
.pricing-table td {
  background: #fff;
  color: #222;
  padding: 12px 14px;
  border-bottom: 1px solid #ECECEC;
}
.pricing-table tr:last-child td {
  border-bottom: none;
}
@media (max-width: 600px) {
  .pricing-table td, .pricing-table th {
    padding: 8px 6px;
    font-size: 0.97rem;
  }
}

/* -------- FOOTER -------- */
footer {
  background: #272A2E;
  color: #F1EFEA;
  padding: 42px 0 18px 0;
  margin-top: 56px;
}
footer .container { padding: 0 20px; }
footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: flex-start;
  justify-content: space-between;
}
footer img {
  height: 54px;
  width: auto;
  margin-right: 34px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 1rem;
}
.footer-nav a {
  color: #F1EFEA;
  opacity: 0.82;
  transition: color 0.16s;
  font-family: 'Oswald', Arial, sans-serif;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #AE905E;
  opacity: 1;
}
.contact-info {
  font-size: 0.97rem;
  opacity: 0.9;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.contact-info img {
  height: 18px;
  width: 18px;
  margin-right: 7px;
}
.legal-disclaimer {
  margin-top: 16px;
  font-size: 0.91rem;
  color: #aaa;
  flex-basis: 100%;
}
@media (max-width: 820px) {
  footer .content-wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
  }
  footer img {
    margin-bottom: 10px;
    margin-right: 0;
  }
}

/* -------- CUSTOM COOKIE CONSENT BANNER -------- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #272A2E;
  color: #F1EFEA;
  padding: 22px 16px 20px 16px;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  box-shadow: 0 -4px 30px rgba(39,42,46,0.17);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 32px;
  z-index: 3000;
  font-size: 1rem;
  justify-content: space-between;
  animation: slideInUpCookie 0.55s cubic-bezier(.4,0,.2,1);
}
@keyframes slideInUpCookie {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
.cookie-banner p {
  color: #F1EFEA;
  margin-bottom: 0;
  flex: 1 1 300px;
}
.cookie-buttons {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}
.cookie-banner .button {
  padding: 9px 26px;
  font-size: 0.96rem;
  border-radius: 22px;
  background: #AE905E;
  color: #1b1c1e;
  border: none;
  font-family: 'Oswald', Arial, sans-serif;
  font-weight: 500;
  transition: background 0.18s, color 0.15s;
  box-shadow: 0 1px 8px rgba(174,144,94,0.08);
}
.cookie-banner .button:focus, .cookie-banner .button:hover {
  background: #fff;
  color: #AE905E;
  outline: 2px solid #AE905E;
}
.cookie-banner .button.secondary {
  background: #fff;
  color: #272A2E;
  border: 1.5px solid #AE905E;
}
.cookie-banner .button.secondary:focus, .cookie-banner .button.secondary:hover {
  background: #AE905E;
  color: #fff;
}
@media (max-width: 500px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    font-size: 0.98rem;
    padding: 17px 8px;
  }
  .cookie-buttons {
    justify-content: flex-start;
    gap: 10px;
  }
}

/* Cookie modal */
.cookie-modal-backdrop {
  position: fixed;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.38);
  z-index: 4000;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  animation: fadeIn 0.22s;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.cookie-modal {
  background: #fff;
  color: #111;
  border-radius: 18px 18px 0 0;
  max-width: 500px;
  width: 100%;
  box-shadow: 0 -4px 26px rgba(39,42,46,0.14);
  padding: 32px 28px 28px 28px;
  margin-bottom: 32px;
  animation: slideInCookieModal 0.51s cubic-bezier(.35,0,.22,1);
  display: flex;
  flex-direction: column;
  gap: 24px;
  z-index: 4500;
}
@keyframes slideInCookieModal {
  from { transform: translateY(100px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-modal h2 {
  font-size: 1.55rem;
  margin-bottom: 8px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}
.cookie-toggle-label {
  font-size: 1rem;
  color: #1a1b1c;
  font-family: 'Roboto', Arial, sans-serif;
}
.cookie-switch {
  width: 46px;
  height: 26px;
  border-radius: 13px;
  background: #ECECEC;
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.13s;
}
.cookie-switch[data-enabled="true"] {
  background: #AE905E;
}
.cookie-switch-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  transition: left 0.16s;
  box-shadow: 0 2px 9px rgba(174,144,94,0.08);
}
.cookie-switch[data-enabled="true"] .cookie-switch-knob {
  left: 23px;
}
.cookie-modal .button {
  min-width: 108px;
  padding: 10px 24px;
}
.cookie-modal .button:last-child {
  margin-left: 8px;
}
.cookie-category[data-essential="true"] .cookie-switch {
  background: #ccc !important;
  opacity: 0.50;
  pointer-events: none;
}
.cookie-category[data-essential="true"] .cookie-toggle-label:after {
  content: " (immer aktiviert)";
  color: #AE905E;
  font-size: 0.98em;
  font-family: 'Roboto', Arial, sans-serif;
}

/* -------- FORM STYLES -------- */
input, textarea, select {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  padding: 12px 13px;
  border: 1.2px solid #CEC7B9;
  border-radius: 7px;
  background: #F5F5F5;
  margin-bottom: 14px;
  transition: border 0.19s;
}
input:focus, select:focus, textarea:focus {
  border-color: #AE905E;
  outline: 2px solid #ae905e22;
  background: #fff;
}
label {
  font-family: 'Oswald', Arial, sans-serif;
  color: #272A2E;
  font-size: 1rem;
  display: block;
  margin-bottom: 7px;
}

/* -------- UTILITY SPACING -------- */
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 8px !important; }
.mt-2 { margin-top: 16px !important; }
.mt-3 { margin-top: 24px !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 8px !important; }
.mb-2 { margin-bottom: 16px !important; }
.mb-3 { margin-bottom: 24px !important; }
.pt-1 { padding-top: 8px !important; }
.pt-2 { padding-top: 16px !important; }
.pt-3 { padding-top: 24px !important; }
.pb-1 { padding-bottom: 8px !important; }
.pb-2 { padding-bottom: 16px !important; }
.pb-3 { padding-bottom: 24px !important; }

/* -------- MEDIA QUERIES (RESPONSIVE) -------- */
@media (max-width: 1200px) {
  .container {
    max-width: 992px;
  }
}
@media (max-width: 992px) {
  .container {
    max-width: 720px;
  }
  .feature-grid, .content-grid {
    flex-wrap: wrap;
    gap: 18px 24px;
  }
  .card-container {
    flex-wrap: wrap;
    gap: 14px;
  }
}
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.25rem; }
  .container { max-width: 97vw; padding: 0 5vw; }
  .feature-grid > div, .feature-item {
    min-width: 120px;
    padding: 16px 12px;
  }
  .testimonial-card {
    font-size: 0.97rem;
    padding: 10px;
  }
}
@media (max-width: 600px) {
  .card, .feature-grid > div, .feature-item {
    min-width: unset;
    width: 100%;
  }
}

/* -------- ANIMATIONS/MICRO-INTERACTIONS -------- */
.button, .card, .feature-grid > div, .testimonial-card, .mobile-menu, .cookie-banner {
  transition-property: box-shadow, background, color, transform;
  transition-duration: 0.18s, 0.17s, 0.18s, 0.21s;
  transition-timing-function: cubic-bezier(0.4,0,0.2,1);
}

/* --------- ADDITIONAL CLASSES (FORM, THANK YOU, ETC) --------- */
.thank-you-message {
  font-size: 1.25rem;
  color: #414141;
  margin: 14px 0 26px 0;
  max-width: 510px;
}

/* --------- Z-INDEX MANAGEMENT ----------- */
header, .main-nav, .mobile-menu, .cookie-banner, .cookie-modal-backdrop, .cookie-modal { z-index: inherit; }
.mobile-menu { z-index: 200; }
.cookie-banner { z-index: 3000; }
.cookie-modal-backdrop, .cookie-modal { z-index: 4000 !important; }

/* --------- PRINT: Hide nav, footer, mobile menu --------- */
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal, .cookie-modal-backdrop { display: none !important; }
}

/* --------- ENSURE NO OVERLAP --------- */
.card, .testimonial-card, .feature-grid > div, .feature-item, .section, .content-wrapper, .card-container {
  box-sizing: border-box;
}

/* --------- END --------- */
