/* ========================================
   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;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #fafafa;
  color: #181818;
}
ul { list-style: none; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
table { border-collapse: collapse; border-spacing: 0; }

/* ========================================
   FONT FACE
======================================== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700&family=Roboto:wght@400;500;700&display=swap');

:root {
  --color-bg: #fff;
  --color-bg-soft: #f5f5f7;
  --color-bg-dark: #181818;
  --color-primary: #264653;
  --color-secondary: #2A2A2E;
  --color-accent: #F4A261;
  --color-gray-100: #fafafa;
  --color-gray-200: #e9e9ea;
  --color-gray-300: #d2d2d4;
  --color-gray-400: #bbb;
  --color-gray-500: #888;
  --color-gray-700: #444;
  --color-black: #181818;
  --color-white: #fff;
  --radius-md: 16px;
  --radius-lg: 28px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.11);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.18);
  --transition: all 0.22s cubic-bezier(.6,0,.2,1);
  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Roboto', Arial, Helvetica, sans-serif;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  background: var(--color-gray-100);
  color: var(--color-black);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-black);
  letter-spacing: -0.02em;
}
h1 { font-size: 2.5rem; margin-bottom: 18px; line-height: 1.12; }
h2 { font-size: 2rem; margin-bottom: 16px; line-height: 1.17; }
h3 { font-size: 1.3rem; margin-bottom: 10px; line-height: 1.25; }
h4 { font-size: 1.12rem; margin-bottom: 8px; }

p, li, blockquote {
  line-height: 1.72;
  color: var(--color-gray-700);
  margin-bottom: 10px;
  font-size: 1rem;
}
strong, b {
  color: var(--color-black);
  font-weight: 700;
}

blockquote {
  font-family: var(--font-display);
  font-size: 1.17rem;
  line-height: 1.5;
  color: var(--color-black);
  margin-bottom: 8px;
  quotes: "\201C" "\201D";
  position: relative;
  padding-left: 20px;
}
blockquote::before {
  content: '\201C';
  font-size: 2.3em;
  color: var(--color-gray-300);
  position: absolute;
  left: 0; top: -12px;
}

cite {
  font-style: normal;
  color: var(--color-gray-500);
  display: block;
  font-size: 0.99em;
  margin-top: 2px;
}

/* ========================================
   HEADER & NAVIGATION
======================================== */
header {
  background: var(--color-bg);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 60;
}
header nav {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0 24px;
  height: 72px;
  max-width: 1200px;
  margin: 0 auto;
}
header nav .logo {
  margin-right: 28px;
  padding: 8px 0;
}
header nav .logo img {
  height: 46px;
  width: auto;
  display: block;
}
header nav a {
  font-family: var(--font-display);
  padding: 8px 18px;
  font-size: 1.02rem;
  color: var(--color-gray-700);
  border-radius: var(--radius-md);
  transition: var(--transition);
  position: relative;
}
header nav a.active,
header nav a:hover, 
header nav a:focus {
  color: var(--color-primary);
  background: var(--color-gray-200);
}

/* ========================================
   MOBILE NAVIGATION
======================================== */
.mobile-menu-toggle {
  display: none;
  background: var(--color-primary);
  color: var(--color-white);
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  font-size: 2.3rem;
  position: absolute;
  right: 20px;
  top: 14px;
  z-index: 100;
  cursor: pointer;
  transition: background var(--transition);
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: var(--color-black);
  outline: none;
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(32,32,32,0.98);
  box-shadow: var(--shadow-lg);
  z-index: 200;
  transform: translateX(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(.8,-0.01,0,.99), opacity 0.33s;
}
.mobile-menu.active {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  background: transparent;
  color: var(--color-white);
  border: none;
  font-size: 2.1rem;
  padding: 14px 23px 12px 18px;
  align-self: flex-end;
  margin-top: 12px;
  cursor: pointer;
  transition: color 0.2s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--color-accent);
  outline: none;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  margin-top: 35px;
  padding: 0 24px;
}
.mobile-nav a {
  color: var(--color-white);
  font-family: var(--font-display);
  font-size: 1.3rem;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  transition: background 0.17s, color 0.17s;
  margin-right: 0;
  margin-left: 0;
  width: 100%;
  display: block;
}
.mobile-nav a:focus,
.mobile-nav a:hover {
  background: var(--color-accent);
  color: var(--color-black);
  outline: none;
}
@media (max-width: 1024px) {
  header nav {
    gap: 16px;
    padding: 0 10px;
    height: 62px;
  }
  header nav .logo {
    margin-right: 14px;
  }
}
@media (max-width: 870px) {
  header nav a:not(.logo) {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex !important;
  }
}

