/* =====================
   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, 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 {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
  height: 100%;
}
body {
  min-height: 100vh;
  background: #fff;
  color: #1A4C6F;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, main, menu, nav, section {
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
ul, ol {
  list-style: none;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
  box-shadow: none;
}
button { cursor: pointer; }

/* =====================
   Brand Colors & Fonts
   ===================== */
:root {
  --color-primary: #1A4C6F;
  --color-secondary: #D7A741;
  --color-accent: #FDF6ED;
  --color-bg: #fff;
  --color-grey: #f6f6f8;
  --color-border: #E5E8EB;
  --color-text: #222;
  --color-muted: #7F8B9C;
  --color-success: #28A47A;
  --color-error: #D7415B;

  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Roboto', Arial, Helvetica, sans-serif;
}

body {
  background: var(--color-bg);
  color: var(--color-text);
}

/* ===================
   Typography Minimal
   =================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.2;
  letter-spacing: 0.01em;
}
h1 { font-size: 2.5rem; margin-bottom: 32px; }
h2 { font-size: 2rem; margin-bottom: 24px; }
h3 { font-size: 1.25rem; margin-bottom: 16px; }
h4 { font-size: 1.125rem; margin-bottom: 14px; }
h5 { font-size: 1rem; }
h6 { font-size: 0.875rem; }
p, li, ul, ol {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text);
}
p { margin-bottom: 16px; }
strong, b { font-weight: 600; }
.small-print { font-size: 0.85rem; color: var(--color-muted); margin-top: 32px; }
ul, ol { margin-bottom: 16px; }
ul li, ol li { margin-bottom: 10px; }

@media (max-width: 768px) {
  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.35rem; }
  h3 { font-size: 1.07rem; }
}

/* =====================
   Container & Spacing
   ===================== */
.container {
  width: 100%;
  max-width: 1150px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
  border-radius: 18px;
}
@media (max-width: 600px) {
  .section {
    padding: 28px 8px;
    margin-bottom: 40px;
  }
  .container {
    padding: 0 8px;
  }
  .content-wrapper {
    padding: 0;
  }
}

/* =========================
   Flexbox Layout Patterns
   ========================= */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  flex: 1 1 260px;
  background: #fff;
  border-radius: 16px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(26,76,111,0.06);
  padding: 24px;
  position: relative; /* only for subtle overlays if needed */
  transition: box-shadow 0.18s, transform 0.18s;
}
.card:hover {
  box-shadow: 0 4px 16px rgba(26,76,111,0.12);
  transform: translateY(-2px) scale(1.02);
  z-index: 2;
}
.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; /* allows stacking */
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(26,76,111,0.06);
  margin-bottom: 20px;
  font-family: var(--font-body);
  color: #1A4C6F;
  min-width: 0;
  border: 1px solid var(--color-border);
}
.testimonial-card strong {
  color: var(--color-primary);
  font-family: var(--font-display);
  font-size: 1rem;
}
.testimonial-card > div:last-child {
  color: var(--color-secondary);
  font-size: 1.13rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  margin-left: auto;
}
@media (max-width: 600px) {
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .testimonial-card > div:last-child {
    margin-left: 0;
  }
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ============================
   Feature Grid (Startseite u.a.)
   ============================ */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  width: 100%;
  margin-top: 16px;
  margin-bottom: 8px;
}
.feature-grid > div {
  flex: 1 1 220px;
  background: var(--color-accent);
  border-radius: 14px;
  box-shadow: 0 1px 6px rgba(26,76,111,0.05);
  padding: 30px 22px 22px 22px;
  min-width: 210px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow 0.18s, background 0.18s, transform 0.17s;
  margin-bottom: 20px;
}
.feature-grid > div:hover {
  box-shadow: 0 8px 24px rgba(26,76,111,0.13);
  background: #fff;
  transform: translateY(-1px) scale(1.015);
  z-index: 1;
}
.feature-grid img {
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
}
.feature-grid h3 {
  color: var(--color-primary);
  font-size: 1.1rem;
  margin-bottom: 9px;
}
.feature-grid p {
  color: var(--color-text);
  margin-bottom: 0;
  font-size: 1rem;
  line-height: 1.55;
}
@media (max-width: 900px) {
  .feature-grid {
    flex-direction: column;
    gap: 20px;
  }
  .feature-grid > div {
    min-width: 0;
    width: 100%;
  }
}

/* =====================
   Header & Navigation
   ===================== */
