/* === 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,
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: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
html { box-sizing: border-box; scroll-behavior: smooth; }
*, *:before, *:after { box-sizing: inherit; }
body {
  line-height: 1.6;
  background: #fff;
  color: #103052;
  font-family: 'Roboto', Arial, sans-serif;
  min-width: 320px;
  font-size: 16px;
}
img, video {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}
a { color: #103052; text-decoration: none; transition: color 0.2s; }
a:hover, a:focus { color: #FFCC00; }

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #103052;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: 0.01em;
}
h1 { font-size: 2.5rem; line-height: 1.1; margin-bottom: 24px; }
h2 { font-size: 2rem; line-height: 1.2; margin-bottom: 20px; }
h3 { font-size: 1.4rem; margin-bottom: 12px; }
h4, h5, h6 { font-size: 1.1rem; margin-bottom: 10px; }
p, ul, ol { font-size: 1rem; margin-bottom: 16px; }
strong, b { font-weight: 700; }
small { font-size: 0.90rem; color: #4D5C6D; }

/* === GENERIC CLASSES === */
.container {
  width: 100%;
  max-width: 1150px;
  margin: 0 auto;
  padding: 0 18px;
}
.content-wrapper {
  margin-top: 30px;
  margin-bottom: 30px;
}

/* === WARM FRIENDLY COLOR THEME === */
:root {
  --color-primary: #103052;
  --color-secondary: #E9ECEF;
  --color-accent: #FFCC00;
  --color-warm1: #FFEEDB;
  --color-warm2: #FFF8EC;
  --color-warm-card: #FFF7E3;
  --color-border-soft: #ffe1a4;
}

/* === MAIN NAV === */
header {
  background: var(--color-warm1);
  box-shadow: 0 2px 12px 0 rgba(16,48,82,0.04);
  border-radius: 0 0 24px 24px;
  position: relative;
  z-index: 100;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 18px 0 18px 0;
  justify-content: flex-start;
}
.main-nav img {
  height: 38px;
  margin-right: 14px;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  padding: 7px 16px;
  border-radius: 16px;
  transition: background 0.2s, color 0.2s;
  color: #103052;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--color-accent);
  color: #103052;
}
.main-nav .btn-primary {
  margin-left: 12px;
}

/* === PRIMARY BUTTON === */
.btn-primary, a.btn-primary {
  display: inline-block;
  padding: 12px 32px;
  background: var(--color-accent);
  color: #103052;
  border-radius: 30px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.13rem;
  font-weight: 700;
  box-shadow: 0 4px 18px 0 rgba(255, 204, 0, 0.11);
  border: none;
  cursor: pointer;
  transition: background 0.18s, transform 0.18s;
  text-align: center;
  margin-top: 12px;
}
.btn-primary:hover, .btn-primary:focus {
  background: #f9c600;
  transform: translateY(-2px) scale(1.04);
  color: #103052;
  box-shadow: 0 8px 28px 0 rgba(255,204,0,0.18);
}

/* === SECTION + SPACING LAYOUT RULES === */
section {
  background: var(--color-warm2);
  border-radius: 24px;
  margin-bottom: 60px;
  padding: 40px 20px;
  box-shadow: 0 6px 32px 0 rgba(16,48,82,0.07), 0 1px 0 #FFF0C3;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--color-warm-card);
  box-shadow: 0 2px 16px 0 rgba(254,204,101,0.08);
  border-radius: 18px;
  margin-bottom: 20px;
  position: relative;
  padding: 26px 24px;
  min-width: 230px;
  flex: 1 1 300px;
}
.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;
}
/* Testimonials flexbox pattern */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 4px 22px 2px rgba(16,48,82,0.07);
  margin-bottom: 24px;
  min-width: 270px;
  max-width: 365px;
  border: 1px solid var(--color-border-soft);
  transition: transform 0.15s, box-shadow 0.2s;
}
.testimonial-card:hover, .testimonial-card:focus-within {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 30px 10px rgba(255,204,0,0.13);
}
.testimonial-card p {
  color: #222;
  font-size: 1.06rem;
  text-align: center;
  font-style: italic;
  margin-bottom: 12px;
}
.testimonial-author {
  color: #103052;
  font-weight: 700;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
}
.testimonial-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}

.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--color-warm-card);
  padding: 24px 18px;
  border-radius: 18px;
  box-shadow: 0 2px 12px 0 rgba(255,204,0,0.05);
  flex: 1 1 270px;
  min-width: 200px;
  margin-bottom: 20px;
  border: 1px solid var(--color-border-soft);
  transition: box-shadow 0.21s, transform 0.15s;
}
.feature-item:hover, .feature-item:focus-within {
  box-shadow: 0 6px 20px 0 rgba(255,204,0,0.16);
  transform: translateY(-2px) scale(1.02);
}
.feature-item img {
  width: 40px;
  height: 40px;
  background: #fffce5;
  padding: 7px;
  border-radius: 50%;
  box-shadow: 0 0 0 2px #FFCC0044;
}

