/* RESET & BASE ------------------------- */
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, menu, 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, 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;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, main, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #1A1E23;
  color: #F2ECE4;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 16px;
  min-height: 100vh;
}
ol, ul {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
}
img, picture {
  max-width: 100%;
  height: auto;
  display: block;
}
button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  outline: none;
  background: none;
}
input, textarea, select {
  font-family: inherit;
  outline: none;
  border-radius: 0;
}

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

:root {
  --color-primary: #263552;
  --color-secondary: #7B9587;
  --color-accent: #F2ECE4;
  --color-dark: #1A1E23;
  --color-light: #F2ECE4;
  --color-metal: #B0B6BC;
  --color-steel-dark: #35383E;
  --color-steel-mid: #49505C;
  --color-danger: #c23f31;
  --shadow-soft: 0 2px 16px 0 rgba(28,33,40,0.13);
  --radius-small: 7px;
  --radius-large: 16px;
  --transition-fast: 0.22s cubic-bezier(.5,.2,.2,1.1);
  --container-max: 1100px;
  --font-display: 'Montserrat', 'Arial Black', Arial, Helvetica, sans-serif;
  --font-body: 'Roboto', Arial, Helvetica, sans-serif;
}

/* LAYOUT CONTAINER ------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding: 0 18px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* HEADER & NAVIGATION ----------------- */
header {
  background: var(--color-dark);
  width: 100%;
  box-shadow: 0 2px 8px 0 rgba(30,32,40,0.13);
  position: sticky;
  top: 0;
  z-index: 40;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  gap: 16px;
}
header img {
  height: 45px;
  width: auto;
  margin-right: 36px;
  filter: brightness(100%) contrast(110%);
}
header nav {
  display: flex;
  flex-direction: row;
  gap: 26px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.08rem;
  letter-spacing: 0.03em;
}
header nav a {
  position: relative;
  color: var(--color-accent);
  padding: 4px 0;
  transition: color var(--transition-fast);
}
header nav a:hover,
header nav a:focus {
  color: var(--color-secondary);
}
header .btn-primary {
  margin-left: 40px;
}
/* Hamburger Button */
.mobile-menu-toggle {
  display: none;
  font-size: 2rem;
  color: var(--color-accent);
  background: none;
  border: none;
  margin-left: 16px;
  z-index: 150;
  transition: color var(--transition-fast);
}
.mobile-menu-toggle:hover {
  color: var(--color-secondary);
}

/* MOBILE MENU -------------------------- */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(110deg, var(--color-dark) 70%, var(--color-steel-mid) 100%);
  z-index: 200;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-end;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(.6, .17, .36, 1.19);
  opacity: 0;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  font-size: 2.2rem;
  color: var(--color-accent);
  margin: 24px 30px 0 0;
  background: none;
  border: none;
  transition: color var(--transition-fast);
}
.mobile-menu-close:hover { color: var(--color-secondary); }
.mobile-nav {
  width: 100%;
  margin-top: 50px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
  padding: 0 36px;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--color-accent);
  padding: 12px 0;
  border-bottom: 1px dashed var(--color-steel-mid);
  width: 100%;
  display: flex;
  transition: color var(--transition-fast), border-color var(--transition-fast);
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--color-secondary);
  border-color: var(--color-secondary);
}

/* SECTIONS & SPACING ------------------ */
main {
  flex: 1 1 0%;
  width: 100%;
  background: var(--color-dark);
}
.section,
main section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}
@media (max-width: 768px) {
  .section,
  main section {
    padding: 30px 8px;
    margin-bottom: 38px;
  }
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 24px;
}

/* TITLES & TYPOGRAPHY ---------------- */
h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--color-accent);
  letter-spacing: 0.01em;
  font-weight: 900;
  margin-bottom: 12px;
}
h1 {
  font-size: 2.45rem;
  line-height: 1.13;
}
h2 {
  font-size: 1.7rem;
  line-height: 1.2;
}
h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-secondary);
}
p, li, table, td, th {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-light);
}
p {
  margin-bottom: 12px;
}
ul {
  margin-bottom: 14px;
}
ul li {
  margin-bottom: 8px;
  position: relative;
  padding-left: 22px;
}
ul li:before {
  content: '';
  display: block;
  position: absolute;
  left: 0; top: 10px;
  width: 8px; height: 8px;
  border-radius: 1.5px;
  background: var(--color-secondary);
}
strong {
  color: var(--color-accent);
}
small {
  font-size: 0.91rem;
  color: var(--color-metal);
}
.tagline {
  font-size: 1.28rem;
  color: var(--color-secondary);
  letter-spacing: 0.02em;
  font-family: var(--font-display);
  margin-top: 8px;
}

