/* ================= MODERN VINTAGE RETRO CSS FOR MONDSTRAHL MARKENAGENTUR =================
   CRITICAL: FLEXBOX ONLY, NO GRID, NO COLUMNS! Mobile-first, responsive, animated, authentic "vintage_retro" design
   ----------------------------------------------------------------------------------------------------
   Brand colors/palette:
   - Dark indigo (primary):      #232342
   - Aqua blue (secondary):     #77C4D3
   - Warm beige/offwhite (bg):  #F4F1EC
   - Accent coral:              #E56E49 (added for retro vibrancy)
   - Soft gold (detail):        #F6C453
   Fonts (retro look):
   - Display: Montserrat (600+) or fallback Arial, sans-serif (rounded, geometric - vintage optimism)
   - Body: Open Sans (400/700) or Helvetica Neue, Arial, sans-serif (clean, readable, open)
*/

/* ======================== RESET & NORMALIZE =========================== */
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
  background: #F4F1EC;
}
*, *:before, *:after { box-sizing: inherit; margin: 0; padding: 0; }
body {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  background: #F4F1EC;
  color: #232342;
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg {
  display: block;
  max-width: 100%;
  height: auto;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  background: none;
  border: none;
  outline: none;
  color: inherit;
}
ul, ol {
  list-style: none;
}
a {
  color: #232342;
  text-decoration: none;
  transition: color .2s;
}
a:hover, a:focus {
  color: #E56E49;
}

/* ======================== TYPOGRAPHY =========================== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 12px;
  color: #232342;
  text-shadow: 0 1px 0 #ffe9c6;
}
h1 { font-size: 2.5rem; margin-bottom: 20px; }
h2 { font-size: 2rem; margin-bottom: 14px; }
h3 { font-size: 1.35rem; margin-bottom: 10px; }
.subheadline {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-weight: 400;
  font-size: 1.1rem;
  color: #564543;
  opacity: .90;
  margin-bottom: 16px;
  letter-spacing: 0.01em;
}
.text-section, .text-section p { font-size: 1.06rem; color: #39313A; margin-bottom: 12px; }
strong { color: #7b553a; font-weight: 700; }
.price { font-size: 1.08rem; font-family: 'Montserrat', Arial, Helvetica, sans-serif; color: #E56E49; font-weight: 700; margin-top: 5px; letter-spacing: 0.05em; display: inline-block; }

/* Retro typographic accent: stylize all <h1>-<h2> underline */
h1, h2 {
  position: relative;
}
h1:after, h2:after {
  content: "";
  display: block;
  width: 48px;
  height: 4px;
  background: #F6C453;
  border-radius: 2px;
  margin-top: 6px;
  margin-bottom: 8px;
  opacity: 0.6;
}

/* ======================== LAYOUT: CONTAINER & SECTIONS =========================== */
.container {
  max-width: 1100px;
  padding: 0 18px;
  margin-left: auto;
  margin-right: auto;
}
.section, section {
  width: 100%;
}
section {
  background: #fffbe9; /* subtle warm beige/butter, evokes vintage stationery */
  border-radius: 22px;
  margin-bottom: 60px;
  padding: 40px 20px;
  box-shadow: 0 6px 36px -10px rgba(68,42,20,0.08);
  position: relative;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
  justify-content: center;
}

/* ======================== MAIN NAV & HEADER =========================== */
header {
  background: #232342;
  padding: 0;
  width: 100%;
  box-shadow: 0 6px 24px -8px rgba(34,28,58,0.08);
  z-index: 1100;
}
header .container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  gap: 20px;
}
header img[alt="Mondstrahl Markenagentur"] {
  height: 48px;
  width: auto;
  margin: 0 10px 0 0;
}
header nav {
  display: flex;
  gap: 26px;
  align-items: center;
}
header nav a {
  color: #F4F1EC;
  font-weight: 600;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  letter-spacing: 0.01em;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
  position: relative;
}
header nav a:hover, header nav a:focus {
  color: #F6C453;
  border-bottom: 2px solid #F6C453;
  background: none;
}
header nav .cta-primary {
  margin-left: 14px;
}

/* ======================== CTA BUTTONS =========================== */
.cta-primary, .mobile-nav .cta-primary {
  background: #E56E49;
  color: #fffbe9;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 800;
  font-size: 1.07rem;
  border-radius: 32px;
  padding: 12px 32px;
  box-shadow: 0 2px 10px -4px #23234244;
  border: none;
  letter-spacing: 0.04em;
  transition: background .18s, box-shadow .2s, color .13s;
  cursor: pointer;
  outline: none;
  border-bottom: none !important;
  position: relative;
}
.cta-primary:hover, .cta-primary:focus {
  background: #d35124;
  color: #fffbe9;
  box-shadow: 0 7px 30px -10px #E56E4977;
  text-shadow: 0 1px 0 #bb470d30;
}

