/* ========================
   CSS RESET & NORMALIZE
   ======================== */
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  margin: 0;
  background-color: #F4F4F0;
  color: #2B3B4F;
  font-family: 'Source Sans Pro', 'Georgia', Times, serif;
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
img, svg {
  max-width: 100%;
  display: block;
  height: auto;
}
a {
  color: #2B3B4F;
  text-decoration: none;
  transition: color 0.2s;
}
a:focus { outline: 2px solid #DF9326; outline-offset: 2px; }

/* ========================
   BRAND COLORS & TYPOGRAPHY
   ======================== */
:root {
  --color-primary: #2B3B4F;
  --color-secondary: #DF9326;
  --color-accent: #F4F4F0;
  --color-white: #fff;
  --color-grey: #e7e4db;
  --color-shadow: rgba(32,36,38,0.07);
  --font-display: 'Montserrat', 'Georgia', Times, serif;
  --font-body: 'Source Sans Pro', 'Georgia', Times, serif;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--color-primary);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 0.6em;
}
h1 {font-size: 2.5rem; margin-bottom: 20px; letter-spacing: .01em;}
h2 {font-size: 2rem; margin-bottom: 18px;}
h3 {font-size: 1.35rem; margin-bottom: 14px;}
h4 {font-size: 1.12rem;}
p, ul, ol, address {
  font-size: 1rem;
  margin-bottom: 18px;
  font-family: var(--font-body);
  color: #35342d;
}
strong { font-weight: 600; }

/* Elegant Typography Adjustments */
h1, h2, h3, h4 {
  letter-spacing: .02em;
}
ul, ol {
  padding-left: 22px;
}
ul {
  list-style: disc inside;
  margin-bottom: 18px;
}
ol {
  list-style: decimal inside;
  margin-bottom: 18px;
}

/* ========================
   LAYOUT CONTAINER
   ======================== */
.container {
  width: 100%;
  max-width: 1200px;
  padding: 0 20px;
  margin-left: auto;
  margin-right: auto;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* =========================
   SECTION & SPACING
   ========================= */
section {
  margin-bottom: 60px;
  padding: 40px 0 0 0;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  position: relative;
  margin-bottom: 20px;
  background: var(--color-white);
  border-radius: 15px;
  box-shadow: 0 2px 12px var(--color-shadow);
  padding: 32px 26px;
  transition: box-shadow .2s, transform .2s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 4px 32px 0 rgba(32,36,48,0.13);
  transform: translateY(-7px);
}

.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: 20px;
  background: var(--color-accent);
  color: var(--color-primary);
  padding: 20px 30px 20px 30px;
  border-radius: 13px;
  box-shadow: 0 1px 8px var(--color-shadow);
  margin-bottom: 20px;
  min-width: 290px;
  max-width: 480px;
}

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

/* HERO SECTION */
.hero {
  background: var(--color-white);
  padding: 60px 0 50px 0;
  min-height: 340px;
  display: flex;
  align-items: center;
  margin-bottom: 48px;
}
.hero h1 {
  font-size: 2.5rem;
  margin-top: 0;
}
.hero p {
  font-size: 1.15rem;
  color: #35342d;
  margin-bottom: 22px;
}
.hero .cta-btn {
  font-size: 1.1rem;
}

/* FEATURES & SERVICES (Leistungen/index) */
.features .content-wrapper,.services .content-wrapper {
  gap: 32px;
}
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: flex-start;
}
.feature {
  background: var(--color-white);
  border-radius: 13px;
  box-shadow: 0 2px 10px var(--color-shadow);
  padding: 28px 22px 20px 22px;
  min-width: 240px;
  max-width: 340px;
  flex: 1 1 250px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow 0.2s, transform 0.2s;
}
.feature img {
  width: 42px;
  height: 42px;
  margin-bottom: 14px;
}
.feature h3 {
  font-size: 1.18rem;
  color: var(--color-secondary);
  margin-bottom: 8px;
}
.feature:hover, .feature:focus-within {
  box-shadow: 0 4px 28px 0 rgba(32,36,38,0.15);
  transform: translateY(-4px);
}

