/* =============================================================
   Meister45plus – Scandinavian Clean CSS
   Complete style.css for all pages (mobile-first, flexbox-only)
   Brand: #19526b (primary), #dcebf2 (secondary), #fdbb4a (accent)
   Fonts: Montserrat (display), Inter (body)
   ============================================================= */

/* ===== Reset & Normalize ===== */
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *::before, *::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Inter', Arial, Helvetica, sans-serif;
  background: #f7fafb;
  color: #1b2d36;
  font-size: 1rem;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, picture, video, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

input, button, select, textarea {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}

ul, ol {
  list-style: none;
}
a {
  color: #19526b;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #103445;
}
strong {
  font-weight: 600;
}

/* ===== Font Faces ===== */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700&display=swap');
@import url('https://fonts.googleapis.com/css?family=Inter:400,500,600&display=swap');

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  color: #19526b;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
  line-height: 1.15;
}
h1 { font-size: 2.2rem; margin-bottom: 22px; }
h2 { font-size: 1.5rem; margin-bottom: 18px; }
h3 { font-size: 1.15rem; margin-bottom: 12px; }

/* Typography hierarchy */
p, li {
  font-size: 1rem;
  color: #223642;
  margin-bottom: 12px;
}

/* ============= Containers & Layout ============= */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 10px rgba(25,82,107,0.03);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.text-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card-container, .profile-grid, .category-grid, .card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.card, .profile-card, .testimonial-card {
  background: #f7fafb;
  border: 1px solid #e4ecf0;
  border-radius: 15px;
  box-shadow: 0 2px 8px rgba(25,82,107,0.04);
  margin-bottom: 20px;
  padding: 28px 22px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  transition: box-shadow 0.2s, background 0.2s;
}
.card:hover, .profile-card:hover {
  box-shadow: 0 6px 20px rgba(25,82,107,0.08);
  background: #e9f4fa;
}

.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;
}

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

.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border: 1px solid #e4ecf0;
  border-radius: 13px;
  box-shadow: 0 2px 8px rgba(25,82,107,0.04);
  margin-bottom: 20px;
  min-width: 0;
  color: #10242f;
}
.testimonial-card blockquote {
  margin: 0;
  font-size: 1.03rem;
  font-style: italic;
}
.testimonial-card strong {
  color: #19526b;
  font-weight: 500;
  font-style: normal;
}

/* Category grid (Dienstleistungen) */
.category-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 16px;
}
.category-grid > div {
  background: #fff;
  border: 1px solid #e4ecf0;
  border-radius: 14px;
  padding: 22px 14px;
  min-width: 215px;
  flex: 1 1 230px;
  font-size: 1rem;
  transition: box-shadow 0.15s;
  box-shadow: 0 2px 8px rgba(25,82,107,0.04);
}
.category-grid > div:hover {
  background: #eeeff2;
  box-shadow: 0 6px 18px rgba(25,82,107,0.08);
}

.profile-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.profile-card {
  flex: 1 1 320px;
  max-width: 380px;
  padding: 28px 20px 22px 20px;
  align-items: flex-start;
}
.profile-card img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  background: #dcebf2;
  margin-bottom: 12px;
}
.profile-card ul {
  margin-bottom: 10px;
}
.profile-card ul li {
  font-size: 0.98rem;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.profile-card .testimonial-card {
  margin-bottom: 0;
  margin-top: 10px;
}

.card {
  flex: 1 1 340px;
  max-width: 400px;
}

/* ========== Navigation Header ========== */
header {
  background: #fff;
  box-shadow: 0 2px 10px rgba(25,82,107,0.03);
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 20px;
}
.logo img {
  width: 155px;
  height: auto;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  color: #19526b;
  font-size: 1.03rem;
  padding: 6px 10px;
  border-radius: 7px;
  transition: background 0.16s, color 0.14s;
}
.main-nav a:hover, .main-nav a:focus {
  background: #dcebf2;
  color: #103445;
}

.cta-button {
  font-family: 'Montserrat', Arial, sans-serif;
  background: #fdbb4a;
  color: #1b2d36;
  font-size: 1.07rem;
  font-weight: 700;
  padding: 11px 24px;
  border: none;
  border-radius: 9px;
  box-shadow: 0 2px 6px rgba(253,187,74,0.09);
  transition: background 0.17s, box-shadow 0.19s, color 0.15s;
  cursor: pointer;
  display: inline-block;
  margin-left: 14px;
  outline: none;
}
.cta-button:hover, .cta-button:focus {
  background: #19526b;
  color: #fff;
  box-shadow: 0 4px 18px rgba(25,82,107,0.17);
}

/* ========== Mobile Navigation ========== */
.mobile-menu-toggle {
  display: none;
  background: #fdbb4a;
  border: none;
  color: #19526b;
  font-size: 2rem;
  border-radius: 8px;
  padding: 6px 16px;
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 102;
  box-shadow: 0 2px 10px rgba(25,82,107,0.06);
  cursor: pointer;
  transition: background 0.16s;
}
.mobile-menu-toggle:focus {
  outline: 2px solid #1b2d36;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  background: #fff;
  z-index: 105;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 38px 24px 24px 24px;
  transform: translateX(100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.32s cubic-bezier(.47,1.64,.41,.8), opacity 0.21s;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  align-self: flex-end;
  background: #fdbb4a;
  border: none;
  color: #19526b;
  font-size: 2rem;
  border-radius: 8px;
  padding: 4px 16px;
  margin-bottom: 22px;
  cursor: pointer;
  transition: background 0.14s;
}
.mobile-menu-close:focus {
  outline: 2px solid #1b2d36;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  align-items: flex-start;
}
.mobile-nav a {
  font-size: 1.13rem;
  font-family: 'Montserrat', Arial, sans-serif;
  color: #19526b;
  font-weight: 600;
  background: #dcebf2;
  border-radius: 7px;
  padding: 11px 17px;
  width: 100%;
  transition: background 0.17s, color 0.15s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #19526b;
  color: #fff;
}

/* ========== Footer ========== */
footer {
  background: #dcebf2;
  margin-top: 36px;
  color: #19526b;
  font-size: 0.97rem;
  box-shadow: 0 -2px 8px rgba(25,82,107,0.05);
}
footer .container {
  padding: 18px 20px;
}
footer .content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 22px;
  justify-content: space-between;
  align-items: flex-start;
}
footer .footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 8px;
}
footer .footer-nav a {
  color: #19526b;
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.15s, text-decoration 0.1s;
}
footer .footer-nav a:hover {
  text-decoration: underline;
  color: #fdbb4a;
}
footer .footer-contact p,
footer .footer-contact a {
  color: #19526b;
  margin-bottom: 4px;
  font-size: 0.97rem;
}
footer .socials {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}
footer .socials a img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fff;
  transition: background 0.17s;
  box-shadow: 0 1px 8px rgba(25,82,107,0.06);
}
footer .socials a:hover img {
  background: #fdbb4a;
}

