/* =====================================================================
   CSS RESET & NORMALIZE (MOBILE-FIRST)
===================================================================== */
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;
}
html { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; }
body {
  background: #fff;
  color: #23272A;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}
img { max-width: 100%; display: block; vertical-align: middle; }
a { color: inherit; text-decoration: none; transition: color 0.2s; }
a:focus { outline: 2px solid #E96B2A; outline-offset: 2px; }
ul, ol { list-style: none; }
button { font: inherit; background: none; border: none; cursor: pointer; }

/* =====================================================================
   BRAND TYPOGRAPHY
===================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #23272A;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  line-height: 1.2;
}
h1 { font-size: 2.5rem; margin-bottom: 20px; }
h2 { font-size: 2rem; margin-bottom: 16px; }
h3 { font-size: 1.25rem; margin-bottom: 10px; }
h4 { font-size: 1.1rem; margin-bottom: 8px; }
@media (max-width: 480px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.1rem; }
  h4 { font-size: 1rem; }
}
p, li, blockquote { color: #23272A; font-size: 1rem; margin-bottom: 10px; }
strong { font-weight: 700; }
blockquote {
  border-left: 3px solid #E96B2A;
  padding-left: 20px;
  color: #23272A;
  font-style: italic;
  background: #F9F9F9;
}

/* =====================================================================
   GENERAL LAYOUT + SPACING UTILITIES
===================================================================== */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
}
@media (max-width: 768px) {
  .section { padding: 28px 8px; margin-bottom: 40px; }
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  margin-bottom: 20px;
  position: relative;
  border-radius: 16px;
  box-shadow: 0 2px 16px rgba(35,39,42,0.07);
  border: 1px solid #F1F1F1;
  padding: 32px 20px;
  min-width: 240px;
  transition: box-shadow 0.25s, border-color 0.2s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 4px 32px rgba(35,39,42,0.12);
  border-color: #E96B2A;
}
.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; gap: 20px; }
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border: 1px solid #E6E6E6;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(35,39,42,0.10);
  margin-bottom: 24px;
  max-width: 620px;
  transition: box-shadow 0.22s;
}
.testimonial-card:hover {
  box-shadow: 0 6px 32px rgba(35,39,42,0.13);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

.section:last-child { margin-bottom: 0; }

/* Spacing for lists inside sections */
.section ul, .section ol {
  margin-bottom: 16px;
  margin-top: 8px;
  padding-left: 0;
  width: 100%;
}
.section li {
  margin-bottom: 10px;
  font-size: 1rem;
  line-height: 1.5;
}
.section li:last-child { margin-bottom: 0; }

/* =====================================================================
   HEADER & NAVIGATION
===================================================================== */
header {
  background: #fff;
  padding: 0;
  border-bottom: 1px solid #F1F1F1;
  position: sticky;
  top: 0;
  z-index: 101;
}
header .container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
}
header a img {
  height: 38px;
  width: auto;
  margin-right: 24px;
}
.main-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  color: #23272A;
  padding: 6px 0;
  transition: color 0.2s, border-bottom 0.2s;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover, .main-nav a:focus {
  color: #E96B2A;
  border-bottom: 2px solid #E96B2A;
}
.cta-button {
  display: inline-block;
  background: #E96B2A;
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  border-radius: 24px;
  padding: 12px 32px;
  margin-left: 32px;
  box-shadow: 0px 2px 16px rgba(35,39,42,0.06);
  transition: background 0.22s, box-shadow 0.22s, transform 0.15s;
  text-align: center;
}
.cta-button:hover, .cta-button:focus {
  background: #23272A;
  color: #fff;
  box-shadow: 0px 6px 24px rgba(35,39,42,0.12);
  transform: translateY(-2px) scale(1.025);
}

/* burger menu button */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 201;
  width: 44px;
  height: 44px;
  font-size: 2rem;
  color: #23272A;
  background: #fff;
  border-radius: 50%;
  border: 1px solid #F1F1F1;
  justify-content: center;
  align-items: center;
  box-shadow: 0 2px 8px rgba(35,39,42,0.07);
  transition: box-shadow 0.2s, background 0.2s;
}
.mobile-menu-toggle:active {
  background: #F1F1F1;
  box-shadow: 0 4px 18px rgba(35,39,42,0.12);
}

