/* 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, 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;
  background: #fff;
  color: #1A2430;
}
ol, ul {
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
img {
  max-width: 100%;
  display: block;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}
input, button, textarea, select {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
  box-sizing: border-box;
}

/* FONT IMPORTS (Web Safe fallback for local devs) */
@import url('https://fonts.googleapis.com/css?family=Montserrat:400,600,700&display=swap');
@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,600&display=swap');

:root {
  --color-primary: #003366;
  --color-secondary: #2EB086;
  --color-accent: #F2E9E1;
  --color-text: #1A2430;
  --color-bg: #fff;
  --color-bg-soft: #FAFAFA;
  --color-border: #ECECEC;
  --shadow-soft: 0 2px 10px 0 rgba(0,20,50,0.06);
  --shadow-hover: 0 6px 32px 0 rgba(0,20,50,0.12);
  --radius: 12px;

  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Open Sans', Arial, Helvetica, sans-serif;

  --transition: 0.2s cubic-bezier(.4,0,.2,1);
}

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* TYPOGRAPHY ==================================================================== */
h1, .h1 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  letter-spacing: -0.03em;
  line-height: 1.15;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 24px;
}
h2, .h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  line-height: 1.18;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 18px;
}
h3, .h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 12px;
}
.subheadline {
  font-size: 1.125rem;
  font-weight: 400;
  color: #273747;
  margin-bottom: 32px;
}
p, ul, ol, li {
  font-size: 1rem;
  line-height: 1.7;
  font-family: var(--font-body);
  color: var(--color-text);
}
strong {
  font-weight: 600;
}
ul, ol {
  margin-left: 20px;
  margin-bottom: 18px;
}
ul li {
  margin-bottom: 8px;
  position: relative;
  padding-left: 10px;
}
ul li:before {
  content: '';
  display: inline-block;
  border-radius: 50%;
  width: 6px;
  height: 6px;
  background: var(--color-secondary);
  position: absolute;
  left: 0; top: 9px;
}
.company-philosophy {
  font-style: italic;
  color: #4C5E6A;
  margin-top: 12px;
}

/* SPACING & LAYOUT ====================================================== */
.container {
  width: 100%;
  max-width: 1020px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}
.section,
main section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.text-section {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.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;
    align-items: flex-start;
  }
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--color-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 28px;
  flex: 1 1 280px;
  min-width: 260px;
  transition: box-shadow var(--transition);
}
.card:hover {
  box-shadow: var(--shadow-hover);
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

/* HEADER & NAV =============================================================== */
header {
  background: #fff;
  box-shadow: 0 1px 4px rgba(10,60,120,0.04);
  position: relative;
  z-index: 100;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
}
.logo-block {
  display: flex;
  align-items: center;
  padding-right: 16px;
}
nav {
  display: flex;
  align-items: center;
  gap: 22px;
  letter-spacing: 0.01em;
  font-weight: 500;
  font-size: 1rem;
}
nav a {
  color: var(--color-primary);
  padding: 9px 10px;
  border-radius: 6px;
  transition: background var(--transition), color var(--transition);
}
nav a:hover, nav a.active {
  background: var(--color-accent);
  color: var(--color-secondary);
}
.btn-primary {
  background: var(--color-secondary);
  color: #fff;
  padding: 10px 26px;
  border-radius: 24px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.07rem;
  letter-spacing: 0.02em;
  transition: background var(--transition), box-shadow var(--transition);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,51,102,0.07);
  border: none;
  outline: none;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--color-primary);
  color: #fff;
  box-shadow: var(--shadow-hover);
}
.btn-link {
  color: var(--color-secondary);
  padding: 0;
  font-weight: 600;
  background: none;
  border: none;
  font-family: var(--font-display);
  transition: color var(--transition);
  cursor: pointer;
}
.btn-link:hover, .btn-link:focus {
  color: var(--color-primary);
  text-decoration: underline;
}

