/* =====================================================
   CSS RESET & NORMALIZATION
===================================================== */
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, main, nav, output, ruby, section, summary, time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  line-height: 1.5;
  background: #FFFFFF;
  color: #15384A;
}
article, aside, details, figcaption, figure, footer, header, hgroup, main, nav, section {
  display: block;
}
ol, ul {
  list-style: none;
}
a {
  background: transparent;
  text-decoration: none;
  color: inherit;
}
img {
  border-style: none;
  max-width: 100%;
  height: auto;
  display: block;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}
button {
  border: none;
  background: none;
  font: inherit;
  cursor: pointer;
}
*, *::before, *::after {
  box-sizing: inherit;
}

/* =====================================================
   FONT FACE
===================================================== */
@import url('https://fonts.googleapis.com/css?family=Montserrat:400,600,700&display=swap');
@import url('https://fonts.googleapis.com/css?family=Source+Serif+Pro:400,600,700&display=swap');

:root {
  --color-primary: #15384A;
  --color-secondary: #FFFFFF;
  --color-muted: #E1E8ED;
  --color-accent: #D4975F;
  --color-text: #18303C;
  --color-text-muted: #6A7581;
  --color-card-bg: #FFFFFF;
  --font-head: 'Source Serif Pro', Georgia, serif;
  --font-display: 'Montserrat', 'Source Serif Pro', Georgia, serif;
  --font-body: 'Source Serif Pro', Georgia, serif;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  background: var(--color-secondary);
  color: var(--color-text);
}

/* =====================================================
   TYPOGRAPHY
===================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  color: var(--color-primary);
  margin-bottom: 16px;
  letter-spacing: 0.01em;
  line-height: 1.15;
}
h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 24px;
}
h2 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 16px;
}
h4 {
  font-size: 1.15rem;
  font-weight: 600;
}
p, ul, ol, address {
  font-family: var(--font-body);
  color: var(--color-text);
  font-size: 1rem;
  margin-bottom: 14px;
}
p.subtitle {
  font-family: var(--font-display);
  color: var(--color-text-muted);
  font-size: 1.2rem;
  margin-bottom: 24px;
  letter-spacing: 0.01em;
}
strong {
  font-weight: 600;
}
ul, ol {
  padding-left: 1.1em;
}
ul li, ol li {
  margin-bottom: 8px;
  line-height: 1.6;
}
a {
  color: var(--color-primary);
  transition: color 0.2s;
}
a:hover, a:focus {
  color: var(--color-accent);
  text-decoration: underline;
}

/* =====================================================
   BUTTONS & CTAs
===================================================== */
.cta, .btn, button, .cookie-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent);
  color: #fff;
  font-family: var(--font-display);
  text-transform: none;
  font-size: 1.08rem;
  font-weight: 600;
  padding: 0.75em 2.2em;
  border-radius: 24px;
  box-shadow: 0 2px 16px 0 rgba(24, 49, 83, 0.08);
  transition: background 0.22s, color 0.18s, box-shadow 0.22s;
  letter-spacing: .04em;
  margin-top: 8px;
  margin-bottom: 8px;
  min-width: 160px;
  border: none;
  cursor: pointer;
}
.cta:hover, .btn:hover, button:hover, .cookie-btn:hover, .cta:focus, .btn:focus, button:focus {
  background: #B87E44;
  color: #fff;
  box-shadow: 0 8px 32px 0 rgba(24, 49, 83, 0.13);
  outline: none;
}
.cta.alt, .btn.alt, .cookie-btn.alt {
  background: var(--color-primary);
}
.cta.alt:hover, .btn.alt:hover, .cookie-btn.alt:hover {
  background: #184153;
}

/* =====================================================
   LAYOUT STRUCTURE & SPACING
===================================================== */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  margin: 0 auto;
  max-width: 850px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* FLEX CONTAINERS */
.card-container, .feature-grid, .footer-menu, .footer-social, .footer-contact, .content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card, .case-study {
  margin-bottom: 20px;
  position: relative;
  background: var(--color-card-bg);
  border-radius: 18px;
  box-shadow: 0 2px 13px rgba(24,49,83,0.07);
  padding: 32px 28px 22px 28px;
  flex: 1 1 320px;
}
.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;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  background: #F8FAFB;
  padding: 24px 22px 22px 22px;
  border-radius: 16px;
  margin-bottom: 20px;
  box-shadow: 0 1px 9px rgba(21,56,74,0.08);
  max-width: 440px;
  min-width: 255px;
}

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