/* HERO SECTION ------------------------- */
.hero {
  margin-bottom: 0;
  padding: 48px 0 64px 0;
  background: linear-gradient(100deg, var(--color-primary) 70%, #2D3C58 100%);
  box-shadow: 0 2px 22px 0 rgba(33,40,50,0.17);
  min-height: 310px;
  display: flex;
  align-items: center;
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}
.hero .content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 0;
  max-width: 560px;
}
.hero h1, .hero p {
  color: var(--color-light);
}
.hero .btn-primary {
  margin-top: 18px;
  font-size: 1.06rem;
}

/* FLEXBOX LAYOUTS ----------------------- */
.card-container, .feature-grid, .service-grid, .content-grid, .project-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.card, .feature, .service, .project-card {
  margin-bottom: 20px;
  background: var(--color-steel-dark);
  border-radius: var(--radius-large);
  box-shadow: var(--shadow-soft);
  padding: 28px 24px 22px 24px;
  min-width: 230px;
  flex: 1 1 244px;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition-fast), transform var(--transition-fast);
}
.card:hover, .feature:hover, .service:hover, .project-card:hover {
  box-shadow: 0 4px 28px 0 rgba(38,53,82,0.20);
  transform: translateY(-4px) scale(1.02);
}
.card img, .feature img, .service img, .project-card img {
  height: 38px;
  width: auto;
  margin-bottom: 12px;
  filter: grayscale(20%) brightness(90%) contrast(120%);
}

/* Testimonial & Project Cards ---------- */
.testimonial-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 28px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  background: #F2ECE4;
  color: #23231F;
  border-radius: var(--radius-small);
  box-shadow: 0 2px 20px 0 rgba(38,53,82,0.11);
  padding: 20px;
  min-width: 210px;
  max-width: 370px;
  flex: 1 1 260px;
  margin-bottom: 20px;
  border-left: 5px solid var(--color-secondary);
  transition: box-shadow var(--transition-fast), border-color var(--transition-fast);
}
.testimonial-card p {
  color: #23231F;
  font-style: italic;
  font-size: 1.06rem;
  margin-bottom: 6px;
}
.testimonial-card span {
  font-weight: 500;
  color: var(--color-primary);
}
.bewertungs-widget {
  background: var(--color-primary);
  color: var(--color-accent);
  padding: 14px 22px;
  border-radius: var(--radius-small);
  display: inline-block;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.01em;
  margin-top: 8px;
}

/* Project Card */
.project-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 12px;
}
.project-card {
  background: var(--color-steel-mid);
  border-radius: var(--radius-small);
  color: var(--color-accent);
  padding: 22px 20px 18px 20px;
  min-width: 220px;
  max-width: 410px;
  flex: 1 1 260px;
}
.project-card h3 {
  color: var(--color-secondary);
  font-size: 1.18rem;
  margin-bottom: 8px;
}
.project-card ul li:before {
  background: var(--color-metal);
}

/* Pricing Table -------------------------- */
.pricing-table {
  width: 100%;
  background: var(--color-steel-mid);
  color: var(--color-light);
  border-radius: var(--radius-large);
  box-shadow: var(--shadow-soft);
  margin-bottom: 18px;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  font-size: 1.05rem;
}
.pricing-table th, .pricing-table td {
  padding: 18px 14px;
  border-bottom: 1px solid #37404b;
  text-align: left;
}
.pricing-table th {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 700;
  background: var(--color-primary);
  color: var(--color-accent);
}
.pricing-table tbody tr:nth-child(even) td {
  background: #2D3440;
}
.pricing-table td {
  color: var(--color-accent);
}
.pricing-table tbody tr:last-child td {
  border-bottom: none;
}

/* BUTTONS & CTA ----------------------------- */
.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-family: var(--font-display);
  font-weight: 700;
  padding: 13px 28px;
  font-size: 1.05rem;
  border-radius: var(--radius-small);
  transition: background var(--transition-fast), color var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
  box-shadow: 0 1px 10px 0 rgba(38,53,82,0.10);
  margin-right: 8px;
}
.btn-primary {
  background: var(--color-secondary);
  color: var(--color-primary);
  border: 2px solid var(--color-secondary);
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--color-primary);
  color: var(--color-accent);
  border-color: var(--color-secondary);
  box-shadow: 0 6px 20px 0 rgba(123,149,135,0.12);
}
.btn-secondary {
  background: transparent;
  color: var(--color-secondary);
  border: 2px solid var(--color-secondary);
}
.btn-secondary:hover, .btn-secondary:focus {
  background: var(--color-secondary);
  color: var(--color-dark);
  box-shadow: 0 6px 20px 0 rgba(123,149,135,0.17);
}