/* --- Service Cards on Startseite --- */
.services-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.service-card {
  background: #fff3dd;
  border-radius: 17px;
  padding: 28px 22px;
  box-shadow: 0 3px 13px 0 rgba(255,204,0,0.10);
  flex: 1 1 265px;
  min-width: 225px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border: 1px solid #ffe1a4;
  transition: box-shadow 0.15s, transform 0.14s;
}
.service-card strong {
  color: #e17800;
  font-size: 1.12rem;
  font-weight: 700;
}
.service-card h3 {
  font-size: 1.25rem;
}
.service-card:hover, .service-card:focus-within {
  box-shadow: 0 7px 19px 0 rgba(255,204,0,0.17);
  transform: translateY(-2px) scale(1.019);
}

/* --- Kontaktinformationen --- */
.contact-info {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  margin: 20px 0 28px;
}
.contact-info div {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.1rem;
  color: #4D5C6D;
  background: #FCFBF8;
  border-radius: 14px;
  padding: 10px 20px 10px 10px;
  margin-bottom: 8px;
  min-width: 180px;
}
.contact-info img {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: #fff9ed;
  padding: 3px;
  box-shadow: 0 2px 7px 0 #ffe1a444;
}
.contact-info a {
  color: #103052;
  font-weight: 700;
}
.contact-info a:hover { color: #e17800; }

/* === TEXT SECTION === */
.text-section {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 10px 0 rgba(255,204,0,0.06);
  padding: 26px 22px;
  margin-bottom: 24px;
  color: #222;
}
.text-section ul {
  margin: 12px 0 12px 24px;
  list-style: disc;
  color: #103052;
}
.text-section h3 {
  margin-top: 12px;
}

ul, ol {
  margin-left: 28px;
}
ul li, ol li {
  margin-bottom: 12px;
  padding-left: 2px;
}

/* === FOOTER === */
footer {
  background: var(--color-warm1);
  border-radius: 24px 24px 0 0;
  padding: 38px 0 18px 0;
  box-shadow: 0 -3px 22px 0 rgba(16,48,82,0.04);
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  align-items: flex-start;
}
.footer-nav, .footer-legal, .footer-social, .footer-logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.footer-nav a, .footer-legal a {
  color: #103052;
  font-size: 1rem;
  padding: 4px 0;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  border-radius: 11px;
  transition: background 0.18s;
}
.footer-nav a:hover, .footer-legal a:hover {
  background: var(--color-accent);
  color: #103052;
}
.footer-social {
  flex-direction: row;
  gap: 18px;
  align-items: center;
  margin-top: 10px;
}
.footer-social img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: #fff;
  transition: box-shadow 0.18s;
}
.footer-social img:hover {
  box-shadow: 0 4px 18px 1px #FFD70044;
}
.footer-logo img {
  margin-top: 7px;
  height: 39px;
}

/* === MOBILE NAVIGATION === */
.mobile-menu-toggle {
  display: none;
  position: absolute;
  right: 20px;
  top: 19px;
  font-size: 2.1rem;
  background: var(--color-accent);
  border: none;
  color: #103052;
  border-radius: 18px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  z-index: 101;
  transition: background 0.15s, box-shadow 0.16s;
}
.mobile-menu-toggle:active,
.mobile-menu-toggle:focus {
  background: #f9c600;
  box-shadow: 0 2px 10px #fffbe9;
  outline: none;
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  z-index: 2500;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #fff8ec;
  transform: translateX(100%);
  transition: transform 0.33s cubic-bezier(.65,-0.11,.29,1.21);
  box-shadow: -3px 0 32px 0 rgba(225,150,0,0.10);
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
}
.mobile-menu-close {
  background: var(--color-accent);
  color: #103052;
  border: none;
  border-radius: 17px;
  font-size: 2.1rem;
  width: 42px;
  height: 42px;
  align-self: flex-end;
  margin: 22px 22px 3px 0;
  cursor: pointer;
  transition: background 0.15s;
  z-index: 2506;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #f9c600;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 30px 16px 0 36px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #103052;
  padding: 15px 0;
  border-radius: 10px;
  transition: background 0.20s;
  outline: none;
}
.mobile-nav a:active, .mobile-nav a:focus, .mobile-nav a:hover {
  background: var(--color-accent);
  color: #103052;
}
@media (max-width: 1000px) {
  .main-nav a {
    font-size: 0.98rem;
    padding: 7px 10px;
  }
}
@media (max-width: 900px) {
  .main-nav a { font-size: 0.95rem; }
}
@media (max-width: 785px) {
  .main-nav a { font-size: 0.92rem; }
  .footer-social img { width: 24px; height: 24px; }
}
@media (max-width: 800px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}