/* Min 20px margin between all cards and sections */
.section:not(:last-child) {
  margin-bottom: 60px;
}
.section + .section {
  margin-top: 20px;
}
.card-container > * {
  margin-bottom: 20px;
}
.card + .card, .case-study + .case-study, .testimonial-card + .testimonial-card {
  margin-top: 20px;
}

/* Wrapper spacing */
.content-wrapper > *:not(:last-child) {
  margin-bottom: 20px;
}

/* -----------------------------------------------------
   HEADER & NAV
----------------------------------------------------- */
header {
  background: #fff;
  border-bottom: 1px solid #E1E8ED;
  position: sticky;
  top: 0;
  z-index: 20;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
  gap: 36px;
}
header img[alt="Meisterputz Berlin"] {
  height: 54px;
  width: auto;
  margin-right: 20px;
  padding: 0 0 0 2px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-family: var(--font-display);
  font-size: 1.08rem;
}
.main-nav a {
  color: var(--color-primary);
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 16px;
  transition: background 0.16s, color 0.18s;
}
.main-nav a.cta {
  background: var(--color-accent);
  color: #fff;
  font-weight: 700;
  padding: 7px 30px;
  margin-left: 10px;
  border-radius: 20px;
  box-shadow: 0 2px 12px 0 rgba(24, 63, 83, 0.09);
}
.main-nav a.cta:hover, .main-nav a.cta:focus {
  background: #B87E44;
  color: #fff;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--color-muted);
  color: var(--color-accent);
}

/* Mobile menu - hamburger icon */
.mobile-menu-toggle {
  display: none;
  background: var(--color-primary);
  color: #fff;
  font-size: 2rem;
  border-radius: 8px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  z-index: 900;
  margin-left: 10px;
  margin-right: -4px;
  transition: background 0.18s, color 0.12s;
  box-shadow: 0 1px 8px rgba(50,54,63,0.09);
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--color-accent);
  color: #fff;
}

/* Mobile menu overlay */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(21,56,74,0.92);
  z-index: 9900;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(.75,.01,.33,1.05);
  will-change: transform;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  color: #fff;
  font-size: 2.3rem;
  background: none;
  margin: 26px 0 12px 24px;
  border-radius: 8px;
  width: 38px;
  height: 38px;
  align-self: flex-start;
  transition: background 0.2s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: rgba(212,151,95,0.5);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 26px;
  margin-top: 24px;
  margin-left: 28px;
}
.mobile-nav a {
  font-size: 1.2rem;
  color: #fff;
  padding: 10px 0;
  font-family: var(--font-display);
  border-radius: 10px;
  transition: background 0.18s, color 0.17s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-accent);
  color: #fff;
}

/* Show/hide main nav on mobile */
@media (max-width: 980px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (min-width: 981px) {
  .mobile-menu {
    display: none !important;
  }
}

/* =====================================================
   HERO & TEXT SECTIONS
===================================================== */
.content-wrapper h1, .content-wrapper h2 {
  letter-spacing: -0.5px;
}
.content-wrapper {
  margin-left: auto;
  margin-right: auto;
  padding-top: 10px;
  padding-bottom: 10px;
}

/* =====================================================
   CARD GRIDS & FEATURE SECTIONS
===================================================== */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  margin-top: 20px;
}
.feature-grid li {
  flex: 1 1 215px;
  background: #F5F7F9;
  border-radius: 14px;
  box-shadow: 0 1px 7px rgba(21,56,74,0.05);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 24px 20px 18px 20px;
  gap: 12px;
  min-width: 210px;
}
.feature-grid img {
  width: 48px;
  height: 48px;
  margin-bottom: 5px;
}

/* =====================================================
   TESTIMONIALS
===================================================== */
.testimonial-card {
  border-left: 6px solid var(--color-accent);
  box-shadow: 0 2px 10px 0 rgba(21,56,74,0.07);
  background: #FFF;
  color: var(--color-text);
  min-width: 250px;
  max-width: 440px;
  font-size: 1.07rem;
}
.testimonial-card .stars {
  color: #E3B16F;
  letter-spacing: 2.2px;
  font-size: 1.15em;
  font-family: var(--font-head);
  font-weight: 700;
}
.testimonial-card .client {
  color: var(--color-primary);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  margin-top: 12px;
}

