/* ===== CSS RESET & NORMALIZATION ===== */
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,
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 {
  scroll-behavior: smooth;
}
body {
  line-height: 1.5;
  background: #fff;
  color: #181A1B;
  min-height: 100vh;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 16px;
}
*, *:before, *:after {
  box-sizing: inherit;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
button, input, select, textarea {
  font: inherit;
  border: none;
  background: none;
  outline: none;
}
ul, ol {
  margin-left: 1.2em;
}
table {
  border-collapse: collapse;
  width: 100%;
}
th, td {
  padding: 12px 12px;
  text-align: left;
}

/* ===== BRAND TYPOGRAPHY ===== */
:root {
  --primary: #181A1B;
  --secondary: #F6F8FA;
  --accent: #F8AC1B;
  --dark: #111113;
  --gray-100: #F6F8FA;
  --gray-200: #ECECEC;
  --gray-300: #D1D5DB;
  --gray-400: #A5A8AE;
  --gray-600: #5A5A5A;
  --gray-900: #181A1B;
  --white: #fff;
  --shadow: 0 2px 16px 0 rgba(30,30,30,0.11);
  --radius: 14px;
  --duration: 0.3s;
  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Roboto', Arial, Helvetica, sans-serif;
}

h1, .h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.6rem;
  line-height: 1.17;
  color: var(--primary);
  letter-spacing: -0.5px;
  margin-bottom: 18px;
}
h2, .h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2rem;
  line-height: 1.22;
  color: var(--primary);
  margin-bottom: 14px;
}
h3, .h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--gray-900);
  margin-bottom: 8px;
}
h4, .h4 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 6px;
}
p, li, th, td {
  font-family: var(--font-body);
  color: var(--primary);
  font-weight: 400;
  font-size: 1rem;
  margin-bottom: 10px;
  letter-spacing: 0.02em;
}
strong {
  font-weight: 700;
}

/* ===== GENERAL CONTAINER & LAYOUT ===== */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding-left: 18px;
  padding-right: 18px;
}

main {
  background: var(--white);
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: stretch;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--white);
  border-radius: var(--radius);
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px 24px;
  flex: 1 1 300px;
  transition: box-shadow var(--duration), transform var(--duration);
}
.card:hover, .card:focus-within {
  box-shadow: 0 4px 24px 0 rgba(0,0,0,0.22);
  transform: translateY(-6px) scale(1.01);
}
.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: 24px;
  background: var(--gray-100);
  border-radius: var(--radius);
  box-shadow: 0 1px 8px 0 rgba(40,40,40,0.07);
  border-left: 6px solid var(--gray-400);
  transition: border-color var(--duration), box-shadow var(--duration);
}
.testimonial-card:hover {
  border-left: 6px solid var(--accent);
  box-shadow: 0 2px 14px 0 rgba(40,40,40,0.13);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}

/* ==== HEADER ===== */
header {
  width: 100%;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  z-index: 1020;
  position: sticky;
  top: 0;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
  gap: 16px;
}
.logo-link img {
  height: 38px;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
}
.main-nav a {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--gray-900);
  font-size: 1.02rem;
  padding: 8px 8px;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--secondary);
  color: var(--accent);
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  padding: 12px 30px;
  border-radius: 7px;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 10px 0 rgba(30,30,30,0.07);
  transition: background var(--duration), color var(--duration), transform var(--duration);
  border: 1px solid var(--primary);
  cursor: pointer;
  display: inline-block;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--accent);
  color: var(--primary);
  border-color: var(--accent);
  transform: translateY(-1px) scale(1.02);
}

.btn-secondary {
  background: var(--white);
  color: var(--primary);
  border: 1.5px solid var(--primary);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
  padding: 10px 26px;
  border-radius: 7px;
  letter-spacing: 0.01em;
  box-shadow: 0 1px 6px 0 rgba(30,30,30,0.06);
  transition: background var(--duration), color var(--duration);
  cursor: pointer;
  display: inline-block;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: var(--primary);
  color: var(--white);
}


/* ===== MOBILE BURGER MENU ===== */
.mobile-menu-toggle {
  display: none;
  font-size: 2rem;
  color: var(--primary);
  background: var(--secondary);
  border-radius: 50%;
  border: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1102;
  transition: background var(--duration);
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--accent);
  color: var(--primary);
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: fixed;
  top: 0;
  left: 0;
  background: var(--white);
  height: 100%;
  width: 85vw;
  max-width: 340px;
  z-index: 1101;
  box-shadow: 3px 0 30px rgba(30,30,30,0.13);
  transform: translateX(-100%);
  transition: transform 0.33s cubic-bezier(0.44,0.01,0.08,1.00);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  font-size: 2rem;
  background: none;
  border: none;
  margin: 16px 0 0 16px;
  color: var(--primary);
  cursor: pointer;
  transition: color var(--duration);
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--accent);
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  margin-top: 24px;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--primary);
  padding: 16px 32px;
  border-bottom: 1px solid var(--gray-200);
  transition: background 0.17s, color 0.17s;
  width: 100%;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--gray-100);
  color: var(--accent);
}

