/* RESET & NORMALIZE */
*, *:before, *:after { box-sizing: border-box; }
html { box-sizing: border-box; font-size: 16px; }
body, h1, h2, h3, h4, h5, h6, p, ul, ol, li, figure, blockquote, dl, dd { margin: 0; padding: 0; font-weight: normal; }
ul, ol { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: color 0.2s; }
:focus { outline: 2px solid #59a3b5; outline-offset: 2px; }

/* FONT FAMILIES */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,600,500,400|Roboto:400,500&display=swap');
body {
  font-family: 'Roboto', Arial, sans-serif;
  color: #222;
  background: #fff;
  line-height: 1.7;
  font-size: 1rem;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #203966;
  font-weight: 700;
  line-height: 1.2;
}
h1 { font-size: 2.25rem; margin-bottom: 24px; }
h2 { font-size: 1.625rem; margin-bottom: 20px; }
h3 { font-size: 1.25rem; margin-bottom: 12px; }
@media (min-width: 992px) {
  h1 { font-size: 3rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.5rem; }
}

p, li, blockquote {
  color: #3a3124;
  font-size: 1rem;
  font-family: 'Roboto', Arial, sans-serif;
}


/* COLORS & BRAND */
:root {
  --primary: #203966;
  --secondary: #59a3b5;
  --accent: #f2e5cf;
  --warm1: #ffe4b5;
  --warm2: #ffd7a4;
  --warm3: #f7c59f;
  --brand-dark: #203966;
  --brand-light: #f2e5cf;
  --gray-light: #f8f6f4;
  --shadow: 0 3px 18px 2px rgba(60,36,0,0.06);
  --radius: 18px;
  --radius-sm: 12px;
  --radius-xs: 8px;
}


.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  width: 100%;
}

/* FLEXBOX PATTERNS */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  border-radius: var(--radius);
  background: var(--gray-light);
  box-shadow: var(--shadow);
}
@media (max-width: 700px) {
  .section { padding: 24px 8px; margin-bottom: 40px; }
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  position: relative;
  flex: 1 1 300px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: box-shadow .25s, transform .15s;
}
.card:hover {
  box-shadow: 0 8px 32px 4px rgba(60,36,0,0.10);
  transform: translateY(-2px) scale(1.02);
}

.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;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: var(--warm1);
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  box-shadow: var(--shadow);
  border-left: 6px solid var(--secondary);
  max-width: 600px;
  transition: box-shadow .2s;
}
.testimonial-card:hover {
  box-shadow: 0 4px 24px 5px rgba(60,36,0,0.12);
}
.testimonial-card blockquote {
  margin: 0 0 8px 0;
  color: #203966;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.125rem;
}
.testimonial-meta {
  font-size: 0.99rem;
  color: #604305;
  font-family: 'Roboto', Arial, sans-serif;
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: .85;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  border-radius: var(--radius-xs);
  background: var(--accent);
  padding: 18px;
  box-shadow: var(--shadow);
}

.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 20px;
  margin-bottom: 24px;
}
.features-grid > div {
  background: var(--accent);
  border-radius: var(--radius-sm);
  padding: 24px;
  flex: 1 1 220px;
  min-width: 200px;
  max-width: 270px;
  text-align: center;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: box-shadow .22s, transform .14s;
}
.features-grid > div img {
  width: 48px;
  height: 48px;
  margin-bottom: 10px;
  border-radius: 50%;
  background: #fff7e7;
  box-shadow: 0 2px 10px 1px rgba(255,191,92,0.06);
  padding: 8px;
}
.features-grid > div:hover {
  box-shadow: 0 6px 22px 2px rgba(89,163,181,0.13);
  transform: translateY(-2px) scale(1.03);
}
.features-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin: 0 0 20px 0;
}

