/* --- CSS RESET & NORMALIZE --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html, body {
  height: 100%;
}
body {
  min-height: 100vh;
  font-family: 'Roboto', Arial, sans-serif;
  background-color: #F4F4F9;
  color: #222;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  font-size: 16px;
}
img, svg {
  max-width: 100%;
  display: block;
}
input, button, select, textarea {
  font: inherit;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
ul, ol {
  margin-left: 24px;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, serif;
  font-weight: bold;
  color: #2E4066;
  margin-bottom: 18px;
}
h1 {
  font-size: 2.5rem;
  letter-spacing: -2px;
  margin-bottom: 16px;
  text-shadow: 2px 2px 0 #F29F05, 0 4px 18px #fff9d5;
}
h2 {
  font-size: 2rem;
  letter-spacing: -1px;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
  color: #552c14;
  font-family: 'Montserrat', Arial, Helvetica, serif;
}
strong {
  color: #552c14;
  font-weight: 700;
}

/* --- VINTAGE RETRO THEME --- */
:root {
  --primary: #2E4066;
  --secondary: #F4F4F9;
  --accent: #F29F05;
  --retro-brown: #552c14;
  --retro-cream: #faf3e4;
  --retro-orange: #ef5d28;
  --retro-green: #64B587;
  --card-shadow: 0 4px 16px rgba(46,64,102, 0.06), 0 2px 4px rgba(242,159,5,0.03);
  --border-radius: 18px;
}

body {
  background: var(--retro-cream);
  font-family: 'Roboto', Arial, sans-serif;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0px;
}
.content-wrapper {
  margin: 0 auto;
  max-width: 840px;
  background: var(--secondary);
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
  padding: 40px 30px 32px 30px;
  margin-bottom: 32px;
  border: 2px solid #e5ddc6;
}

/* --- Section Spacing --- */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}

/* --- Header + Navigation --- */
header {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 12px rgba(46,64,102,0.05);
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  gap: 24px;
}
header img[alt="Savora Maintain"] {
  width: 160px;
  height: auto;
  filter: grayscale(30%) brightness(0.98) sepia(12%);
}
.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}
.main-nav a {
  font-family: 'Montserrat', Arial, Helvetica, serif;
  font-size: 1rem;
  padding: 8px 16px;
  border-radius: 11px;
  color: #fffcef;
  font-weight: 600;
  letter-spacing: 0.05em;
  transition: background 0.16s, color 0.2s, border 0.2s;
}
.main-nav a:hover {
  background: var(--accent);
  color: var(--primary);
  box-shadow: 0 2px 8px #fce0ae;
}
.main-nav .cta {
  background: var(--accent);
  color: var(--primary);
  font-size: 1.05rem;
  padding: 10px 22px;
  border-radius: 16px;
  border: 2px solid #f3cb35;
  text-shadow: 0 1px 0 #fff8dc;
  margin-left: 10px;
  box-shadow:0 2px 7px #fce0ae;
  transition: background 0.23s, color 0.24s, box-shadow 0.23s;
}
.main-nav .cta:hover, .cta:hover {
  background: #fffbea;
  color: var(--retro-orange);
  box-shadow: 0 6px 18px #f8ddb1;
}

.mobile-menu-toggle {
  background: var(--accent);
  color: var(--primary);
  border: none;
  border-radius: 10px;
  padding: 6px 12px;
  font-size: 2rem;
  margin-left: 16px;
  box-shadow: 0 2px 10px #eac37277;
  cursor: pointer;
  display: none;
  transition: background 0.2s;
  z-index: 1200;
}
.mobile-menu-toggle:hover {
  background: #fff5d1;
}

/* Mobile menu overlay */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 100vw;
  height: 100vh;
  background: #2E4066f4;
  z-index: 2000;
  transform: translateX(100%);
  transition: transform 0.44s cubic-bezier(.6,.2,.2,1);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 30px 40px;
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: all;
  opacity: 1;
}
.mobile-menu-close {
  font-size: 2.1rem;
  background: #fff;
  color: var(--primary);
  border: none;
  border-radius: 8px;
  padding: 2px 12px 2px 10px;
  margin-bottom: 34px;
  align-self: flex-end;
  box-shadow: 0 2px 13px #fff2;
  cursor: pointer;
  transition: background 0.19s, color 0.2s;
}
.mobile-menu-close:hover {
  background: #f3cb35;
  color: var(--retro-brown);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: 100%;
  align-items: flex-start;
}
.mobile-nav a {
  color: #fff;
  text-decoration: none;
  font-size: 1.25rem;
  font-family: 'Montserrat', Arial, Helvetica, serif;
  padding: 9px 0 9px 9px;
  border-radius: 4px;
  background: none;
  transition: background 0.19s, color 0.17s;
  width: 100%;
}
.mobile-nav a:active, .mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--accent);
  background: #2e4a7a;
}