/* BACKDROP for mobile menu */
.mobile-menu-backdrop {
  content: '';
  display: none;
}
.mobile-menu-backdrop.open {
  display: block;
  position: fixed;
  z-index: 1100;
  width: 100vw;
  height: 100vh;
  left: 0;
  top: 0;
  background: rgba(24,24,24,0.22);
  animation: fadeInBackdrop 0.3s;
}
@keyframes fadeInBackdrop {
  from { opacity: 0; }
  to { opacity: 1; }
}

/** Desktop navigation hide mobile, Mobile: hide normal nav */
@media (max-width: 1024px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (min-width: 1025px) {
  .mobile-menu {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: none;
  }
}

/* ===== HERO SECTIONS ===== */
.hero {
  background: var(--gray-100);
  min-height: 280px;
  padding: 66px 0 38px 0;
}
.hero .container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
}
.hero .content-wrapper {
  align-items: flex-start;
  max-width: 700px;
  gap: 14px;
}

/* ===== FEATURES LISTS ===== */
.features-grid, .services-list {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-top: 22px;
}
.feature, .service-item, .service-category {
  background: var(--white);
  box-shadow: 0 1px 10px 0 rgba(30,30,30,0.07);
  border-radius: var(--radius);
  padding: 26px 22px;
  flex: 1 1 235px;
  margin-bottom: 20px;
  transition: box-shadow var(--duration), transform var(--duration);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 220px;
  max-width: 350px;
  gap: 8px;
}
.feature:hover, .service-item:hover, .service-category:hover {
  box-shadow: 0 3px 20px 0 rgba(24,24,24,0.13);
  transform: translateY(-3px) scale(1.015);
}
.feature img, .service-item img, .service-category img {
  height: 40px;
  width: 40px;
  margin-bottom: 4px;
  object-fit: contain;
}
.features {
  margin-bottom: 60px;
  padding: 36px 0 0 0;
}

/* ===== CTA BLOCKS ===== */
.cta-block {
  background: var(--primary);
  color: var(--white);
  padding: 56px 0;
}
.cta-block h2,
.cta-block p {
  color: var(--white);
}
.cta-block .btn-primary {
  background: var(--accent);
  color: var(--primary);
  border-color: var(--accent);
}
.cta-block .btn-primary:hover, .cta-block .btn-primary:focus {
  background: var(--white);
  color: var(--primary);
  border-color: var(--white);
}

/* ===== SERVICES ===== */
.services-list {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 30px;
}
.service-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 1px 10px rgba(30,30,30,0.07);
  padding: 24px 18px;
  min-width: 220px;
  max-width: 340px;
  margin-bottom: 20px;
  gap: 8px;
  transition: box-shadow var(--duration), transform var(--duration);
}
.service-item:hover {
  box-shadow: 0 3px 18px rgba(24,24,24,0.12);
  transform: translateY(-2px) scale(1.01);
}
.services {
  margin-bottom: 60px;
  padding: 32px 0 0 0;
}
.service-category {
  margin-bottom: 18px;
}

/* ===== FOOTER ===== */
footer {
  background: var(--dark);
  color: var(--white);
  padding-top: 36px;
  padding-bottom: 18px;
  width: 100%;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}
.footer-nav a {
  color: var(--gray-200);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  opacity: 0.83;
  transition: color 0.2s, opacity 0.2s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--accent);
  opacity: 1;
}
.footer-contact {
  font-size: 0.99rem;
  color: var(--gray-300);
  font-family: var(--font-body);
  display: flex;
  flex-direction: column;
  gap: 4px;
  line-height: 1.5;
}
.footer-contact img {
  height: 16px;
  width: 16px;
  vertical-align: middle;
  margin-right: 4px;
  filter: brightness(3);
}
footer .logo-link img, footer > .container > a img {
  height: 32px;
  margin-bottom: 12px;
}