/* ======================== FLEX LAYOUTS: SHARED PATTERNS =========================== */
.card-container,
.feature-grid,
.card-grid,
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card { /* For blog cards, testimonials */
  margin-bottom: 20px;
  position: relative;
  background: #fff8ec;
  border-radius: 18px;
  box-shadow: 0 2px 18px -7px #23234230;
  padding: 24px 18px 20px 18px;
  min-width: 260px;
  flex: 1 1 270px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.card:hover {
  box-shadow: 0 9px 34px -8px #E56E4960;
  background: #fff6e6;
  transition: box-shadow .25s, background .18s;
}
.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;
  align-items: center;
  gap: 20px;
  background: #fff3e3;
  border-radius: 14px;
  box-shadow: 0 6px 24px -8px #E56E4925;
  padding: 20px 24px;
  margin-bottom: 20px;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1.14rem;
  color: #232342;
  max-width: 680px;
  min-width: 270px;
}
.testimonial-card p {
  font-style: italic;
  font-family: 'Open Sans', Arial, sans-serif;
  color: #232342;
}
.testimonial-author {
  margin-left: auto;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  color: #7b553a;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.feature-item,
.service-list li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
  background: #fffaed;
  border-radius: 14px;
  box-shadow: 0 3px 10px -6px #23234213;
  padding: 22px 18px;
  position: relative;
}
/* For icons in features */
.feature-grid li img, .service-list li img {
  width: 44px; height: 44px; margin-bottom: 10px; filter: sepia(0.6) hue-rotate(-10deg) saturate(1.1); opacity: .96;
}

/* =================== BLOG LIST (Classic retro card style) ==================== */
.blog-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 28px;
}
.blog-preview {
  background: #fffbe9;
  border-radius: 15px;
  box-shadow: 0 3px 18px -7px #7b553a23;
  padding: 20px 16px;
  flex: 1 1 270px;
  min-width: 270px;
  max-width: 90vw;
  margin-bottom: 20px;
  border: 2px dashed #F6C45323;
  transition: transform .2s, box-shadow .17s;
}
.blog-preview:hover {
  transform: translateY(-3px) scale(1.022) rotate(-2deg);
  box-shadow: 0 7px 24px -5px #E56E4970;
  border-color: #E56E49;
}
.blog-meta {
  display: inline-block;
  font-size: 0.95em;
  font-weight: 600;
  color: #77C4D3;
  padding-top: 8px;
}
.blog-tags {
  font-size: 1.02em;
  color: #A7865A;
  margin-bottom: 14px;
  margin-top: 6px;
  letter-spacing: 0.01em;
}
.newsletter-signup {
  background: #E56E49;
  color: #fffbe9;
  border-radius: 15px;
  padding: 22px 18px;
  box-shadow: 0 3px 18px -7px #E56E4960;
  font-size: 1.14rem;
}