@media (max-width: 1020px) {
  .main-nav {
    gap: 9px;
  }
  header .container {
    gap: 16px;
  }
}

@media (max-width: 900px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* --- Footer --- */
footer {
  padding: 0;
  background: var(--primary);
  color: #F9F3E2;
  font-size: 1rem;
  border-top: 7px dotted #eac372;
}
footer .container {
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  padding: 36px 18px 16px 18px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 8px;
}
.footer-nav a {
  color: #f9f6e6;
  opacity: 0.92;
  padding: 7px 13px;
  border-radius: 9px;
  font-family: 'Montserrat', Arial, Helvetica, serif;
  letter-spacing: 0.03em;
  transition: background 0.18s, color 0.15s;
}
.footer-nav a:hover {
  color: var(--primary);
  background: var(--accent);
}
.footer-contact {
  font-size: 1rem;
  color: #fffcea;
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-bottom: 6px;
}
.footer-contact img {
  vertical-align: middle;
  width: 19px;
  margin-right: 6px;
}
.footer-newsletter p {
  margin-top: 10px;
  font-size: 1.08rem;
  color: #f9e48e;
  font-family: 'Montserrat', Arial, Helvetica, serif;
}
footer p {
  color: #f9ecd2;
  margin-top: 13px;
}

/* --- SECTIONS & LAYOUT --- */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fffefa linear-gradient(120deg, #fffefa 92%, #f29f0540 100%);
  border: 2px solid #f6daa6;
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
  padding: 28px 24px;
  min-width: 250px;
  flex: 1 1 280px;
  transition: box-shadow 0.23s, transform 0.15s;
}
.card:hover {
  box-shadow: 0 8px 22px #f3cb3555, 0 2px 8px #cfb89444;
  transform: translateY(-3px) scale(1.018);
}
.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;
  margin-bottom: 24px;
}
@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;
  margin-bottom: 24px;
  background: #faf3e4;
  border: 2px solid #f5debc;
  border-radius: 14px;
  box-shadow: 0 2px 8px #eac37233;
  transition: box-shadow 0.2s, border 0.2s, background 0.18s;
}
.testimonial-card blockquote {
  font-family: 'Montserrat', serif;
  font-size: 1.1rem;
  font-style: italic;
  color: #5b2400;
  border-left: 5px solid var(--accent);
  padding-left: 13px;
  margin-bottom: 0;
  line-height: 1.5;
}
.testimonial-card p {
  font-size: 0.98rem;
  color: var(--primary);
  font-family: 'Roboto', Arial, sans-serif;
  margin-left: 16px;
}
.testimonial-card:hover {
  background: #fffaea;
  box-shadow: 0 4px 26px #eac37244, 0 2px 9px #bbabaa22;
  border-color: var(--accent);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #fffefa;
  border-radius: 14px;
  padding: 24px;
  border: 2px solid #f6daa6;
  margin-bottom: 20px;
}

.blog-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.post-teaser {
  background: #fffdef;
  border: 2px dashed #eac372cc;
  border-radius: var(--border-radius);
  box-shadow: 0 2px 12px #fbecb933;
  padding: 23px 19px;
  flex: 1 1 320px;
  margin-bottom: 20px;
  transition: box-shadow 0.2s, border 0.2s;
}
.post-teaser:hover {
  border-color: var(--retro-orange);
  box-shadow: 0 4px 20px #eac37255;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  align-items: center;
  background: #fffbea;
  border-radius: 11px;
  padding: 15px 20px;
  margin-top: 25px;
  margin-bottom: 20px;
  box-shadow: 0 2px 16px #fef0c2cc;
}
.filter-bar select, .filter-bar input[type="search"] {
  padding: 8px 10px;
  border-radius: 9px;
  border: 1.5px solid #f3cb35;
  font-size: 1rem;
}