/* ===== FAQ ===== */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.faq-item {
  background: var(--gray-100);
  border-radius: var(--radius);
  box-shadow: 0 1px 8px 0 rgba(40,40,40,0.05);
  padding: 18px 18px 12px 18px;
  margin-bottom: 12px;
  transition: box-shadow var(--duration);
  border-left: 4px solid var(--gray-400);
}
.faq-item strong,
.faq-item h3 {
  font-family: var(--font-display);
  color: var(--primary);
  margin-bottom: 5px;
}
.faq-item:hover {
  box-shadow: 0 3px 16px 0 rgba(20,20,20,0.11);
  border-left-color: var(--accent);
}

.contact-cta {
  margin-top: 26px;
  background: var(--gray-200);
  border-radius: var(--radius);
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

/* ===== TABLES ===== */
table {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 1px 10px 0 rgba(30,30,30,0.07);
  margin-bottom: 24px;
  font-size: 1rem;
  overflow: hidden;
}
thead {
  background: var(--gray-100);
}
tr {
  border-bottom: 1px solid var(--gray-200);
}
th {
  color: var(--primary);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
}
td {
  color: var(--gray-900);
}
tr:last-child {
  border-bottom: none;
}

/* ==== LEGAL SECTIONS ==== */
.legal {
  margin-bottom: 60px;
  padding: 38px 0 0 0;
}
.legal h2 {
  font-size: 1.22rem;
  margin-bottom: 8px;
  color: var(--primary);
}
.legal ul {
  margin-left: 1.2em;
  margin-bottom: 16px;
}

/* ==== CONTACT SECTION ==== */
.contact-section .content-wrapper {
  max-width: 760px;
}
.contact-details {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  margin-top: 16px;
}
.contact-address, .contact-phone, .contact-email, .contact-hours {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  background: var(--gray-100);
  border-radius: var(--radius);
  padding: 16px 16px;
  min-width: 160px;
  max-width: 240px;
}
.contact-details img {
  width: 24px;
  height: 24px;
  margin-bottom: 4px;
  filter: grayscale(0.8);
}

/* ==== CONFIRMATION PAGE ==== */
.confirmation .content-wrapper {
  max-width: 560px;
  align-items: flex-start;
  background: var(--gray-100);
  border-radius: var(--radius);
  box-shadow: 0 1px 10px 0 rgba(30,30,30,0.07);
  padding: 40px 25px;
}

/* ====== PROJECT CASES ON REFERENZEN ===== */
.project-highlights {
  margin: 60px 0;
}
.project-highlights .project-case {
  background: var(--gray-200);
  border-radius: var(--radius);
  padding: 24px 20px;
  margin-bottom: 22px;
  box-shadow: 0 1px 8px 0 rgba(40,40,40,0.06);
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-left: 4px solid var(--gray-400);
}
.project-case h3 {
  margin-bottom: 3px;
}

/* ===== COOKIE CONSENT BANNER & MODAL ===== */
.cookie-consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  z-index: 2000;
  background: var(--gray-900);
  color: var(--white);
  padding: 24px 12px 22px 12px;
  box-shadow: 0 -4px 18px 0 rgba(20,20,20,0.17);
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 24px;
  justify-content: center;
  transition: transform 0.33s;
  font-size: 1.01rem;
}
.cookie-consent-banner.hide {
  transform: translateY(120%);
}
.cookie-consent-banner .cookie-text {
  max-width: 500px;
}
.cookie-consent-banner .cookie-btn-group {
  display: flex;
  flex-direction: row;
  gap: 14px;
}
.cookie-consent-banner .btn-cookie {
  border-radius: 5px;
  padding: 10px 22px;
  font-family: var(--font-display);
  font-weight: 600;
  background: var(--white);
  color: var(--primary);
  transition: background var(--duration), color var(--duration);
  border: 1px solid var(--gray-400);
  cursor: pointer;
}
.cookie-consent-banner .btn-cookie:hover, .cookie-consent-banner .btn-cookie:focus {
  background: var(--accent);
  color: var(--primary);
}
.cookie-consent-banner .btn-cookie-settings {
  background: var(--gray-200);
  color: var(--primary);
  border: 1px solid var(--gray-400);
}
.cookie-consent-banner .btn-cookie-settings:hover, .cookie-consent-banner .btn-cookie-settings:focus {
  background: var(--accent);
  color: var(--primary);
}