/* ========================================
   MAIN LAYOUT CONTAINERS & FLEXBOX
======================================== */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.section:last-child {
  margin-bottom: 0;
}

/* ========================================
   FLEX PATTERNS (Required Classes)
======================================== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative; /* only for decorative overlays if used */
  background: var(--color-bg);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  transition: box-shadow var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
  min-width: 220px;
  max-width: 350px;
  padding: 26px 22px 22px 22px;
}
.card:hover, .card:focus-within {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px) scale(1.014);
  z-index: 2;
}
.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;
    gap: 20px;
  }
}

.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: var(--color-bg-soft);
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  box-shadow: 0 3px 20px rgba(0,0,0,0.06);
  transition: box-shadow var(--transition), background var(--transition);
  border-left: 5px solid var(--color-primary);
}
.testimonial-card:last-child {
  margin-bottom: 0;
}
.testimonial-card:hover, .testimonial-card:focus-within {
  background: var(--color-white);
  box-shadow: var(--shadow-md);
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}
/* ========================================
   HIGHLIGHT SECTIONS, GRIDS, CARDS
======================================== */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin: 28px 0 14px 0;
  width: 100%;
}
.feature-grid > div {
  background: var(--color-bg-soft);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 26px 20px 24px 20px;
  min-width: 220px;
  flex: 1 1 210px;
  transition: box-shadow var(--transition), background var(--transition);
  position: relative;
}
.feature-grid > div:hover {
  background: var(--color-white);
  box-shadow: var(--shadow-md);
}
.feature-grid img {
  width: 48px;
  height: 48px;
  margin-bottom: 12px;
  filter: grayscale(100%);
  opacity: 0.8;
  transition: filter 0.2s, opacity 0.2s;
}
.feature-grid > div:hover img {
  filter: grayscale(0%);
  opacity: 1;
}

.service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 16px 0 18px 0;
}
.service-summary-card {
  background: var(--color-bg);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  min-width: 260px;
  max-width: 340px;
  padding: 22px 20px;
  margin-bottom: 20px;
  border-left: 4px solid var(--color-primary);
  transition: box-shadow var(--transition), background var(--transition);
}
.service-summary-card:hover, .service-summary-card:focus-within {
  box-shadow: var(--shadow-lg);
  background: var(--color-bg-soft);
}
.price {
  margin-top: 10px;
  color: var(--color-black);
  font-weight: 500;
  font-size: 1.12rem;
  letter-spacing: 0.01em;
  font-family: var(--font-display);
}

/* ========================================
   BUTTONS & LINKS
======================================== */
.cta, .primary {
  display: inline-block;
  color: var(--color-white);
  background: var(--color-primary);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  border-radius: var(--radius-md);
  padding: 13px 36px;
  margin-top: 18px;
  margin-bottom: 6px;
  border: none;
  outline: none;
  cursor: pointer;
  text-align: center;
  letter-spacing: 0.02em;
  box-shadow: var(--shadow-sm);
  transition: background var(--transition), color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.cta:hover, .primary:hover, .cta:focus, .primary:focus {
  background: var(--color-accent);
  color: var(--color-black);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px) scale(1.03);
  outline: none;
}

