/* ===== CSS RESET & NORMALIZE ===== */
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, menu, 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, 
main, 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, main, menu, nav, section {
  display: block;
}
html {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
  box-sizing: border-box;
}
body {
  background: #fff;
  color: #17222A;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
ol, ul {
  list-style: none;
}
a {
  background: none;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s;
}
button {
  background: none;
  border: none;
  font: inherit;
  cursor: pointer;
  outline: none;
}

/* ===== BRAND VARIABLES ===== */
:root {
  --primary: #28506a;
  --secondary: #a7bcb6;
  --accent: #f2f2f2;
  --white: #fff;
  --black: #1a232a;
  --text: #17222a;
  --muted: #6a7c87;
  --shadow: 0 2px 12px rgba(40,80,106,0.07);
  --border-radius: 10px;
  --font-display: 'Montserrat', Arial, sans-serif;
  --font-body: 'Roboto', Arial, sans-serif;
}

@media (max-width: 480px) {
  html, body { font-size: 15px; }
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--primary);
  margin-bottom: 16px;
  line-height: 1.13;
}
h1 { font-size: 2.5rem; line-height: 1.1; margin-bottom: 24px; }
h2 { font-size: 2rem; margin-bottom: 20px; }
h3 { font-size: 1.3rem; margin-bottom: 12px; }
h4, h5, h6 { font-size: 1.1rem; }
p, li {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.7;
}
.tagline {
  color: var(--muted);
  font-size: 1.1rem;
  margin-bottom: 10px;
  font-family: var(--font-body);
}
strong {
  color: var(--primary);
  font-weight: 700;
}

/* ===== CONTAINERS ===== */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--white);
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ===== HEADER ===== */
.header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 28px;
  padding-bottom: 28px;
  gap: 24px;
}
header .container {
  border-bottom: 1px solid var(--accent);
}
.main-nav {
  display: flex;
  gap: 24px;
  align-items: center;
}
.main-nav a {
  color: var(--primary);
  font-weight: 500;
  font-family: var(--font-body);
  padding: 8px 6px;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}
.main-nav a:hover,
.main-nav a:focus {
  background: var(--accent);
  color: var(--black);
}
.cta-button {
  background: var(--primary);
  color: var(--white);
  border-radius: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  padding: 12px 28px;
  font-size: 1.05rem;
  box-shadow: var(--shadow);
  transition: background 0.2s, color 0.2s, transform 0.12s;
  outline: none;
  border: none;
  display: inline-block;
  margin-left: 10px;
}
.cta-button:hover, .cta-button:focus {
  background: var(--secondary);
  color: var(--primary);
  transform: translateY(-2px) scale(1.03);
}

header img {
  height: 38px;
  width: auto;
}

/* ====== MOBILE MENU ====== */
.mobile-menu-toggle {
  display: none;
  font-size: 2rem;
  background: var(--accent);
  color: var(--primary);
  border-radius: 8px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  margin-left: 12px;
  z-index: 1101;
  border: none;
  transition: background 0.18s;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: var(--secondary);
  color: var(--primary);
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw; height: 100vh;
  background: rgba(255,255,255,0.97);
  z-index: 1200;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(.59,0,.63,1);
  display: flex; flex-direction: column;
  align-items: flex-start;
  padding: 52px 0 0 0;
  visibility: hidden;
}
.mobile-menu.open {
  transform: translateX(0);
  visibility: visible;
}
.mobile-menu-close {
  position: absolute;
  top: 20px; right: 24px;
  font-size: 2.2rem;
  color: var(--primary);
  background: var(--accent);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center; justify-content: center;
  z-index: 1202;
  transition: background 0.2s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: var(--secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 0;
  margin-top: 48px;
  margin-left: 24px;
}
.mobile-nav a {
  display: block;
  font-size: 1.08rem;
  font-family: var(--font-display);
  color: var(--primary);
  padding: 18px 0;
  border-bottom: 1px solid var(--accent);
  width: 92vw;
  transition: color 0.15s, background 0.18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--accent);
  color: var(--black);
}

/* ===== MAIN & GENERIC SECTIONS ===== */
main {
  margin-bottom: 44px;
}
section {
  margin-bottom: 60px;
  padding: 40px 0;
  background: var(--white);
}

.text-section {
  margin-bottom: 24px;
}

