/* ==================== 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;
}
body {
  line-height: 1;
  min-height: 100vh;
  background: #232C3B;
  color: #f5f6fa;
}
ol, ul {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* ==================== VARIABLES ==================== */
:root {
  --primary: #334155;
  --secondary: #B6C3B2;
  --accent: #FFCF8B;
  --surface: #232C3B;
  --surface-light: #334155;
  --surface-card: #273048;
  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Open Sans', Arial, Helvetica, sans-serif;
  --shadow-default: 0 6px 32px rgba(20,25,40,0.25);
  --radius: 18px;
  --neon-glow: 0 0 16px #ffcf8b99;
  --focus-outline: 0 0 0 2px var(--accent);
}

/* ==================== TYPOGRAPHY ==================== */
body {
  font-family: var(--font-body);
  font-size: 16px;
  background: linear-gradient(120deg, #232C3B 0%, #334155 70%);
  color: #f5f6fa;
  letter-spacing: .01em;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 24px;
}
h1 {
  font-size: 2.25rem;
  line-height: 1.15;
}
h2 {
  font-size: 1.6rem;
  line-height: 1.2;
}
h3 {
  font-size: 1.20rem;
  margin-bottom: 14px;
  color: var(--secondary);
}
h4, h5, h6 {
  font-size: 1.08rem;
}
p, li, address, span, strong {
  color: #f5f6fa;
  line-height: 1.7;
  font-size: 1rem;
}
strong {
  color: var(--accent);
  font-weight: 600;
}

/* ============= GLOBAL LAYOUT CONTAINERS ============= */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding-left: 18px;
  padding-right: 18px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* ==================== HEADER / NAVIGATION ==================== */
header {
  width: 100%;
  background: var(--surface-light);
  box-shadow: var(--shadow-default);
  z-index: 110;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  height: 84px;
  gap: 32px;
  position: relative;
}
header img {
  height: 48px;
  width: auto;
  margin-right: 20px;
}
.main-nav {
  display: flex;
  flex-direction: row;
  gap: 20px;
  align-items: center;
}
.main-nav a {
  color: var(--secondary);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
  position: relative;
  padding: 6px 10px;
  border-radius: 6px;
  transition: color 0.2s;
}
.main-nav a:hover, 
.main-nav a:focus {
  color: var(--accent);
  background: rgba(255, 207, 139, 0.10);
}
.cta.primary {
  background: var(--accent);
  color: #232C3B;
  font-family: var(--font-display);
  font-weight: 600;
  padding: 12px 30px;
  border-radius: 25px;
  font-size: 1.10rem;
  box-shadow: var(--neon-glow);
  letter-spacing: .02em;
  transition: background 0.18s, color 0.18s, box-shadow .2s;
  border: none;
  outline: none;
  margin-left: 20px;
  cursor: pointer;
  position: relative;
  z-index: 2;
}
.cta.primary:hover, .cta.primary:focus {
  background: #ffaa1b;
  color: #232C3B;
  box-shadow: 0 0 12px #FFCF8B, 0 0 4px #FFCF8B;
}
.mobile-menu-toggle {
  display: none;
  font-size: 2rem;
  background: none;
  color: var(--accent);
  border: none;
  cursor: pointer;
  padding: 4px 12px;
  z-index: 120;
  transition: color .2s;
}
.mobile-menu-toggle:focus {
  outline: var(--focus-outline);
}

/* ============= MOBILE NAVIGATION ============= */
.mobile-menu {
  position: fixed;
  inset: 0 0 0 0;
  background: rgba(30,34,44,0.97);
  z-index: 200;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(.7,.12,.27,1.25);
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
  opacity: 1;
}
.mobile-menu-close {
  background: none;
  color: var(--accent);
  font-size: 2.3rem;
  border: none;
  position: absolute;
  top: 24px;
  right: 25px;
  cursor: pointer;
  z-index: 201;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 25px;
  margin-top: 110px;
  align-items: center;
}
.mobile-nav a {
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  padding: 13px 32px;
  transition: background 0.18s, color .18s;
  border-radius: 8px;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: rgba(255, 207, 139, 0.12);
  color: var(--secondary);
}

/* ==================== SECTIONS & SPACING ==================== */
.section, 
.hero, 
.features, 
.cta-info, 
.service-overview, 
.testimonial-preview,
.about-section, .usp-section,
.services-overview, .service-details, 
.cta-project, .project-showcase, .testimonials, 
.faq-section, .cta-more-questions, 
.contact-details, .cta-contact, 
.thank-you-section, .privacy-policy, .gdpr, .cookie-policy, .terms-conditions {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}
.hero {
  min-height: 350px;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #232C3B 0%, #273048 100%);
  box-shadow: 0 2px 36px 0 rgba(44, 61, 96, 0.09);
  border-radius: var(--radius);
  margin-top: 16px;
}

/* ================ CARD, FLEX CONTAINERS & SPACING RULES ================ */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--surface-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-default);
  margin-bottom: 20px;
  position: relative;
  padding: 32px 22px 26px 22px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  transition: box-shadow 0.22s, background 0.22s;
  border: 1.5px solid rgba(182,195,178, 0.09);
}
.card:hover, .card:focus-within {
  background: #313359;
  box-shadow: 0 0 22px 0 #FFCF8B11, var(--neon-glow);
}
.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;
  padding: 20px;
  border-radius: var(--radius);
  background: #fff6ef;
  color: #2d3139;
  box-shadow: 0 1px 16px rgba(50,30,0,0.13);
  max-width: 570px;
  margin-bottom: 20px;
  border-left: 5px solid var(--accent);
  transition: box-shadow .22s, border-color .22s;
}
.testimonial-card p, .testimonial-meta {
  color: #252525;
}
.testimonial-card:hover {
  box-shadow: 0 4px 35px #FFCF8B33, 0 1px 16px rgba(80,40,0,0.12);
  border-left: 5px solid #efb65e;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ================ LIST & FEATURE STYLES ================ */
.features ul, .usp-section ul, .service-overview ul, .services-overview ul {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  padding: 0;
}
.features ul li, .usp-section ul li, .service-overview ul li, .services-overview ul li {
  background: var(--surface-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-default);
  padding: 32px 24px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  min-width: 260px;
  gap: 15px;
  flex: 1 1 260px;
  border: 1px solid rgba(255,255,255,0.04);
  transition: box-shadow .22s, background .22s;
  font-size: 1rem;
}
.features ul li:hover, .service-overview ul li:hover, .usp-section ul li:hover, .services-overview ul li:hover {
  background: #313359;
  box-shadow: 0 0 8px 0 var(--accent), var(--neon-glow);
}
.features ul li h3,
.service-overview ul li strong, 
.services-overview ul li strong {
  color: var(--accent);
  font-size: 1.18rem;
  margin-bottom: 6px;
  font-weight: 700;
}
.features ul li img, .service-overview ul li img, .services-overview ul li img {
  height: 42px;
  margin-bottom: 10px;
  filter: drop-shadow(0 0 8px #ffcf8bcc);
}
.usp-section ul li::before {
  content: '';
  display: block;
  height: 0.9em;
  width: 0.35em;
  background: var(--accent);
  border-radius: 3px;
  margin-bottom: 8px;
}

.certifications {
  display: flex;
  gap: 20px;
  align-items: center;
}
.certifications img {
  height: 48px;
  filter: brightness(1.04) drop-shadow(0 0 10px #FFCF8B);
}

/* =================== CTA INFO, PROJECT, CONTACT SECTIONS ================ */
.cta-info, .cta-project, .cta-contact, .testimonial-cta, .cta-more-questions {
  background: linear-gradient(90deg, #232C3B 80%, #334155 100%);
  border-radius: var(--radius);
  box-shadow: 0 2px 32px rgba(44, 60, 110, 0.08);
  display: flex;
  align-items: center;
  padding: 38px 20px 44px 20px;
}
.cta-info .cta.primary, .cta-project .cta.primary, .cta-contact .cta.primary, .testimonial-cta .cta.primary, .cta-more-questions .cta.primary {
  margin-top: 10px;
  align-self: flex-start;
}

/* =================== FAQ =================== */
.faq-item {
  background: var(--surface-card);
  border-radius: var(--radius);
  margin-bottom: 20px;
  box-shadow: var(--shadow-default);
  padding: 28px 20px 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.faq-item h2 {
  font-size: 1.13rem;
  margin-bottom: 0;
  color: var(--accent);
}

/* =================== FOOTER =================== */
footer {
  background: #1a1e26;
  padding: 40px 0 20px 0;
  line-height: 1.77;
  font-size: 1rem;
}
footer .container {
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.footer-nav {
  display: flex;
  flex-direction: row;
  gap: 16px;
  justify-content: center;
  margin-bottom: 10px;
}
.footer-nav a {
  color: var(--secondary);
  font-family: var(--font-display);
  font-size: 1rem;
  padding: 3px 10px;
  border-radius: 4px;
  transition: color 0.2s, background 0.15s;
}
.footer-nav a:hover {
  background: var(--accent);
  color: #232C3B;
}
address {
  color: #bac7da;
  font-size: 0.97rem;
  margin-bottom: 6px;
  text-align: center;
}
footer p {
  font-size: 0.89rem;
  color: #a2a6b5;
  margin-top: 10px;
  text-align: center;
}

/* =================== GENERAL ANIMATIONS / HOVERS =================== */
section, .card, .testimonial-card, .faq-item, .cta-info, .cta-project, .cta-contact, .project-showcase, .content-wrapper {
  transition: box-shadow .16s, background .14s;
}
a, button, .cta.primary {
  transition: color .16s, background .18s, box-shadow .24s;
}
.card:hover, .testimonial-card:hover, .features ul li:hover {
  box-shadow: 0 0 24px #FFCF8B1a, 0 2px 12px #232C3B;
}
a:focus, button:focus {
  outline: none;
  box-shadow: var(--focus-outline);
}

/* =================== CUSTOM SCROLLBAR =================== */
::-webkit-scrollbar { width: 8px; background: #232C3B; }
::-webkit-scrollbar-thumb { background: #334155; border-radius: 4px; }

/* =================== COOKIE CONSENT BANNER =================== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: linear-gradient(90deg,#232C3B 70%,#334155 100%);
  color: #dbdbdb;
  z-index: 9500;
  box-shadow: 0 -6px 36px #232C3Bab;
  border-top: 3px solid var(--accent);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 24px 26px 18px 26px;
  gap: 26px;
  font-family: var(--font-body);
  font-size: 1rem;
  animation: cookiebannerin .4s cubic-bezier(.66,.08,.38,1.03);
}
@keyframes cookiebannerin {
  from { transform: translateY(110px); opacity:0; }
  to { transform: translateY(0); opacity:1; }
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 16px;
  flex-wrap: wrap;
}
.cookie-banner button {
  border-radius: 12px;
  font-size: 1.01rem;
  padding: 9px 18px;
  font-family: var(--font-display);
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background .17s, color .17s, box-shadow .14s;
}
.cookie-banner .accept-btn {
  background: var(--accent);
  color: #232C3B;
  box-shadow: 0 0 14px #FFCF8B33;
}
.cookie-banner .accept-btn:hover {
  background: #ffaa1b;
}
.cookie-banner .reject-btn {
  background: #334155;
  color: #FFCF8B;
  border: 1.5px solid #FFCF8B99;
}
.cookie-banner .reject-btn:hover {
  background: #232C3B;
  color: var(--accent);
}
.cookie-banner .settings-btn {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}
.cookie-banner .settings-btn:hover {
  background: var(--accent);
  color: #232C3B;
}

/* =================== COOKIE MODAL =================== */
.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 12000;
  background: rgba(44,49,69,0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .24s;
}
.cookie-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal {
  background: #232C3B;
  border-radius: 19px;
  padding: 36px 32px 22px 32px;
  width: 95%;
  max-width: 440px;
  box-shadow: var(--neon-glow), var(--shadow-default);
  display: flex;
  flex-direction: column;
  gap: 20px;
  color: #fff7ee;
  position: relative;
  animation: cookiemodalfade .32s cubic-bezier(.5,.05,.8,.97);
}
@keyframes cookiemodalfade {
  from { scale: .95; opacity: 0; }
  to   { scale: 1; opacity: 1; }
}
.cookie-modal h2 {
  font-size: 1.28rem;
  color: var(--accent);
  margin-bottom: 12px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 0;
}
.cookie-category input[type=checkbox] {
  accent-color: var(--accent);
  width: 18px;
  height: 18px;
}
.cookie-category label {
  font-size: 1.04rem;
  color: var(--secondary);
}
.cookie-modal .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 15px;
}
.cookie-modal .close-modal {
  position: absolute;
  top: 13px;
  right: 17px;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--accent);
  cursor: pointer;
  z-index: 2;
}

/* =================== RESPONSIVE DESIGN =================== */
@media (max-width: 1024px) {
  header .container {
    height: unset;
    flex-wrap: wrap;
    gap: 12px;
  }
  .main-nav {
    gap: 14px;
  }
}
@media (max-width: 900px) {
  .main-nav {
    gap: 8px;
    font-size: .9rem;
  }
  .cta.primary {
    padding: 11px 18px;
    font-size: 1rem;
    margin-left: 8px;
  }
}
@media (max-width: 800px) {
  .footer-nav {
    flex-direction: column;
    gap: 8px;
  }
}
@media (max-width: 768px) {
  header .container {
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;
    height: 70px;
    gap: 14px;
  }
  .main-nav {
    display: none;
  }
  .cta.primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }

  .section, .hero, .features, .cta-info, .service-overview, .testimonial-preview, 
  .about-section, .usp-section,
  .services-overview, .service-details,
  .project-showcase, .cta-project, .contact-details, 
  .cta-contact, .thank-you-section, .privacy-policy, .gdpr, .cookie-policy, .terms-conditions {
    padding: 28px 6px;
    margin-bottom: 34px;
  }
  .card {
    padding: 18px 10px 15px 10px;
  }
  .features ul, .usp-section ul, .service-overview ul, .services-overview ul {
    flex-direction: column;
    gap: 16px;
  }
  .card-container, .content-grid {
    flex-direction: column;
    gap: 14px;
  }
  .testimonial-card {
    max-width: 100%;
    padding: 14px 10px 13px 10px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 16px;
  }
  .content-wrapper,
  .about-section .content-wrapper {
    gap: 18px;
  }
  .cookie-banner {
    flex-direction: column;
    gap: 19px;
    padding: 17px 8px 14px 10px;
  }
  .cookie-modal {
    padding: 18px 8px 12px 8px;
  }
}
@media (max-width: 525px) {
  h1 {
    font-size: 1.39rem;
    margin-bottom: 19px;
  }
  h2 {
    font-size: 1.1rem;
    margin-bottom: 15px;
  }
  .cta.primary {
    font-size: .97rem;
  }
  .testimonial-card {
    font-size: 0.96rem;
  }
}

/* =================== UTILITY CLASSES =================== */
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-0 { margin-top: 0 !important; }
.mt-16 { margin-top: 16px; }
.mb-0 { margin-bottom: 0 !important; }
.mb-24 { margin-bottom: 24px; }

/**** END THEME: GrillRimpi Handwerksmeister Futuristic Tech Inspired ****/