/* TEXT-IMAGE & CONTACT SHORT LAYOUTS --------------- */
.text-image-section,
.contact-short,
.contact-details,
.map-stub {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.contact-short {
  flex-direction: row;
  gap: 32px;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
}
.contact-details {
  flex-direction: column;
  flex: 2 1 290px;
  align-items: flex-start;
  gap: 24px;
}
.map-stub {
  background: var(--color-metal);
  color: var(--color-primary);
  border-radius: var(--radius-small);
  padding: 18px 24px;
  min-width: 200px;
  flex: 1 1 220px;
  font-size: 1.08rem;
  font-weight: 700;
  min-height: 82px;
  margin-left: 24px;
}
.contact-details ul,
.contact-short ul {
  margin-bottom: 0;
}
.contact-details li,
.contact-short li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.04rem;
  color: var(--color-accent);
  margin-bottom: 8px;
}
.contact-details img,
.contact-short img {
  width: 20px; height: 20px;
  filter: grayscale(14%) brightness(92%) contrast(120%);
  margin-right: 6px;
}

/* FOOTER -------------------------------------------*/
footer {
  background: var(--color-steel-dark);
  color: var(--color-accent);
  margin-top: 40px;
  padding: 54px 0 18px 0;
  box-shadow: 0px -2px 14px 0 rgba(39,44,53,0.16);
}
footer .container {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  align-items: flex-start;
}
.footer-logo img {
  height: 47px;
  filter: brightness(140%) contrast(110%);
  margin-bottom: 10px;
}
.footer-navigation {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-navigation a {
  color: var(--color-metal);
  font-size: 1rem;
  margin-bottom: 4px;
  transition: color var(--transition-fast);
}
.footer-navigation a:hover, .footer-navigation a:focus {
  color: var(--color-secondary);
}
.footer-contact p {
  color: var(--color-accent);
  font-size: 1rem;
  margin-bottom: 3px;
}
.footer-social {
  display: flex;
  gap: 16px;
  align-items: center;
}
.footer-social a {
  background: var(--color-steel-mid);
  border-radius: 50%;
  padding: 5px;
  transition: background var(--transition-fast);
}
.footer-social a:hover, .footer-social a:focus {
  background: var(--color-secondary);
}
.footer-social img {
  width: 22px; height: 22px;
  filter: grayscale(0) brightness(110%);
}
.footer-copyright {
  font-size: 0.97rem;
  color: var(--color-metal);
  margin-top: 24px;
  width: 100%;
  text-align: center;
  letter-spacing: 0.01em;
}

/* FEATURE ITEM PATTERNS ----------------------------*/
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}

/* RESPONSIVE BREAKPOINTS ---------------------------*/
@media (max-width: 1000px) {
  .container {
    padding: 0 8px;
  }
}
@media (max-width: 900px) {
  .footer-logo, .footer-social, .footer-contact, .footer-navigation {
    min-width: 200px;
  }
  footer .container {
    gap: 26px;
  }
}
@media (max-width: 768px) {
  header .container {
    height: 66px;
    padding: 0 12px;
    gap: 8px;
  }
  header nav, header .btn-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .footer-logo, .footer-social, .footer-contact, .footer-navigation {
    min-width: unset;
    width: 100%;
    margin-bottom: 18px;
  }
  footer .container {
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 9px;
    padding: 0 10px;
  }
  .hero {
    padding: 40px 0 38px 0;
    min-height: 144px;
  }
  .section, main section {
    padding: 23px 2px;
    margin-bottom: 24px;
  }
  .feature-grid, .service-grid, .card-container, .testimonial-list, .project-summary {
    flex-direction: column;
    gap: 20px;
  }
  .card, .feature, .service, .project-card, .testimonial-card {
    min-width: 0;
    max-width: 100%;
    flex: 1 1 100%;
  }
  .contact-short, .contact-details {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
  .map-stub {
    margin: 0;
    width: 100%;
    min-width: unset;
  }
}
@media (max-width: 540px) {
  html, body { font-size: 15px; }
  h1 { font-size: 1.4rem; }
  h2 { font-size: 1.12rem; }
}

/* COOKIES CONSENT BANNER & MODAL -------------------*/
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; width: 100%;
  background: var(--color-steel-mid);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 4000;
  box-shadow: 0 -2px 10px 0 rgba(50,54,70,0.12);
  padding: 18px 26px;
  font-size: 1rem;
  font-family: var(--font-body);
  flex-wrap: wrap;
  gap: 18px;
  animation: cookieBannerIn 0.5s cubic-bezier(.6, .1, .4, 1) both;
}
@keyframes cookieBannerIn {
  0% { opacity: 0; transform: translateY(60px); }
  100% { opacity: 1; transform: translateY(0); }
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 14px;
}
.cookie-banner button {
  padding: 10px 18px;
  border-radius: var(--radius-small);
  border: none;
  font-family: var(--font-display);
  font-size: 1.03rem;
  font-weight: 700;
  transition: background var(--transition-fast), color var(--transition-fast);
  margin: 0 2px;
}
.cookie-banner .cookie-btn-accept {
  background: var(--color-secondary);
  color: var(--color-primary);
}
.cookie-banner .cookie-btn-accept:hover {
  background: var(--color-primary);
  color: var(--color-accent);
}
.cookie-banner .cookie-btn-reject {
  background: #282d38;
  color: var(--color-accent);
}
.cookie-banner .cookie-btn-reject:hover {
  background: var(--color-danger);
  color: #fff;
}
.cookie-banner .cookie-btn-settings {
  background: transparent;
  color: var(--color-secondary);
  border: 2px solid var(--color-secondary);
}
.cookie-banner .cookie-btn-settings:hover {
  background: var(--color-secondary);
  color: var(--color-dark);
}