/* FAQ (Dienstleistungen) */
.faq h3 {
  margin: 20px 0 8px 0;
  color: #2E4066;
  font-size: 1.1rem;
}
.faq .text-section {
  background: #fffcf2;
  border-left: 3.5px solid var(--accent);
  padding: 7px 19px;
  margin-bottom: 12px;
  border-radius: 5px;
  color: #64431a;
}

/* --- Typography Hierarchy --- */
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.25rem; }
p, li { font-size: 1.09rem; }

/* --- Buttons + CTA --- */
.cta {
  display: inline-block;
  background: var(--accent);
  color: var(--primary);
  font-family: 'Montserrat', Arial, Helvetica, serif;
  font-weight: 700;
  padding: 12px 30px;
  border-radius: 18px;
  font-size: 1.12rem;
  border: 2px solid #ffe3b6;
  margin-top: 20px;
  margin-bottom: 6px;
  box-shadow: 0 2px 9px #f8ddb1;
  letter-spacing: 0.017em;
  text-shadow: 0 1px 0 #fff8dc;
  transition: background 0.23s, color 0.18s, transform 0.09s;
  cursor: pointer;
}
.cta:focus,
.cta:hover {
  background: #fffbea;
  color: var(--retro-orange);
  transform: translateY(-1.5px) scale(1.02);
  border-color: var(--accent);
}
button, input[type="submit"], .blog-list button {
  font-family: 'Montserrat', Arial, Helvetica, serif;
  background: var(--accent);
  color: var(--primary);
  border: 2px solid #f3cb35;
  border-radius: 10px;
  padding: 10px 26px;
  transition: background 0.19s, color 0.19s, border 0.16s, transform 0.11s;
  font-weight: 600;
  cursor: pointer;
}
button:focus,
button:hover,
input[type="submit"]:hover {
  background: #fffbea;
  color: var(--retro-orange);
  outline: none;
  border-color: var(--accent);
  transform: translateY(-2px) scale(1.017);
}

/* --- Lists & Icon Lists --- */
ul li, ol li {
  margin-bottom: 14px;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  line-height: 1.6;
}
ul li img {
  width: 30px;
  height: 30px;
  margin-right: 13px;
  opacity: 0.82;
  filter: sepia(0.2) grayscale(0.22);
}

/* --- Contact Info --- */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 9px;
  background: #fffef7;
  border-radius: 10px;
  padding: 16px 20px;
  border: 1.5px solid #F29F05;
  margin-bottom: 18px;
}
.contact-info img {
  width: 20px;
  margin-right: 9px;
  vertical-align: middle;
}
.contact-map p {
  font-size: 1rem;
  margin: 0;
  color: #4e3b2d;
}

/* --- Responsive Styles & Flexbox Rules --- */
@media (max-width: 900px) {
  .container {
    padding-left: 8px; padding-right: 8px;
  }
}
@media (max-width: 660px) {
  .content-wrapper {
    padding: 22px 4vw 22px 4vw;
    font-size: 0.99rem;
  }
  h1 {font-size: 1.6rem; margin-bottom: 10px;}
  h2 {font-size: 1.25rem; margin-bottom: 10px;}
  section {padding: 22px 6px;}
  .blog-list { gap: 13px; }
}
@media (max-width: 600px) {
  .content-wrapper { padding: 12px 4vw; }
  .feature-item, .card, .testimonial-card, .post-teaser {padding: 14px 10px;}
  .filter-bar {padding: 9px 6px;gap:8px;}
}

/* --- Cookie Consent Banner --- */
.cookie-consent-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  width: 100vw;
  z-index: 3200;
  background: #fbe1b6;
  color: #2E4066;
  font-size: 1.06rem;
  box-shadow: 0 -4px 24px #64431a66;
  padding: 22px 10vw 22px 13vw;
  display: flex;
  flex-direction: row;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  animation: cookieBannerIn 0.8s cubic-bezier(.44,.81,.15,1.01);
}
@media (max-width: 900px) {
  .cookie-consent-banner {padding: 16px 4vw;flex-direction: column;align-items: flex-start;gap:8px;}
}
.cookie-consent-banner p {
  margin-bottom: 2px;
  color: #5f4300;
}
.cookie-btn-group {
  display: flex;
  flex-direction: row;
  gap: 14px;
  align-items: center;
}
.cookie-btn {
  background: var(--accent);
  border: 2px solid #f3cb35;
  color: var(--primary);
  font-family: 'Montserrat', serif;
  padding: 9px 19px;
  border-radius: 7px;
  margin-right: 0px;
  font-weight: 600;
  transition: background 0.18s, color 0.17s, border-color 0.17s, box-shadow 0.14s;
  box-shadow: 0 2px 8px #eac37277;
  cursor: pointer;
}
.cookie-btn:last-child {margin-right:0;}
.cookie-btn:focus, .cookie-btn:hover {
  background: #fffbea;
  color: var(--retro-orange);
  box-shadow: 0 7px 18px #eac37255;
  border-color: var(--accent);
}