.text-section {
  margin-top: 10px;
  margin-bottom: 10px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.text-section ul {
  margin-left: 20px;
  margin-bottom: 12px;
  padding-left: 16px;
  list-style-type: disc;
}
.text-section li {
  padding-left: 0;
  margin-bottom: 8px;
  color: #375025;
  font-size: 1rem;
}
.text-section strong {
  color: #203966;
  font-weight: bold;
}
.text-section img {
  display: inline-block;
  margin-right: 10px;
  vertical-align: middle;
}

/* HERO / CTA */
.hero {
  background: linear-gradient(90deg, var(--accent) 40%, #ffe4c7 100%);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 36px;
  padding: 44px 0 32px 0;
}
.hero h1 {
  color: var(--primary);
  font-size: 2.5rem;
  margin-bottom: 12px;
}
.hero p {
  color: #775017;
  font-size: 1.125rem;
  margin-bottom: 24px;
}
.hero .cta-btn {
  margin-top: 10px;
}
@media (max-width: 768px) {
  .hero { padding: 28px 0 24px 0; margin-bottom: 24px; }
  .hero h1 { font-size: 1.55rem; }
}

.cta-btn {
  display: inline-block;
  padding: 0.7em 2em;
  border: none;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.125rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, box-shadow .20s;
  box-shadow: var(--shadow);
  text-align: center;
  margin-top: 10px;
  margin-bottom: 10px;
  min-width: 170px;
}
.cta-btn.primary {
  background: var(--primary);
  color: #fff;
}
.cta-btn.primary:hover, .cta-btn.primary:focus {
  background: var(--secondary);
  color: #203966;
}
.cta-btn.secondary {
  background: var(--secondary);
  color: #203966;
}
.cta-btn.secondary:hover, .cta-btn.secondary:focus {
  background: var(--primary);
  color: #fff;
}

/* HEADER & NAVIGATION */
header {
  background: #fff;
  box-shadow: 0 2px 14px rgba(32,57,102,0.09);
  border-radius: 0 0 var(--radius) var(--radius);
  position: relative;
  z-index: 20;
}
nav[aria-label="Hauptnavigation"] {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0 16px 0;
  flex-wrap: wrap;
  gap: 18px;
}
.logo-link {
  display: flex;
  align-items: center;
}
nav[aria-label="Hauptnavigation"] ul {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  margin: 0 22px 0 0;
}
nav[aria-label="Hauptnavigation"] li {
  display: flex;
}
nav[aria-label="Hauptnavigation"] a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  color: var(--primary);
  padding: 6px 12px;
  border-radius: var(--radius-xs);
  transition: background .13s, color .15s;
  position: relative;
}
nav[aria-label="Hauptnavigation"] a.active, nav[aria-label="Hauptnavigation"] a:hover, nav[aria-label="Hauptnavigation"] a:focus {
  background: var(--accent);
  color: var(--secondary);
}
nav[aria-label="Hauptnavigation"] .cta-btn {
  margin: 0;
  margin-left: 10px;
  box-shadow: 0 2px 6px rgba(89,163,181,0.08);
}

/* MOBILE NAV */
.mobile-menu-toggle {
  display: none;
  background: none;
  font-size: 2rem;
  border: none;
  color: var(--primary);
  cursor: pointer;
  margin-left: 10px;
  z-index: 41;
  border-radius: 8px;
  padding: 6px 12px 4px 12px;
  transition: background .16s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--accent);
}
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(32,57,102,0.97);
  z-index: 100;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.37,.06,.3,1);
  padding-top: 32px;
}
.mobile-menu.open {
  display: flex;
  transform: translateX(0);
}
.mobile-menu-close {
  position: absolute;
  top: 20px; right: 26px;
  font-size: 2.6rem;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  z-index: 120;
  border-radius: 8px;
  transition: background .15s;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  background: var(--secondary);
  color: #203966;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding: 60px 38px 0 32px;
  width: 100vw;
}
.mobile-nav a {
  font-size: 1.3rem;
  color: #fff;
  padding: 10px 12px;
  border-radius: 12px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  transition: background .17s, color .16s;
}
.mobile-nav a:focus, .mobile-nav a:hover {
  background: var(--secondary);
  color: #203966;
}