/* ========================================
   TABLES (for Preislisten etc.)
======================================== */
table {
  width: 100%;
  background: var(--color-bg);
  color: var(--color-black);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin: 22px 0 28px 0;
  box-shadow: var(--shadow-sm);
}
th, td {
  padding: 16px 12px;
  text-align: left;
  font-size: 1rem;
  font-family: var(--font-body);
}
th {
  background: var(--color-gray-200);
  color: var(--color-primary);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
tr:nth-child(even) td {
  background: var(--color-bg-soft);
}
tr + tr td {
  border-top: 1px solid var(--color-gray-300);
}

/* ========================================
   LISTS, UL, OL
======================================== */
ul, ol {
  margin: 14px 0 20px 25px;
  color: var(--color-gray-700);
}
ul li, ol li {
  margin-bottom: 8px;
  line-height: 1.7;
}
ul li::marker, ol li::marker {
  color: var(--color-primary);
}

/* ========================================
   TEXT BLOCKS/SECTIONS
======================================== */
.text-section {
  margin-bottom: 0;
  padding-bottom: 0;
}
.text-section h2, .text-section h3 {
  margin-top: 16px;
  margin-bottom: 12px;
}
.text-section ul {
  margin-bottom: 6px;
}

/* ========================================
   FOOTER
======================================== */
footer {
  background: var(--color-bg);
  color: var(--color-black);
  font-family: var(--font-body);
  border-top: 2px solid var(--color-gray-300);
  margin-top: 60px;
  padding: 36px 0 20px 0;
  box-shadow: 0 -1px 14px rgba(24,24,24,0.03);
}
footer > nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  align-items: center;
  margin-bottom: 18px;
}
footer > nav a {
  color: var(--color-secondary);
  font-family: var(--font-display);
  font-size: 1rem;
  border-radius: var(--radius-md);
  padding: 6px 14px;
  margin-bottom: 5px;
  transition: background var(--transition), color var(--transition);
  opacity: 0.93;
  font-weight: 500;
}
footer > nav a:hover, footer > nav a:focus {
  background: var(--color-gray-200);
  color: var(--color-primary);
  outline: none;
}
.footer-info {
  margin: 15px 0 10px 0;
  text-align: center;
  font-size: 1rem;
}
.footer-info strong {
  font-family: var(--font-display);
  font-weight: 600;
}
.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 4px;
}
.legal-links a {
  color: var(--color-gray-500);
  font-size: 0.97rem;
  text-decoration: underline;
  transition: color var(--transition);
}
.legal-links a:focus, .legal-links a:hover {
  color: var(--color-black);
  text-decoration: none;
}
.social-links {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 20px;
}
.social-links img {
  width: 30px;
  height: 30px;
  opacity: 0.7;
  transition: opacity 0.22s, filter 0.22s;
  filter: grayscale(80%);
  cursor: pointer;
}
.social-links img:hover, .social-links img:focus {
  opacity: 1;
  filter: grayscale(25%);
  outline: none;
}

/* ========================================
   RESPONSIVE ADAPTATIONS
======================================== */
@media (max-width: 1160px) {
  .container { max-width: 1000px; }
  .feature-grid > div, .card {
    min-width: 170px;
  }
}
@media (max-width: 900px) {
  .container { max-width: 780px; }
  .feature-grid { gap: 14px; }
}
@media (max-width: 800px) {
  .container { max-width: 98vw; }
  .feature-grid, .service-list {
    flex-direction: column;
    gap: 18px;
  }
  .feature-grid > div, .service-summary-card {
    min-width: 0;
    max-width: 100%;
    width: 100%;
  }
}
@media (max-width: 620px) {
  .container { padding: 0 6px; }
  .section { padding: 28px 5px; }
  .feature-grid > div, .service-summary-card {
    padding: 18px 12px 16px 12px;
  }
  .card {
    padding: 15px 10px 12px 10px;
  }
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.2rem; }
}