/* COOKIE MODAL -------------------------*/
.cookie-modal {
  position: fixed;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(17,19,22,0.83);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.32s cubic-bezier(.7,.01,.33,1);
}
.cookie-modal.open {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal .modal-content {
  background: var(--color-primary);
  color: var(--color-accent);
  border-radius: var(--radius-large);
  box-shadow: 0 6px 34px 0 rgba(38,53,82,0.29);
  width: 98%;
  max-width: 420px;
  padding: 36px 28px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
  animation: cookieModalIn 0.37s cubic-bezier(.6, .15, .4, 1.03) both;
}
@keyframes cookieModalIn {
  0% { opacity: 0; transform: scale(0.89) translateY(78px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}
.cookie-modal .modal-close {
  position: absolute;
  top: 14px; right: 16px;
  font-size: 1.6rem;
  color: var(--color-accent);
  background: none;
  border: none;
  cursor: pointer;
  transition: color var(--transition-fast);
  padding: 3px;
}
.cookie-modal .modal-close:hover {
  color: var(--color-secondary);
}
.cookie-modal h2 {
  font-size: 1.32rem;
  margin-bottom: 15px;
  color: var(--color-accent);
}
.cookie-settings-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 8px;
}
.cookie-setting {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--color-steel-dark);
  border-radius: var(--radius-small);
  padding: 13px 16px;
  font-size: 1.04rem;
}
.cookie-setting input[type="checkbox"] {
  accent-color: var(--color-secondary);
  width: 20px;
  height: 20px;
}
.cookie-setting.essential label { opacity: 0.64; }
.cookie-setting.essential input[type="checkbox"] {
  pointer-events: none;
  opacity: 0.56;
}
.cookie-modal .modal-btns {
  display: flex;
  flex-direction: row;
  gap: 12px;
  margin-top: 14px;
}
.cookie-modal .modal-btns button {
  flex: 1 0 0;
  padding: 13px 0;
  font-weight: 700;
  font-size: 1.04rem;
  border-radius: var(--radius-small);
}
.cookie-modal .modal-btn-accept {
  background: var(--color-secondary);
  color: var(--color-primary);
}
.cookie-modal .modal-btn-accept:hover {
  background: var(--color-primary);
  color: var(--color-accent);
}
.cookie-modal .modal-btn-reject {
  background: #282d38;
  color: var(--color-accent);
}
.cookie-modal .modal-btn-reject:hover {
  background: var(--color-danger);
  color: #fff;
}

/* GENERAL UTILITY ------------- */
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mb-20 { margin-bottom: 20px; }
.mb-40 { margin-bottom: 40px; }
.gap-20 { gap: 20px; }

/* TRANSITIONS FOR INTERACTIVE ELEMENTS ------ */
a, button, .card, .feature, .service, .btn-primary, .btn-secondary, .footer-social a {
  transition: color var(--transition-fast), background var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}

/* HIDE ELEMENTS ON PRINT */
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal { display: none !important; }
}