.service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: flex-start;
}
.service-item {
  background: var(--color-white);
  border-radius: 16px;
  box-shadow: 0 2px 14px var(--color-shadow);
  padding: 30px 22px 26px 22px;
  min-width: 235px;
  max-width: 370px;
  flex: 1 1 250px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 20px;
  gap: 11px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.service-item:hover, .service-item:focus-within {
  box-shadow: 0 4px 32px 0 rgba(32,36,48,0.12);
  transform: translateY(-5px);
}
.service-item img {
  width: 38px;
  height: 38px;
  margin-bottom: 12px;
}
.service-item h3 {
  font-size: 1.14rem;
  color: var(--color-primary);
  margin-bottom: 7px;
  font-weight: 600;
}
.service-price {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--color-secondary);
  font-weight: 500;
  letter-spacing: 0.03em;
  margin-top: 6px;
}

/* PROJECTS OVERVIEW */
.project-overview .project-item {
  background: var(--color-white);
  border-radius: 13px;
  box-shadow: 0 2px 10px var(--color-shadow);
  padding: 28px 20px 20px 24px;
  margin-bottom: 24px;
  min-width: 240px;
  flex: 1 1 250px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.project-stats p {
  font-family: var(--font-display);
  color: var(--color-secondary);
  font-size: 1.15rem;
  margin-bottom: 12px;
}

/* =====================
   NAVIGATION (Desktop)
   ===================== */
header {
  background: var(--color-white);
  border-bottom: 1px solid #e8e5db;
  position: sticky;
  top: 0;
  z-index: 20;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 86px;
}
header img {
  height: 52px;
  width: auto;
  margin-right: 30px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}
.main-nav a {
  font-family: var(--font-display);
  font-size: 1.02rem;
  padding: 6px 10px;
  color: var(--color-primary);
  letter-spacing: 0.03em;
  border-radius: 5px;
  transition: color 0.15s, background 0.18s;
}
.main-nav a:hover,
.main-nav a:focus {
  background: var(--color-accent);
  color: var(--color-secondary);
}
.main-nav .cta-btn {
  background: var(--color-secondary);
  color: var(--color-white)!important;
  padding: 7px 21px;
  border-radius: 7px;
  font-weight: 700;
  margin-left: 22px;
  transition: background 0.17s, box-shadow 0.22s;
  box-shadow: 0 2px 6px var(--color-shadow);
}
.main-nav .cta-btn:hover, .main-nav .cta-btn:focus {
  background: #b86706;
  color: var(--color-white);
  box-shadow: 0 6px 32px 0 rgba(219,148,38,0.11);
}

/* Hamburger Icon (mobile only) */
.mobile-menu-toggle {
  display: none;
  font-size: 2.2rem;
  background: none;
  color: var(--color-primary);
  border: none;
  cursor: pointer;
  margin-left: 18px;
  transition: color 0.15s;
}
.mobile-menu-toggle:focus {
  color: var(--color-secondary);
}

/* ====================
   MOBILE NAV
   ==================== */
@media (max-width: 1024px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
    z-index: 40;
  }
}
.mobile-menu {
  position: fixed;
  z-index: 1020;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--color-white);
  transform: translateX(-101vw);
  transition: transform 0.38s cubic-bezier(.7,0,.2,1);
  box-shadow: 0 4px 36px rgba(32,36,38,0.13);
  display: flex;
  flex-direction: column;
  gap: 0;
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  display: block;
  align-self: flex-end;
  margin: 24px 26px 0 0;
  font-size: 2.2rem;
  background: none;
  border: none;
  color: var(--color-primary);
  cursor: pointer;
  transition: color 0.2s;
  z-index: 1040;
}
.mobile-menu-close:focus {
  color: var(--color-secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 32px;
  padding-left: 32px;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--color-primary);
  padding: 10px 0 10px 2px;
  border-radius: 6px;
  transition: background 0.14s, color 0.16s;
  display: block;
  min-width: 170px;
}
.mobile-nav a:active, .mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-accent);
  color: var(--color-secondary);
}