header {
  background: #fff;
  box-shadow: 0 2px 12px rgba(26,76,111,0.07);
  position: sticky;
  top: 0; left:0; right:0;
  z-index: 30;
  min-height: 74px;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  height: 74px;
  min-height: 74px;
  flex-direction: row;
}
header img {
  height: 46px;
  width: auto;
  margin-right: 36px;
}
nav {
  display: flex;
  gap: 20px;
  align-items: center;
}
nav a {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text);
  padding: 5px 0;
  position: relative;
  transition: color 0.19s;
}
nav a:after {
  content: '';
  display: block;
  height: 2.5px;
  width: 0%;
  background: var(--color-secondary);
  border-radius: 1px;
  margin: 3px auto 0 auto;
  transition: width 0.23s;
}
nav a:hover, nav a:focus {
  color: var(--color-primary);
}
nav a:hover:after, nav a:focus:after {
  width: 80%;
}
.cta.primary, .cta.secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 100px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  padding: 11px 34px;
  text-align: center;
  margin-left: 22px;
  min-width: 140px;
  outline: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 1px 5px rgba(26,76,111,0.05);
  transition: background 0.18s, color 0.16s, box-shadow 0.16s, transform 0.17s;
}
.cta.primary {
  background: var(--color-primary);
  color: #fff;
}
.cta.primary:hover, .cta.primary:focus {
  background: #153c59;
  color: #fff;
  box-shadow: 0 2px 8px rgba(26,76,111,0.13);
  transform: translateY(-2px) scale(1.05);
}
.cta.secondary {
  background: var(--color-secondary);
  color: #fff;
}
.cta.secondary:hover, .cta.secondary:focus {
  background: #bd8b2e;
  color: #fff;
  box-shadow: 0 3px 12px rgba(215,167,65,0.17);
  transform: translateY(-2px) scale(1.04);
}

/* ===========
   Mobile Nav
   =========== */
.mobile-menu-toggle {
  display: none;
  position: relative;
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  z-index: 50;
  margin-left: 10px;
  transition: background 0.15s, color 0.13s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--color-secondary);
  color: var(--color-primary);
}
@media (max-width: 900px) {
  nav { display: none; }
  .cta.primary { display: none; }
  .mobile-menu-toggle {
    display: flex;
  }
}

/* =====================
   Mobile Menu Overlay
   ===================== */
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(250, 250, 252, 0.98);
  z-index: 1100;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  padding-top: 0;
  transform: translateX(-100vw);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.31s cubic-bezier(.5,.25,.13,1), opacity 0.23s cubic-bezier(.54,0,.44,1);
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: all;
}
.mobile-menu-close {
  background: var(--color-primary);
  color: #fff;
  border-radius: 50%;
  border: none;
  width: 44px;
  height: 44px;
  font-size: 1.7rem;
  margin: 20px 18px 0 0;
  align-items: center;
  justify-content: center;
  transition: background 0.14s;
  z-index: 1111;
  display: flex;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--color-secondary);
  color: var(--color-primary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100vw;
  margin-top: 36px;
  padding-left: 30px;
  gap: 0;
}
.mobile-nav a {
  color: var(--color-primary);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 18px;
  padding: 10px 0;
  width: 90vw;
  border-radius: 4px;
  transition: background 0.16s, color 0.13s;
}
.mobile-nav a:active, .mobile-nav a:focus, .mobile-nav a:hover {
  background: var(--color-secondary);
  color: #fff;
}
@media (min-width: 901px) {
  .mobile-menu { display: none !important; }
}

/* =============
   Main Content
   ============= */
main {
  width: 100%;
  background: #fff;
  min-height: 72vh;
}

/* ==============
   Contact Block
   ============== */
.contact-block {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-bottom: 10px;
  background: var(--color-accent);
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(26,76,111,0.04);
  padding: 22px 24px;
}
.contact-block > div {
  flex: 1 1 170px;
  min-width: 190px;
  font-size: 1rem;
  color: var(--color-text);
}
@media (max-width: 700px) {
  .contact-block {
    flex-direction: column;
    gap: 12px;
    padding: 14px 10px;
  }
}

.map-embed {
  margin-top: 18px;
}
.map-placeholder {
  padding: 18px;
  background: var(--color-grey);
  border-radius: 9px;
  color: var(--color-muted);
  text-align: left;
  font-size: .98rem;
}

/* =========
   Footer
   ========= */