/* === Cookie Consent Banner === */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2400;
  background: #ffe6bc;
  color: #103052;
  border-top: 1px solid #ffdf96;
  box-shadow: 0 -2px 18px 0 #FFD70022;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px 8vw 22px 8vw;
  gap: 28px;
  font-size: 1.05rem;
  font-family: 'Roboto', Arial, sans-serif;
  border-radius: 18px 18px 0 0;
  animation: slideUp 0.4s cubic-bezier(.88,-0.19,.24,1.21);
}
@keyframes slideUp {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}
.cookie-banner button {
  margin-left: 16px;
}
.cookie-btn {
  padding: 10px 18px;
  margin-right: 6px;
  border-radius: 25px;
  border: none;
  background: var(--color-primary);
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.18s, color 0.17s;
  box-shadow: 0 3px 15px 0 rgba(16,48,82,0.10);
}
.cookie-btn.secondary {
  background: #fff4dd;
  color: #e17800;
  border: 1px solid #ffd57a;
}
.cookie-btn.settings {
  background: var(--color-accent);
  color: #103052;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #e17800;
  color: #fff;
}
.cookie-btn.secondary:hover, .cookie-btn.secondary:focus {
  background: #ffe1a4;
  color: #103052;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #ffd600;
  color: #103052;
}

/* === Cookie Modal === */
.cookie-modal-overlay {
  display: none;
  position: fixed;
  z-index: 2550;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(16,48,82,0.21);
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.35s ease;
}
.cookie-modal-overlay.open {
  display: flex;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.cookie-modal {
  background: #FFF8EC;
  border-radius: 22px;
  padding: 38px 28px 28px 28px;
  max-width: 410px;
  min-width: 260px;
  box-shadow: 0 6px 40px 0 rgba(255,204,0,0.23);
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: fadeIn 0.4s cubic-bezier(.68,-0.19,.13,1.12);
}
.cookie-modal h3 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.3rem;
  color: #103052;
  margin-bottom: 6px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 1rem;
  color: #103052;
}
.cookie-category label {
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 500;
}
.cookie-category input[type='checkbox'] {
  accent-color: var(--color-accent);
  width: 20px;
  height: 20px;
  margin-right: 7px;
}
.cookie-essential {
  font-style: italic;
  color: #aaa;
}
.cookie-modal-actions {
  display: flex;
  gap: 14px;
  margin-top: 20px;
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 1000px) {
  .content-grid,
  .service-grid,
  .feature-grid,
  .testimonial-grid {
    gap: 15px;
  }
  .services-grid {
    gap: 15px;
  }
  section {
    padding: 30px 6px;
  }
  .footer-nav, .footer-legal {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 9px;
  }
}
@media (max-width: 800px) {
  .container {
    max-width: 95vw;
    padding: 0 7px;
  }
  section {
    padding: 20px 2px;
    margin-bottom: 36px;
  }
  .card-container, .content-grid, .feature-grid, .services-grid, .testimonial-grid {
    flex-direction: column;
    gap: 16px;
  }
  .service-card, .feature-item, .testimonial-card, .card {
    min-width: 0;
    width: 100%;
    margin-bottom: 15px;
  }
  .testimonial-card, .service-card, .feature-item {
    max-width: 100%;
    align-self: stretch;
  }
  .main-nav, .footer-logo {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .text-image-section {
    flex-direction: column;
    gap: 13px;
    align-items: flex-start;
  }
  footer {
    padding: 25px 0 14px 0;
    border-radius: 16px 16px 0 0;
  }
}
@media (max-width: 580px) {
  h1 { font-size: 1.65rem; }
  h2 { font-size: 1.25rem; }
  .cookie-banner { font-size: 0.99rem; padding: 16px 3vw; }
  section { margin-bottom: 28px; padding: 13px 2px; }
  .footer-nav a, .footer-legal a, .footer-social img { font-size: 0.97rem; }
}

/* === FORMS & FIELDS (for generic use) === */
input, textarea, select {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  border-radius: 9px;
  border: 1px solid #ffe1a4;
  padding: 10px 12px;
  margin-bottom: 18px;
  background: #fff;
  box-shadow: 0 0px 4px rgba(255,204,0,0.04);
  transition: border-color 0.19s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--color-accent);
  outline: none;
}

/* === MICRO-INTERACTIONS === */
.card, .service-card, .feature-item, .testimonial-card {
  transition: box-shadow 0.14s, transform 0.16s;
}
.card:hover, .service-card:hover, .feature-item:hover {
  box-shadow: 0 7px 25px 0 rgba(255,204,0,0.13);
  transform: translateY(-2px) scale(1.025);
}

/* === UTILITY CLASSES === */
.text-center { text-align: center; }
.text-right { text-align: right; }
.m-auto { margin: 0 auto; }
.rounded { border-radius: 18px !important; }

/* === FOCUS STATES === */
a, button, input, textarea, select {
  outline-color: var(--color-accent);
  outline-width: 2px;
  outline-style: solid;
  outline-offset: 2px;
  transition: outline 0.16s;
}

/* === MISC/OVERRIDE === */
::-webkit-input-placeholder { color: #8a8888; opacity:0.94; }
::-moz-placeholder { color: #8a8888; opacity:0.94; }
:-ms-input-placeholder { color: #8a8888; opacity:0.94; }
::placeholder { color: #8a8888; opacity:0.94; }

/* === Z-INDEXING === */
header { z-index: 1002; }
.mobile-menu, .mobile-menu.open { z-index: 2500; }
.cookie-banner { z-index: 2400; }
.cookie-modal-overlay { z-index: 2550; }

/* === END CSS === */