/* ========================================
   COOKIE CONSENT BANNER & MODAL
======================================== */
.cookie-consent-banner {
  position: fixed;
  z-index: 9999;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: var(--color-bg);
  box-shadow: 0 -2px 18px rgba(30,30,30,0.12);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 22px;
  padding: 24px 12px 20px 12px;
  font-family: var(--font-body);
  font-size: 0.99rem;
  border-top: 3px solid var(--color-primary);
  animation: slideCookieBannerIn 0.55s cubic-bezier(.68,-0.01,0,1.0);
}
@keyframes slideCookieBannerIn {
  0% { transform: translateY(100%); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-buttons {
  display: flex;
  gap: 14px;
  align-items: center;
}
.cookie-btn, .cookie-settings-btn {
  border: none;
  background: var(--color-primary);
  color: var(--color-white);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: 20px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: background var(--transition), color var(--transition);
}
.cookie-btn.reject {
  background: var(--color-gray-200);
  color: var(--color-primary);
}
.cookie-btn.accept:focus, .cookie-btn.accept:hover {
  background: var(--color-accent);
  color: var(--color-black);
}
.cookie-btn.reject:focus, .cookie-btn.reject:hover {
  background: var(--color-gray-400);
  color: var(--color-black);
}
.cookie-settings-btn {
  background: var(--color-accent);
  color: var(--color-black);
  font-weight: 600;
}
.cookie-settings-btn:focus, .cookie-settings-btn:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

.cookie-modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(32,32,32,0.5);
  align-items: center;
  justify-content: center;
  padding: 48px;
}
.cookie-modal.active {
  display: flex;
  animation: fadeInCookie 0.36s;
}
@keyframes fadeInCookie {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
.cookie-modal-content {
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  max-width: 420px;
  padding: 36px 32px 26px 32px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 21px;
  animation: popCookieModalIn 0.4s cubic-bezier(.85,-0.08,0,.97);
  position: relative;
}
@keyframes popCookieModalIn {
  0% { transform: scale(0.87); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
.cookie-modal-content h2 {
  font-size: 1.4rem;
  margin-top: 0;
  margin-bottom: 6px;
}
.cookie-modal-content label {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--color-black);
  font-size: 1.06rem;
  padding: 3px 0;
  cursor: pointer;
  user-select: none;
}
.cookie-modal-content input[type="checkbox"] {
  width: 18px; height: 18px;
  accent-color: var(--color-primary);
}
.cookie-modal-content .category-desc {
  color: var(--color-gray-500);
  font-size: 0.93em;
  margin-left: 32px;
  margin-bottom: 5px;
}
.cookie-modal-close {
  position: absolute;
  right: 18px;
  top: 14px;
  background: transparent;
  border: none;
  font-size: 2rem;
  color: var(--color-accent);
  cursor: pointer;
  transition: color 0.18s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: var(--color-primary);
}

@media (max-width:480px) {
  .cookie-modal { padding: 3vw; }
  .cookie-modal-content { padding: 20px 7vw 20px 7vw; }
}

/* ========================================
   ANIMATIONS & MICRO-INTERACTIONS
======================================== */
.card, .feature-grid > div, .testimonial-card, .service-summary-card {
  transition: box-shadow 0.25s, transform 0.18s, background 0.2s;
}
.cta, .primary, .cookie-btn, .cookie-settings-btn {
  transition: background 0.14s, color 0.17s, box-shadow 0.22s, transform 0.17s;
}
input, select, textarea, button {
  font-family: var(--font-body);
  font-size: 1em;
}

/* ========================================
   ACCESSIBILITY/FOCUS STYLES
======================================== */
a:focus, button:focus, .cta:focus, .primary:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  box-shadow: 0 0 0 2px var(--color-gray-200);
}

/* ========================================
   SELECTION COLOR
======================================== */
::selection {
  background: var(--color-accent);
  color: var(--color-black);
}

/* ========================================
   MISC & SPACING FIXES
======================================== */
.section + .section {
  margin-top: 0px;
}
.card + .card, .service-summary-card + .service-summary-card {
  margin-top: 20px;
}
.feature-grid > div + div {
  margin-top: 0;
}

/* Avoid content overlap (FORCE MINIMUM SPACING) */
.card, .card-container > *, .testimonial-card, .service-summary-card {
  margin-bottom: 20px;
}
.card:last-child, .testimonial-card:last-child, .service-summary-card:last-child {
  margin-bottom: 0;
}

/* Style for page sections with dark background if desired */
.section.section-dark {
  background: var(--color-black);
  color: var(--color-white);
  box-shadow: var(--shadow-md);
}
.section.section-dark h1, .section.section-dark h2, .section.section-dark h3, .section.section-dark strong, .section.section-dark b {
  color: var(--color-white);
}
.section.section-dark p, .section.section-dark ul, .section.section-dark li {
  color: var(--color-gray-200);
}

/* For proper z-index of overlays/menus */
header, .mobile-menu, .cookie-consent-banner, .cookie-modal {
  z-index: 9999;
}

/* ========================================
   END OF STYLE.CSS | Monochrome Sophisticated
======================================== */
