/* =====================================================
      Elegant Classic CSS for MeisterWerk Raumgestaltung
      (Mobile-First, Flexbox Only, Modern & Elegant)
   ===================================================== */

/* ==== RESET & BASELINE ==== */
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
*, *::before, *::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Roboto', Georgia, serif;
  color: #22304F;
  background: #FFF;
  font-size: 1rem;
  line-height: 1.7;
  min-height: 100vh;
}

img {
  max-width: 100%;
  display: block;
}
ul, ol {
  padding-left: 1.2em;
  margin-bottom: 1.5em;
}
dt {
  font-weight: bold;
  margin-top: 1em;
}
dd {
  margin-left: 1em;
  margin-bottom: 0.75em;
}
a {
  color: #22304F;
  text-decoration: underline;
  transition: color 0.2s;
}
a:focus {
  outline: 2px dotted #B9C2CB;
  outline-offset: 2px;
}
a:hover {
  color: #B9C2CB;
  text-decoration: none;
}


/* ==== TYPOGRAPHY ==== */

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Georgia, serif;
  font-weight: 700;
  color: #22304F;
  margin-bottom: 20px;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 24px;
  line-height: 1.15;
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
}
h4 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

p,
.address,
footer address,
li {
  font-size: 1rem;
  font-family: 'Roboto', Georgia, serif;
  color: #22304F;
  margin-bottom: 12px;
}
strong {
  font-weight: 700;
}

/* Typography Hierarchy Additional */
.next-steps h2 {
  font-size: 1.3rem;
  margin: 20px 0 10px 0;
}

/* ==== GLOBAL LAYOUT COMPONENTS ==== */
.container {
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
  width: 100%;
}

/* Spacing Patterns */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}
.content-wrapper {
  margin-bottom: 24px;
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  background: #FFF;
  border-radius: 14px;
  box-shadow: 0 4px 15px rgba(34,48,79,0.07);
  padding: 32px 20px 28px;
  border: 1px solid #f4e6c4;
  transition: box-shadow 0.2s;
}
.card:hover,
.card:focus-within {
  box-shadow: 0 6px 22px 0 rgba(34,48,79,0.10);
  z-index: 2;
}

/* Features / Leistungen */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 20px;
  justify-content: flex-start;
}
.feature-grid > div {
  flex: 1 1 220px;
  min-width: 220px;
  background-color: #fff;
  border-radius: 12px;
  border: 1px solid #B9C2CB;
  padding: 22px 20px 16px;
  box-shadow: 0 2px 10px rgba(34,48,79,0.03);
  transition: box-shadow 0.2s, border-color 0.2s;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.feature-grid > div:hover {
  box-shadow: 0 6px 18px 0 rgba(34,48,79,0.08);
  border-color: #22304F;
}
.feature-grid img {
  margin-bottom: 14px;
  width: 38px;
  height: 38px;
}

/* Service Categories for Leistungen Page */
.service-category {
  margin-bottom: 32px;
  background: #FAFAFA;
  border-radius: 10px;
  padding: 20px 18px 14px 18px;
  border-left: 4px solid #22304F;
  box-shadow: 0 1px 4px rgba(185,194,203,0.13);
}
.service-category ul {
  margin-bottom: 10px;
  margin-top: 4px;
}
.service-category h3 {
  color: #22304F;
  font-size: 1.2rem;
  margin-bottom: 10px;
}

/* Text & Image Section */
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

/* Testimonials */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 24px 20px 20px;
  background: #F7F9FB;
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(185,194,203,0.18);
  margin-bottom: 20px;
  min-width: 0;
  border: 1px solid #B9C2CB;
  color: #22304F;
  transition: box-shadow 0.18s;
}
.testimonial-card:hover {
  box-shadow: 0 8px 26px 0 rgba(34,48,79,0.13);
}
.testimonial-card p {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: #22304F;
}
.testimonial-card span {
  font-size: 0.98rem;
  color: #444751;
}