@media (max-width: 768px) {
  header .container {
    height: 70px;
    padding: 0 12px;
  }
  header img {
    height: 40px;
  }
  .mobile-nav {
    font-size: 1.11rem;
    padding-left: 14px;
  }
  .hero {
    padding: 36px 0 30px 0;
    min-height: 180px;
  }
}

/* Hide/Show Mobile Menu on Small Screens Only */
@media (min-width: 1025px) {
  .mobile-menu {
    display: none!important;
  }
}

/* ========================
   FOOTER
   ======================== */
footer {
  background: var(--color-primary);
  color: var(--color-accent);
  padding: 38px 0 24px 0;
  margin-top: 54px;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 36px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-nav a {
  color: var(--color-accent);
  font-family: var(--font-display);
  font-size: 1rem;
  margin-bottom: 2px;
  transition: color 0.16s;
}
.footer-nav a:hover,
.footer-nav a:focus {
  color: var(--color-secondary);
}
.footer-contact {
  font-family: var(--font-body);
  font-size: 0.96rem;
  color: var(--color-accent);
  background-color: #dedbd5;
}
.footer-contact a {
  color: var(--color-secondary);
  text-decoration: underline;
}
footer img {
  height: 44px;
  margin-bottom: 13px;
}

@media (max-width: 900px) {
  footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}

/* =====================
   CTA BUTTONS
   ===================== */
.cta-btn {
  background: var(--color-secondary);
  color: var(--color-white)!important;
  padding: 12px 32px;
  border-radius: 7px;
  font-family: var(--font-display);
  font-size: 1.14rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border: none;
  box-shadow: 0 2px 10px var(--color-shadow);
  transition: background 0.18s, color 0.16s, transform 0.15s, box-shadow 0.19s;
  cursor: pointer;
  display: inline-block;
  margin-top: 10px;
  margin-bottom: 15px;
}
.cta-btn:hover, .cta-btn:focus {
  background: #b86706;
  color: var(--color-white)!important;
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 4px 24px 0 rgba(219,148,38,0.13);
}

/* ============================
   TABLES (Preise Page)
   ============================ */
.pricing-table table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-white);
  border-radius: 13px;
  box-shadow: 0 2px 10px var(--color-shadow);
  overflow: hidden;
  margin-bottom: 20px;
}
.pricing-table th, .pricing-table td {
  padding: 15px 12px;
  text-align: left;
  font-family: var(--font-body);
  font-size: 1rem;
}
.pricing-table th {
  background: var(--color-accent);
  font-family: var(--font-display);
  color: var(--color-primary);
}
.pricing-table tr:nth-child(even) td {
  background: #fafafa;
}
.pricing-table tr:hover td {
  background: var(--color-accent);
}

.pricing-table .disclaimer {
  font-size: 0.96rem;
  color: #5d5d51;
  margin-top: 10px;
}

/* =====================
   USP/Timeline LISTS
   ===================== */
.usp ul, .timeline ul, .faq ul {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: transparent;
  padding-left: 0;
  list-style: disc inside;
}
.usp ul li, .timeline ul li, .faq ul li {
  font-family: var(--font-body);
  font-size: 1.07rem;
  color: #3f3e36;
  background: transparent;
  padding-left: 0;
  margin-bottom: 0;
}
.usp ul li strong { color: var(--color-secondary); }

/* FAQs */
.faq ul li {
  background: var(--color-accent);
  padding: 13px 18px;
  border-radius: 8px;
}

/* ==========================
   TESTIMONIALS
   ========================== */
.testimonials .testimonial-card {
  flex: 1 1 320px;
  margin-bottom: 20px;
  border-left: 7px solid var(--color-secondary);
  background: var(--color-accent);
  color: var(--color-primary);
  box-shadow: 0 2px 12px var(--color-shadow);
  padding: 18px 28px 22px 26px;
}
.testimonial-meta {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 1rem;
  font-family: var(--font-display);
  margin-top: 10px;
  color: var(--color-primary);
}
.testimonial-meta strong {
  color: var(--color-secondary);
  font-size: 1.08rem;
  font-weight: 600;
}
.testimonial-meta span {
  color: #6f6e62;
  font-weight: 400;
  font-size: 0.98rem;
}
.stars {
  display: flex;
  align-items: center;
  gap: 2px;
}
.stars img {
  width: 20px;
  height: 20px;
}

