/* =============================
   Calm Expedition Architektur
   Professional Corporate Style
   ============================= */

/* -----------------------------
   CSS Reset & Normalize
----------------------------- */
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;
}
footer p {
  color: white;
}
body {
  line-height: 1.5;
  min-height: 100vh;
  background: #F7F6F2;
  color: #2B363B;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #2B363B;
  text-decoration: none;
  transition: color 0.22s;
}
a:hover, a:focus {
  color: #41627a;
  outline: none;
}
ul, ol {
  margin-left: 1.5em;
  margin-top: 0.5em;
  margin-bottom: 0.5em;
}
strong { font-weight: 700; }

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  letter-spacing: 0.01em;
  color: #2B363B;
  font-weight: 700;
  line-height: 1.16;
  margin-bottom: 16px;
}
h1 {
  font-size: 2.375rem; /* 38px */
  margin-bottom: 20px;
}
h2 {
  font-size: 1.75rem; /* 28px */
}
h3 {
  font-size: 1.375rem; /* 22px */
}
h4 {
  font-size: 1.125rem; /* 18px */
}

p, li {
  font-size: 1rem;
  color: #313e47;
  margin-bottom: 10px;
}
span {
  font-size: 0.97em;
  color: #43627a;
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Section Spacing */
section {
  background: #fff;
}
.section, section {
  margin-bottom: 60px;
  padding: 40px 0 40px 0;
}

.text-section {
  background: transparent;
  padding: 0!important;
}

/* Layout: Flex utilities & Adaptive Patterns */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 3px 18px 0 rgba(43,54,59,0.07);
  padding: 24px 24px 16px 24px;
  margin-bottom: 20px;
  position: relative;
  min-width: 260px;
  flex: 1 1 260px;
  transition: box-shadow 0.18s;
}
.card:hover, .card:focus {
  box-shadow: 0 5px 24px 0 rgba(43,54,59,0.16);
}
.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;
  padding: 20px;
  background: #F7F6F2;
  border-left: 6px solid #B2B8A3;
  border-radius: 12px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px 0 rgba(43,54,59,0.06);
  max-width: 640px;
  transition: box-shadow 0.18s, border-color 0.18s;
}
.testimonial-card p {
  color: #2B363B;
  font-size: 1.05rem;
  line-height: 1.45;
}
.testimonial-card span {
  font-size: 0.98rem;
  color: #43627a;
  font-style: italic;
}
.testimonial-card:hover, .testimonial-card:focus {
  box-shadow: 0 4px 18px 0 rgba(43,54,59,0.14);
  border-color: #2B363B;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* Feature Grid for Startseite */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 24px;
  justify-content: flex-start;
}
.feature-grid > div {
  flex: 1 1 220px;
  min-width: 200px;
  max-width: 250px;
  background: #F7F6F2;
  border-radius: 12px;
  padding: 24px 16px;
  box-shadow: 0 2px 10px 0 rgba(43,54,59,0.04);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow 0.16s, background 0.2s;
}
.feature-grid > div:hover {
  background: #E4E7E6;
  box-shadow: 0 4px 20px 0 rgba(43,54,59,0.10);
}
.feature-grid h3 {
  margin-top: 18px;
  font-size: 1.15rem;
}
.feature-grid img {
  height: 36px;
  width: 36px;
}

/* Service-List, Team-List, Project-List, Blog-List */
.service-list, .team-list, .project-list, .blog-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  list-style: none;
  margin: 24px 0 0 0;
  padding: 0;
}
.service-list li, .team-list li, .project-list li, .blog-list li {
  background: #F7F6F2;
  border-radius: 12px;
  padding: 22px 16px 12px 22px;
  box-shadow: 0 1px 6px 0 rgba(43,54,59,0.05);
  margin-bottom: 20px;
  flex: 1 1 250px;
  min-width: 220px;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow 0.16s;
}
.service-list li:hover, .project-list li:hover, .team-list li:hover, .blog-list li:hover {
  box-shadow: 0 4px 16px 0 rgba(43,54,59,0.10);
}
.service-list h3 span {
  float: right;
  color: #2B363B;
  font-weight: 500;
  font-size: 1rem;
}