/* =====================================================
   FOOTER
===================================================== */
footer {
  background: #F1F5F7;
  border-top: 1px solid #E1E8ED;
  padding: 0;
}
footer section {
  padding: 0;
  margin-bottom: 0;
}
footer .container {
  padding: 40px 20px 22px 20px;
}
.footer-menu {
  display: flex;
  gap: 26px;
  font-family: var(--font-display);
  font-size: 1.02rem;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.footer-menu a {
  color: var(--color-primary);
  text-decoration: underline dotted 1.5px #B6BBC1;
  padding-bottom: 1px;
  border-radius: 8px;
  font-weight: normal;
  transition: background 0.17s, color 0.17s;
}
.footer-menu a:hover, .footer-menu a:focus {
  background: var(--color-muted);
  color: var(--color-accent);
}
.footer-branding {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 14px;
}
.footer-branding img {
  width: 49px;
  height: auto;
  margin-bottom: 7px;
}
.footer-social {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
}
.footer-social span {
  font-size: 1.02rem;
  color: #777F88;
  font-family: var(--font-body);
  margin-right: 7px;
}
.footer-social img {
  width: 30px; height: 30px;
  filter: grayscale(0.4);
  transition: filter 0.18s, transform 0.19s;
  border-radius: 5px;
}
.footer-social img:hover, .footer-social img:focus {
  filter: none;
  transform: scale(1.08) rotate(-7deg);
}
.footer-contact {
  font-size: 0.98rem;
  color: #556070;
  margin-top: 10px;
  line-height: 1.65;
  font-family: var(--font-body);
}
.footer-contact a {
  color: var(--color-accent);
  font-weight: 600;
}

/* =====================================================
   CASE STUDIES
===================================================== */
.case-study {
  background: #F7F9FA;
  border-left: 5px solid var(--color-primary);
  box-shadow: 0 1px 8px 0 rgba(24,49,83,0.06);
  border-radius: 14px;
  padding: 26px 22px 18px 24px;
  margin-bottom: 18px;
  font-style: normal;
}
.case-study h3 {
  color: var(--color-accent);
}

/* =====================================================
   FORMS (if present in the future)
===================================================== */
input, textarea, select {
  font-family: var(--font-body);
  border: 1px solid #CED4DA;
  border-radius: 7px;
  padding: 10px 14px;
  margin-bottom: 18px;
  width: 100%;
  font-size: 1rem;
  background: #FFF;
  transition: border-color 0.18s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--color-accent);
  outline: none;
}

/* =====================================================
   COOKIE CONSENT BANNER & MODAL
===================================================== */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  color: var(--color-primary);
  box-shadow: 0 -1px 14px 0 rgba(21,56,74,.12);
  padding: 20px 16px 22px 18px;
  z-index: 10010;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  font-family: var(--font-body);
  min-height: 90px;
  transition: transform 0.32s, opacity 0.3s;
  border-radius: 16px 16px 0 0;
}
.cookie-banner .cookie-btns {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.cookie-btn {
  font-family: var(--font-display);
  font-size: 1.01rem;
  padding: 7px 22px;
  border-radius: 22px;
  border: none;
  background: var(--color-accent);
  color: #fff;
  margin-right: 0;
  min-width: 125px;
  font-weight: 600;
  box-shadow: 0 1px 8px rgba(24,49,83,0.09);
  transition: background 0.19s, color 0.13s;
}
.cookie-btn.alt {
  background: var(--color-primary);
  color: #fff;
}
.cookie-btn.secondary {
  background: #F0F4F8;
  color: var(--color-primary);
  border: 1px solid #E1E8ED;
  font-weight: 500;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #B87E44;
  color: #fff;
}
.cookie-btn.secondary:hover, .cookie-btn.secondary:focus {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}

/* Cookie Modal */
.cookie-modal {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, 120vh);
  z-index: 10020;
  min-width: 320px;
  max-width: 99vw;
  width: 410px;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 0 34px 0 rgba(21,56,74,0.19);
  padding: 33px 24px 20px 24px;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.36s, opacity 0.2s;
}
.cookie-modal.open {
  transform: translate(-50%, -50%);
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal h3 {
  margin-bottom: 12px;
  font-size: 1.24rem;
  color: var(--color-primary);
}
.cookie-modal p {
  font-size: 1rem;
  margin-bottom: 15px;
  color: var(--color-text);
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 10px;
  margin-bottom: 20px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 16px;
}
.cookie-category label {
  font-size: 1.02rem;
  font-family: var(--font-body);
}
.cookie-category input[type="checkbox"] {
  width: 22px;
  height: 22px;
  accent-color: var(--color-accent);
}
.cookie-modal .modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
}
.cookie-modal .modal-close {
  position: absolute;
  top: 14px;
  right: 21px;
  background: none;
  font-size: 1.5rem;
  color: #999;
  border: none;
  cursor: pointer;
}
.cookie-modal .modal-close:hover, .cookie-modal .modal-close:focus {
  color: var(--color-primary);
}