/* =================== CASE STUDY (Portfolio) =================== */
.case-study {
  background: #fffaed;
  border-radius: 12px;
  box-shadow: 0 2px 11px -6px #23234216;
  padding: 18px 15px;
  margin-bottom: 22px;
  font-size: 1.05rem;
  font-family: 'Open Sans', Arial, sans-serif;
  border-left: 5px solid #77C4D3;
}
.case-study h3 { color: #E56E49; }

/* ============= FOOTER ================= */
footer {
  background: #232342;
  color: #fffbe9;
  padding: 0 0 12px 0;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
footer .content-wrapper {
  display: flex;
  flex-direction: row;
  gap: 30px;
  align-items: flex-start;
  justify-content: space-between;
  padding: 32px 0 5px 0;
}
footer .footer-menu{
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  color: #fffbe9;
  margin-bottom: 6px;
}
footer .footer-menu a, footer .footer-contact a {
  color: #F6C453;
  text-decoration: underline;
  font-weight: 400;
}
footer .footer-menu a:hover, footer .footer-contact a:hover{
  color: #77C4D3;
}
footer .footer-contact{ font-size:1em; }
footer .cta-primary {
  margin-left: auto;
  background: #F6C453;
  color: #232342;
  font-weight: 800;
  font-size: 1em;
  box-shadow: 0 3px 14px -5px #F6C45355;
}
footer .cta-primary:hover {
  background: #E56E49;
  color: #fffbe9;
}

/* ===================== MOBILE MENU ================================== */
.mobile-menu-toggle {
  display: none;
  background: #F6C453;
  color: #232342;
  position: fixed;
  right: 16px;
  top: 18px;
  z-index: 1500;
  width: 48px;
  height: 48px;
  border-radius: 40px;
  border: none;
  box-shadow: 0 1px 5px -2px #23234233;
  font-size: 2.1rem;
  align-items: center;
  justify-content: center;
  transition: background .16s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus { background: #E56E49; color: #fffbe9; }

.mobile-menu {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  position: fixed;
  top: 0; left: 0; right:0; bottom: 0;
  background: #232342cc;
  z-index: 2000;
  transform: translateX(-110vw);
  transition: transform .38s cubic-bezier(0.75,0,0.24,1);
  opacity: 0.98;
  padding: 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  color: #F6C453;
  background: none;
  border: none;
  position: absolute;
  right: 14px;
  top: 15px;
  font-size: 2.3rem;
  font-weight: 800;
  z-index: 2100;
  cursor: pointer;
  transition: color .17s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus { color: #E56E49; }
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 80px 30px 30px 30px;
  width: 95vw;
  max-width: 400px;
  box-sizing: border-box;
}
.mobile-nav a {
  color: #F6C453;
  font-size: 1.28rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  padding: 10px 6px;
  border-radius: 7px;
  transition: background .18s, color .17s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #E56E49;
  color: #fffbe9;
}
.mobile-nav .cta-primary {
  font-size: 1.11rem;
  background: #77C4D3;
  color: #232342;
  text-align: center;
  margin-top: 25px;
}

/* Only show mobile toggle on small screens */
@media (max-width: 1020px) {
  .mobile-menu-toggle {
    display: flex;
  }
  header nav {
    display: none;
  }
}
@media (min-width: 1021px) {
  .mobile-menu { display: none !important; }
}

/* ======================== COOKIE BANNER & COOKIE SETTINGS MODAL =========================== */
.cookie-consent-banner {
  position: fixed;
  z-index: 2500;
  bottom: 0; left: 0; right: 0;
  background: #232342;
  color: #fffbe9;
  padding: 28px 24px;
  width: 100vw;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 32px;
  box-shadow: 0 -3px 18px -7px #23234266;
  font-size: 1.08rem;
  font-family: 'Open Sans', Arial, sans-serif;
}
.cookie-consent-banner .cookie-buttons {
  display: flex;
  gap: 16px;
}
.cookie-consent-banner button {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.04rem;
  padding: 9px 22px;
  border-radius: 24px;
  margin: 0;
  cursor: pointer;
  border: none;
  transition: background .17s, color .12s;
  outline: none;
  letter-spacing: 0.01em;
}
.cookie-consent-banner .accept {
  background: #E56E49;
  color: #fffbe9;
}
.cookie-consent-banner .accept:hover {
  background: #F6C453;
  color: #232342;
}
.cookie-consent-banner .reject {
  background: #77C4D3;
  color: #232342;
}
.cookie-consent-banner .reject:hover {
  background: #E56E49;
  color: #fffbe9;
}
.cookie-consent-banner .settings {
  background: #232342;
  color: #F6C453;
  border: 2px solid #F6C453;
}
.cookie-consent-banner .settings:hover {
  background: #E56E49;
  color: #fffbe9;
  border-color: #E56E49;
}

.cookie-settings-modal {
  position: fixed;
  z-index: 2999;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(35,35,66,0.78);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}
.cookie-settings-modal.open {
  opacity: 1;
  pointer-events: all;
}
.cookie-settings-content {
  background: #fffbe9;
  color: #232342;
  border-radius: 18px;
  padding: 32px 28px 20px 28px;
  min-width: 320px;
  max-width: 97vw;
  box-shadow: 0 6px 36px -8px #23234253;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: modal-bounce-in .5s cubic-bezier(0.6,1.2,0.5,1.0);
}
@keyframes modal-bounce-in {
  0% { transform: scale(0.8) translateY(90px); opacity: 0; }
  60% { transform: scale(1.06) translateY(-12px); opacity: 1; }
  90% { transform: scale(0.98) translateY(1px); }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}
.cookie-settings-content h3 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.28rem;
  margin-bottom: 8px;
}
.cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 18px;
  margin-bottom: 12px;
}
.cookie-category input[type=checkbox] {
  width: 22px;
  height: 22px;
}
.cookie-category label {
  font-size: 1.07rem;
  font-family: 'Open Sans', Arial, sans-serif;
}
.cookie-category.essential label { color: #232342; font-weight: 700; }
.cookie-category.essential input[type=checkbox] {
  accent-color: #E56E49;
}
.cookie-save-btn {
  background: #F6C453;
  color: #232342;
  font-size: 1.07rem;
  font-family: 'Montserrat', Arial, sans-serif;
  border-radius: 24px;
  padding: 9px 22px;
  border: none;
  box-shadow: 0 2px 12px -7px #E56E4980;
  cursor: pointer;
  font-weight: 700;
  margin-top: 10px;
  align-self: flex-end;
  transition: background .15s, color .1s;
}
.cookie-save-btn:hover {
  background: #E56E49;
  color: #fffbe9;
}
.cookie-close-btn {
  background: none;
  color: #E56E49;
  border: none;
  font-size: 2rem;
  font-weight: 900;
  position: absolute;
  top: 8px; right: 18px;
  cursor: pointer;
  transition: color .2s;
}
.cookie-close-btn:hover { color: #232342; }

/* ============= FORM & FIELD STYLING (Kontakt, Newsletter etc) ============= */
input[type=text], input[type=email], textarea {
  border: 2px solid #F6C453;
  border-radius: 11px;
  background: #fffbe9;
  color: #232342;
  padding: 12px 14px;
  font-size: 1rem;
  width: 100%;
  margin-bottom: 16px;
  box-shadow: none;
  outline: none;
  transition: border-color .16s;
}
input[type=text]:focus, input[type=email]:focus, textarea:focus {
  border-color: #E56E49;
  background: #fff8e3;
}
label {
  font-size: 1.07rem;
  font-family: 'Open Sans', Arial, sans-serif;
  font-weight: 600;
  margin-bottom: 7px;
  color: #232342;
}

/* ===================== RESPONSIVE: MOBILE FIRST =============================== */
@media (max-width: 900px) {
  .container { max-width: 97vw; }
  footer .content-wrapper {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
}
@media (max-width: 768px) {
  h1 { font-size: 1.64rem; }
  h2 { font-size: 1.22rem; }
  .section, section { padding: 27px 3vw; margin-bottom: 46px; border-radius: 13px; }
  .content-wrapper, .footer .content-wrapper, .content-grid {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
  .footer .content-wrapper { padding:16px 0 4px 0; }
  .testimonial-card, .feature-item, .service-list li, .card, .blog-preview {
    min-width: 90vw;
    max-width: 99vw;
    padding-left: 2vw; padding-right: 2vw;
  }
  .feature-grid, .blog-list, .service-list {
    gap: 18px;
    flex-direction: column;
  }
  .testimonials { flex-direction: column; gap: 18px; }
  .text-image-section { flex-direction: column; gap: 18px; }
  .newsletter-signup, .case-study { font-size: 1.05rem; }
  .mobile-menu {
    width: 100vw; max-width: 100vw; min-width: 0;
    padding: 0; /* override */
  }
  .mobile-nav {
    width: 95vw; max-width: 98vw; min-width: 0;
    padding: 80px 13px 24px 18px;
  }
  .cookie-consent-banner{
    font-size:0.98rem;
    flex-direction: column;
  }
}

/* ============== RETRO-ESQUE DECORATIONS / PATTERNS / MICRO-INTERACTIONS ============== */
section {
  background-image: repeating-linear-gradient(135deg, #fffbe9 0 8px, #fff7e1 8px 16px);
  background-size: 48px 48px;
  border: 2.5px solid #F6C45330;
  box-shadow: 0 7px 27px -13px #7b553a44;
}
.card, .testimonial-card, .feature-item, .blog-preview, .case-study {
  box-shadow: 0 4px 38px -8px #f6c4531f, 0 1.5px 4px -2px #23234224;
}
.service-list li::before {
  content: '\2605'; /* retro star */
  color: #F6C453;
  font-size: 1.14em;
  margin-right: 8px;
}

.testimonial-card {
  border-left: 6px solid #F6C453;
  transition: box-shadow .23s;
}
.testimonial-card:hover {
  box-shadow: 0 14px 32px -9px #F6C45399, 0 0.5px 12px -7px #E56E4922;
}

/* Subtle accent lines for vintage feel in headers */
.case-study h3::before, .testimonial-author::before {
  content: '\2014\00A0';
  color: #E56E49;
  opacity: .65;
  font-weight: 600;
  margin-right: 6px;
  font-size: 0.95em;
}

/* ================ FOCUS STATES for ACCESSIBILITY ================ */
a:focus, button:focus, .cta-primary:focus, input:focus, .cookie-save-btn:focus {
  outline: 2.5px dotted #F6C453;
  outline-offset: 2px;
}

/* ================ PRINT MINIMAL OVERRIDE ================ */
@media print {
  header, footer, .mobile-menu, .cookie-consent-banner, .cookie-settings-modal { display: none !important; }
  body { background: #fff; color: #232342; }
  section { border: none; background: none; box-shadow: none; }
}

/* ====== Accessibility helpers (hide visually, but keep for AT users) ====== */
.sr-only { position:absolute; left:-99999px; width:1px; height:1px; overflow:hidden; }

/* =========== Z-INDEX SANITY =========== */
header { z-index: 1100; }
.mobile-menu { z-index: 2000; }
.cookie-consent-banner { z-index:2500; }
.cookie-settings-modal { z-index:2999; }