/* --- Cookie Modal --- */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(45, 44, 41, .39);
  z-index: 4100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.27s;
}
.cookie-modal-overlay.open {
  opacity: 1;
  pointer-events: all;
  transition: opacity 0.23s;
}
.cookie-modal {
  background: #fffefa;
  color: #2E4066;
  border-radius: 19px;
  box-shadow: 0 6px 32px #f7cd6faa, 0 1px 13px #52412055;
  padding: 34px 32px;
  min-width: 300px;
  max-width: 95vw;
  min-height: 140px;
  z-index: 4500;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 24px;
  animation: fadeModalIn 0.41s cubic-bezier(.6,.23,.12,1);
}
.cookie-modal h2 {
  margin-bottom: 11px;
  font-size: 1.31rem;
  color: #ef5d28;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap:16px;
  background: #faf3e4;
  border-radius: 8px;
  padding: 13px 18px;
  font-size: 1.05rem;
}
.cookie-category label {
  margin-bottom: 0;
}
.cookie-category input[type="checkbox"] {
  accent-color: var(--accent);
  width: 17px; height: 17px;
}
.cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 18px;
}
.cookie-modal-close {
  position: absolute;
  top: 13px; right: 17px;
  background: transparent;
  border: none;
  font-size: 1.56rem;
  color: #c98e2b;
  cursor: pointer;
  opacity: 0.75;
  transition: opacity 0.15s, color .16s;
}
.cookie-modal-close:hover {
  opacity: 1;
  color: #2E4066;
}

/* --- Animations --- */
@keyframes fadeModalIn {
  from { transform: scale(.93) translateY(36px); opacity: 0; }
  to   { transform: scale(1.0) translateY(0); opacity: 1; }
}
@keyframes cookieBannerIn {
  from { opacity: 0; transform: translateY(60px); }
  to   { opacity: 1; transform: none; }
}

/* --- Misc Retro Design Touches --- */
.content-wrapper, .card, .feature-item {
  background: repeating-linear-gradient(-45deg,
    #fffefa 0px, #fffefa 17px, #f7eecb 18px, #f7eecb 25px
  );
}
.content-wrapper {
  border: 3px double #ef5d28;
  box-shadow: 0 6px 36px #eac37244, 0 0px 8px #cfb89422;
  background-blend-mode: lighten;
}
.card {
  border-radius: 17px 17px 33px 13px;
  border-style: dashed;
  border-width: 2.5px;
}
.card::before {
  content: "";
  position: absolute;
  left: -15px; top: -15px;
  width: 28px; height: 28px;
  background: #f29f05;
  border-radius: 55% 35% 70% 40%;
  opacity: .11;
  pointer-events: none;
  z-index: 0;
}

/* --- Newsletter Section --- */
.footer-newsletter {
  border-radius: 9px;
  margin-top: 11px;
  padding: 9px 15px;
  font-size: 1.04rem;
  font-family: 'Montserrat', serif;
}

/* --- Utility Classes --- */
.mt-40 { margin-top: 40px !important; }
.mb-24 { margin-bottom: 24px !important; }
.mb-32 { margin-bottom: 32px !important; }

/* --- A11y Focus Styles --- */
a:focus, button:focus, .cta:focus, .mobile-menu-toggle:focus, .cookie-btn:focus, .cookie-modal-close:focus {
  outline: 2px dashed var(--accent);
  outline-offset: 2px;
}

/* --- Hide visually but accessible for screen readers --- */
.sr-only {
  position: absolute!important;
  width: 1px!important;
  height: 1px!important;
  padding: 0!important;
  margin: -1px!important;
  overflow: hidden!important;
  clip: rect(0,0,0,0)!important;
  white-space: nowrap!important;
  border: 0!important;
}

/* --- Accessibility Contrast for Testimonials --- */
.testimonial-card, .testimonial-card blockquote, .testimonial-card p {
  color: #2E4066;
  background: #fffefa;
}
.testimonial-card blockquote {
  color: #5b2400;
}

/* --- End of CSS --- */