/* ===== FLEX PATTERNS ===== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 24px;
  min-width: 280px;
  transition: box-shadow 0.18s, transform 0.16s;
}
.card:hover {
  box-shadow: 0 4px 24px rgba(40,80,106,0.16);
  transform: translateY(-2px);
}
.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: center;
  gap: 20px;
  padding: 20px;
  background: var(--accent);
  border-radius: var(--border-radius);
  box-shadow: 0 2px 22px rgba(40,80,106,0.10);
  margin-bottom: 20px;
  transition: box-shadow 0.18s;
  max-width: 390px;
  min-width: 240px;
  flex: 1 1 260px;
}
.testimonial-card:hover {
  box-shadow: 0 6px 28px rgba(40,80,106,0.13);
}
.testimonial-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  margin-top: 18px;
}
.testimonial-rating {
  display: flex;
  gap: 3px;
  align-items: center;
}
.testimonial-author {
  color: var(--primary);
  font-family: var(--font-display);
  font-size: 0.96rem;
  margin-top: 6px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--accent);
  border-radius: var(--border-radius);
  padding: 20px 18px 22px 18px;
  min-width: 230px;
  flex: 1 1 225px;
  box-shadow: var(--shadow);
  transition: box-shadow 0.16s, transform 0.14s;
}
.feature-item:hover {
  box-shadow: 0 8px 30px rgba(40,80,106,0.10);
  transform: translateY(-3px) scale(1.015);
}

.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 18px;
}

.service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 32px;
}
.service-item {
  background: var(--accent);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 24px;
  min-width: 260px;
  flex: 1 1 300px;
  margin-bottom: 20px;
}

.case-study-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.case-study {
  background: var(--accent);
  border-radius: var(--border-radius);
  padding: 28px 22px 24px 22px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  min-width: 260px;
  flex: 1 1 315px;
  position: relative;
  transition: box-shadow 0.14s;
}
.case-study blockquote {
  color: var(--primary);
  font-style: italic;
  background: none;
  border-left: 4px solid var(--secondary);
  margin: 16px 0 6px 0;
  padding-left: 16px;
  font-size: 1rem;
  line-height: 1.5;
}
.case-study blockquote span {
  display: block;
  color: var(--muted);
  font-size: 0.92rem;
  margin-top: 6px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.faq-item {
  background: var(--accent);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 18px 16px 16px 18px;
}

.contact-details ul,
.text-section ul, .text-section ol,
.content-wrapper ul, .content-wrapper ol {
  margin: 12px 0 16px 13px;
}
.text-section ul li, .text-section ol li {
  padding-left: 0;
  margin-bottom: 7px;
  list-style: inside disc;
}

/* ===== SPECIAL/BLOCK SECTIONS ===== */
.map-placeholder {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  margin: 16px 0;
  padding: 18px;
  background: var(--accent);
  border-radius: var(--border-radius);
}
.privacy-note {
  margin: 12px 0 0 0;
  font-size: 0.93rem;
  color: var(--muted);
}
.contact-cta {
  margin-top: 18px;
}
.confirmation-message {
  background: var(--accent);
  border-radius: var(--border-radius);
  padding: 20px;
  margin-bottom: 18px;
  color: var(--text);
}

.contact-prompt {
  margin-top: 24px;
  font-size: 1.04rem;
}
.contact-prompt a {
  text-decoration: underline;
  color: var(--primary);
  transition: color 0.2s;
}
.contact-prompt a:hover,
.contact-prompt a:focus {
  color: var(--secondary);
}

/* ===== FOOTER ===== */
footer {
  width: 100%;
  background: var(--accent);
  color: var(--muted);
  border-top: 1px solid var(--accent);
  font-size: 1rem;
  padding: 28px 0 12px 0;
}
.footer-menu {
  display: flex;
  gap: 18px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.footer-menu a {
  color: var(--muted);
  padding: 6px 7px;
  border-radius: 5px;
  font-size: 1rem;
  font-family: var(--font-display);
  transition: color 0.16s, background 0.18s;
}
.footer-menu a:hover, .footer-menu a:focus {
  color: var(--primary);
  background: var(--white);
}
.impressum {
  font-size: 0.97rem;
  color: var(--muted);
  margin-bottom: 9px;
}
.legal-note {
  font-size: 0.91rem;
  color: var(--muted);
  margin-top: 5px;
}

/* ===== COOKIE CONSENT BANNER ===== */
.cookie-consent-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: var(--white);
  box-shadow: 0 -2px 16px rgba(40,80,106,0.08);
  padding: 22px 24px 20px 24px;
  z-index: 1500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-size: 1rem;
  opacity: 1;
  transform: translateY(0);
  transition: transform 0.32s cubic-bezier(.6,0,.8,1), opacity 0.24s;
}
.cookie-consent-banner.hide {
  opacity: 0;
  transform: translateY(100%);
  pointer-events: none;
}
.cookie-consent-banner p {
  color: var(--text);
  margin: 0;
  flex: 1 1 auto;
}
.cookie-consent-actions {
  display: flex;
  gap: 12px;
}
.cookie-btn {
  border: none;
  border-radius: 7px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
  padding: 9px 24px;
  background: var(--primary);
  color: var(--white);
  cursor: pointer;
  transition: background 0.17s, color 0.17s;
}
.cookie-btn:focus,
.cookie-btn:hover {
  background: var(--secondary);
  color: var(--primary);
}
.cookie-btn.reject {
  background: var(--white);
  color: var(--primary);
  border: 1.5px solid var(--secondary);
  font-weight: 500;
}
.cookie-btn.reject:hover,
.cookie-btn.reject:focus {
  background: var(--accent);
  color: var(--primary);
}
.cookie-btn.settings {
  background: var(--secondary);
  color: var(--primary);
}
.cookie-btn.settings:hover,
.cookie-btn.settings:focus {
  background: var(--primary);
  color: var(--white);
}

