/* --- CSS RESET & BASE STYLES --- */
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #F5F7FA;
  color: #17425B;
  font-family: 'Open Sans', Arial, sans-serif;
  min-height: 100vh;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
  border: none;
}
a {
  color: #17425B;
  text-decoration: none;
  transition: color 0.2s;
}
a:focus, a:hover {
  color: #60A3D9;
  outline: none;
}
*, *:before, *:after {
  box-sizing: inherit;
}

/* --- TYPOGRAPHY --- */
h1, .text-section h1 {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-weight: 800;
  font-size: 2.375rem;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  color: #00314e;
}
h2 {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.75rem;
  margin-bottom: 20px;
  color: #17425B;
  letter-spacing: -0.015em;
}
h3 {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 10px;
  color: #17425B;
}
h4, h5, h6 {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-weight: 600;
  color: #17425B;
}
p, li, dd, dt, span, label, input, textarea {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  color: #17425B;
  line-height: 1.6;
}
strong {
  font-weight: 700;
}
blockquote {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-style: italic;
  color: #17425B;
  border-left: 4px solid #60A3D9;
  padding-left: 16px;
  margin: 16px 0;
}

/* Artistic Headings */
h1, h2, .cta-banner h2 {
  background: linear-gradient(90deg, #60A3D9 0%, #B8E1FF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
}

/* --- CONTAINER & SPACING --- */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
  box-sizing: border-box;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: rgba(255,255,255,0.97);
  border-radius: 24px;
  box-shadow: 0 8px 24px 0 rgba(80,131,172,0.10), 0 2px 6px 0 rgba(60,100,165,0.15);
  position: relative;
}
.content-wrapper {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 12px;
}
.text-section {
  text-align: center;
  margin-bottom: 28px;
}