/* MOBILE NAVIGATION */
@media (max-width: 980px) {
  .main-nav { display: none; }
  .cta-button { margin-left: 0; }
  .mobile-menu-toggle { display: flex; }
}
@media (max-width: 425px) {
  header .container { padding: 8px 10px; }
  .cta-button { padding: 10px 20px; font-size: 0.95rem; }
  .mobile-menu-toggle { width: 40px; height: 40px; font-size: 1.5rem; }
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0; height: 100vh; width: 100vw;
  background: rgba(35,39,42, 0.97);
  z-index: 300;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding-top: 0;
  transform: translateX(-100vw);
  opacity: 0;
  transition: transform 0.44s cubic-bezier(0.6,0.2,0.2,1), opacity 0.23s cubic-bezier(.5,.1,.46,.96);
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
}
.mobile-menu-close {
  margin: 20px 18px 18px auto;
  font-size: 2.1rem;
  color: #fff;
  background: none;
  border: none;
  align-self: flex-end;
  z-index: 305;
  cursor: pointer;
  width: 50px;
  height: 50px;
  line-height: 1;
}
.mobile-nav {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0 28px;
  gap: 22px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.2rem;
  color: #fff;
  font-weight: 600;
  padding: 8px 0;
  width: 100%;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #E96B2A;
  color: #fff;
}

/* Prevent background scroll when menu is open */
body.mobile-menu-open {
  overflow: hidden;
}

/* =====================================================================
   HERO SECTIONS
===================================================================== */
.hero {
  background: #F1F1F1;
  padding: 50px 0 40px 0;
  margin-bottom: 0;
}
.hero .container {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}
.hero h1 {
  color: #23272A;
  font-size: 2.5rem;
  margin-bottom: 16px;
  max-width: 700px;
}
.hero p {
  color: #23272A;
  font-size: 1.2rem;
  margin-bottom: 22px;
  max-width: 650px;
}
.hero .cta-button {
  margin-top: 8px;
}
@media (max-width: 550px) {
  .hero { padding: 34px 0 28px 0; }
  .hero h1 { font-size: 2rem; }
  .hero p { font-size: 1.05rem; }
}

/* =====================================================================
   FEATURE GRID & FEATURE ITEMS
===================================================================== */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-top: 10px;
}
.feature-grid li {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 16px rgba(35,39,42,0.07);
  border: 1px solid #F1F1F1;
  padding: 32px 20px 32px 20px;
  min-width: 200px;
  max-width: 340px;
  flex: 1 1 240px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow 0.17s, border-color 0.18s;
}
.feature-grid li:hover {
  box-shadow: 0 4px 24px rgba(35,39,42,0.13);
  border-color: #E96B2A;
}
.feature-grid img {
  width: 38px;
  height: 38px;
  margin-bottom: 12px;
}
.feature-grid h3 {
  font-size: 1.15rem;
  margin-bottom: 6px;
  color: #23272A;
}
.feature-grid p {
  font-size: 1rem;
  color: #23272A;
}
@media (max-width: 900px) {
  .feature-grid { gap: 20px; }
}
@media (max-width: 700px) {
  .feature-grid { flex-direction: column; gap: 18px; }
  .feature-grid li { width: 100%; max-width: 100%; }
}

/* =====================================================================
   TABLES (for pricing, etc.)
===================================================================== */
.pricing-table {
  width: 100%;
  margin: 28px 0 0 0;
  border-spacing: 0;
  border-collapse: separate;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 14px rgba(35,39,42,0.05);
  background: #fff;
}
.pricing-table caption {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  padding-bottom: 10px;
  color: #23272A;
}
.pricing-table th, .pricing-table td {
  padding: 16px 16px;
  text-align: left;
  border-bottom: 1px solid #F1F1F1;
  font-size: 1rem;
}
.pricing-table th {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #23272A;
  background: #F9F9F9;
}
.pricing-table tr:last-child td { border-bottom: none; }