/* ==========================
   PROCESS STEPS
   ========================== */
.process .steps {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-left: 0;
}
.process .steps li {
  display: flex;
  align-items: center;
  gap: 15px;
  background: var(--color-accent);
  border-radius: 13px;
  padding: 12px 18px;
  font-size: 1.04rem;
  font-family: var(--font-body);
}
.process .steps img {
  width: 30px; height: 30px;
  display: block;
}

/* =====================
   MAP & CONTACT INFO
   ===================== */
.contact-info ul {
  display: flex;
  flex-direction: column;
  gap: 20px;
  list-style: none;
  background: var(--color-white);
  padding: 24px 22px;
  border-radius: 14px;
  box-shadow: 0 1px 7px var(--color-shadow);
}
.contact-info li {
  display: flex;
  align-items: center;
  gap: 18px;
  font-family: var(--font-body);
  font-size: 1.07rem;
  color: var(--color-primary);
}
.contact-info img {
  width: 23px;
  height: 23px;
}

/* =====================
   LEGAL SECTIONS (gdpr, datenschutz, cookie, agb)
   ===================== */
.legal {
  background: var(--color-accent);
  border-radius: 13px;
  padding: 38px 28px 34px 28px;
  margin-bottom: 48px;
  box-shadow: 0 2px 15px var(--color-shadow);
}
.legal address {
  font-style: normal;
  color: #35342d;
  margin-bottom: 10px;
  font-family: var(--font-body);
  line-height: 1.6;
}

/* =====================
   THANK YOU PAGE
   ===================== */
.thankyou .content-wrapper {
  align-items: center;
  text-align: center;
  gap: 21px;
}
.thankyou h1 {
  color: var(--color-secondary);
}
.thankyou .cta-btn {
  margin-top: 16px;
}

/* =====================
   COOKIE BANNER & MODAL
   ===================== */
#cookie-consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-white);
  box-shadow: 0 -4px 32px var(--color-shadow);
  padding: 24px 18px 24px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  z-index: 9000;
  animation: fadeInBanner 0.48s ease;
  border-top: 1px solid #e7e4db;
}
@keyframes fadeInBanner {
  from { opacity: 0; transform: translateY(70px); }
  to   { opacity: 1; transform: translateY(0); }
}
#cookie-consent-banner p {
  font-size: 0.97rem;
  color: #35342d;
  margin-bottom: 0;
  text-align: center;
}
.cookie-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 7px;
}
.cookie-accept-btn,
.cookie-reject-btn,
.cookie-settings-btn {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  padding: 8px 24px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  margin: 0 2px;
  transition: background 0.18s, color 0.15s, transform 0.15s, box-shadow 0.17s;
}
.cookie-accept-btn {
  background: var(--color-secondary);
  color: var(--color-white);
}
.cookie-accept-btn:hover,
.cookie-accept-btn:focus {
  background: #b86706;
  color: var(--color-white);
  transform: translateY(-1px) scale(1.05);
}
.cookie-reject-btn {
  background: #cac2ad;
  color: var(--color-primary);
}
.cookie-reject-btn:hover,
.cookie-reject-btn:focus {
  background: #BFBDAF;
  color: #634200;
}
.cookie-settings-btn {
  background: var(--color-accent);
  color: var(--color-secondary);
  border: 1px solid var(--color-secondary);
}
.cookie-settings-btn:hover,
.cookie-settings-btn:focus {
  background: var(--color-secondary);
  color: var(--color-white);
}