@media (max-width: 1100px) {
  nav[aria-label="Hauptnavigation"] ul { gap: 8px; margin: 0 6px 0 0; }
}
@media (max-width: 950px) {
  nav[aria-label="Hauptnavigation"] ul {
    display: none;
  }
  nav[aria-label="Hauptnavigation"] .cta-btn {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
}

@media (max-width: 700px) {
  .hero .container,
  .container {
    padding-left: 4vw;
    padding-right: 4vw;
  }
}

/* FOOTER */
footer {
  padding: 42px 0 22px 0;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius) var(--radius) 0 0;
}
footer .container { max-width: 1200px; }
footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
  justify-content: space-between;
}
footer nav[aria-label="Fußnavigation"] {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 5px;
}
footer nav[aria-label="Fußnavigation"] a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  padding: 4px 0;
  opacity: .92;
  font-weight: 500;
  letter-spacing: .01em;
  font-size: 1rem;
  border-radius: 8px;
}
footer nav[aria-label="Fußnavigation"] a:hover, footer nav[aria-label="Fußnavigation"] a:focus {
  background: var(--accent);
  color: var(--primary);
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: #f5f5f5;
  font-size: 0.98rem;
  max-width: 340px;
}
.footer-contact div {
  display: flex;
  align-items: center;
  gap: 9px;
  line-height: 1.5;
}
.footer-contact img {
  width: 24px; height: 24px; margin-right: 2px;
}
.footer-contact a {
  color: #e5fae7;
  word-break: break-all;
  transition: color .17s;
}
.footer-contact a:hover, .footer-contact a:focus {
  color: var(--secondary);
  text-decoration: underline;
}
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 10px 0 0 0;
}
.footer-legal a {
  color: #badcf5;
  font-size: 0.99rem;
  padding: 2px 8px;
  border-radius: 6px;
  transition: background .15s, color .14s;
}
.footer-legal a:hover, .footer-legal a:focus {
  background: var(--secondary);
  color: var(--primary);
}
.footer-social {
  display: flex;
  gap: 14px;
  margin: 18px 0 0 0;
}
.footer-social a {
  display: inline-block;
  padding: 0;
  border-radius: 50%;
  background: transparent;
  transition: background .15s;
}
.footer-social a:hover, .footer-social a:focus {
  background: var(--gray-light);
}
.footer-social img {
  width: 32px;
  height: 32px;
  padding: 3px;
}
@media (max-width: 900px) {
  footer .content-wrapper { flex-direction: column; gap: 12px; align-items: flex-start; }
}

/* LISTS AND BLOCKS */
ul, ol {
  margin: 10px 0 10px 24px;
  padding: 0;
}
li { margin-bottom: 7px; }
strong { font-weight: bold; color: var(--primary); }

blockquote {
  font-style: italic;
  quotes: "\201E" "\201C" "\2018" "\2019";
}
blockquote:before { content: open-quote; color: var(--secondary); font-size: 1.8em; vertical-align: -0.2em; }
blockquote:after { content: close-quote; color: var(--secondary); font-size: 1.8em; vertical-align: -0.2em; }

/* GENERIC SPACING/ALIGNMENT (SAFE DEFAULTS) */
.section + .section, .section + section, section + .section {
  margin-top: 40px;
}
.content-wrapper > *:not(:last-child) {
  margin-bottom: 18px;
}