/* ========== Tables ========== */
table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  margin-bottom: 16px;
  border-radius: 12px;
  overflow: hidden;
  font-size: 0.99rem;
  box-shadow: 0 1px 7px rgba(25,82,107,0.03);
}
thead {
  background: #dcebf2;
}
thead th {
  color: #19526b;
  font-weight: 700;
  font-family: 'Montserrat', Arial, sans-serif;
  padding: 13px 8px;
}
tbody td {
  padding: 11px 8px;
  border-bottom: 1px solid #e4ecf0;
  color: #223642;
}
tbody tr:last-child td {
  border-bottom: none;
}

/* ==================== FAQ Accordion ==================== */
.faq-accordion h3 {
  font-size: 1.11rem;
  margin-top: 0;
  margin-bottom: 0;
  background: #dcebf2;
  padding: 11px 16px;
  border-radius: 7px;
  transition: background 0.15s;
  cursor: pointer;
  font-family: 'Montserrat', Arial, sans-serif;
}
.faq-accordion h3 + p {
  margin: 0 0 12px 0;
  padding: 9px 16px 15px 16px;
  background: #f7fafb;
  border-radius: 0 0 7px 7px;
}

/* ==================== Forms, Inputs & Selects ==================== */
input, select, textarea {
  width: 100%;
  background: #fff;
  border: 1px solid #e4ecf0;
  border-radius: 8px;
  padding: 9px 13px;
  margin-bottom: 14px;
  font-size: 1rem;
  color: #1b2d36;
  transition: border 0.16s;
}
input:focus, select:focus, textarea:focus {
  border: 1.5px solid #19526b;
}
label {
  font-size: 0.99rem;
  color: #19526b;
  margin-bottom: 6px;
  display: block;
}

.service-filter {
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.service-filter select {
  width: auto;
  min-width: 140px;
  font-family: 'Inter', Arial, sans-serif;
}

/* =============== Cookie Consent Banner & Modal =============== */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  border-top: 2px solid #dcebf2;
  box-shadow: 0 -2px 28px rgba(25,82,107,0.09);
  padding: 20px 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  z-index: 1500;
  font-size: 1rem;
  animation: cookie-banner-fadein 0.44s ease;
}
@keyframes cookie-banner-fadein {
  from { opacity: 0; transform: translateY(60px); }
  to { opacity: 1; transform: translateY(0); }
}
.cookie-banner__text {
  flex: 1 1 210px;
  color: #19526b;
  font-size: 1rem;
}
.cookie-banner__actions {
  display: flex;
  gap: 12px;
}
.cookie-btn {
  background: #fdbb4a;
  color: #1b2d36;
  border: none;
  border-radius: 7px;
  padding: 8px 16px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.15s, color 0.14s;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #19526b;
  color: #fff;
}
.cookie-btn--secondary {
  background: #dcebf2;
  color: #19526b;
}
.cookie-btn--secondary:hover, .cookie-btn--secondary:focus {
  background: #fdbb4a;
  color: #1b2d36;
}