/* Project Summary in references.html */
.project-summary {
  margin-bottom: 24px;
  background: #FAFAFA;
  padding: 18px 18px 12px 18px;
  border-radius: 9px;
  border-left: 3px solid #F4E6C4;
  box-shadow: 0 2px 10px rgba(185,194,203,0.08);
}
.project-summary h3 {
  margin-bottom: 9px;
}

/* Cards & Misc */
.next-steps {
  margin-bottom: 22px;
  background: #F7F7F4;
  border-radius: 10px;
  border-left: 3px solid #B9C2CB;
  padding: 17px 14px 10px 17px;
}

.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}

/* Form/Contact Details */
.contact-details {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 22px;
}
.contact-details > div {
  flex: 1 1 200px;
  min-width: 160px;
  background: #FAFAFA;
  border-radius: 8px;
  padding: 15px 11px 9px 15px;
  border: 1px solid #E6E7E9;
}

.map-placeholder {
  margin: 16px 0 24px 0;
  background: #FFF;
  border-radius: 9px;
  border: 1px dashed #B9C2CB;
  padding: 15px 13px 12px 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}


/* ==== BUTTONS ==== */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', Georgia, serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 13px 27px;
  border-radius: 8px;
  border: 1.5px solid #22304F;
  background: #fff;
  color: #22304F;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
  box-shadow: 0 2px 8px rgba(34,48,79,0.04);
  margin-top: 10px;
  margin-bottom: 10px;
  min-width: 48px;
}
.button:hover, .button:focus {
  background: #B9C2CB;
  color: #22304F;
  box-shadow: 0 4px 20px 0 rgba(34,48,79,0.12);
  outline: none;
}
.button.primary {
  background: #22304F;
  color: #fff;
  border-color: #22304F;
}
.button.primary:hover, .button.primary:focus {
  background: #B9C2CB;
  color: #22304F;
  border-color: #22304F;
}
.button[disabled], .button[aria-disabled="true"] {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ==== HEADER & NAVIGATION ==== */
header {
  background: #fff;
  border-bottom: 2px solid #F4E6C4;
  box-shadow: 0 2px 18px 0 rgba(34,48,79,0.03);
  padding-top: 8px;
  padding-bottom: 8px;
  position: sticky;
  top: 0;
  z-index: 40;
}
header > .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.logo-link {
  margin-right: 16px;
  min-width: 120px;
}
.logo-link img {
  width: 110px;
  height: auto;
  display: block;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
}
.main-nav a {
  font-family: 'Montserrat', Georgia, serif;
  font-size: 1.01rem;
  color: #22304F;
  padding: 7px 5px;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.18s, color 0.18s;
}
.main-nav a:hover, .main-nav a:focus {
  background: #F4E6C4;
  color: #22304F;
}

header .button.primary {
  margin-left: 16px;
  margin-top: 0;
  padding: 11px 22px;
  font-size: 0.97rem;
}

/* ==== MOBILE MENU ==== */
.mobile-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  font-size: 2.2rem;
  color: #22304F;
  padding: 8px 16px 8px 10px;
  cursor: pointer;
  border-radius: 7px;
  transition: background 0.18s, color 0.18s;
  z-index: 101;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #F4E6C4;
}

.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 120;
  background: rgba(34,48,79,0.95);
  color: #fff;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(.77,0,.18,1);
  opacity: 1;
}
.mobile-menu.open {
  transform: translateX(0%);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 2.1rem;
  margin: 20px 20px 10px auto;
  cursor: pointer;
  align-self: flex-end;
  padding: 6px 10px;
  border-radius: 7px;
  transition: background 0.15s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #B9C2CB;
  color: #22304F;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin: 36px 0 0 0;
  padding-left: 36px;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.45rem;
  font-family: 'Montserrat', Georgia, serif;
  text-decoration: none;
  margin-bottom: 7px;
  transition: color 0.18s;
  padding: 8px 4px;
  border-radius: 6px;
  letter-spacing: 0.01em;
  line-height: 1.6;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #F4E6C4;
  background: none;
}