/* CTA Section & Buttons */
.cta {
  background: #2B363B;
  color: #fff;
  text-align: center;
  border-radius: 24px;
  margin-top: 60px;
  padding: 48px 0;
}
.cta h2 { color: #fff; }
.cta p { color: #f7f6f2; }
.cta-button, .primary-cta {
  display: inline-block;
  background: #B2B8A3;
  color: #2B363B;
  border: none;
  border-radius: 28px;
  padding: 12px 40px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.10rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-top: 22px;
  margin-right: 8px;
  cursor: pointer;
  box-shadow: 0 2px 8px 0 rgba(43,54,59,0.07);
  transition: background 0.18s, color 0.16s, box-shadow 0.16s, transform 0.12s;
}
.cta-button:hover, .cta-button:focus, .primary-cta:hover, .primary-cta:focus {
  background: #2B363B;
  color: #fff;
  box-shadow: 0 4px 16px 0 rgba(43,54,59,0.11);
  transform: translateY(-3px) scale(1.03);
}

.primary-cta {
  padding: 9px 26px;
  margin-top: 0;
  margin-left: 24px;
  font-size: 1rem;
  border: 2px solid #B2B8A3;
  background: #fff;
  color: #2B363B;
}
.primary-cta:hover, .primary-cta:focus {
  background: #B2B8A3;
  color: #2B363B;
}

/* Header Styles */
header {
  background: #fff;
  box-shadow: 0 6px 32px 0 rgba(43,54,59,0.09);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1010;
  display: flex;
  align-items: center;
  min-height: 72px;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
}
header img {
  height: 40px;
  width: auto;
  margin: 18px 28px 18px 10px;
}
header nav {
  display: flex;
  gap: 24px;
  align-items: center;
}
header nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 500;
  font-size: 1.04rem;
  color: #2B363B;
  padding: 4px 12px;
  border-radius: 14px;
  transition: background 0.17s, color 0.17s;
}
header nav a:hover, header nav a:focus {
  background: #B2B8A3;
  color: #fff;
}

button, .mobile-menu-toggle, .mobile-menu-close {
  font-family: inherit;
  font-size: 1.7rem;
  background: none;
  border: none;
  color: #2B363B;
  cursor: pointer;
  margin-left: 18px;
  padding: 6px 12px;
  border-radius: 8px;
  transition: background 0.16s, color 0.14s;
}
.mobile-menu-toggle:hover, .mobile-menu-close:hover {
  background: #E4E7E6;
  color: #2B363B;
}

/* Hide Mobile Menu Toggle on Desktop */
.mobile-menu-toggle { display: none; }

/* Mobile Nav Overlay */
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  height: 100vh;
  width: 100vw;
  background: rgba(43,54,59,0.97);
  z-index: 3000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding: 0;
  transform: translateX(100%);
  opacity: 0;
  transition: transform 0.38s cubic-bezier(.77,0,.18,1), opacity 0.38s cubic-bezier(.77,0,.18,1);
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
}
.mobile-menu-close {
  font-size: 2.1rem;
  color: #fff;
  background: none;
  border: none;
  margin: 28px 32px 0 0;
  padding: 6px 14px;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  width: 100vw;
  align-items: center;
  gap: 32px;
  margin-top: 70px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #fff;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 15px 0;
  border-radius: 9px;
  width: 80%;
  text-align: center;
  transition: background 0.13s, color 0.14s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #B2B8A3;
  color: #2B363B;
}

