/* Hilltop Stilagentur: Minimalist Modern Flexbox CSS */

/* -------------- CSS RESET & NORMALISATION -------------- */
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, 
main, 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;
}
html, body { height: 100%; }
article, aside, details, figcaption, figure, 
footer, header, hgroup, main, menu, nav, section {
  display: block;
}
body { line-height: 1.5; background: #F5F5F2; color: #243147; }
ol, ul { list-style: none; }
blockquote, q { quotes: none; }
blockquote:before, blockquote:after,
q:before, q:after { content: ''; content: none; }
table { border-collapse: collapse; border-spacing: 0; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; background: none; border: none; }

/* -------------- BRAND FONTS -------------- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&family=Open+Sans:wght@400;600&display=swap');

body {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 16px;
  background: #F5F5F2;
  color: #243147;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #243147;
  font-weight: 700;
  line-height: 1.1;
}
h1 { font-size: 2.5rem; margin-bottom: 24px; }
h2 { font-size: 2rem; margin-bottom: 20px; }
h3 { font-size: 1.4rem; margin-bottom: 14px; }
h4 { font-size: 1.15rem; margin-bottom: 8px; }
p, ul, ol, blockquote {
  font-size: 1rem;
  color: #243147;
  margin-bottom: 16px;
}
strong { font-weight: bold; }

blockquote {
  border-left: 4px solid #A1B2C3;
  color: #243147;
  background: #fff;
  padding: 18px 24px;
  font-style: italic;
  box-shadow: 0 4px 24px rgba(36,49,71,0.04);
  margin-bottom: 16px;
  border-radius: 8px;
}
cite {
  font-style: normal;
  font-size: 0.99rem;
  color: #A1B2C3;
  padding-left: 6px;
}

/* -------------- CONTAINERS & LAYOUT -------------- */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 16px rgba(36,49,71,0.06);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 270px;
  transition: box-shadow 0.18s cubic-bezier(.4,0,.2,1), transform 0.16s cubic-bezier(.4,0,.2,1);
}
.card:hover {
  box-shadow: 0 8px 32px rgba(36,49,71,0.10);
  transform: translateY(-2px) scale(1.015);
}

.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;
  margin-bottom: 40px;
}

.text-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 22px;
}

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

.features .content-wrapper ul,
.services-overview .content-wrapper ul {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-left: 0;
}
.features .content-wrapper ul li,
.services-overview .content-wrapper ul li {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  box-shadow: 0 2px 16px rgba(36,49,71,0.04);
  border-radius: 8px;
  padding: 14px 16px;
}
.features .content-wrapper ul li img {
  width: 28px;
  height: 28px;
  display: inline-block;
}

/* Service Cards Grid (leistungen) */
.service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.service-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 14px rgba(36,49,71,0.06);
  padding: 24px 18px;
  flex: 1 1 280px;
  min-width: 220px;
  max-width: 310px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
  transition: box-shadow 0.17s, transform 0.13s;
}
.service-card:hover {
  box-shadow: 0 8px 38px rgba(36,49,71,0.12);
  transform: translateY(-2px) scale(1.020);
}

/* Cards & Grids */
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

.card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

/* -------------- HERO / CTA BANNER -------------- */
.hero {
  background: #243147;
  color: #fff;
  padding: 72px 20px 64px 20px;
}
.hero h1 {
  color: #fff;
}
.hero p {
  color: #A1B2C3;
  font-size: 1.18rem;
}
.hero .cta-btn {
  margin-top: 24px;
}

.cta-banner {
  background: #A1B2C3;
  color: #243147;
  border-radius: 12px;
  box-shadow: 0 2px 24px rgba(36,49,71,0.04);
  margin-top: 48px;
  margin-bottom: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
}
.cta-banner h2, .cta-banner p {
  color: #243147;
}
.cta-banner .cta-btn {
  margin-top: 16px;
}