/* =====================================================================
   CTA SECTIONS
===================================================================== */
.cta {
  background: #23272A;
  color: #fff;
  padding: 54px 0 48px 0;
  text-align: center;
  border-radius: 0;
  box-shadow: 0 8px 44px rgba(35,39,42,0.07);
}
.cta .container {
  align-items: center;
}
.cta h2 { color: #fff; margin-bottom: 14px; font-size: 2rem; }
.cta p { color: #fff; margin-bottom: 24px; }
.cta .cta-button {
  background: #E96B2A;
  color: #fff;
  margin: 0;
}
.cta .cta-button:hover, .cta .cta-button:focus {
  background: #fff;
  color: #23272A;
}
@media (max-width: 600px) {
  .cta { padding: 32px 0 28px 0; }
  .cta h2 { font-size: 1.4rem; }
}

/* =====================================================================
   FOOTER
===================================================================== */
footer {
  background: #F1F1F1;
  color: #23272A;
  padding: 40px 0 20px 0;
  width: 100%;
  border-top: 1px solid #E6E6E6;
}
footer .container {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1.05rem;
}
.footer-brand img { height: 34px; width: 34px; margin-right: 6px; }
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-nav a {
  color: #23272A;
  font-size: 1rem;
  opacity: 0.90;
  transition: color 0.19s, opacity 0.19s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #E96B2A;
  opacity: 1;
}
.footer-contact {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
}
.footer-contact img {
  height: 20px;
  width: 20px;
  vertical-align: middle;
}
@media (max-width: 900px) {
  footer .container { flex-direction: column; gap: 26px; }
  .footer-brand, .footer-contact, .footer-nav { align-items: flex-start; }
}
@media (max-width: 600px) {
  footer { padding: 22px 0 14px 0; }
  .footer-brand img { height: 28px; width: 28px; }
}

/* =====================================================================
   SOCIAL MEDIA & CONTACT ULs
===================================================================== */
.social-media {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.social-media img {
  width: 20px;
  height: 20px;
  margin-right: 10px;
  vertical-align: text-bottom;
}

/* =====================================================================
   THANK YOU PAGE
===================================================================== */
.thankyou {
  padding: 64px 0 64px 0;
  background: #FFF7F2;
}
.thankyou .cta-button {
  margin-top: 24px;
}

/* =====================================================================
   COOKIE CONSENT BANNER
===================================================================== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0; right: 0;
  width: 100vw;
  background: #23272A;
  color: #fff;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  z-index: 400;
  padding: 22px 22px;
  font-size: 1rem;
  box-shadow: 0 -4px 18px rgba(35,39,42,0.09);
  transition: transform 0.36s cubic-bezier(.52,.07,.61,.99), opacity 0.22s;
}
.cookie-banner.hide {
  transform: translateY(110%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner__text {
  flex: 1 1 220px;
  margin-right: 20px;
}
.cookie-banner__buttons {
  display: flex;
  flex-direction: row;
  gap: 14px;
}
.cookie-banner button {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 32px;
  padding: 9px 22px;
  border: none;
  cursor: pointer;
  background: #fff;
  color: #23272A;
  margin: 0;
  transition: background 0.22s, color 0.2s, box-shadow 0.18s;
}
.cookie-banner button:hover, .cookie-banner button:focus {
  background: #E96B2A;
  color: #fff;
}
.cookie-banner button.cookie-settings {
  background: transparent;
  color: #E96B2A;
  border: 2px solid #E96B2A;
  padding: 9px 20px;
  transition: background 0.13s, color 0.13s;
}
.cookie-banner button.cookie-settings:hover, .cookie-banner button.cookie-settings:focus {
  background: #E96B2A;
  color: #fff;
}
@media (max-width: 800px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 8px;
  }
  .cookie-banner__text { margin-right: 0; }
}

/* Cookie Preferences Modal */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; height: 100vh; width: 100vw;
  background: rgba(35,39,42, 0.47);
  z-index: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.23s cubic-bezier(.4,.16,.54,.98);
}
.cookie-modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.cookie-modal {
  background: #fff;
  color: #23272A;
  min-width: 320px;
  max-width: 95vw;
  border-radius: 18px;
  padding: 36px 26px 26px 26px;
  box-shadow: 0 6px 52px rgba(35,39,42,0.14);
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  opacity: 1;
}
.cookie-modal__close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: transparent;
  border: none;
  font-size: 1.55rem;
  color: #23272A;
  cursor: pointer;
}
.cookie-modal h2 {
  margin-bottom: 10px;
  font-size: 1.2rem;
}
.cookie-modal-categories {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cookie-modal-category {
  display: flex;
  align-items: center;
  gap: 14px;
}
.cookie-modal label {
  font-size: 1rem;
  color: #23272A;
}

.cookie-switch {
  appearance: none;
  width: 38px;
  height: 22px;
  background: #E6E6E6;
  border-radius: 22px;
  position: relative;
  outline: none;
  cursor: pointer;
  transition: background 0.13s;
}
.cookie-switch:checked {
  background: #E96B2A;
}
.cookie-switch:before {
  content: '';
  position: absolute;
  left: 2.5px;
  top: 2.5px;
  width: 17px;
  height: 17px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(35,39,42,0.08);
  transition: left 0.16s;
}
.cookie-switch:checked:before {
  left: 18.5px;
}
.cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 14px;
  margin-top: 12px;
  justify-content: flex-end;
}
.cookie-modal-actions button {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 32px;
  padding: 9px 22px;
  border: none;
  background: #E96B2A;
  color: #fff;
}
.cookie-modal-actions button:hover, .cookie-modal-actions button:focus {
  background: #23272A;
  color: #fff;
}
@media (max-width: 520px) {
  .cookie-modal { min-width: 90vw; padding: 28px 7vw 24px 7vw; }
  .cookie-modal-actions { flex-direction: column; gap: 8px; align-items: stretch; }
}

/* =====================================================================
   MICROINTERACTIONS & ACCESSIBILITY
===================================================================== */
*:focus-visible {
  outline: 2px solid #E96B2A;
  outline-offset: 2px;
}

/* Transitions for all interactive elements */
button, a {
  transition: color 0.16s, background 0.16s, box-shadow 0.19s, border-color 0.14s, transform 0.12s;
}

/* List highlights on feature/service/ul on hover */
.section ul > li:hover, .service-list > li:hover {
  background: #FAFAFA;
  border-radius: 8px;
  color: #E96B2A;
  padding-left: 6px;
  transition: background 0.13s, color 0.15s, padding-left 0.18s;
}

/* Service List (Dienstleistungen) */
.service-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.service-list li {
  background: #fff;
  border-left: 3px solid #E96B2A;
  border-radius: 10px;
  padding: 20px 24px;
  font-size: 1rem;
  margin-bottom: 0;
  transition: box-shadow 0.14s;
  box-shadow: 0 2px 10px rgba(35,39,42,0.06);
}
.service-list li h3 {
  margin-bottom: 6px;
  color: #23272A;
  font-size: 1.05rem;
}


/* =====================================================================
   RESPONSIVE LAYOUTS (FLEXBOX ONLY)
===================================================================== */
@media (max-width: 1000px) {
  .container { max-width: 95vw; }
  .content-grid { flex-direction: column; gap: 22px; }
  .section { padding: 28px 10px; }
}
@media (max-width: 700px) {
  .container { padding: 0 7px; }
}

@media (max-width: 599px) {
  .section { padding: 18px 2vw; margin-bottom: 32px; }
  .feature-grid,
  .card-container,
  .service-list,
  .content-grid, .text-image-section {
    flex-direction: column;
    gap: 16px;
  }
  .testimonial-card { padding: 14px; }
  .card { padding: 18px 8px; }
}

/* =====================================================================
   MISCELLANEOUS + UTILS
===================================================================== */
.hidden { display: none !important; }
.visually-hidden { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* Custom scrollbar for minimal touch */
html { scrollbar-color: #E6E6E6 #fff; scrollbar-width: thin; }
::-webkit-scrollbar { width: 8px; background: #fff; }
::-webkit-scrollbar-thumb { background: #E6E6E6; border-radius: 6px; }

/* =====================================================================
   BRAND COLORS UTILITY CLASSES
===================================================================== */
.bg-primary { background: #23272A !important; color: #fff !important; }
.bg-secondary { background: #F1F1F1 !important; color: #23272A !important; }
.bg-accent { background: #E96B2A !important; color: #fff !important; }
.text-primary { color: #23272A !important; }
.text-accent { color: #E96B2A !important; }

/* =====================================================================
   PRINT DEFAULTS OVERRIDE
===================================================================== */
@media print {
  *, :before, :after {
    color: #23272A !important; background: #fff !important;
    box-shadow: none !important; text-shadow: none !important;
  }
  header, .main-nav, .mobile-menu, footer, .cookie-banner, .cta {
    display: none !important;
  }
  .section, .card, .testimonial-card, .feature-grid li, .service-list li { box-shadow: none !important; border: 1px solid #ccc !important; }
  .container { max-width: 100% !important; }
}