/* Hero Section */
.hero {
  background: linear-gradient(90deg, #e4e7e6 0%, #F7F6F2 90%);
  border-radius: 0 0 28px 28px;
  box-shadow: 0 3px 20px 0 rgba(43,54,59,0.08);
  padding: 48px 0 54px 0 !important;
  margin-bottom: 60px;
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
}
.hero h1 {
  font-size: 2.25rem;
  color: #2B363B;
  margin-bottom: 12px;
}
.hero p {
  font-size: 1.24rem;
  max-width: 560px;
  color: #313e47;
  margin-bottom: 20px;
}

/* Contact Details Block */
.contact-details, .business-hours, .address-block {
  background: #F7F6F2;
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 1rem;
}
.contact-details img, .business-hours img, .address-block img {
  vertical-align: middle;
  height: 18px;
  margin-right: 8px;
}
.business-hours strong, .address-block strong {
  color: #2B363B;
  font-size: 1.1rem;
  margin-bottom: 4px;
}

/* Footer */
footer {
  width: 100%;
  background: #2B363B;
  color: #fff;
  border-radius: 28px 28px 0 0;
  margin-top: 60px;
  box-shadow: 0 -3px 18px 0 rgba(43,54,59,0.10);
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
  justify-content: space-between;
  padding: 38px 20px 34px 20px;
}
footer img {
  height: 36px;
  margin-right: 32px;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
footer nav a {
  color: #B2B8A3;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  padding: 2px 0;
  transition: color 0.16s;
}
footer nav a:hover, footer nav a:focus {
  color: #fff;
  text-decoration: underline;
}
footer .contact-info {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  color: #B2B8A3;
  font-size: 1rem;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
footer .contact-info img {
  height: 18px;
  margin-right: 5px;
}

/* Responsive Typography & Spacing */
@media (max-width: 1100px) {
  .container { max-width: 100%; }
}
@media (max-width: 900px) {
  h1 { font-size: 2rem; }
  .feature-grid > div, .service-list li, .team-list li, .project-list li, .blog-list li {
    min-width: 185px;
    max-width: 99%;
  }
}
@media (max-width: 768px) {
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.18rem; }
  .hero h1 { font-size: 1.28rem; }
  .container { padding: 0 8px; }
  .content-wrapper, .content-grid, .feature-grid, .service-list, .team-list, .blog-list, .project-list {
    flex-direction: column;
    gap: 14px;
    align-items: stretch;
  }
  .card-container {
    flex-direction: column;
    gap: 20px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
  }
  .hero {
    padding: 26px 0 24px 0 !important;
  }
  .cta {
    padding: 28px 0;
    margin-top: 34px;
  }
  .section, section {
    padding: 26px 0 28px 0;
    margin-bottom: 32px;
  }
}

/* Header responsive */
@media (max-width: 900px) {
  header {
    flex-direction: row;
    min-height: 66px;
  }
  header img {
    height: 32px;
    margin-right: 20px;
    margin-left: 10px;
  }
  header nav, .primary-cta { display: none; }
  .mobile-menu-toggle { display: inline-block; }
}

@media (max-width: 500px) {
  h1 { font-size: 1.1rem; }
  .feature-grid > div, .service-list li, .team-list li, .project-list li, .blog-list li {
    padding: 16px;
  }
  .container {
    padding: 0 4px;
  }
  footer .container {
    padding: 18px 4px 14px 4px;
    gap: 10px;
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Animations */
.cta-button, .primary-cta, .feature-grid > div, .card, .testimonial-card {
  transition: box-shadow 0.16s, background 0.2s, border 0.12s, transform 0.12s, color 0.16s;
}
.testimonial-card, .feature-grid > div, .service-list li, .project-list li {
  will-change: box-shadow, background, transform;
}

/* Focus States */
*:focus-visible {
  outline: 2px solid #43627a;
  outline-offset: 2px;
}

/* Misc Utility Classes */
.mt-2 { margin-top: 20px !important; }
.mb-2 { margin-bottom: 20px !important; }
.mt-4 { margin-top: 40px !important; }
.mb-4 { margin-bottom: 40px !important; }


/* =============================
   Cookie Consent Banner
   ============================= */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100%;
  z-index: 6000;
  background: #2B363B;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  padding: 22px 34px 22px 34px;
  box-shadow: 0 -3px 16px 0 rgba(43,54,59,0.12);
  font-size: 1rem;
  animation: fadeInCookie 0.8s cubic-bezier(.69,0,.12,1);
}
@keyframes fadeInCookie {
  0% { opacity: 0; transform: translateY(90%); }
  100% { opacity: 1; transform: translateY(0); }
}
.cookie-banner p {
  margin: 0 12px 0 0;
  color: #F7F6F2;
  flex: 1 0 180px;
  min-width: 140px;
}
.cookie-banner .cookie-btn {
  padding: 9px 22px;
  margin-right: 10px;
  border: none;
  border-radius: 22px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: background 0.15s, color 0.18s, box-shadow 0.13s, transform 0.11s;
  cursor: pointer;
  box-shadow: 0 2px 8px 0 rgba(43,54,59,0.10);
}
.cookie-banner .accept-btn {
  background: #B2B8A3;
  color: #2B363B;
}
.cookie-banner .accept-btn:hover,.cookie-banner .accept-btn:focus {
  background: #fff;
}
.cookie-banner .reject-btn {
  background: #fff;
  color: #2B363B;
  border: 1px solid #B2B8A3;
}
.cookie-banner .reject-btn:hover,.cookie-banner .reject-btn:focus {
  background: #B2B8A3;
}
.cookie-banner .settings-btn {
  background: transparent;
  color: #B2B8A3;
  border: 1.5px solid #B2B8A3;
}
.cookie-banner .settings-btn:hover,
.cookie-banner .settings-btn:focus {
  background: #B2B8A3;
  color: #2B363B;
}

@media (max-width: 700px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 10px 15px 10px;
    font-size: 0.98rem;
  }
  .cookie-banner p { margin-bottom: 8px; }
}

/* ===================
   Cookie Modal Popup
   =================== */
.cookie-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(80,93,109,0.76);
  z-index: 8000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeInCookieModal 0.52s cubic-bezier(.63,0,.23,1);
}
@keyframes fadeInCookieModal {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  color: #2B363B;
  border-radius: 18px;
  box-shadow: 0 7px 32px 0 rgba(43,54,59,0.18);
  max-width: 380px;
  width: 85vw;
  padding: 38px 26px 22px 26px;
  position: relative;
  animation: slideInCookieModal 0.6s cubic-bezier(.59,0,.14,1);
}
@keyframes slideInCookieModal {
  0% { opacity: 0; transform: translateY(64px); }
  100% { opacity: 1; transform: translateY(0); }
}
.cookie-modal h2 {
  font-size: 1.35rem;
  color: #2B363B;
  margin-bottom: 8px;
}
.cookie-modal ul {
  list-style: none;
  margin: 12px 0 20px 0;
  padding: 0;
}
.cookie-modal li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 0;
  font-size: 1.03rem;
  border-bottom: 1px solid #eee;
}
.cookie-modal li:last-child { border-bottom: none; }
.cookie-modal label {
  font-size: 1.03rem;
  color: #2B363B;
  cursor: pointer;
  flex: 1;
}
.cookie-modal input[type="checkbox"] {
  height: 18px;
  width: 18px;
  accent-color: #2B363B;
  cursor: pointer;
}
.cookie-modal .cookie-btn {
  margin-top: 16px;
}
.cookie-modal .close-cookie-modal {
  position: absolute;
  top: 16px; right: 16px;
  background: none;
  border: none;
  color: #2B363B;
  font-size: 1.5rem;
  cursor: pointer;
  border-radius: 6px;
  padding: 2px 6px;
  transition: background 0.15s, color 0.12s;
}
.cookie-modal .close-cookie-modal:hover, .cookie-modal .close-cookie-modal:focus {
  background: #f3f3ea;
}

/* Mandatory Groups Always Enabled (disabled toggle) */
.cookie-modal input[disabled], .cookie-modal input[aria-disabled="true"] {
  accent-color: #B2B8A3;
  opacity: 0.60;
  cursor: not-allowed;
}
.cookie-modal li.essential label::after {
  content: '(immer aktiv)';
  color: #B2B8A3;
  font-size: 0.98em;
  margin-left: 8px;
}


/* ===================
   Accessibility Docs
   =================== */
a[aria-current="page"] {
  font-weight: 700;
  text-decoration: underline;
}

/* ================
   Print Styles
   ================ */
@media print {
  header, nav, .mobile-menu, .cookie-banner, .cta, footer { display: none !important; }
  .container { padding: 0; }
}
