/* --- 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, 
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;
}
html {
  font-size: 16px;
  scroll-behavior: smooth;
}
body {
  line-height: 1.5;
  background: #fff;
  color: #141414;
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 400;
  letter-spacing: 0.01em;
}
*, *:before, *:after {
  box-sizing: inherit;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.18s;
}
ul, ol {
  list-style: none;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
  outline: none;
}

/* --- BRAND COLORS/VARIABLES --- */
:root {
  --color-primary: #141414; /* nearly black */
  --color-secondary: #eeeeee; /* light gray background */
  --color-accent: #ffffff; /* bright white */
  --brand-blue: #205073;  /* Brand guideline primary */
  --brand-green: #47B16D; /* Brand guideline secondary */
  --brand-bg: #f7faf5;    /* Brand guideline accent */
  --border-dark: #242426;
  --shadow-strong: 0 8px 32px rgba(20,20,20,0.18);
  --shadow-subtle: 0 2px 8px rgba(34,34,34,0.10);
}

/* --- TYPOGRAPHY --- */
h1, .h1 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 2.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #141414;
  margin-bottom: 20px;
}
h2, .h2 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 2rem;
  font-weight: 600;
  color: #141414;
  margin-bottom: 18px;
}
h3, .h3 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.2rem;
  font-weight: 500;
  color: #222;
  margin-bottom: 14px;
}
h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
}
p, ul, ol {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  color: #232323;
  margin-bottom: 16px;
}
.lead {
  font-size: 1.25rem;
  color: #333;
  margin-bottom: 24px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 400;
}
strong, b {
  font-weight: 600;
  color: #181818;
}
small {
  font-size: 0.95rem;
}
.author {
  font-size: 1rem;
  font-style: italic;
  color: #444;
  margin-top: 10px;
  letter-spacing: 0.01em;
}

/* --- LAYOUT WRAPPERS --- */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}
.content-wrapper {
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* --- SECTIONS / SPACING --- */
section {
  background: var(--color-accent);
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
section + section {
  margin-top: 10px;
}

/* --- FLEXBOX UTILITIES & PATTERNS --- */
.flex-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding-top: 18px;
  padding-bottom: 18px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow-subtle);
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 20px;
}
.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 {
  background: #f7f7f7;
  color: #141414;
  border-left: 5px solid #222;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  border-radius: 14px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-subtle);
  position: relative;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* --- HEADER --- */
header {
  background: #fff;
  box-shadow: 0 2px 16px rgba(34,34,34,0.08);
  position: sticky;
  top: 0;
  z-index: 102;
}
header img {
  height: 46px;
  width: auto;
  margin-right: 10px;
}

.main-nav {
  display: flex;
  gap: 20px;
  align-items: center;
  margin: 0 28px 0 16px;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.04rem;
  color: #222;
  padding: 8px 0;
  font-weight: 500;
  position: relative;
}
.main-nav a:after {
  content: '';
  display: block;
  width: 0;
  height: 2px;
  background: #222;
  transition: width 0.18s cubic-bezier(.4,0,.2,1);
  position: absolute;
  bottom: -2px;
  left: 0;
}
.main-nav a:hover:after {
  width: 100%;
}
.main-nav a.active {
  color: var(--brand-blue);
}

/* --- BUTTONS --- */
.btn, .btn-primary {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.08rem;
  font-weight: 600;
  padding: 0.66em 2.1em;
  border-radius: 24px;
  display: inline-block;
  margin-top: 10px;
  letter-spacing: 0.02em;
  background: #fff;
  color: #222;
  box-shadow: 0 2px 8px rgba(24,24,24,0.06);
  border: 1.5px solid #222;
  outline: none;
  transition: all 0.21s cubic-bezier(.39,.7,.37,1.01);
  cursor: pointer;
}
.btn-primary {
  background: #141414;
  color: #fff;
  border: 1.5px solid #141414;
  box-shadow: 0 4px 16px rgba(32,32,32,0.12);
}
.btn:hover, .btn:focus {
  background: #222;
  color: #fff;
  border-color: #222;
  box-shadow: 0 8px 24px rgba(24,24,24,0.13);
  transform: translateY(-2px) scale(1.04);
}
.btn-primary:hover, .btn-primary:focus {
  background: #222;
  border-color: #222;
  color: #fff;
}

/* --- HERO & SECTION STYLE --- */
section {
  margin-bottom: 48px;
  border-bottom: 1px solid #dedede;
}
section:last-child {
  border-bottom: none;
}

/* --- FEATURES GRID (/) --- */
.feature-grid {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 28px;
  justify-content: flex-start;
}
.feature {
  flex: 1 1 180px;
  min-width: 220px;
  max-width: 290px;
  background: #f5f5f5;
  border-radius: 14px;
  box-shadow: var(--shadow-subtle);
  padding: 24px 20px 20px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  transition: box-shadow 0.18s;
}
.feature img {
  height: 38px;
  margin-bottom: 10px;
}
.feature h3 {
  margin-bottom: 6px;
}
.feature:hover {
  box-shadow: 0 8px 32px rgba(30,30,32,0.11);
}

/* --- SERVICE LIST AND CONTACT --- */
.service-list {
  margin-bottom: 18px;
  font-size: 1.08rem;
}
.service-list li {
  margin-bottom: 10px;
  padding-left: 18px;
  position: relative;
}
.service-list li:before {
  content: '\2219';
  font-size: 1.1em;
  color: #999;
  position: absolute;
  left: 0;
  top: 0.2em;
}
.contact-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 10px;
}
.contact-list li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 1.04rem;
  color: #222;
}
.contact-list img {
  height: 20px;
  width: 20px;
  opacity: 0.8;
}
.map {
  background: #f2f2f2;
  border-radius: 11px;
  padding: 12px 16px;
  margin-top: 10px;
  font-size: 1.01rem;
}