/* -------------- BUTTONS & LINKS -------------- */
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  padding: 12px 32px;
  background: #243147;
  color: #fff;
  font-weight: 700;
  font-size: 1.12rem;
  border-radius: 26px;
  box-shadow: 0 2px 8px rgba(36,49,71,0.09);
  border: none;
  transition: background 0.18s, color 0.18s, box-shadow 0.17s, transform 0.14s;
  margin-top: 0;
}
.cta-btn:hover,
.cta-btn:focus {
  background: #A1B2C3;
  color: #243147;
  box-shadow: 0 3px 18px rgba(36,49,71,0.11);
  outline: none;
  transform: translateY(-2px) scale(1.025);
}

.main-nav a,
.mobile-nav a {
  display: inline-block;
  padding: 8px 12px;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 6px;
  color: #243147;
  background: none;
  transition: background 0.18s, color 0.11s;
}
.main-nav a:hover, .main-nav a.active,
.mobile-nav a:hover, .mobile-nav a.active {
  background: #A1B2C3;
  color: #243147;
}


/* -------------- HEADER & NAVIGATION -------------- */
header {
  background: #fff;
  border-bottom: 1px solid #E5E7EA;
  box-shadow: 0 1px 10px rgba(36,49,71,0.03);
  padding: 0 0;
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 1010;
}
.logo {
  display: flex;
  align-items: center;
  padding-left: 20px;
  height: 60px;
}
.logo img {
  height: 34px;
}
.main-nav {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-left: 24px;
}
header .cta-btn {
  margin-left: 16px;
  margin-right: 28px;
}
.mobile-menu-toggle {
  display: none;
  background: none;
  font-size: 2rem;
  color: #243147;
  border: none;
  padding: 8px 16px;
  line-height: 1;
  z-index: 1041;
}

/*  MOBILE NAV - hidden by default */
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  box-shadow: 0 4px 24px rgba(36,49,71,0.20);
  transform: translateX(-100%);
  transition: transform 0.38s cubic-bezier(.38,.96,.39,.98);
  display: flex;
  flex-direction: column;
  z-index: 1050;
  will-change: transform;
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  align-self: flex-end;
  font-size: 2.1rem;
  color: #243147;
  background: none;
  border: none;
  margin: 16px 22px 8px 0;
  z-index: 1060;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
  margin: 40px 0 0 32px;
}
.mobile-nav a {
  padding: 12px 0;
  font-size: 1.08rem;
  color: #243147;
  border-radius: 4px;
  transition: background 0.16s, color 0.14s;
  min-width: 170px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
}
.mobile-nav a:hover {
  background: #A1B2C3;
  color: #243147;
}


/* -------------- TESTIMONIALS -------------- */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 18px rgba(36,49,71,0.08);
  margin-bottom: 24px;
  min-width: 260px;
  max-width: 550px;
  transition: box-shadow 0.14s, transform 0.13s;
}
.testimonial-card:hover {
  box-shadow: 0 8px 36px rgba(36,49,71,0.14);
  transform: translateY(-1px) scale(1.015);
}
.testimonial-card blockquote {
  color: #243147; /* CRITICAL: ensure readability */
  background: none;
  border: none;
  padding: 0;
  box-shadow: none;
  margin-bottom: 0;
  font-size: 1.07rem;
}
.testimonial-card cite {
  color: #A1B2C3; font-size: 0.98rem; margin-top: 4px;
}
.star-ratings, .star-rating-summary {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #243147;
  font-size: 0.99rem;
}
.star-rating-summary img, .star-ratings img {
  height: 18px;
  width: 18px;
  margin-right: 2px;
}

