/* =====================================================
   CSS Reset & Normalize (mobile-first, accessible)
====================================================== */
html {
  box-sizing: border-box;
  scroll-behavior: smooth;
}
*, *::before, *::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  min-height: 100vh;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  background: #fafafc;
  color: #1a1a1a;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: 0.01em;
}

img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
a:focus {
  outline: 2px solid #173359;
  outline-offset: 2px;
}
ul, ol {
  margin: 0;
  padding: 0 0 0 1.2em;
}

/* ===============================
 Brand Monochrome Variables
 =============================== */
:root {
  --primary: #173359; /* very dark blue as monochrome-black */
  --secondary: #d4ad3b;
  --accent: #f7f7f7;
  --white: #fff;
  --light-gray: #e8e9ec;
  --gray: #bbbbbb;
  --medium-gray: #6a6a6a;
  --dark: #191919;
  --black: #101010;
  --headline-size-lg: 2.25rem;
  --headline-size-md: 1.5rem;
  --headline-size-sm: 1.13rem;
  --radius: 14px;
  --shadow-xs: 0 2px 7px 0 rgba(30,36,49,0.06);
  --shadow: 0 4px 32px 0 rgba(23,51,89,0.09);
  --shadow-strong: 0 8px 38px 0 rgba(23, 51, 89, 0.21);
  --oswald: 'Oswald', Arial, Helvetica, sans-serif;
  --roboto: 'Roboto', Arial, Helvetica, sans-serif;
}
@media (min-width: 700px) {
  :root {
    --headline-size-lg: 3rem;
    --headline-size-md: 2rem;
    --headline-size-sm: 1.25rem;
  }
}

/* ===============================
   Layout Utilities & Container
=============================== */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 18px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
@media (min-width: 768px) {
  .content-wrapper {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 36px;
    justify-content: space-between;
  }
}

.section,
section {
  margin-bottom: 60px;
  padding: 40px 0 24px 0;
}

/* ===============================
 Header & Navigation
=============================== */
header {
  background: var(--white);
  box-shadow: var(--shadow-xs);
  position: sticky;
  top: 0;
  z-index: 101;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 12px;
  padding-top: 10px;
  padding-bottom: 10px;
}
.logo img {
  height: 38px;
  display: block;
}
nav {
  display: none;
}
@media (min-width: 900px) {
  header nav {
    display: flex;
    align-items: center;
    gap: 24px;
  }
  .mobile-menu-toggle {
    display: none !important;
  }
}
header nav a {
  color: var(--primary);
  font-family: var(--oswald);
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 1px;
  padding: 6px 0;
  transition: color 0.18s;
  border-bottom: 2px solid transparent;
}
header nav a:hover, header nav a.active {
  color: var(--secondary);
  border-bottom: 2px solid var(--secondary);
}
.cta-button {
  font-family: var(--oswald);
  background: var(--primary);
  color: var(--white) !important;
  padding: 11px 32px;
  border-radius: var(--radius);
  font-size: 1.06rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  display: inline-block;
  box-shadow: var(--shadow-xs);
  border: none;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s, transform 0.15s;
  text-align: center;
  margin-left: 12px;
}
.cta-button:hover,
.cta-button:focus {
  background: var(--secondary);
  color: var(--primary) !important;
  box-shadow: var(--shadow-strong);
  transform: translateY(-2px) scale(1.03);
}

/* =================================
   Mobile Menu Overlay and Button
================================= */
.mobile-menu-toggle {
  background: var(--primary);
  color: var(--white);
  border: none;
  font-size: 2rem;
  line-height: 1;
  border-radius: 9px;
  padding: 6px 16px 6px 12px;
  display: flex;
  align-items: center;
  transition: background 0.2s, color 0.2s;
  justify-content: center;
  margin-left: 0;
  z-index: 201;
  cursor: pointer;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: var(--secondary);
  color: var(--primary);
}
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 320px;
  max-width: 96vw;
  background: var(--white);
  box-shadow: -2px 0 24px 0 rgba(23,51,89,.10);
  z-index: 250;
  display: flex;
  flex-direction: column;
  transform: translateX(120%);
  transition: transform 0.37s cubic-bezier(.23,1.05,.57,1.07), box-shadow 0.18s;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: all;
  box-shadow: -4px 0 44px 0 rgba(23,51,89,0.13);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 2.2rem;
  align-self: flex-end;
  margin: 22px 12px 14px 0;
  cursor: pointer;
  transition: color 0.2s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: var(--secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 32px 22px;
  font-family: var(--oswald);
  font-size: 1.13rem;
}
.mobile-nav a {
  color: var(--primary);
  border-radius: 8px;
  padding: 12px 0 12px 0;
  transition: background 0.16s, color 0.16s;
  font-weight: 500;
  text-align: left;
}
.mobile-nav a:hover, .mobile-nav a.active {
  background: var(--secondary);
  color: var(--primary);
}