/* =====================================================
   MEDIA QUERIES (Responsive)
===================================================== */
@media (max-width: 1100px) {
  .container {
    max-width: 98vw;
    padding: 0 10px;
  }
}
@media (max-width: 900px) {
  .footer-branding {
    flex-direction: column;
    align-items: flex-start;
  }
  .feature-grid {
    gap: 16px;
  }
  .card {
    padding: 22px 10px;
  }
  .footer-social {
    margin-top: 18px;
  }
}
@media (max-width: 800px) {
  .container {
    padding: 0 8px;
  }
  .card, .case-study {
    padding: 18px 9px 10px 14px;
    min-width: 160px;
  }
  .feature-grid li {
    min-width: 120px;
    padding: 13px 7px 13px 13px;
  }
}
@media (max-width: 768px) {
  html { font-size: 98%; }
  .main-nav, .footer-menu {
    gap: 15px;
    font-size: 1.03rem;
  }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.32rem; }
  .section {
    margin-bottom: 42px;
    padding: 25px 8px;
  }
  .feature-grid {
    gap: 10px;
    flex-wrap: wrap;
  }
  .feature-grid li {
    min-width: 100px;
    padding: 10px 4px 12px 9px;
  }
  .content-wrapper { max-width: 99vw; }
  .testimonial-card, .card, .case-study {
    min-width: 80vw;
    max-width: 98vw;
    padding: 15px 6px 11px 9px;
  }
  .footer-branding img { width: 36px; }
  .text-image-section {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
}
@media (max-width: 600px) {
  header .container {
    flex-direction: row;
    padding-left: 4px;
    padding-right: 4px;
  }
  .section {
    margin-bottom: 35px;
    padding: 14px 2px 21px 2px;
  }
  .cookie-banner {
    padding: 12px 7px 12px 11px;
    border-radius: 8px 8px 0 0;
    min-height: 60px;
    gap: 13px;
  }
  .cookie-modal {
    width: 97vw;
    min-width: 0;
    padding: 16px 7px 13px 13px;
    border-radius: 6px;
  }
}

/* Extra edge-case fallbacks */
@media (max-width: 400px) {
  h1, h2 { font-size: 1rem; }
  .card, .case-study { padding: 8px 0 8px 2px; }
  .footer-social img { width: 24px; height: 24px; }
}

/* =====================================================
   ANIMATIONS
===================================================== */
.card, .testimonial-card, .feature-grid li, .case-study {
  transition: box-shadow 0.19s, transform 0.16s;
}
.card:hover, .testimonial-card:hover, .feature-grid li:hover, .case-study:hover {
  box-shadow: 0 6px 18px 0 rgba(21,56,74,0.13);
  transform: translateY(-2px) scale(1.012);
}

.cta, .btn, .cookie-btn {
  transition: background .19s, color .16s, box-shadow 0.22s;
}

/* =====================================================
   MISC
===================================================== */
hr {
  border: 0;
  border-top: 1px solid #E1E8ED;
  margin: 36px 0;
}
::-webkit-input-placeholder { color: #8d999c; opacity: 1; }
::-moz-placeholder { color: #8d999c; opacity: 1; }
:-ms-input-placeholder { color: #8d999c; opacity: 1; }
::placeholder { color: #8d999c; opacity: 1; }

address {
  font-style: normal;
  color: var(--color-text-muted);
}

/* Remove number input 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;}

/**** END OF CSS ****/