/* Modal: Cookie Einstellungen */
.cookie-modal-overlay {
  display: none;
  position: fixed;
  left: 0; right: 0;
  top: 0; bottom: 0;
  background: rgba(30,30,30,0.36);
  z-index: 2002;
  align-items: center;
  justify-content: center;
  animation: fadeInBackdrop 0.22s;
}
.cookie-modal-overlay.open {
  display: flex;
}
.cookie-modal {
  background: var(--white);
  color: var(--primary);
  border-radius: var(--radius);
  padding: 38px 22px 28px 22px;
  min-width: 320px;
  max-width: 420px;
  box-shadow: 0 10px 40px 0 rgba(40,40,40,0.21);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 22px;
  z-index: 3002;
}
.cookie-modal h3 {
  font-size: 1.13rem;
  font-family: var(--font-display);
  color: var(--primary);
  margin-bottom: 8px;
}
.cookie-modal .cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-200);
}
.cookie-modal .cookie-category:last-child {
  border-bottom: none;
}
.cookie-modal .cookie-category label {
  font-size: 1.01rem;
  font-family: var(--font-body);
  color: var(--primary);
}
.cookie-modal .toggle-switch {
  width: 38px;
  height: 22px;
  background: var(--gray-300);
  border-radius: 11px;
  position: relative;
  cursor: pointer;
  transition: background 0.22s;
}
.cookie-modal .toggle-switch input {
  display: none;
}
.cookie-modal .toggle-slider {
  position: absolute;
  top: 2px;
  left: 2px;
  background: var(--gray-600);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  transition: left 0.22s, background 0.22s;
}
.cookie-modal .toggle-switch input:checked + .toggle-slider {
  left: 18px;
  background: var(--accent);
}
.cookie-modal .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 13px;
  margin-top: 14px;
}
.cookie-modal .btn-cookie-modal {
  padding: 9px 21px;
  border-radius: 6px;
  background: var(--primary);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background var(--duration), color var(--duration);
}
.cookie-modal .btn-cookie-modal.close {
  background: var(--gray-300);
  color: var(--primary);
}
.cookie-modal .btn-cookie-modal.close:hover {
  background: var(--accent);
  color: var(--primary);
}
.cookie-modal .btn-cookie-modal.save {
  background: var(--accent);
  color: var(--primary);
}
.cookie-modal .btn-cookie-modal.save:hover {
  background: var(--primary);
  color: var(--accent);
}

/* ======= MEDIA QUERIES: MOBILE FIRST ======= */
@media (max-width: 1024px) {
  .container {
    padding-left: 13px;
    padding-right: 13px;
  }
  .section,
  .features,
  .services {
    padding-left: 7px;
    padding-right: 7px;
  }
  footer .container {
    flex-direction: column;
    gap: 18px;
  }
}
@media (max-width: 768px) {
  .content-wrapper, .hero .container {
    padding-left: 0;
    padding-right: 0;
  }
  .main-nav {
    display: none !important;
  }
  .container {
    padding: 0 6px;
    max-width: 100vw;
  }
  .features-grid, .services-list, .card-container, .content-grid {
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
    justify-content: flex-start;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
  }
  .testimonial-card {
    gap: 12px;
    padding: 15px 9px;
  }
  .feature, .service-item, .service-category {
    min-width: 0;
    max-width: 100%;
    padding: 18px 10px;
  }
  .contact-details {
    flex-direction: column;
    gap: 14px;
  }
  .cta-block {
    padding: 34px 0;
  }
  .confirmation .content-wrapper {
    padding: 24px 7px;
  }
}
@media (max-width: 500px) {
  h1, .h1 {
    font-size: 2.04rem;
  }
  h2, .h2 {
    font-size: 1.38rem;
  }
  .btn-primary, .btn-secondary {
    padding: 11px 17px;
    font-size: 0.96rem;
  }
  .cta-block {
    padding: 18px 0;
  }
}

/* ====== UTILITY CLASSES ===== */
.text-center {
  text-align: center !important;
}
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 8px !important; }
.mt-2 { margin-top: 16px !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 8px !important; }
.mb-2 { margin-bottom: 16px !important; }
.gap-1 { gap: 12px; }
.gap-2 { gap: 20px; }

/* ===== ACCESSIBILITY: Focus Styles ===== */
a:focus, button:focus, .btn-primary:focus, .btn-secondary:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  z-index: 1050;
}

/* ===== MICRO-INTERACTIONS ===== */
.btn-primary, .btn-secondary, .cookie-consent-banner .btn-cookie, .cookie-modal .btn-cookie-modal {
  transition: background var(--duration), color var(--duration), box-shadow var(--duration), border-color var(--duration), transform var(--duration);
}
.feature:active, .service-item:active, .card:active, .testimonial-card:active {
  transform: scale(0.98);
}

/* ======= PRINT ======= */
@media print {
  header, footer, .cookie-consent-banner, .mobile-menu { display: none !important; }
  body { color: #000; background: #fff !important; }
}