/* MOBILE MENU ================================================================ */
.mobile-menu-toggle {
  display: none;
  font-size: 2rem;
  background: var(--color-primary);
  color: #fff;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  margin-left: 14px;
  z-index: 300;
  transition: background var(--transition);
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--color-secondary);
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  box-shadow: 0 6px 32px rgba(0,51,102,0.14);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(.65,.05,.36,1);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 40px 28px 24px 28px;
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: all;
  opacity: 1;
}
.mobile-menu-close {
  align-self: flex-end;
  font-size: 1.8rem;
  background: none;
  color: var(--color-primary);
  border: none;
  margin-bottom: 16px;
  cursor: pointer;
  z-index: 10001;
  transition: color var(--transition);
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--color-secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: 100%;
}
.mobile-nav a {
  color: var(--color-primary);
  padding: 10px 0;
  font-size: 1.13rem;
  border-radius: 5px;
  transition: background var(--transition), color var(--transition);
}
.mobile-nav a:hover, .mobile-nav a.active {
  background: var(--color-accent);
  color: var(--color-secondary);
}
@media (max-width: 1024px) {
  nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (min-width: 1025px) {
  .mobile-menu,
  .mobile-menu-toggle {
    display: none !important;
  }
}

/* HERO & CTA ================================================================ */
.hero {
  background: linear-gradient(93deg, #fff 49%, var(--color-accent) 100%);
  padding-top: 38px;
  padding-bottom: 38px;
}
.hero .content-wrapper {
  max-width: 680px;
  margin: 0 auto;
  align-items: flex-start;
}
.contact-cta {
  background: var(--color-accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  margin-top: 34px;
}

.contact-info-summary {
  margin-top: 18px;
  background: #fff;
  border-radius: 9px;
  padding: 14px 18px;
  box-shadow: 0 2px 10px 0 rgba(0,30,60,0.06);
  font-size: 0.98rem;
}
.contact-info-summary a {
  color: var(--color-secondary);
  text-decoration: underline;
  transition: color var(--transition);
}
.contact-info-summary a:hover {
  color: var(--color-primary);
}

/* FEATURE GRID (Landing Page & Services) =================================== */
.feature-grid {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 24px 24px;
  justify-content: flex-start;
  align-items: stretch;
  margin-top: 18px;
  margin-bottom: 12px;
}
.feature-grid li {
  flex: 1 1 210px;
  min-width: 180px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  text-align: left;
  padding: 22px 18px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 12px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.feature-grid li:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}
.feature-grid img {
  width: 34px;
  height: 34px;
  margin-bottom: 2px;
}

/* SERVICE LISTING & CARDS Service Page ===================================== */
.service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 16px;
}
.service-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  flex: 1 1 240px;
  min-width: 220px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 24px 18px 20px 18px;
  margin-bottom: 20px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.service-item img {
  width: 34px;
  height: 34px;
}
.service-item h2 {
  margin-bottom: 4px;
  font-size: 1.1rem;
}
.service-link {
  color: var(--color-secondary);
  margin-top: 3px;
}
.service-item:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}
.service-price {
  font-weight: 600;
  color: var(--color-secondary);
  font-size: 1.05rem;
  margin-top: 7px;
}

/* TESTIMONIALS ============================================================ */
.testimonials-preview, .testimonial-list {
  margin-top: 16px;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #fff;
  box-shadow: 0 1px 12px rgba(0,51,102,0.07);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 20px;
  position: relative;
  flex-direction: column;
  max-width: 640px;
}
.testimonial-card p {
  font-style: italic;
  color: #222C36;
  font-size: 1.08rem;
  margin-bottom: 5px;
  line-height: 1.6;
}
.testimonial-info {
  color: #496078;
  font-size: 1rem;
  font-weight: 500;
}
@media (max-width: 700px) {
  .testimonial-card {
    padding: 16px 10px;
    max-width: 100%;
  }
}
.testimonial-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* CASE STUDIES (Kundenstimmen) ============================================ */
.case-study {
  background: var(--color-bg-soft);
  border-radius: 10px;
  box-shadow: none;
  padding: 22px 20px;
  margin-bottom: 20px;
  font-size: 1rem;
}
.case-study h3 {
  color: var(--color-secondary);
  font-size: 1.07rem;
  font-weight: 600;
  margin-bottom: 8px;
}

/* FAQ ================================================================ */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.faq-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.faq-item {
  background: #fff;
  border-radius: 10px;
  box-shadow: var(--shadow-soft);
  padding: 22px 20px;
  margin-bottom: 20px;
  flex: 1 1 360px;
  min-width: 220px;
  transition: box-shadow var(--transition);
}
.faq-item h2, .faq-item h3 {
  margin-bottom: 8px;
  font-size: 1.08rem;
  color: var(--color-secondary);
  font-weight: 600;
}
.faq-item p {
  margin-bottom: 0;
}
.faq-item:hover {
  box-shadow: var(--shadow-hover);
}

/* PRICING TABLE ========================================================= */
.pricing-table table {
  width: 100%;
  background: #fff;
  margin-bottom: 26px;
  border-radius: 10px;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  font-size: 1rem;
}
.pricing-table thead th {
  background: var(--color-accent);
  color: var(--color-primary);
  padding: 16px 12px;
  font-weight: 600;
  text-align: left;
}
.pricing-table tbody td {
  border-top: 1px solid var(--color-border);
  padding: 14px 10px;
  color: var(--color-text);
}

/* BUSINESS INFO (Kontakt) ============================================== */
.business-info {
  background: var(--color-bg-soft);
  border-radius: 8px;
  padding: 16px 20px 16px 20px;
  margin: 17px 0;
  color: #435267;
  font-size: 1rem;
}
.map-location {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
  color: #5B5B5B;
  font-size: 0.98rem;
}
.map-location img {
  width: 32px;
  height: 32px;
}

/* FOOTER ============================================================ */
footer {
  background: #fff;
  border-top: 1px solid var(--color-border);
  padding: 30px 0 18px 0;
  margin-top: 50px;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  justify-content: center;
}
footer nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
footer nav a {
  color: #858F9E;
  font-size: 0.98rem;
  transition: color var(--transition);
}
footer nav a:hover {
  color: var(--color-secondary);
}
footer p {
  color: #B4B8BD;
  font-size: 0.92rem;
}

/* RESPONSIVE BREAKPOINTS =============================================== */
@media (max-width: 900px) {
  .feature-grid,
  .service-list,
  .faq-list,
  .card-container,
  .content-grid {
    gap: 12px;
  }
  .hero {
    padding-top: 28px;
    padding-bottom: 30px;
  }
  .container {
    padding: 0 12px;
  }
}
@media (max-width: 600px) {
  .section,
  main section {
    padding: 27px 8px 27px 8px;
    margin-bottom: 36px;
  }
  .feature-grid,
  .service-list,
  .faq-list,
  .card-container,
  .content-grid {
    flex-direction: column;
    gap: 16px;
  }
  .content-wrapper {
    gap: 14px;
  }
}

/* MICRO-INTERACTIONS & ANIMATIONS ================================= */
.btn-primary, .btn-link, .nav a, .mobile-nav a, .mobile-menu-toggle, .mobile-menu-close, .feature-grid li, .card, .service-item, .faq-item, .testimonial-card {
  transition: box-shadow 0.18s cubic-bezier(0.4,0,0.2,1), color var(--transition), background var(--transition), transform 0.15s cubic-bezier(0.4,0,0.2,1);
}

a:focus, button:focus, .btn-primary:focus, .btn-link:focus {
  outline: 2px solid var(--color-secondary);
  outline-offset: 2px;
}

/* COOKIE CONSENT BANNER & MODAL ==================================== */
#cookie-consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -2px 24px rgba(0,30,50,0.10);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px 18px 24px;
  z-index: 99999;
  gap: 18px;
  font-size: 1rem;
  transition: transform 0.27s var(--transition), opacity 0.18s linear;
  opacity: 1;
}
#cookie-consent-banner.hide {
  transform: translateY(100px);
  opacity: 0;
  pointer-events: none;
}
#cookie-consent-banner p {
  margin: 0;
  flex: 1 1 auto;
  color: #273747;
}
.cookie-btn {
  background: var(--color-secondary);
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 9px 22px;
  margin-left: 9px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background var(--transition), box-shadow var(--transition);
}
.cookie-btn:hover, .cookie-btn:focus {
  background: var(--color-primary);
  color: #fff;
  box-shadow: var(--shadow-hover);
}
.cookie-btn.reject {
  background: none;
  color: var(--color-secondary);
  border: 1px solid var(--color-secondary);
}
.cookie-btn.reject:hover {
  background: var(--color-accent);
  color: var(--color-primary);
}
.cookie-btn.settings {
  background: #fff;
  color: var(--color-primary);
  border: 1px solid var(--color-secondary);
}
.cookie-btn.settings:hover {
  background: var(--color-accent);
}