/* --- TESTIMONIALS --- */
.testimonial-card {
  background: #fafafa;
  color: #101010;
  border-left: 3.5px solid #141414;
  box-shadow: 0 2px 16px rgba(22,22,22,0.06);
  margin-bottom: 20px;
  padding: 18px 24px 18px 18px;
  font-size: 1.09rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 500px;
  min-width: 220px;
  transition: box-shadow 0.21s;
}
.testimonial-card:hover {
  box-shadow: 0 8px 36px rgba(40,40,40,0.12);
}
.testimonial-card .author {
  margin-top: 14px;
  font-size: 1rem;
  color: #5b5b5b;
}

/* --- FOOTER --- */
footer {
  background: #141414;
  color: #ececec;
  padding: 36px 0 18px 0;
  font-size: 1rem;
  border-top: 2px solid #efefef;
  margin-top: 40px;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}
.footer-menu {
  display: flex;
  gap: 28px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.footer-menu a {
  color: #ececec;
  opacity: 0.92;
  font-size: 1.02rem;
  font-weight: 400;
  position: relative;
  padding: 3px 0;
}
.footer-menu a:hover {
  opacity: 1;
  color: #fff;
}
.social-links {
  display: flex;
  gap: 16px;
}
.social-links img {
  height: 26px;
  opacity: 0.9;
  transition: filter 0.15s;
  filter: grayscale(1);
}
.social-links a:hover img {
  opacity: 1;
  filter: grayscale(0);
}
.impressum {
  width: 100%;
  text-align: center;
  color: #bbb;
  font-size: 0.98rem;
  margin-top: 4px;
}

/* --- MOBILE MENU --- */
.mobile-menu-toggle {
  display: none;
  background: #fff;
  color: #222;
  font-size: 2.24rem;
  border-radius: 7px;
  padding: 6px 13px 4px 13px;
  z-index: 201;
  border: 2px solid #d4d4d4;
  position: absolute;
  right: 22px;
  top: 22px;
  transition: background 0.14s, border 0.14s;
}
.mobile-menu-toggle:active, .mobile-menu-toggle:focus {
  background: #222;
  color: #fff;
  border-color: #444;
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(18,18,18,0.97);
  color: #fff;
  z-index: 3002;
  display: flex;
  flex-direction: column;
  transform: translateX(-100vw);
  transition: transform 0.35s cubic-bezier(.23,1,.32,1);
  box-shadow: var(--shadow-strong);
  padding-top: 20px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-start;
  font-size: 2rem;
  color: #fff;
  opacity: 0.92;
  margin: 0 10px 10px 24px;
  background: transparent;
  border: none;
  transition: color 0.11s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #47B16D;
  opacity: 1;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 26px;
  align-items: flex-start;
  margin: 0 0 0 45px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.25rem;
  color: #fff;
  padding: 6px 0;
  opacity: 0.97;
  border-radius: 8px;
  transition: background 0.16s, color 0.14s;
}
.mobile-nav a:active, .mobile-nav a:hover {
  background: #232323;
  color: #47B16D;
}

/* Show/hide nav for mobile/desktop */
@media (max-width: 1020px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 1021px) {
  .mobile-menu,
  .mobile-menu-toggle {
    display: none !important;
  }
}

/* --- RESPONSIVE FLEX & SECTIONS --- */
@media (max-width: 880px) {
  .flex-header {
    gap: 16px;
  }
  .feature-grid {
    gap: 20px;
  }
  .footer-menu {
    gap: 12px;
  }
}
@media (max-width: 768px) {
  .container {
    max-width: 96vw;
    padding-left: 10px;
    padding-right: 10px;
  }
  .content-wrapper {
    max-width: 98vw;
    padding: 0;
  }
  .feature-grid {  
    flex-direction: column;
    gap: 18px;
  }
  .testimonial-card {
    max-width: 100%;
  }
  .card-container, .content-grid {
    flex-direction: column;
    gap: 15px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}
@media (max-width: 550px) {
  h1 {font-size: 1.65rem;}
  h2 {font-size: 1.19rem;}
  .btn, .btn-primary {
    width: 100%;
    font-size: 1rem;
    padding: 0.7em 0;
    text-align: center;
  }
  .footer-menu {
    flex-direction: column;
    align-items: center;
    gap: 7px;
    font-size: 1rem;
  }
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  z-index: 4000;
  background: #202020;
  color: #f1f1ef;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 21px 13px;
  box-shadow: 0 -2px 14px rgba(5,5,5,0.12);
  font-size: 1.04rem;
  opacity: 1;
  transform: translateY(0);
  transition: transform 0.27s cubic-bezier(.33,1.2,.55,.99), opacity 0.21s;
}
.cookie-consent-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(120%);
}
.cookie-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: .99rem;
  margin: 0 3px;
  padding: 7px 24px;
  border-radius: 17px;
  border: 1.2px solid #bbb;
  background: #fff;
  color: #242424;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.13s, color 0.13s, border 0.12s;
  margin-left: 7px;
  outline: none;
}
.cookie-btn.accept {
  background: #181818;
  color: #fff;
  border-color: #111;
}
.cookie-btn.settings {
  background: #f5f5f5;
  color: #242424;
  border-color: #aaa;
}
.cookie-btn.reject {
  background: #ededed;
  color: #592A2A;
  border-color: #d2bbbb;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #242424;
  color: #fff;
  border-color: #232323;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: #222;
  color: #fff;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #520808;
  color: #fff;
  border-color: #942222;
}