/* ==== FOOTER ==== */
footer {
  border-top: 2px solid #F4E6C4;
  background: #faf9f7;
  padding: 38px 0 18px 0;
  margin-top: 48px;
  color: #22304F;
}
footer > .container {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
  justify-content: space-between;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 10px;
}
.footer-nav a {
  color: #22304F;
  text-decoration: underline;
  font-size: 0.97rem;
  margin-bottom: 2px;
  transition: color 0.16s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #B9C2CB;
}
footer address {
  font-style: normal;
  font-size: 1rem;
  color: #22304F;
}
footer img {
  width: 48px;
  height: auto;
  margin-bottom: 8px;
}
footer p, footer address p {
  display: flex;
  align-items: center;
  gap: 8px;
}
footer a {
  color: #22304F;
  text-decoration: underline;
  font-size: 0.97rem;
}

/* ==== RESPONSIVE DESIGN (Mobile-First) ==== */
@media (max-width: 1020px) {
  .container {
    max-width: 94vw;
  }
}
@media (max-width: 820px) {
  .container {
    padding-left: 9px;
    padding-right: 9px;
  }
  .feature-grid > div, .service-category, .project-summary {
    padding-left: 14px; padding-right: 12px;
  }
}

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.45rem; }
  .main-nav {
    display: none;
  }
  header .button.primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-flex;
  }
  /* Make cookie modal and banner more compact */
}

@media (min-width: 769px) {
  .mobile-menu {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: none !important;
  }
}