/* COOKIE SETTINGS MODAL */
#cookie-modal {
  position: fixed;
  inset: 0;
  background: rgba(40,58,98,0.26);
  z-index: 100000;
  display: none;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s linear;
}
#cookie-modal.show {
  display: flex;
  opacity: 1;
}
.cookie-modal-content {
  background: #fff;
  border-radius: var(--radius);
  max-width: 390px;
  width: 96vw;
  padding: 32px 26px 24px 26px;
  box-shadow: 0 12px 40px rgba(0,30,50,0.16);
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  animation: modal-pop-in 0.33s cubic-bezier(.63,1.64,.47,.87);
}
@keyframes modal-pop-in {
  0% { transform: scale(0.96); opacity: 0; }
  80% { transform: scale(1.03); }
  100% { transform: scale(1); opacity: 1; }
}
.cookie-modal-content h2 {
  font-size: 1.16rem;
  margin-bottom: 12px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.cookie-toggle {
  margin-left: auto;
}
.cookie-toggle input[type='checkbox'] {
  width: 36px;
  height: 20px;
  appearance: none;
  background: #ececec;
  border-radius: 10px;
  outline: none;
  position: relative;
  cursor: pointer;
  transition: background 0.2s;
}
.cookie-toggle input[type='checkbox']:checked {
  background: var(--color-secondary);
}
.cookie-toggle input[type='checkbox']::before {
  content: "";
  display: block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  position: absolute;
  top: 2px;
  left: 2px;
  transition: left 0.2s;
}
.cookie-toggle input[type='checkbox']:checked::before {
  left: 18px;
}
.cookie-modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 8px;
  justify-content: flex-end;
}

/* END OF COOKIE BANNER */

/* UTILITIES ================================================================ */
.nowrap {
  white-space: nowrap;
}
.text-center {
  text-align: center;
}
.text-left {
  text-align: left;
}
.text-right {
  text-align: right;
}

/* print styles (for invoices, etc.) */
@media print {
  header, nav, .mobile-menu, #cookie-consent-banner, footer {
    display: none !important;
  }
  main, .container {
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }
}
