/* --- Vintage Retro CSS for BüroBlitz --- */
/* RESET & NORMALIZE ------------------------------------------------------- */
html {
  box-sizing: border-box;
  font-size: 16px;
}
*, *::before, *::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  background: #F8F4F1;
  color: #2B2024;
  font-family: 'Roboto', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.7;
  min-height: 100vh;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Arial Rounded MT Bold', Arial, sans-serif;
  letter-spacing: 0.02em;
}
h1 { font-size: 2.5rem; font-weight: 700; color: #173554; margin-bottom: 16px; }
h2 { font-size: 2rem; font-weight: 700; color: #364058; margin-bottom: 14px; }
h3 { font-size: 1.35rem; font-weight: 600; color: #6B9EB8; margin-bottom: 10px; }
h4, h5, h6 { font-weight: 500; color: #173554; }
p { margin-bottom: 1em; }
ul, ol {
  margin: 0 0 1.25em 1.5em;
  font-size: 1rem;
}
ul { list-style: disc inside; }
ol { list-style: decimal inside; }
li { margin-bottom: 0.5em; }
a {
  color: #B35A2B;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #D18B47;
  text-decoration: underline;
}
img { max-width: 100%; display: block; }
blockquote {
  font-style: italic;
  font-family: 'Montserrat', serif;
  color: #2B2024;
  border-left: 4px solid #D18B47;
  background: #F4E3D5;
  padding: 12px 16px;
  margin-bottom: 12px;
}

/* --- LAYOUT CONTAINERS -------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 18px;
  padding-right: 18px;
  display: flex;
  flex-direction: column;
  gap: 0px;
}
.content-wrapper {
  background: #FFFDF8;
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(193,167,136, 0.10), 0 1.5px 3px rgba(117,98,78,0.07);
  padding: 32px 20px;
  margin-bottom: 32px;
}
.text-section {
  background: #F8F4F1;
  border-left: 6px dotted #D18B47;
  border-radius: 0 18px 18px 0;
  padding-left: 32px;
}

/* --- SECTION SPACING ------------------------------------------------------ */
section {
  margin-bottom: 60px;
  padding: 40px 20px 0 20px;
  position: relative;
}
@media (max-width: 768px) {
  section {
    padding: 30px 10px 0 10px;
    margin-bottom: 36px;
  }
  .content-wrapper, .text-section {
    padding: 22px 8px;
  }
}

/* --- RETRO COLOR PALETTE ------------------------------------------------- */
:root {
  --retro-navy: #173554;
  --retro-blue: #6B9EB8;
  --retro-beige: #F8F4F1;
  --retro-cream: #fffdf8;
  --retro-orange: #D18B47;
  --retro-brown: #9D6E36;
  --retro-red: #B35A2B;
  --retro-green: #8FA168;
  --retro-shadow: rgba(193,167,136, 0.13);
  --retro-shadow-strong: rgba(117,98,78,0.16);
}

/* --- TYPOGRAPHY ----------------------------------------------------------- */
body {
  font-size: 1rem;
  font-family: 'Roboto', Arial, sans-serif;
  color: #43323E;
  background: var(--retro-beige);
}
h1, h2, h3, h4, h5 {
  font-family: 'Montserrat', 'Arial Rounded MT Bold', Arial, sans-serif;
  text-shadow: 1px 1.5px 0 #F4E3D5;
}
h1 {text-transform: uppercase; letter-spacing: 2.5px;}
h2, h3 {letter-spacing: 1.5px;}

/* --- HEADER & NAVIGATION STYLES ----------------------------------------------- */
header {
  width: 100%;
  background: var(--retro-navy);
  color: #fff;
  padding: 0 0 0 0;
  box-shadow: 0 2px 8px var(--retro-shadow);
  display: flex;
  align-items: center;
  min-height: 70px;
  position: sticky;
  z-index: 50;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
header > a img {
  max-height: 44px;
  margin: 12px 22px 12px 16px;
}
header nav {
  display: flex;
  align-items: center;
  gap: 20px;
}
header nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.04rem;
  letter-spacing: 1.3px;
  color: #FFFDEC;
  padding: 10px 12px;
  border-radius: 14px;
  transition: background 0.18s, color 0.18s;
}
header nav a.active,
header nav a:hover,
header nav a:focus {
  background: var(--retro-orange);
  color: #FFFDF8;
}
.cta-btn {
  background: var(--retro-orange);
  color: #fffdf8;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.12rem;
  font-weight: bold;
  border: none;
  border-radius: 22px;
  padding: 12px 28px;
  margin-left: 24px;
  cursor: pointer;
  letter-spacing: 1.7px;
  box-shadow: 0 2px 6px var(--retro-shadow);
  transition: background 0.2s, box-shadow 0.2s, transform 0.09s;
  text-shadow: 1px 1px 0 #caa77c;
}
.cta-btn:hover, .cta-btn:focus {
  background: #B35A2B;
  color: #fff;
  box-shadow: 0 4px 12px var(--retro-shadow-strong);
  transform: translateY(-2px) scale(1.025);
}
header .mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: #FFF;
  padding: 14px 18px;
  cursor: pointer;
  border-radius: 50%;
  margin-left: auto;
  transition: background .19s;
}
header .mobile-menu-toggle:hover, 
header .mobile-menu-toggle:focus {
  background: rgba(255,255,255,0.17);
}
@media (max-width: 900px) {
  header nav, .cta-btn { display: none; }
  header .mobile-menu-toggle { display: block; }
}

/* --- MOBILE NAVIGATION ----------------------------------------------------- */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; bottom: 0; right: 0;
  background: rgba(29,19,14, 0.88);
  z-index: 99;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-end;
  transform: translateX(100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.4s cubic-bezier(.87,.22,.5,1.11), opacity 0.32s;
}
.mobile-menu.open {
  transform: none;
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  margin: 32px 24px 0 0;
  background: var(--retro-orange);
  color: #fffdf8;
  border: none;
  padding: 10px 14px;
  font-size: 1.6rem;
  font-weight: bold;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.18s;
}
.mobile-menu-close:hover {
  background: #B35A2B;
}
.mobile-nav {
  width: 88vw;
  max-width: 340px;
  background: #FFFDF8;
  border-radius: 24px 0 0 24px;
  box-shadow: 0 6px 36px var(--retro-shadow);
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 40px;
  padding: 28px 30px 38px 30px;
  min-height: calc(100vh - 48px);
  align-items: flex-start;
  animation: retroMenuSlideIn 0.5s cubic-bezier(.65,.1,.5,1.1);
}
.mobile-nav a {
  color: #173554;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.13rem;
  font-weight: 600;
  padding: 18px 0 14px 0;
  width: 100%;
  border-bottom: 1px dotted #ebdcc4;
  margin-bottom: 2px;
  transition: color 0.18s, background 0.16s;
  border-radius: 10px;
  display: block;
}
.mobile-nav a:last-child {
  border-bottom: none;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #D18B47;
  color: #FFFDF8 !important;
}
@keyframes retroMenuSlideIn {
  0% { transform: translateX(84px); opacity: 0.1; }
  100% { transform: none; opacity: 1; }
}
@media (min-width: 901px) {
  .mobile-menu { display: none !important; }
}

/* --- MAIN SECTIONS & FEATURE GRIDS ----------------------------------------- */
.features-grid {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 14px;
  margin-bottom: 4px;
  justify-content: space-between;
}
.features-grid > div {
  flex: 1 1 240px;
  min-width: 196px;
  max-width: 300px;
  padding: 24px 16px 18px 16px;
  background: #FFFDF8;
  border-radius: 14px;
  margin-bottom: 20px;
  box-shadow: 0 1.5px 6px var(--retro-shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 13px;
  transition: box-shadow 0.18s, transform 0.18s;
}
.features-grid > div:hover {
  box-shadow: 0 3.5px 17px var(--retro-shadow-strong);
  transform: translateY(-4px) scale(1.035);
}
.features-grid img {
  width: 48px;
  height: 48px;
  margin-bottom: 7px;
}
.features-grid h3 {
  font-size: 1.1rem;
  color: #173554;
}

@media (max-width: 900px) {
  .features-grid {
    flex-direction: column;
    gap: 22px;
    align-items: stretch;
  }
  .features-grid > div {
    max-width: 100%;
    min-width: 0;
    padding: 16px 8px 16px 12px;
  }
}

/* --- BLOG TEASERS --------------------------------------------------------- */
.blog-teaser {
  background: #FFFDF8;
  border-left: 6px solid #D18B47;
  border-radius: 10px;
  box-shadow: 0 1.5px 7px var(--retro-shadow);
  margin-bottom: 24px;
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  transition: background 0.15s;
}
.blog-teaser h3 {
  font-size: 1.18rem;
  font-family: 'Montserrat', sans-serif;
  color: #173554;
  margin-bottom: 2px;
}
.blog-teaser span {
  color: #6B9EB8;
  font-size: 0.97rem;
}
.blog-teaser:hover {
  background: #F4E3D5;
}

/* --- TESTIMONIAL CARDS ---------------------------------------------------- */
.testimonial-card {
  background: #FFFDF8;
  color: #1c1310;
  border: 2px dashed #D18B47;
  border-radius: 18px;
  box-shadow: 0 2px 13px var(--retro-shadow-strong);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 20px 30px;
  margin-bottom: 24px;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
  transition: box-shadow .18s, transform .16s;
}
.testimonial-card:hover {
  box-shadow: 0 3px 32px var(--retro-shadow-strong);
  transform: translateY(-2px) scale(1.012);
}
.testimonial-details {
  color: #B35A2B;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.03rem;
  letter-spacing: 1px;
  display: flex;
  flex-direction: row;
  gap: 16px;
  align-items: center;
}
@media (max-width: 650px) {
  .testimonial-card {
    padding: 13px 8px;
    font-size: 1rem;
    max-width: 99vw;
  }
}

/* --- CARDS & CARD CONTAINERS ---------------------------------------------- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 36px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  flex: 1 1 250px;
  background: #FFFDF8;
  border-radius: 16px;
  box-shadow: 0 2.5px 13px var(--retro-shadow);
  padding: 22px 16px;
  transition: box-shadow .17s, transform .14s;
}
.card:hover {
  box-shadow: 0 7px 28px var(--retro-shadow);
  transform: translateY(-3.5px);
}

/* --- FLEXBOX CONTENT GRID ----------------------------------------------- */
.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;
    align-items: flex-start;
    gap: 14px;
  }
  .content-grid {flex-direction: column;}
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ------- BUTTONS ---------------------------------------------------------- */
button, .cta-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  border: none;
  cursor: pointer;
  outline: none;
}
button:active, .cta-btn:active {
  transform: scale(0.97);
  box-shadow: 0 1px 5px #e8d2b7;
}

/* ------- LISTS, TABLES, MISC ----------------------------------------------- */
address {
  font-style: normal;
  font-size: 0.97rem;
  margin-top: 12px;
}
strong { color: #B35A2B; font-weight: 700; }
em, i { font-style: italic; }
hr {
  border: none;
  height: 2px;
  background: #EBCCCC;
  margin: 34px 0;
  border-radius: 1px;
}

/* --- FOOTER STYLES ------------------------------------------------------- */
footer {
  background: var(--retro-navy);
  color: #FFFDF8;
  padding: 48px 0 36px 0;
  margin-top: 30px;
  font-size: 0.98rem;
}
footer .container {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 42px;
  justify-content: space-between;
}
footer a {
  color: #F6CC95;
  text-decoration: underline;
  margin-right: 14px;
  transition: color 0.18s;
}
footer a:hover, footer a:focus {
  color: #FFFDF8;
  text-decoration: none;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
@media (max-width: 900px) {
  footer .container {
    flex-direction: column;
    gap: 17px;
    align-items: flex-start;
  }
}

/* --- COOKIE CONSENT BANNER & MODAL --------------------------------------- */
.cookie-banner {
  position: fixed;
  left: 4vw;
  right: 4vw;
  bottom: 16px;
  background: #FFFDF8;
  border: 2.5px dashed #D18B47;
  border-radius: 20px;
  box-shadow: 0 5px 32px var(--retro-shadow);
  z-index: 150;
  padding: 22px 28px 18px 28px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 32px;
  justify-content: space-between;
  transition: transform 0.24s, opacity 0.22s;
  font-size: 1rem;
}
.cookie-banner.hide { opacity: 0; pointer-events: none; transform: translateY(70px) scale(0.97); }
.cookie-banner .cookie-banner-msg {
  flex: 1 1 280px;
  color: #173554;
}
.cookie-banner .cookie-btns {
  display: flex;
  flex-direction: row;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
}
.cookie-banner button {
  padding: 10px 20px;
  font-size: 1.02rem;
  border-radius: 14px;
  margin: 4px 0;
  transition: background 0.2s, color 0.19s;
}
.cookie-banner .accept {
  background: #8FA168;
  color: #fffdf8;
  font-weight: bold;
}
.cookie-banner .accept:hover { background: #6B9EB8; color: #FFFDF8; }
.cookie-banner .reject {
  background: #B35A2B;
  color: #fffdf8; font-weight: bold;
}
.cookie-banner .reject:hover { background: #D18B47; color: #FFFDF8; }
.cookie-banner .settings {
  background: #F6CC95;
  color: #43323E;
  text-decoration: underline;
  font-weight: 500;
}
.cookie-banner .settings:hover {
  background: #FFFDF8;
  color: #B35A2B;
}
@media (max-width: 900px) {
  .cookie-banner {flex-direction: column; gap: 14px; padding: 15px 8px 13px 8px; left: 2vw; right: 2vw;}
}

.cookie-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(29,19,14, 0.82);
  z-index: 210;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  opacity: 1;
  transition: opacity 0.28s;
}
.cookie-modal.hide { pointer-events: none; opacity: 0; }
.cookie-modal .cookie-modal-dialog {
  background: #FFFDF8;
  border: 2.5px solid #D18B47;
  border-radius: 22px;
  padding: 33px 36px 31px 36px;
  max-width: 94vw;
  width: 420px;
  box-shadow: 0 14px 48px var(--retro-shadow);
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: retroCookieFadeIn 0.33s;
}
@keyframes retroCookieFadeIn {
  from { transform: scale(0.92) translateY(36px); opacity: 0; }
  to { transform: none; opacity: 1; }
}
.cookie-modal .cookie-category {
  margin-bottom: 10px;
  padding: 6px 0 6px 0;
  display: flex;
  align-items: center;
  gap: 16px;
}
.cookie-modal .cookie-category label {
  font-weight: 600;
  font-family: 'Montserrat', Arial, sans-serif;
  color: #173554;
}
.cookie-modal .cookie-switch {
  display: inline-block;
  width: 42px;
  height: 24px;
  position: relative;
}
.cookie-modal .cookie-switch input[type="checkbox"] {
  opacity: 0; width: 0; height: 0;
}
.cookie-modal .slider {
  position: absolute;
  cursor: pointer;
  background: #F2F2F2;
  border: 1.5px solid #D18B47;
  border-radius: 32px;
  top: 0; left: 0;
  right: 0; bottom: 0;
  transition: background 0.2s;
}
.cookie-modal .slider:before {
  content: '';
  position: absolute;
  left: 2.5px; top: 2.5px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #D18B47;
  transition: .2s;
}
.cookie-modal .cookie-switch input:checked + .slider { background: #8FA168; }
.cookie-modal .cookie-switch input:checked + .slider:before { left: 19px; background: #6B9EB8; }
.cookie-modal .cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 18px;
  justify-content: flex-end;
  margin-top: 18px;
}
.cookie-modal .cookie-modal-actions button {
  border-radius: 14px;
  padding: 10px 18px;
  background: #6B9EB8;
  color: #FFFDF8;
  font-size: 1.06rem;
  font-family: 'Montserrat', Arial, sans-serif;
  letter-spacing: 1.1px;
  font-weight: 600;
  border: none;
  transition: background 0.19s;
}
.cookie-modal .cookie-modal-actions .accept { background: #8FA168; }
.cookie-modal .cookie-modal-actions .accept:hover { background: #B35A2B; }
.cookie-modal .cookie-modal-actions .reject { background: #B35A2B; }
.cookie-modal .cookie-modal-actions .reject:hover { background: #D18B47; }
.cookie-modal .cookie-modal-actions .close { background: #F2F2F2; color: #8FA168; }

/* --- UTILITIES ------------------------------------------------------------ */
.hide {
  display: none !important;
}
.d-flex { display: flex !important; }
.flex-row { flex-direction: row !important; }
.flex-col { flex-direction: column !important; }
.align-center { align-items: center !important; }
.align-start { align-items: flex-start !important; }
.justify-center { justify-content: center !important; }

/* --- RESPONSIVE HEADINGS & SPACING ---------------------------------------- */
@media (max-width: 650px) {
  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.22rem; }
  h3 { font-size: 1rem; }
  .section { padding: 18px 3px; }
}

/* --- VINTAGE PATTERNS & ELEMENTS ------------------------------------------ */
section:before {
  content: "";
  position: absolute;
  top: -18px; left: 1vw;
  width: 82px; height: 10px;
  background-image: repeating-linear-gradient(
    90deg,
    #D18B47, #D18B47 16px,
    #F6CC95 16px,#F6CC95 28px
  );
  border-radius: 7px;
  opacity: 0.21;
  z-index: 1;
}
@media (max-width: 768px) {
  section:before {
    display: none;
  }
}

/* --- MICROINTERACTIONS ---------------------------------------------------- */
.cta-btn, button, .features-grid>div, .testimonial-card, .card, .blog-teaser {
  transition: box-shadow .18s, background .17s, color .17s, transform .13s;
}

/* --- HIGH CONTRAST / ACCESSIBILITY ---------------------------------------- */
.testimonial-card, .testimonial-card blockquote, .testimonial-details {
  color: #173554 !important;
}
.testimonial-details span:last-child { font-size: 1.08rem; letter-spacing: 2.2px; }

/* --- PRINT --------------------------------------------------------------- */
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal { display: none !important; }
  section {  padding: 0 !important; margin-bottom: 13px !important;}
  .container { box-shadow: none !important; }
}