/* Cookie Preferences Modal */
.cookie-modal-backdrop {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(25,82,107,0.18);
  z-index: 1700;
  transition: opacity 0.22s;
  opacity: 0;
  pointer-events: none;
}
.cookie-modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%) scale(0.92);
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 8px 34px rgba(25,82,107,0.15);
  z-index: 1800;
  padding: 32px 26px 22px 26px;
  min-width: 320px;
  max-width: 94vw;
  max-height: 98vh;
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.21s, transform 0.21s;
}
.cookie-modal.open {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%,-50%) scale(1);
}
.cookie-modal__header {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #19526b;
  font-size: 1.23rem;
  margin-bottom: 12px;
  font-weight: 600;
}
.cookie-modal__categories {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cookie-modal__item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
}
.cookie-modal__label {
  flex: 1;
  color: #1b2d36;
  font-weight: 500;
  font-size: 1rem;
}
.cookie-modal__toggle {
  width: 38px;
  height: 22px;
  background: #dcebf2;
  border-radius: 40px;
  position: relative;
  cursor: pointer;
  transition: background 0.16s;
  margin-left: 4px;
}
.cookie-modal__toggle input {
  display: none;
}
.cookie-modal__toggle-slider {
  position: absolute;
  left: 2px; top: 2px;
  width: 18px; height: 18px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.18s, background 0.13s;
  box-shadow: 0 1px 6px rgba(25,82,107,0.10);
}
.cookie-modal__toggle input:checked + .cookie-modal__toggle-slider {
  transform: translateX(16px);
  background: #fdbb4a;
}
.cookie-modal__toggle input:disabled + .cookie-modal__toggle-slider {
  background: #c7c7c7;
}
.cookie-modal__footer {
  display: flex;
  gap: 14px;
  margin-top: 16px;
  justify-content: flex-end;
}
.cookie-modal__close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: #dcebf2;
  color: #19526b;
  border: none;
  font-size: 1.5rem;
  border-radius: 7px;
  padding: 6px 11px;
  transition: background 0.15s;
  cursor: pointer;
}
.cookie-modal__close:hover, .cookie-modal__close:focus {
  background: #fdbb4a;
}

/* ================== Misc Buttons and Links ================== */
button, .button {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  background: #dcebf2;
  color: #19526b;
  padding: 9px 19px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background 0.15s, color 0.14s;
}
button:hover, button:focus, .button:hover, .button:focus {
  background: #19526b;
  color: #fff;
}

/* ======= Utility Spacing ======= */
.mb-20 { margin-bottom: 20px; }
.mb-32 { margin-bottom: 32px; }
gap-24 { gap: 24px; }

.section:not(:last-child) { margin-bottom: 60px; }
main > section { margin-bottom: 60px; }

/* =============== Responsive Breakpoints =============== */
@media (max-width: 1100px) {
  .container {
    max-width: 95vw;
  }
  .profile-card, .card {
    flex: 1 1 90vw;
    max-width: 100%;
  }
}

@media (max-width: 900px) {
  .main-nav { gap: 10px; }
  .profile-card, .card {
    padding: 18px 10px 15px 10px;
  }
}

@media (max-width: 768px) {
  header .container { flex-direction: column; gap: 10px; padding: 12px 8px; }
  .main-nav {
    display: none;
  }
  .cta-button {
    margin-left: 0;
    width: 100%;
    text-align: center;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .profile-grid, .category-grid, .card-container, .content-grid {
    flex-direction: column;
    gap: 20px;
  }
  .section, .card, .profile-card {
    padding: 24px 10px 17px 10px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
  .content-wrapper, .footer .content-wrapper {
    flex-direction: column;
    gap: 14px;
  }
  .testimonial-card {
    padding: 16px 8px;
  }
  footer .container {
    padding: 11px 9px;
  }
}

@media (max-width: 540px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 13px 7px;
    gap: 8px;
    font-size: 0.97rem;
  }
  .cookie-modal {
    padding: 15px 4px 12px 4px;
    min-width: 90vw;
  }
  .mobile-nav a {
    font-size: 1rem;
    padding: 9px 7px;
  }
  .category-grid > div {
    padding: 13px 7px;
    font-size: 0.99rem;
    min-width: 0;
    flex: 1 1 150px;
  }
}

/* =============== Micro Animations =============== */
.cta-button, .button, .card, .profile-card, .category-grid > div, .main-nav a, .mobile-nav a {
  transition: background 0.18s, color 0.16s, box-shadow 0.20s, border 0.19s;
}

.profile-card, .testimonial-card, .category-grid > div {
  transition: box-shadow 0.20s, background 0.18s;
}

/* =============== Accessibility =============== */
:focus {
  outline: 2px solid #19526b;
  outline-offset: 2px;
}

/* =============== Print styles =============== */
@media print {
  .cookie-banner, .mobile-menu, .mobile-menu-toggle { display: none !important; }
  header, footer { box-shadow: none; }
}