/* Cookie Modal */
#cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; right:0; bottom:0;
  width: 100vw; height: 100vh;
  background: rgba(43,59,79,0.3);
  z-index: 11000;
  display: none;
}
#cookie-modal-overlay.active {
  display: block;
}
#cookie-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%) scale(0.97);
  min-width: 340px;
  max-width: 95vw;
  background: var(--color-white);
  border-radius: 16px;
  box-shadow: 0 4px 44px 0 rgba(43,59,79, 0.30);
  padding: 38px 28px 30px 28px;
  z-index: 12001;
  display: none;
  animation: modalIn 0.28s cubic-bezier(.66,.33,0,.94);
}
@keyframes modalIn {
  from { opacity:0; transform: translate(-50%,-40%) scale(0.93); }
  to { opacity:1; transform: translate(-50%,-50%) scale(1); }
}
#cookie-modal-overlay.active #cookie-modal {
  display: block;
}
#cookie-modal h2 {
  font-size: 1.4rem; margin-bottom: 10px;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 17px;
  margin: 12px 0 23px 0;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-display);
}
.cookie-category input[type="checkbox"] {
  appearance: none;
  width: 22px;
  height: 22px;
  border: 2px solid var(--color-secondary);
  border-radius: 7px;
  margin-right: 2px;
  background: #faf8f1;
  position: relative;
  cursor: pointer;
}
.cookie-category input[type="checkbox"]:checked {
  background: var(--color-secondary);
  border-color: var(--color-secondary);
}
.cookie-category input[type="checkbox"]:checked:after {
  content: '\2713';
  position: absolute;
  left: 4px; top: 1px;
  font-size: 1.19rem;
  color: var(--color-white);
}
.cookie-category label {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--color-primary);
}
.cookie-category .disabled {
  color: #aaaaaa;
  font-style: italic;
}
.cookie-modal-buttons {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
}

/* ========================
   RESPONSIVE
   ======================== */
@media (max-width: 1024px) {
  .feature-grid,.service-list,.card-container,
  .content-grid {
    flex-wrap: wrap;
    gap: 18px;
  }
  .feature,.service-item,.card {
    min-width: 180px;
    max-width: 99vw;
  }
  .testimonials .content-wrapper {
    flex-direction: column;
    gap: 16px;
  }
}
@media (max-width: 820px) {
  h1 {font-size: 2rem;}
  h2 {font-size: 1.45rem;}
  .feature-grid,.service-list {
    flex-direction: column;
    gap: 18px;
  }
  .feature,.service-item,.card {
    min-width: 99vw;
    max-width: 99vw;
  }
  .project-overview .project-item {
    min-width: 99vw;
  }
  section { padding-left: 10px; padding-right: 10px; }
}
@media (max-width: 768px) {
  h1 {font-size: 1.3rem;}
  h2 {font-size: 1.12rem;}
  .container, .section {
    padding-left: 7px;
    padding-right: 7px;
  }
  .footer-contact, .footer-nav {
    font-size: 0.93rem;
  }
  .hero { min-height: 86px; }
  .testimonials .testimonial-card {
    min-width: 170px;
    padding: 10px 8px 14px 10px;
  }
  .feature,.service-item,.card {
    padding: 18px 8px 12px 12px;
    border-radius: 8px;
  }
  .thankyou .content-wrapper {padding-left: 0; padding-right: 0;}
  .footer-contact, .footer-nav {margin-bottom: 10px;}
}
@media (max-width: 660px) {
  .feature-grid, .service-list, .card-container, .content-grid {
    flex-direction: column;
    gap: 10px;
  }
  .feature,.service-item,.card {
    min-width: 98vw;
    max-width: 98vw;
    padding: 10px 5px 10px 7px;
    border-radius: 7px;
  }
  .contact-info ul {padding: 14px 7px;}
  .footer-contact {
    font-size: 0.85rem;
  }
}
@media (max-width: 480px) {
  html { font-size: 15px; }
  h1 {font-size: 1.01rem;}
  h2 {font-size: 0.99rem;}
  .footer-contact {
    font-size: 0.74rem;
  }
  .cta-btn {
    font-size: 1.02rem;
    padding: 11px 13px;
  }
}

/* =====================
   UTILITIES
   ===================== */
.visually-hidden {
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

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