footer {
  background: #fff;
  border-top: 1px solid var(--color-border);
  margin-top: 60px;
  padding: 38px 0 18px 0;
  font-family: var(--font-body);
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--color-border);
}
.footer-grid > div {
  flex: 1 1 170px;
  min-width: 106px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.footer-grid nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.footer-grid nav a {
  color: var(--color-muted);
  font-size: .98rem;
  transition: color 0.15s, background 0.13s;
  border-radius: 4px;
  padding: 4px 0;
}
.footer-grid nav a:hover { color: var(--color-primary); background: var(--color-accent); }
footer img { height: 32px; margin-bottom: 8px; }
@media (max-width: 900px) {
  .footer-grid {
    flex-direction: column;
    gap: 17px;
    align-items: flex-start;
  }
  .footer-grid > div { margin-bottom: 0; }
}

/* ==========================
   Cookie Consent Banner
   ========================== */
.cookie-consent-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  width: 100vw;
  background: #fff;
  border-top: 1.5px solid var(--color-border);
  box-shadow: 0 -2px 8px rgba(26,76,111,.09);
  padding: 18px 20px 18px 20px;
  z-index: 2000;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(.5,.25,.13,1), opacity 0.22s cubic-bezier(.54,0,.44,1);
}
.cookie-consent-banner.active {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}
.cookie-consent-text {
  color: #1A4C6F;
  font-size: 1rem;
  line-height: 1.5;
  max-width: 600px;
}
.cookie-actions {
  display: flex;
  gap: 14px;
  align-items: center;
}
.cookie-btn {
  padding: 8px 22px;
  border-radius: 30px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  border: none;
  outline: none;
  cursor: pointer;
  transition: background 0.16s, color 0.12s, box-shadow 0.13s;
}
.cookie-btn.accept {
  background: var(--color-primary);
  color: #fff;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus { background: #153c59; }
.cookie-btn.reject {
  background: var(--color-grey);
  color: var(--color-primary);
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus { background: #e0e3ea; color: #b6002c; }
.cookie-btn.settings {
  background: var(--color-secondary);
  color: #fff;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #bd8b2e; color: #fff;
}
@media (max-width: 700px) {
  .cookie-consent-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 18px 8px 18px 8px;
  }
  .cookie-actions { flex-wrap: wrap; gap: 7px; }
}

/* ==============================
   Cookie Preferences Modal Popup
   ============================== */
.cookie-modal-overlay {
  position: fixed; top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(32,33,35,0.23);
  z-index: 2100;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.24s cubic-bezier(.5,.25,.13,1);
}
.cookie-modal-overlay.active {
  opacity: 1; pointer-events: all;
}
.cookie-modal {
  background: #fff;
  border-radius: 18px;
  max-width: 430px; width: 97vw;
  padding: 32px 26px 26px 26px;
  box-shadow: 0 6px 32px rgba(26,76,111,0.17);
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
  opacity: 1;
  animation: cookie-modal-appear 0.31s cubic-bezier(.6,.43,.11,1) 1;
}
@keyframes cookie-modal-appear {
  from { transform: translateY(70px) scale(.96); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}
.cookie-modal h3 {
  font-size: 1.18rem;
  margin-bottom: 16px;
  color: var(--color-primary);
  font-family: var(--font-display);
}
.cookie-modal .close-modal {
  position: absolute;
  top: 18px; right: 18px;
  background: var(--color-grey);
  color: var(--color-primary);
  border: none;
  border-radius: 50%;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.27rem;
  transition: background 0.16s;
  cursor: pointer;
}
.cookie-modal .close-modal:hover {
  background: var(--color-secondary);
  color: #fff;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 17px;
  background: var(--color-grey);
  border-radius: 8px;
  padding: 12px 12px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text);
  min-height: 40px;
}
.cookie-category .category-label {
  font-weight: 500;
  color: var(--color-primary);
  margin-right: 12px;
}
.cookie-category input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--color-secondary);
  margin-right: 4px;
}
.cookie-category[aria-disabled="true"] {
  opacity: 0.5;
  pointer-events: none;
}

.cookie-modal .cookie-actions {
  margin-top: 14px;
}

@media (max-width: 600px) {
  .cookie-modal { padding: 20px 6px 16px 6px; }
  .cookie-modal h3 { font-size: 1rem; }
}

/* ======
   Forms
   ====== */
input[type="text"], input[type="email"], input[type="tel"], textarea {
  background: var(--color-accent);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 10px 15px;
  font-size: 1rem;
  width: 100%;
  margin-bottom: 12px;
  outline: none;
  transition: border 0.16s;
}
input:focus, textarea:focus { border: 1.5px solid var(--color-primary); }

/* =============
   Utilities
   ============= */
.mt-xl { margin-top: 40px; }
.mt-lg { margin-top: 32px; }
.mb-lg { margin-bottom: 32px; }
.mb-md { margin-bottom: 20px; }
.pt-lg { padding-top: 32px; }
@media (max-width: 600px) {
  .mt-xl, .mt-lg, .mb-lg, .pt-lg { margin-top: 18px; margin-bottom: 18px; padding-top: 12px; }
  .mb-md { margin-bottom: 10px; }
}

/* =====================
   Micro-Interactions
   ===================== */
.card, .feature-grid > div, .cta.primary, .cta.secondary, .testimonial-card, .cookie-btn, .mobile-menu-toggle, .mobile-menu-close {
  transition: box-shadow 0.16s, background 0.15s, color 0.13s, transform 0.17s;
}

/* ===========
   Misc.
   =========== */
::-webkit-scrollbar {
  width: 9px;
  background: #f4f4f4;
}
::-webkit-scrollbar-thumb {
  background: #e3e8e9;
  border-radius: 4px;
}

/* Hide outline if not keyboard user, but show on focus-visible */
:focus:not(:focus-visible) {
  outline: none;
}
:focus-visible {
  outline: 2px solid var(--color-secondary);
  outline-offset: 2px;
}

/* ==============
   Selection
   ============== */
::selection { background: var(--color-secondary); color: #fff; }

/* ==============
  Print Styles
   ============= */
@media print {
  header, .mobile-menu, footer, .cookie-consent-banner, .cookie-modal-overlay { display: none !important; }
  body { color: #111; background: #fff; font-size: 12pt; }
}
section {
  padding: 20px 0;
}