/* Cookie Preferences Modal */
.cookie-modal-bg {
  position: fixed; left:0; top:0; width: 100vw; height: 100vh;
  background: rgba(40,80,106,0.18);
  z-index: 1600;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.23s;
}
.cookie-modal-bg.hide {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}
.cookie-modal {
  background: var(--white);
  border-radius: 18px;
  box-shadow: 0 8px 48px rgba(40,80,106,0.16);
  padding: 40px 28px 32px 32px;
  max-width: 420px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.cookie-modal h2 {
  font-size: 1.44rem;
  margin-bottom: 24px;
  color: var(--primary);
}
.cookie-categories {
  margin-bottom: 28px;
  width: 100%;
  display: flex; flex-direction: column; gap: 20px;
}
.cookie-category {
  display: flex; align-items: center; gap: 12px;
  font-size: 1.06rem;
}
.cookie-category input[type=checkbox] {
  transform: scale(1.21);
  accent-color: var(--primary);
  margin-right: 8px;
}
.cookie-category input[disabled] + span {
  color: var(--muted);
}
.cookie-modal-actions {
  margin-top: 12px;
  display: flex;
  gap: 14px;
}
.cookie-modal .cookie-btn {
  min-width: 105px;
}
.cookie-modal .cookie-btn.cancel {
  background: none;
  color: var(--primary);
  border: 1px solid var(--secondary);
}
.cookie-modal .cookie-btn.cancel:hover {
  background: var(--accent);
}

/* ====== RESPONSIVE DESIGN ====== */
@media (max-width: 1100px) {
  .container { max-width: 95vw; }
  .testimonial-grid, .feature-grid, .card-container, .service-list, .case-study-list {
    gap: 16px;
  }
}
@media (max-width: 900px) {
  .header-flex { flex-wrap: wrap; gap: 12px; }
  .testimonial-card, .feature-item, .service-item, .case-study {
    min-width: 180px;
    flex: 1 1 220px;
  }
  .main-nav { gap: 16px; }
}
@media (max-width: 768px) {
  .header-flex {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 16px;
    padding-bottom: 16px;
  }
  .main-nav { display: none; }
  .mobile-menu-toggle { display: flex; }
  section, .section { padding: 28px 0; margin-bottom: 38px; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.28rem; }
  .testimonial-grid, .feature-grid, .card-container, .service-list, .case-study-list {
    flex-direction: column;
    gap: 12px;
  }
  .testimonial-card, .feature-item, .service-item, .case-study {
    min-width: 0;
    width: 100%;
    max-width: 100%;
  }
  .content-grid, .content-wrapper, .faq-list {
    gap: 16px;
  }
  .text-image-section { flex-direction: column; gap: 18px; align-items: flex-start; }
  .footer-menu { flex-direction: column; gap: 8px; }
}
@media (max-width: 560px) {
  .container { padding-left: 7px; padding-right: 7px; }
  .cookie-consent-banner { flex-direction: column; gap: 6px; align-items: flex-start; padding: 12px 6px; }
  .feature-grid, .testimonial-grid, .card-container, .service-list, .case-study-list {
    gap: 6px;
  }
  .map-placeholder { flex-direction: column; gap: 4px; padding: 9px;
    font-size: 0.98em;
  }
  .cookie-modal { padding: 24px 7px 20px 7px; }
}

/* ===== ANIMATIONS ===== */
.cta-button, .feature-item, .testimonial-card, .card, .cookie-consent-banner, .cookie-modal {
  transition: box-shadow 0.18s, transform 0.18s, background 0.21s, color 0.18s;
}

/* ===== Z-INDEX ORDERING ===== */
header { z-index: 900; position: relative; }
.mobile-menu { z-index: 1200; }
.cookie-consent-banner { z-index: 1500; }
.cookie-modal-bg { z-index: 1600; }

/* ===== FORM ELEMENTS (for cookie modals, toggles) ===== */
input[type=checkbox], input[type=radio] {
  accent-color: var(--primary);
  cursor: pointer;
}

/* ===== MISC UI REFINEMENTS ===== */
::-webkit-input-placeholder { color: #b0bcc6; }
::-moz-placeholder { color: #b0bcc6; }
:-ms-input-placeholder { color: #b0bcc6; }
::placeholder { color: #b0bcc6; opacity: 1; }

/* ===== ACCESSIBILITY: HIGH CONTRAST IN TESTIMONIALS ===== */
.testimonial-card, .case-study blockquote, .faq-item {
  color: var(--text);
  background: var(--accent);
}

/* ===== PRINT STYLES (minimal) ===== */
@media print {
  header, footer, .cookie-consent-banner, .mobile-menu {
    display: none !important;
  }
  section, .section, .content-wrapper {
    padding: 0;
    margin: 0 0 20px 0;
    box-shadow: none !important;
    background: #fff !important;
  }
}