/* --- HEADER & NAVIGATION --- */
header {
  background: #17425B;
  box-shadow: 0 4px 16px 0 rgba(23, 66, 91, 0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-flex {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
}
header img {
  height: 42px;
  width: auto;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.main-nav a {
  color: #F5F7FA;
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0 3px;
  border-radius: 5px;
  transition: background 0.2s, color 0.2s;
}
.main-nav a:hover,
.main-nav a:focus {
  background: #60A3D9;
  color: #fff;
}
.main-nav .cta-primary {
  background: #60A3D9;
  color: #F5F7FA !important;
  padding: 9px 28px !important;
  border-radius: 20px;
  font-weight: bold;
  margin-left: 15px;
  box-shadow: 0 4px 14px 0 rgba(23, 66, 91, 0.15);
  transition: background 0.22s, box-shadow 0.22s;
}
.main-nav .cta-primary:hover,
.main-nav .cta-primary:focus {
  background: #368fca;
  color: #fff;
  box-shadow: 0 6px 18px 0 rgba(23,66,91,0.20);
}
.mobile-menu-toggle {
  display: none;
  background: #60A3D9;
  border: none;
  color: #fff;
  font-size: 2rem;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  line-height: 1;
  cursor: pointer;
  justify-content: center;
  align-items: center;
  transition: background 0.22s, box-shadow 0.22s;
  margin-left: auto;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: #17425B;
  color: #fff;
  box-shadow: 0 2px 14px 0 rgba(23, 66, 91, 0.15);
}

/* --- MOBILE MENU --- */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(23, 66, 91, 0.96);
  z-index: 1000;
  transform: translateX(100%);
  transition: transform 0.45s cubic-bezier(.67,-0.15,.32,1.2);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  padding-top: 24px;
  padding-right: 32px;
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
  opacity: 1;
}
.mobile-menu-close {
  background: #60A3D9;
  border: none;
  color: white;
  border-radius: 50%;
  width: 46px;
  height: 46px;
  font-size: 2rem;
  cursor: pointer;
  margin-bottom: 12px;
  align-self: flex-end;
  transition: background 0.18s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: #3b769d;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 32px;
  width: 100vw;
  align-items: flex-start;
  padding-left: 32px;
}
.mobile-nav a {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-size: 1.25rem;
  font-weight: bold;
  color: #fff;
  padding: 12px 0;
  border-radius: 10px;
  line-height: 1.7;
  transition: background 0.18s, color 0.18s;
  min-width: 50vw;
  display: block;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: #F5F7FA;
  color: #17425B;
}
@media (max-width: 992px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (min-width: 993px) {
  .mobile-menu {
    display: none !important;
  }
}

/* --- HERO, SECTIONS, SPACING --- */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* --- Flex Patterns for Content --- */
.card-container,
.features-grid,
.area-cards, .area-grid, .articles-preview, .infobox-grid, .testimonial-slider,
.services-overview {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  align-items: stretch;
}
.testimonial-slider {
  gap: 24px;
  justify-content: flex-start;
}
.card, .service, .feature, .area-card, .infobox, .testimonial-card, .article-card {
  margin-bottom: 20px;
  position: relative;
  background: #FEFEFE;
  border-radius: 20px;
  padding: 28px 24px;
  box-shadow: 0 4px 16px 0 rgba(80,131,172,0.07), 0 2px 6px 0 rgba(60,100,165,.06);
  transition: transform 0.2s, box-shadow 0.2s;
  min-width: 250px;
  flex: 1 1 260px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.card:hover, .service:hover, .feature:hover, .area-card:hover, .infobox:hover, .article-card:hover, .testimonial-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 8px 30px 0 rgba(80,131,172,0.12);
}
.feature {
  align-items: flex-start;
}

.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;
  padding: 20px;
  background: #fff;
  border-left: 6px solid #60A3D9;
  min-width: 270px;
  max-width: 360px;
  flex: 1 1 270px;
  box-shadow: 0 4px 18px 0 rgba(70,115,210,0.09);
  border-radius: 16px;
}
.testimonial-card p {
  color: #082d48 !important;
  font-style: italic;
  margin-bottom: 10px;
}
.testimonial-name {
  font-size: 1rem;
  color: #17425B;
  font-weight: 700;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* --- CTA BANNER --- */
.cta-banner {
  background: #60A3D9;
  color: #fff;
  border-radius: 22px;
  padding: 36px 24px;
  text-align: center;
  box-shadow: 0 2px 18px 0 rgba(23,66,91,0.11);
  margin-top: 24px;
  margin-bottom: 10px;
}
.cta-banner h2 {
  color: #fff;
  background: none;
  -webkit-text-fill-color: unset;
  margin-bottom: 16px;
}
.cta-banner p {
  color: #F5F7FA;
  margin-bottom: 22px;
}

/* --- BUTTON STYLES --- */
.cta-primary, .cookie-btn, .cookie-settings-btn {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-weight: bold;
  padding: 12px 32px;
  background: #17425B;
  color: #fff !important;
  border: none;
  border-radius: 22px;
  font-size: 1.125rem;
  margin-top: 18px;
  display: inline-block;
  transition: background 0.2s, box-shadow 0.2s, color 0.2s;
  box-shadow: 0 3px 14px 0 rgba(23,66,91,0.14);
  cursor: pointer;
  letter-spacing: 0.03em;
}
.cta-primary:hover, .cookie-btn:hover, .cookie-settings-btn:hover {
  background: #60A3D9;
  color: #fff !important;
  box-shadow: 0 6px 22px 0 rgba(23,66,91,0.16);
}

/* --- FORMS --- */
input, textarea, select {
  border-radius: 8px;
  border: 1px solid #D0D5DF;
  background: #FAFBFC;
  padding: 12px 13px;
  font-size: 1rem;
  color: #17425B;
  margin-bottom: 18px;
  width: 100%;
  transition: border 0.14s;
}
input:focus, textarea:focus, select:focus {
  border-color: #60A3D9;
  outline: none;
}
label {
  font-size: 1rem;
  font-weight: bold;
  color: #17425B;
}

/* --- LISTS & DL --- */
ul, ol {
  margin-left: 20px;
  margin-bottom: 18px;
}
ul li, ol li {
  padding-left: 2px;
  margin-bottom: 8px;
}
dt {
  font-weight: 700;
  margin-top: 8px;
}
dd {
  margin-bottom: 10px;
  margin-left: 14px;
}

/* --- SPECIAL ARTISTIC & CREATIVE ELEMENTS --- */
.suitability-tag {
  display: inline-block;
  background: #B8E1FF;
  color: #17425B;
  font-size: 1rem;
  font-family: 'Montserrat', sans-serif;
  border-radius: 16px;
  padding: 5px 14px;
  margin: 0 8px 8px 0;
  font-weight: 500;
}
.categories-nav a {
  color: #368fca;
  font-weight: bold;
  border-bottom: 2px solid #60A3D9;
  margin-right: 8px;
  padding-bottom: 2px;
  transition: color 0.13s, border-color 0.13s;
}
.categories-nav a:hover,
.categories-nav a:focus {
  color: #17425B;
  border-bottom: 2px solid #17425B;
}

/* --- ARTISTIC SHADOWS & BORDERS --- */
.card, .service, .feature, .area-card, .infobox, .testimonial-card, .article-card {
  border: 2px dashed #B8E1FF;
  box-shadow: 0 6px 32px 0 rgba(96,163,217,0.07), 0 2px 8px 0 rgba(23,66,91,0.08);
}
.card:before, .service:before, .feature:before, .area-card:before, .infobox:before, .testimonial-card:before, .article-card:before {
  content: "";
  display: block;
  position: absolute;
  top: 0; right: 0;
  width: 45px; height: 45px;
  background: url('../assets/deco-corner-art.svg') no-repeat right top;
  background-size: contain;
  opacity: 0.12;
  z-index: 2;
  pointer-events: none;
}

/* --- AREA PERSONA FLEX --- */
.area-personas {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
  margin-top: 8px;
}
.area-personas > div {
  flex: 1 1 178px;
  background: #FFF;
  border-radius: 8px;
  border-left: 5px solid #60A3D9;
  padding: 12px 18px;
  font-family: 'Montserrat',sans-serif;
  color: #17425B;
  box-shadow: 0 1px 6px 0 rgba(80,131,172,0.11);
  min-width: 150px;
}

/* --- FOOTER --- */
footer {
  background: #17425B;
  color: #fff;
  padding: 32px 0 0 0;
  margin-top: 48px;
}
.footer-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: flex-start;
  justify-content: space-between;
  padding-bottom: 24px;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: 'Open Sans', sans-serif;
  font-size: 1rem;
  color: #fff;
}
.footer-contact img {
  width: 18px;
  height: 18px;
  margin-right: 8px;
  vertical-align: middle;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-left: 34px;
}
.footer-nav a {
  color: #B8E1FF;
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 500;
}
.footer-nav a:hover,
.footer-nav a:focus {
  color: #fff;
  text-decoration: underline;
}
.footer-legal {
  text-align: center;
  color: #B8E1FF;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.93rem;
  padding: 12px 0 18px 0;
}

/* --- CONTACT INFO --- */
.contact-info {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  justify-content: center;
  margin-bottom: 20px;
}
.contact-info > div {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
}
.opening-hours {
  margin-top: 16px;
  color: #17425B;
  font-weight: 600;
}
.map {
  margin-top: 16px;
  background: #EFF7FB;
  color: #3b769d;
  padding: 20px;
  border-radius: 13px;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.13rem;
  text-align: center;
}

/* --- COOKIE CONSENT --- */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #fff;
  color: #17425B;
  box-shadow: 0 -4px 22px 0 rgba(23,66,91,0.12);
  padding: 22px 16px 22px 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  z-index: 2000;
  border-radius: 24px 24px 0 0;
  animation: cookieBannerIn 0.6s cubic-bezier(.34,1.56,.64,1) 1;
}
@keyframes cookieBannerIn {
  0% { transform: translateY(100%); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-banner p {
  flex: 1 1 320px;
  margin: 0;
  font-size: 1rem;
}
.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: flex-end;
}
.cookie-btn {
  background: #60A3D9;
  color: #fff;
  border: none;
  font-size: 1rem;
  border-radius: 20px;
  padding: 10px 28px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 11px 0 rgba(23,66,91,0.11);
  margin-right: 0;
  margin-left: 0;
}
.cookie-btn.reject {
  background: #F75C5C;
}
.cookie-btn:focus,
.cookie-btn:hover {
  background: #17425B;
}
.cookie-btn.reject:hover {
  background: #a72a2a;
}
.cookie-settings-btn {
  background: transparent;
  color: #17425B !important;
  border: 2px solid #60A3D9;
  box-shadow: none;
  padding: 8px 18px;
  font-weight: 600;
  transition: background 0.14s, color 0.14s;
}
.cookie-settings-btn:hover,
.cookie-settings-btn:focus {
  background: #60A3D9;
  color: #fff;
}

/* --- COOKIE MODAL --- */
.cookie-modal-overlay {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(7,23,39,0.48);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.cookie-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal {
  background: #fff;
  border-radius: 22px;
  max-width: 440px;
  padding: 36px 28px 24px 28px;
  box-shadow: 0 6px 34px 0 rgba(80,131,172,0.18);
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: modalIn 0.5s cubic-bezier(.32,-0.08,.68,1.3);
}
@keyframes modalIn {
  0% {   transform: translateY(70px) scale(0.91); opacity: 0; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}
.cookie-modal h2 {
  font-size: 1.35rem;
  color: #17425B;
  margin-bottom: 12px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}
.cookie-category label {
  font-size: 1.08rem;
  font-weight: 600;
}
.cookie-category input[type="checkbox"] {
  accent-color: #60A3D9;
  width: 19px;
  height: 19px;
}
.cookie-modal .category-desc {
  font-size: 0.98rem;
  margin-left: 34px;
  color: #366585;
}
.cookie-modal .category-essential[disabled] {
  color: #c0c0c0;
  background: #f3f3f3;
  border-radius: 24px;
  padding: 2px 9px;
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 15px;
  margin-top: 18px;
  justify-content: flex-end;
}

/* --- ARTISTIC, SUBTLE ANIMATIONS - "creative_artistic" MICRO-INTERACTIONS --- */
.cta-primary, .card, .service, .feature, .area-card, .infobox, .testimonial-card, .article-card, .cookie-btn, .cookie-settings-btn {
  transition: background 0.23s, color 0.23s, box-shadow 0.21s, transform 0.21s;
}
.cta-primary:active, .cookie-btn:active, .cookie-settings-btn:active {
  transform: scale(0.97);
}

/* --- LEGAL SECTIONS --- */
.legal-section {
  background: #F5F7FA;
  border-radius: 16px;
  padding: 32px 18px;
  box-shadow: 0 2px 18px 0 rgba(96,163,217,0.08);
  color: #17425B;
  font-size: 1.01rem;
}

/* --- TEAM LIST --- */
.team-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  margin-bottom: 18px;
}
.team-list li {
  background: #fff;
  border-left: 4px solid #60A3D9;
  border-radius: 12px;
  box-shadow: 0 3px 11px 0 rgba(80,131,172,0.08);
  padding: 19px 17px 17px 20px;
  list-style: none;
  flex: 1 1 260px;
  min-width: 260px;
}
.team-list h3 {
  margin-bottom: 2px;
  color: #60A3D9;
}
.team-list span {
  font-size: 0.98rem;
  color: #366585;
  font-weight: bold;
  margin-bottom: 10px;
  display: block;
}

/* --- EXPERTISE HIGHLIGHT --- */
.expertise-highlight {
  background: #E6F3FD;
  border-radius: 8px;
  padding: 20px 16px;
  margin-left: 0;
  margin-right: 0;
  font-family: 'Montserrat', sans-serif;
}
.expertise-highlight h3 {
  margin-bottom: 9px;
}
.expertise-highlight ul {
  margin-bottom: 0;
}

/* --- RESPONSIVE LAYOUT & SPACING --- */
@media (max-width: 1100px) {
  .container {
    max-width: 100%;
    padding-left: 10px; padding-right: 10px;
  }
}
@media (max-width: 992px) {
  .footer-flex {
    flex-direction: column;
    gap: 22px;
    align-items: flex-start;
  }
  .footer-nav {
    margin-left: 0;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 16px;
  }
  .card-container,
  .features-grid,
  .area-cards, .area-grid, .articles-preview, .infobox-grid, .testimonial-slider, .services-overview {
    gap: 16px;
  }
  .card, .service, .feature, .testimonial-card, .area-card, .infobox, .article-card, .team-list li {
    min-width: 180px;
    padding: 18px 13px;
  }
}
@media (max-width: 768px) {
  h1, .cta-banner h2 {
    font-size: 1.7rem;
  }
  h2 {
    font-size: 1.25rem;
  }
  .header-flex {
    flex-direction: row;
    gap: 10px;
  }
  .content-wrapper {
    padding: 0 2px;
  }
  .section {
    margin-bottom: 38px;
    padding: 24px 7px;
  }
  .cta-banner {
    padding: 22px 8px;
    border-radius: 14px;
  }
  .card-container,
  .features-grid,
  .area-cards, .area-grid, .articles-preview, .infobox-grid, .testimonial-slider, .services-overview, .team-list {
    flex-direction: column;
    gap: 0;
  }
  .team-list li {
    min-width: 1px;
    max-width: 96vw;
  }
  .content-grid {
    flex-direction: column;
    gap: 0;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .testimonial-card {
    min-width: 1px;
    max-width: 99vw;
    gap: 7px;
  }
  .infobox, .article-card, .area-card {
    min-width: 1px;
    max-width: 96vw;
  }
  .area-personas {
    flex-direction: column;
    gap: 7px;
  }
  .contact-info {
    flex-direction: column;
    gap: 7px;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 13px 6px 13px 6px;
    gap: 12px;
  }
}
@media (max-width: 520px) {
  .footer-flex {
    gap: 9px;
  }
  .footer-nav {
    flex-direction: column;
    gap: 5px;
  }
}

/* --- UTILITY: SPACING --- */
.mb-20 {
  margin-bottom: 20px;
}
.mb-40 {
  margin-bottom: 40px;
}
.mt-24 {
  margin-top: 24px;
}

/* --- PRINT OPTIMIZATION (Optional) --- */
@media print {
  header, footer, .cookie-banner, .mobile-menu { display: none !important; }
  body { background: #fff; color: #17425B; }
}

/* END Immoblitz Berlin "creative_artistic" Flexbox-Responsive CSS */