/* -------------- PRICING TABLE -------------- */
.pricing table {
  width: 100%;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 16px rgba(36,49,71,0.06);
  overflow: hidden;
  margin-bottom: 26px;
}
.pricing th, .pricing td {
  text-align: left;
  padding: 16px 14px;
}
.pricing th {
  background: #A1B2C3;
  color: #243147;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.11rem;
}
.pricing td {
  color: #243147;
  font-size: 1rem;
}
.pricing tr { border-bottom: 1px solid #EDF1F5; }
.pricing tr:last-child { border-bottom: none; }

.faq ul {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 24px;
}

/* -------------- FOOTER -------------- */
footer {
  background: #fff;
  border-top: 1px solid #E5E7EA;
  padding: 32px 0 18px 0;
  margin-top: 60px;
}
.footer-nav {
  display: flex;
  gap: 18px;
  justify-content: center;
  align-items: center;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.footer-nav a {
  font-size: 1rem;
  color: #A1B2C3;
  padding: 6px 10px;
  border-radius: 5px;
  transition: background 0.14s;
}
.footer-nav a:hover {
  background: #A1B2C3;
  color: #243147;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
  color: #243147;
}
.footer-contact img {
  width: 42px;
  height: 42px;
  margin-bottom: 8px;
}
.footer-contact a {
  color: #243147;
  text-decoration: underline;
  transition: color 0.12s;
}
.footer-contact a:hover {
  color: #A1B2C3;
}
.footer-claim {
  text-align: center;
  margin-top: 8px;
  color: #A1B2C3;
  font-size: 0.96rem;
}

/* -------------- LEGAL/INFO PAGES SECTIONS -------------- */
.legal .text-section ul,
.legal .text-section ol {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-left: 18px;
  margin-bottom: 14px;
  list-style: disc;
}
.legal .text-section li {
  color: #243147;
  font-size: 1rem;
}

.case-studies .text-section,
.service-journey ol {
  margin-bottom: 28px;
  font-size: 1.06rem;
}
.service-journey ol {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-left: 24px;
}

/* -------------- THANK YOU PAGE -------------- */
.thank-you ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

/* -------------- COOKIE CONSENT BANNER -------------- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  z-index: 5000;
  background: #243147;
  color: #fff;
  padding: 22px 20px 18px 20px;
  box-shadow: 0 -2px 24px rgba(36,49,71,0.11);
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
}
.cookie-banner__text {
  font-size: 1rem;
  color: #fff;
  flex: 1 1 220px;
  margin-right: 16px;
}
.cookie-banner__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cookie-btn {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  border-radius: 20px;
  border: none;
  padding: 9px 26px;
  background: #A1B2C3;
  color: #243147;
  margin-left: 0;
  margin-top: 0;
  margin-bottom: 0;
  box-shadow: 0 2px 10px rgba(36,49,71,0.03);
  transition: background 0.15s, color 0.13s;
}
.cookie-btn:focus, .cookie-btn:hover {
  background: #fff;
  color: #243147;
}
.cookie-btn--primary {
  background: #fff;
  color: #243147;
  font-weight: bold;
}
.cookie-btn--primary:focus, .cookie-btn--primary:hover {
  background: #A1B2C3;
  color: #243147;
}

/* Cookie Modal */
.cookie-modal {
  position: fixed;
  bottom: 50%;
  left: 50%;
  transform: translate(-50%, 50%) scale(1);
  background: #fff;
  color: #243147;
  border-radius: 16px;
  box-shadow: 0 8px 36px rgba(36,49,71,0.18);
  min-width: 340px;
  max-width: 97vw;
  z-index: 5100;
  padding: 32px 28px 26px 28px;
  display: none;
  flex-direction: column;
  gap: 22px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.17s, transform 0.25s cubic-bezier(.78,.14,.32,.92);
}
.cookie-modal.open {
  display: flex;
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0) scale(1.00);
}
.cookie-modal__header {
  font-size: 1.3rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: bold;
  margin-bottom: 12px;
}
.cookie-modal__categories {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cookie-modal__category {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cookie-toggle {
  width: 34px;
  height: 20px;
  border-radius: 12px;
  background: #A1B2C3;
  appearance: none;
  outline: none;
  position: relative;
  transition: background 0.15s;
  cursor: pointer;
}
.cookie-toggle:checked {
  background: #243147;
}
/* Switch Thumb */
.cookie-toggle::before {
  content: '';
  position: absolute;
  left: 3px;
  top: 3px;
  width: 13px;
  height: 13px;
  background: #fff;
  border-radius: 50%;
  transition: left 0.15s;
}
.cookie-toggle:checked::before {
  left: 17px;
}
.cookie-modal__category--essential .cookie-toggle {
  opacity: .4;
  pointer-events: none;
}
.cookie-modal__footer {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: flex-end;
}
.cookie-modal__close {
  font-size: 1.7rem;
  position: absolute;
  right: 18px;
  top: 16px;
  background: none;
  border: none;
  color: #A1B2C3;
  cursor: pointer;
}

/* -------------- RESPONSIVE & MOBILE STYLES -------------- */
@media (max-width: 1100px) {
  .container { max-width: 99vw; }
}
@media (max-width: 900px) {
  .container { max-width: 94vw; }
  .main-nav { gap: 4px; }
}
@media (max-width: 768px) {
  html { font-size: 16px; }
  body { font-size: 15px; }
  header {
    flex-direction: row;
    padding: 0 0;
    min-height: 64px;
  }
  .main-nav {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: block;
    background: none;
    border: none;
    font-size: 2rem;
    margin-right: 22px;
  }
  header .cta-btn {
    display: none;
  }
}
@media (max-width: 680px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.4rem; }
  .hero { padding: 42px 10px 34px 10px; }
  .cta-banner { padding: 25px 5px; min-height: 88px; }
  .container { padding-left: 8px; padding-right: 8px; }
  .service-list, .features .content-wrapper ul {
    gap: 14px;
  }
  .card, .service-card, .testimonial-card {
    padding: 18px 10px;
    min-width: unset;
  }
  .about-intro, .about, .history, .contact {
    padding: 24px 0px;
  }
}
@media (max-width: 568px) {
  .content-wrapper {
    gap: 18px;
  }
  .section {
    padding: 22px 2px;
    margin-bottom: 36px;
  }
  .footer-nav { gap: 10px; }
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 6px 16px 6px;
  }
  .cookie-banner__actions {
    gap: 8px;
  }
  .cookie-modal {
    min-width: 90vw;
    padding: 18px 7px 22px 10px;
  }
}

/* Flex direction for sections (force column on small screens) */
@media (max-width: 840px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .card-container, .card-grid, .content-grid, .service-list {
    flex-direction: column;
    gap: 16px;
  }
}

/* -------------- MICROINTERACTIONS & TRANSITIONS -------------- */
.card, .service-card, .testimonial-card, .cta-btn, .cookie-btn, .main-nav a, .mobile-nav a {
  transition-property: box-shadow, background, color, transform;
  transition-duration: 0.18s;
  transition-timing-function: cubic-bezier(.42,.7,.32,1);
}

/* -------------- HELPER & MISC -------------- */
::-webkit-scrollbar {
  width: 8px;
  background: #F5F5F2;
}
::-webkit-scrollbar-thumb {
  background: #E5E7EA;
  border-radius: 10px;
}

/* -------------- VISUAL HIERARCHY: LIST MARKER/ICONS -------------- */
.features .content-wrapper ul li img,
.contact .text-section img {
  width: 22px;
  height: 22px;
}

/* -------------- FORMS & INPUTS (for future use) -------------- */
input, textarea, select {
  padding: 10px 16px;
  border-radius: 8px;
  border: 1px solid #A1B2C3;
  background: #fff;
  color: #243147;
  font-size: 1rem;
  transition: border 0.14s, box-shadow 0.12s;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: #243147;
  box-shadow: 0 2px 14px rgba(36,49,71,0.09);
}

/* -------------- Z-INDEX LAYERING -------------- */
.mobile-menu { z-index: 1050; }
.mobile-menu-close { z-index: 1060; }
.cookie-banner { z-index: 5000; }
.cookie-modal { z-index: 5100; }
header { z-index: 1010; }

/* -------------- HIDDEN VISIBILITY -------------- */
[hidden], .hidden { display: none !important; }