/* Stack layout columns vertically on mobile */
@media (max-width: 768px) {
  .container {
    max-width: 100vw;
    padding: 0 4vw;
  }
  .card-container, .feature-grid, .content-grid, .contact-details {
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  footer > .container {
    flex-direction: column;
    gap: 22px;
    align-items: stretch;
  }
}

/* ==== INTERACTIONS, SHADOWS, HIERARCHY ==== */
section, .card, .feature-grid > div, .testimonial-card, .service-category, .project-summary, .map-placeholder, .next-steps {
  box-shadow: 0 1px 10px rgba(185,194,203,0.04);
}
section {
  background: #FFF;
}

/* ==== COOKIE CONSENT BANNER & MODAL ==== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #22304F;
  color: #fff;
  box-shadow: 0 -4px 20px rgba(34,48,79,0.11);
  padding: 24px 16px 18px 16px;
  z-index: 996;
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: space-between;
}
.cookie-banner__text {
  font-size: 1.04rem;
  max-width: 77vw;
  color: #fff;
}
.cookie-banner__text a{
  font-size: 1.04rem;
  max-width: 77vw;
  color: #fff;
}
.cookie-banner__actions {
  display: flex;
  gap: 12px;
}
.cookie-banner .button,
.cookie-banner button {
  min-width: 120px;
  background: #F4E6C4;
  color: #22304F;
  border: none;
  font-family: 'Montserrat', serif;
  font-weight: 600;
  font-size: 1rem;
  box-shadow: 0 2px 7px rgba(34,48,79,0.08);
}
.cookie-banner .button.primary {
  background: #22304F;
  color: #fff;
  border: 1.5px solid #F4E6C4;
}
.cookie-banner .button.primary:hover {
  background: #F4E6C4;
  color: #22304F;
}
.cookie-banner .button.secondary {
  background: #B9C2CB;
}
.cookie-banner .button.secondary:hover {
  background: #F4E6C4;
}
.cookie-banner .button.settings {
  background: #F4E6C4;
  color: #22304F;
  border: 1.5px solid #22304F;
}
@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    padding: 18px 10px 16px 10px;
    gap: 9px;
  }
  .cookie-banner__actions {
    flex-direction: column;
    gap: 9px;
  }
}

/* Cookie Modal */
.cookie-modal-overlay {
  position: fixed;
  top:0; left:0; right:0; bottom:0;
  background: rgba(34,48,79,0.75);
  z-index: 1001;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s;
}
.cookie-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal {
  background: #fff;
  color: #22304F;
  border-radius: 13px;
  padding: 34px 28px 28px 28px;
  box-shadow: 0 8px 36px rgba(34,48,79,0.16);
  min-width: 270px;
  max-width: 98vw;
  width: 380px;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.cookie-modal h2 {
  font-size: 1.15rem;
  margin-bottom: 13px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 13px 0;
}
.cookie-toggle {
  appearance: none;
  width: 42px;
  height: 22px;
  border-radius: 20px;
  background: #B9C2CB;
  box-shadow: 0 1px 2px rgba(34,48,79,0.03);
  transition: background 0.18s;
  position: relative;
  outline: none;
  cursor: pointer;
}
.cookie-toggle:checked {
  background: #22304F;
}
.cookie-toggle:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}
.cookie-toggle::before {
  content: '';
  display: block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  position: absolute;
  top: 2px;
  left: 2px;
  transition: left 0.19s;
}
.cookie-toggle:checked::before {
  left: 22px;
}
.cookie-modal-close {
  position: absolute;
  right: 11px;
  top: 13px;
  background: none;
  border: none;
  font-size: 1.35rem;
  color: #22304F;
  cursor: pointer;
  padding: 3px 7px;
  border-radius: 6px;
  transition: background 0.14s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: #B9C2CB;
}
.cookie-modal-actions {
  margin-top: 21px;
  display: flex;
  gap: 14px;
  justify-content: flex-end;
}
.cookie-modal-actions .button {
  min-width: 90px;
}

/* ==== FORMS (if any appear) ==== */
input, select, textarea {
  font-family: 'Roboto', serif;
  font-size: 1rem;
  background: #fff;
  border: 1.5px solid #B9C2CB;
  border-radius: 6px;
  padding: 9px 13px;
  margin-bottom: 13px;
  width: 100%;
  transition: border 0.16s;
}
input:focus, select:focus, textarea:focus {
  border-color: #22304F;
  outline: none;
}

/* ==== UTILITIES ==== */
.hide {
  display: none !important;
}
.flex-row {
  display: flex;
  flex-direction: row;
}
.flex-col {
  display: flex;
  flex-direction: column;
}
.fw {
  width: 100%;
}

/* Text Section */
.text-section {
  margin-bottom: 18px;
}
.text-section ul,
.text-section ol {
  margin-bottom: 14px;
}
.text-section li {
  margin-bottom: 7px;
}
.text-section strong {
  font-weight: 700;
  color: #22304F;
}

/* Accessibility & Focus Styles */
a, button, input, select, textarea {
  outline-color: #B9C2CB;
  outline-width: 2px;
  outline-style: dotted;
  outline-offset: 1px;
}
:focus-visible {
  outline: 2px solid #B9C2CB;
}

/* Elegant Micro-Animations */
.button,
.card,
.feature-grid > div,
.testimonial-card,
.service-category,
.project-summary,
.next-steps {
  transition: box-shadow 0.2s, border-color 0.2s, background 0.18s, color 0.18s, transform 0.2s;
}
.button:active,
.card:active,
.feature-grid > div:active,
.testimonial-card:active {
  transform: translateY(2px) scale(0.99);
}

/* =========== SCROLLBAR (Elegant styling) =========== */
::-webkit-scrollbar {
  width: 11px;
  background: #F4E6C4;
}
::-webkit-scrollbar-thumb {
  background: #B9C2CB;
  border-radius: 7px;
}
::-webkit-scrollbar-thumb:hover { background: #22304F; }

/* Hide number inputs arrows */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type=number] {
  -moz-appearance: textfield;
}

/* ==== PRINT (logo and text visible) ==== */
@media print {
  header, .mobile-menu-toggle, .mobile-menu, .cookie-banner, .cookie-modal-overlay, footer, .button {
    display: none !important;
  }
  body {
    background: #fff;
  }
  .container {
    max-width: none;
    padding: 0;
  }
}

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