/* --- COOKIE MODAL --- */
.cookie-modal {
  position: fixed;
  z-index: 4100;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15,15,15,0.82);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.22s cubic-bezier(.47,1.9,.56,.97);
}
.cookie-modal.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal-content {
  background: #fff;
  color: #101010;
  border-radius: 21px;
  box-shadow: 0 8px 42px rgba(30,30,30,0.19);
  padding: 36px 30px 25px 30px;
  min-width: 320px;
  max-width: 96vw;
  display: flex;
  flex-direction: column;
  gap: 17px;
  align-items: flex-start;
  position: relative;
}
.cookie-modal-content h2 {
  font-size: 1.22rem;
  color: #1c1c1c;
}
.cookie-modal-close {
  position: absolute;
  right: 18px;
  top: 16px;
  color: #242424;
  font-size: 1.7rem;
  background: none;
  border: none;
  cursor: pointer;
  opacity: 0.66;
  transition: color 0.13s, opacity 0.14s;
  z-index: 1;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: #222;
  opacity: 1;
}
.cookie-category-list {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin: 12px 0 9px 0;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 1.04rem;
}
.cookie-category input[type="checkbox"] {
  accent-color: #141414;
  width: 18px;
  height: 18px;
  cursor: pointer;
}
.cookie-category.essential input[type="checkbox"] {
  accent-color: #aaaaaa;
}
.cookie-category.essential label {
  opacity: 0.68;
}
.cookie-modal-actions {
  width: 100%;
  display: flex;
  gap: 13px;
  margin-top: 13px;
  justify-content: flex-end;
}

/* Hide modal for small screens adjustments */
@media (max-width:450px) {
  .cookie-modal-content {
    min-width: 94vw;
    max-width: 99vw;
    padding: 17px 4vw;
  }
}

/* --- FORM ELEMENTS (just for possible future forms) --- */
input, textarea, select {
  font-family: inherit;
  font-size: 1rem;
  border-radius: 6px;
  border: 1px solid #d3d3d3;
  padding: 0.55em 1em;
  outline: none;
  color: #141414;
  background: #fff;
  margin-bottom: 12px;
  transition: border-color 0.14s;
}
input:focus, textarea:focus, select:focus {
  border-color: #141414;
}

/* --- TABLES --- */
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.02rem;
  margin-bottom: 18px;
}
th, td {
  padding: 9px 10px;
  border: 1px solid #e0e0e0;
}
th {
  background: #1B1B1B;
  color: #fff;
  font-weight: 600;
}

/* --- Z-INDEX LAYERS --- */
/* header: 102;  mobile menu: 3002; cookies: 4000+; modal 4100 */

/* --- MISC --- */
::-webkit-scrollbar {width: 8px; background: #eee;}
::-webkit-scrollbar-thumb {background: #c2c2c2; border-radius: 10px;}

/* --- VISUAL HIERARCHY + MICRO-INTERACTIONS --- */
.card, .feature, .testimonial-card, .cookie-modal-content {
  transition: box-shadow 0.18s, transform 0.14s;
}
.card:hover, .feature:hover {
  box-shadow: 0 10px 36px rgba(30,30,30,0.13);
  transform: translateY(-2px) scale(1.02);
}

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