@media (max-width: 899px) {
  header nav {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}

/* Overlay while mobile menu open */
.mobile-menu-backdrop {
  display: none;
  content: '';
  background: rgba(16,19,30,0.37);
  position: fixed;
  inset: 0;
  z-index: 230;
  transition: opacity 0.22s;
}
.mobile-menu.open + .mobile-menu-backdrop {
  display: block;
  opacity: 1;
}

/* ===============================
 Typography
=============================== */
h1, h2, h3, h4, h5 {
  font-family: var(--oswald);
  font-weight: 700;
  color: var(--dark);
  line-height: 1.18;
  letter-spacing: 1.1px;
  margin-bottom: 10px;
}
h1 {
  font-size: var(--headline-size-lg);
  margin-bottom: 18px;
}
h2 {
  font-size: var(--headline-size-md);
  margin-bottom: 10px;
}
h3 {
  font-size: var(--headline-size-sm);
  margin-bottom: 8px;
  font-weight: 600;
}
p, li {
  font-size: 1.02rem;
  color: var(--medium-gray);
  margin-bottom: 10px;
}
strong {
  font-weight: 700;
  color: var(--black);
}
.subheadline {
  font-size: 1.18rem;
  color: var(--primary);
  font-weight: 400;
  margin-bottom: 13px;
}

.section > .container > h1,
.section > .container > h2,
section > .container > h1,
section > .container > h2 {
  text-align: left;
}

@media (min-width: 1024px) {
  h1 {
    font-size: 3.25rem;
  }
  h2 {
    font-size: 2rem;
  }
  h3 {
    font-size: 1.3rem;
  }
  .subheadline {
    font-size: 1.28rem;
  }
}

/* ===============================
 Main Hero Section
=============================== */
.hero {
  background: var(--primary);
  background: linear-gradient(90deg, var(--primary) 81%, #232627 100%);
  color: var(--white);
  padding: 56px 0 48px 0;
  margin-bottom: 54px;
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  justify-content: center;
}
.hero h1 {
  color: var(--white);
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-shadow: 0 2px 16px rgba(23,51,89,0.10);
  margin-bottom: 18px;
}
.hero .subheadline {
  color: #dadada;
  font-weight: 400;
}
.hero .cta-button {
  margin-top: 24px;
  background: var(--secondary);
  color: var(--primary) !important;
  border: none;
  box-shadow: var(--shadow-strong);
}
.hero .cta-button:hover {
  background: var(--white);
  color: var(--primary) !important;
}

/* ================================
 Features, Service, About Grids
================================= */
.features, .services {
  background: var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
  margin-bottom: 60px;
  padding: 40px 0;
}
.features h2, .services h2 {
  text-align: left;
  color: var(--primary);
}
.feature-grid, .service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 18px;
  justify-content: flex-start;
}
.feature-item, .service-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px 22px;
  min-width: 220px;
  flex: 1 0 240px;
  min-height: 180px;
  gap: 15px;
  transition: box-shadow 0.18s, transform 0.14s;
  margin-bottom: 20px;
}
.feature-item:hover, .service-item:hover {
  box-shadow: var(--shadow-strong);
  transform: translateY(-3px) scale(1.03);
  z-index: 2;
}
.feature-item img, .service-item img {
  height: 38px;
  width: 38px;
  object-fit: contain;
  margin-bottom: 6px;
}
.feature-item h3, .service-item h3 {
  color: var(--primary);
  font-size: 1.11rem;
  margin-bottom: 2px;
}

@media (max-width: 767px) {
  .feature-grid, .service-list {
    flex-direction: column;
    gap: 18px;
  }
}

/* ===============================
  Card container, Cards, etc.
 =============================== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  padding: 30px 22px;
  position: relative;
  transition: box-shadow 0.16s, transform 0.15s;
}
.card:hover {
  box-shadow: var(--shadow-strong);
  transform: translateY(-2px) scale(1.025);
  z-index: 3;
}

.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;
    align-items: flex-start;
    gap: 16px;
  }
  .card-container, .content-grid {
    flex-direction: column;
    gap: 16px;
  }
}

.text-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
  flex: 2 1 410px;
}
.project-description, .project-highlights {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px 20px;
  margin-bottom: 24px;
  flex: 1 1 310px;
}
@media (max-width: 900px) {
  .project-description, .project-highlights {
    margin-bottom: 16px;
  }
  .content-wrapper {
    flex-direction: column;
    gap: 22px;
  }
}

/* ===============================
   Testimonial Cards
=============================== */
.testimonials {
  background: var(--accent);
  border-radius: var(--radius);
  padding: 40px 0;
  margin-bottom: 60px;
}
.testimonials h2 {
  color: var(--primary);
}
.testimonials .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 24px;
  justify-content: flex-start;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 28px 22px 22px 22px;
  background: var(--white);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  flex: 1 1 270px;
  min-width: 235px;
  margin-bottom: 20px;
  border-left: 4px solid var(--primary);
  transition: box-shadow .18s, transform .17s;
}
.testimonial-card:hover {
  box-shadow: var(--shadow-strong);
  transform: scale(1.025);
}
.testimonial-card p {
  color: var(--black);
  font-size: 1.06rem;
  font-style: italic;
  margin-bottom: 10px;
}
.testimonial-name {
  font-family: var(--oswald);
  color: var(--primary);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 1px;
}