/* TABLES, FORMS - if present later */
table { border-collapse: collapse; width: 100%; margin-bottom: 20px; }
td, th { border: 1px solid #e5e5e5; text-align: left; padding: 10px; }


/* RESPONSIVE FONT-SIZE AND LAYOUT */
@media (max-width: 600px) {
  h1 { font-size: 1.25rem; }
  h2 { font-size: 1.1rem; }
  .features-grid > div { min-width: 140px; padding: 18px; max-width: 100%; }
  .testimonial-card { padding: 13px; }
  .container { padding-left: 7px; padding-right: 7px; }
}

/* ANIMATIONS AND TRANSITIONS */
.cta-btn, .card, .features-grid > div, .testimonial-card {
  transition: box-shadow .18s, background .18s, color .15s, transform .16s;
}

/* COOKIES CONSENT (BANNER + MODAL) */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 1200;
  background: var(--accent);
  color: #203966;
  box-shadow: 0 -2px 16px rgba(77,52,0,0.12);
  padding: 22px 20px 22px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  border-radius: var(--radius) var(--radius) 0 0;
  animation: cookieslidein .32s cubic-bezier(.37,.57,.3,1);
}
@keyframes cookieslidein {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner p { margin: 0; font-size: 1.14rem; color: #203966; }
.cookie-banner .cookie-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.cookie-banner button {
  padding: 9px 24px;
  font-size: 1rem;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  background: var(--secondary);
  color: #fff;
  box-shadow: var(--shadow);
  transition: background .15s, color .13s;
}
.cookie-banner button.accept {
  background: #45be89;
}
.cookie-banner button.reject {
  background: #e67c4e;
}
.cookie-banner button.settings {
  background: var(--primary);
}
.cookie-banner button:hover, .cookie-banner button:focus {
  background: #19304e;
  color: #f2e5cf;
}
.cookie-banner button.accept:hover { background: #2ba868; }
.cookie-banner button.reject:hover { background: #c4471b; }

@media (max-width: 700px) {
  .cookie-banner { flex-direction: column; gap: 17px; align-items: flex-start; padding: 17px 9px; }
}

/* COOKIE CONSENT MODAL */
.cookie-modal {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  z-index: 1300;
  background: rgba(32,57,102,0.76);
  display: none;
  align-items: center;
  justify-content: center;
  animation: fadein .22s;
}
.cookie-modal.open {
  display: flex;
}
@keyframes fadein {
  from { opacity: 0; } to { opacity: 1; }
}
.cookie-modal-dialog {
  background: var(--warm2);
  padding: 34px 28px 28px 28px;
  border-radius: var(--radius);
  max-width: 420px;
  width: 95vw;
  box-shadow: 0 6px 34px 0 rgba(32,57,102,0.16);
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  animation: cmodalin .19s;
}
@keyframes cmodalin {
  from { transform: scale(.95); opacity: .7; }
  to { transform: scale(1); opacity: 1; }
}
.cookie-modal-dialog h3 {
  font-size: 1.17rem;
  color: #203966;
}
.cookie-categories {
  margin-top: 8px;
  margin-bottom: 6px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cookie-category {
  background: #fff;
  border-radius: 9px;
  padding: 10px 13px;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow);
}
.cookie-category input[type='checkbox'] {
  accent-color: var(--secondary);
  width: 20px;
  height: 20px;
}
.cookie-category.essential label { font-weight: 600; color: var(--primary); }
.cookie-modal-actions {
  display: flex;
  gap: 13px;
  justify-content: flex-end;
}
.cookie-modal-actions button {
  padding: 8px 18px;
  font-size: 1rem;
  margin-top: 10px;
  border-radius: 9px;
  border: none;
  background: var(--secondary);
  color: #fff;
  font-weight: 600;
  font-family: 'Montserrat', Arial, sans-serif;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: background .17s, color .13s;
}
.cookie-modal-actions button.close {
  background: #d9d9d9;
  color: #47526b;
}
.cookie-modal-actions button.save {
  background: #45be89;
}
.cookie-modal-actions button:hover, .cookie-modal-actions button:focus {
  background: #203966;
  color: #fff;
}
.cookie-modal-actions button.save:hover {
  background: #2ba868;
}

@media (max-width: 500px) {
  .cookie-modal-dialog { padding: 18px 5vw; }
}

/* UTILITIES */
.hide { display: none !important; }

/* Z-INDEX CONSISTENCY */
header, .mobile-menu, .cookie-banner, .cookie-modal { z-index: 100; }

/* MISC: EMPHASIS, LINKS */
a:hover, a:focus {
  color: var(--secondary);
}
em, i {
  font-style: italic;
  color: #a36107;
}

/* VISUAL HIERARCHY (SPACING/MARGINS) */
.content-wrapper > h2 { margin-top: 18px; margin-bottom: 14px; }
.content-wrapper > h3 { margin-bottom: 8px; }
.card + .card, .testimonial-card + .testimonial-card, .feature-item + .feature-item {
  margin-top: 20px;
}

/* ACCESSIBILITY & TOUCH TARGETS */
button, .cta-btn, .mobile-nav a {
  min-height: 44px;
  min-width: 44px;
  font-size: 1rem;
}

/* END */