/* ===============================
  Table Styles (Preise)
 =============================== */
.price-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 32px;
}
.price-table thead th {
  background: var(--primary);
  color: var(--white);
  padding: 19px 10px 11px 10px;
  font-family: var(--oswald);
  font-size: 1.06rem;
  text-align: left;
  letter-spacing: 1px;
}
.price-table tbody td {
  padding: 15px 10px;
  border-bottom: 1px solid var(--light-gray);
  font-family: var(--roboto);
  font-size: 1rem;
  color: var(--dark);
}
.price-table tr:last-child td {
  border-bottom: none;
}
.price-table tbody tr:hover {
  background: var(--accent);
}

/* ===============================
    Contact / Map section
=============================== */
.contact-details p {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.contact-details img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}
.map {
  background: var(--accent);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow-xs);
  margin-top: 14px;
}

/* ===============================
   Footer
=============================== */
footer {
  background: var(--primary);
  color: var(--white);
  padding: 32px 0 16px 0;
  margin-top: 40px;
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
footer a img {
  height: 41px;
}
footer nav {
  display: flex;
  flex-direction: row;
  gap: 18px;
  margin-top: 12px;
}
footer nav a {
  color: var(--white);
  font-family: var(--oswald);
  font-size: 1rem;
  transition: color .2s;
  opacity: 0.88;
  text-decoration: underline solid transparent;
}
footer nav a:hover, footer nav a:focus {
  color: var(--secondary);
  text-decoration: underline dotted var(--secondary);
}
.footer-contact {
  font-size: 0.98rem;
  text-align: center;
  margin-top: 7px;
  color: #e6e6e6;
}
.footer-contact a {
  color: #e6e6e6;
  text-decoration: underline dashed var(--secondary);
  transition: color .2s;
}
.footer-contact a:hover {
  color: var(--secondary);
}

@media (min-width: 700px) {
  footer .container {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    text-align: left;
  }
  .footer-contact {
    margin-top: 0;
    text-align: right;
  }
}

/* ===============================
 Legal & Info Sections
=============================== */
.legal {
  background: var(--white);
  padding: 44px 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
  margin-bottom: 60px;
}

/* ===============================
 Card/Section Spacing
=============================== */
.section, section {
  margin-bottom: 60px;
  padding: 40px 0 24px 0;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
}
.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;
  align-items: center;
  gap: 20px;
  padding: 20px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ===============================
 Confirmation Section
 =============================== */
.confirmation-section {
  align-items: center;
  text-align: center;
  background: var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
  padding: 44px 18px;
  gap: 30px;
}
.confirmation-section .cta-button {
  margin-top: 32px;
}

/* ===============================
 Responsive Adjustments
=============================== */
@media (max-width: 700px) {
  h1 { font-size: 1.38rem; }
  .container { padding: 0 8px; }
  section, .section { padding: 30px 0 10px 0; margin-bottom: 38px; }
  .features, .services, .testimonials { padding: 20px 0 20px 0; }
  .card, .feature-item, .service-item, .testimonial-card { padding: 18px 10px; min-width: 0; }
}

/* Extra: .about > .container > .content-wrapper */
.about > .container > .content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
@media (min-width: 900px) {
  .about > .container > .content-wrapper {
    flex-direction: row;
    gap: 60px;
  }
}

/* ===============================
 Button Styles & Interactivity
=============================== */
button, .cta-button {
  cursor: pointer;
  border: none;
  outline: none;
  font-family: var(--oswald);
  transition: box-shadow 0.18s, background 0.17s, color 0.15s, transform 0.17s;
}
button:active, .cta-button:active {
  transform: scale(0.97);
}

/* ===============================
 Cookie Consent Banner
=============================== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100vw;
  background: var(--white);
  color: var(--primary);
  box-shadow: 0 -2px 36px 0 rgba(23,51,89,0.18);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  z-index: 4010;
  padding: 18px 12px 16px 18px;
  font-size: 1rem;
  animation: slideInBanner 0.42s cubic-bezier(.16,.93,.49,1.1) 1;
}
@keyframes slideInBanner {
  from { transform: translateY(130%); opacity:0; }
  to { transform: translateY(0); opacity:1; }
}
.cookie-banner .banner-text {
  flex: 3 1 210px;
  color: var(--primary);
  font-size: 1rem;
  line-height: 1.5;
}
.cookie-banner .banner-actions {
  flex: 0 1 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.cookie-btn {
  border-radius: 7px;
  background: var(--primary);
  color: var(--white);
  padding: 7px 17px;
  font-size: .97rem;
  font-family: var(--oswald);
  font-weight: 600;
  border: none;
  transition: background 0.18s, color 0.12s, box-shadow .16s;
  margin-right: 2px;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: var(--secondary);
  color: var(--primary);
}
.cookie-btn.cookie-settings {
  background: var(--accent);
  color: var(--primary);
  border: 1.5px solid var(--primary);
}
.cookie-btn.cookie-settings:hover {
  border-color: var(--secondary);
  background: var(--light-gray);
  color: var(--primary);
}
@media (max-width: 650px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    font-size: 0.97rem;
    padding: 15px 7px 11px 9px;
  }
  .cookie-banner .banner-actions {
    gap: 8px;
  }
}

/* Cookie Consent Modal */
.cookie-modal {
  display: none;
  position: fixed;
  left: 50%; top: 50%;
  transform: translate(-50%, -60%) scale(.97);
  background: var(--white);
  box-shadow: 0 10px 90px 0 rgba(23,51,89,0.21);
  border-radius: var(--radius);
  z-index: 4100;
  min-width: 320px;
  max-width: 95vw;
  width: 402px;
  padding: 38px 30px 28px 30px;
  animation: fadeinModal .33s cubic-bezier(.16,.94,.44,1) 1;
}
@keyframes fadeinModal {
  from {opacity:0; transform: translate(-50%,-100%) scale(.95);}
  to {opacity:1; transform: translate(-50%,-60%) scale(1);}
}
.cookie-modal.open {
  display: block;
}
.cookie-modal h2 {
  font-size: 1.21rem;
  color: var(--primary);
  margin-bottom: 19px;
  text-align: left;
}
.cookie-modal ul {
  list-style: none;
  margin-bottom: 15px;
  padding-left: 0;
}
.cookie-modal li {
  margin-bottom: 11px;
  display: flex;
  align-items: center;
  gap: 13px;
  color: var(--black);
}
.cookie-toggle {
  appearance: none;
  width: 36px; height: 18px;
  background: var(--light-gray);
  border-radius: 9px;
  position: relative;
  outline: none;
  cursor: pointer;
  transition: background .18s;
}
.cookie-toggle:before {
  content: '';
  display: block;
  position: absolute;
  left: 2px; top: 2px;
  width: 14px; height: 14px;
  background: var(--gray);
  border-radius: 50%;
  transition: left .18s, background .18s;
}
.cookie-toggle:checked {
  background: var(--secondary);
}
.cookie-toggle:checked:before {
  left: 20px; background: var(--primary);
}
.cookie-modal .modal-actions {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  justify-content: flex-end;
}
.cookie-modal .cookie-btn {
  font-size: .97rem;
}
@media (max-width: 450px) {
  .cookie-modal {padding: 22px 8px 16px 8px; min-width: 200px; width: 96vw;}
}

/* ===============================
 Miscellaneous Forms & Elements
=============================== */
input, textarea, select {
  font-family: var(--roboto);
  font-size: 1rem;
  border: 1.3px solid var(--gray);
  border-radius: var(--radius);
  padding: 8px 11px;
  margin-bottom: 12px;
  background: var(--accent);
  transition: border 0.16s;
}
input:focus, textarea:focus, select:focus {
  border: 1.3px solid var(--primary);
  outline: none;
}

/* ===============================
 Scrollbar Styling (Webkit)
=============================== */
::-webkit-scrollbar {
  width: 9px;
  background: var(--light-gray);
}
::-webkit-scrollbar-thumb {
  background: var(--gray);
  border-radius: 7px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* ===============================
  Microinteractions
 =============================== */
.card,
.feature-item,
.service-item,
.testimonial-card,
.cta-button,
.cookie-btn {
  will-change: box-shadow, transform;
}

/* Focus Outlines for Accessibility */
:focus-visible {
  outline: 2px solid var(--secondary) !important;
  outline-offset: 2.5px;
}

/* ===============================
  Z-Index Stacking
 =============================== */
header { z-index: 101; }
.mobile-menu { z-index: 250; }
.cookie-banner { z-index: 4010; }
.cookie-modal { z-index: 4100; }

/* ===============================
  Prevent Card Overlapping
 =============================== */
.card, .feature-item, .service-item, .testimonial-card {
  z-index: 1;
}

/* ========== End ============= */
