/* ---------- CSS RESET AND 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;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #181B1F;
}
ol, ul {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
}
img {
  display: inline-block;
  max-width: 100%;
  height: auto;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: 100%;
  margin: 0;
  outline: none;
  border: 0;
  background: none;
}

/* Font Import */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,500,400&display=swap');
@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,600,700&display=swap');

:root {
  --color-primary: #21415D;
  --color-secondary: #F5F5F0;
  --color-accent: #DFAF37;
  --color-dark-bg: #181B1F;
  --color-dark-bg2: #23262A;
  --color-metal: #7D8797;
  --color-card-bg: #23262A;
  --color-footer-bg: #23262A;
  --color-border: #343943;
  --color-input-bg: #23262A;
  --color-error: #D46A6A;
  --shadow-card: 0 4px 16px 0 rgba(36,45,60,0.12);
  --shadow-modal: 0 12px 44px 0 rgba(32,38,53,0.41);
  --radius: 12px;
  --radius-lg: 22px;
  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Open Sans', Arial, Helvetica, sans-serif;
}

/* -------- GLOBAL ELEMENT STYLES ----------- */
body {
  color: var(--color-secondary);
  background: var(--color-dark-bg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: 0.01em;
}
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--color-secondary);
  font-weight: 700;
  margin-bottom: 18px;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 24px;
  color: var(--color-accent);
}
h2 {
  font-size: 2rem;
  margin-bottom: 18px;
}
h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 12px;
}
p, li, ul, ol, dl, dt, dd {
  color: var(--color-secondary);
  font-size: 1rem;
  margin-bottom: 12px;
  font-family: var(--font-body);
}
ul, ol {
  padding-left: 1.27em;
}
ul li, ol li {
  margin-bottom: 8px;
  position: relative;
}
strong {
  font-weight: 700;
}

section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
  border-radius: var(--radius-lg);
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

main {
  width: 100%;
  position: relative;
}

.content-wrapper, .text-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.text-section {
  gap: 22px;
}

/* Visual Hierarchy & Spacing */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
  position: relative;
  padding: 30px 24px;
  transition: transform .18s cubic-bezier(.4,.17,.76,.97), box-shadow .18s;
}
.card:hover, .card:focus-within {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 32px rgba(36,45,60,0.2);
}

.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;
  }
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  background: var(--color-secondary);
  color: #23262A;
  border-left: 5px solid var(--color-accent);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: 0 2px 16px rgba(36,45,60,0.08);
  margin-bottom: 20px;
  font-size: 1.06rem;
  max-width: 620px;
}
.testimonial-card h3, .testimonial-card span {
  color: var(--color-primary);
}
.testimonials-preview .testimonial-card {
  margin-right: 0;
  margin-bottom: 24px;
}
.testimonial-card p {
  color: #23262A;
  margin-bottom: 8px;
}
.testimonial-card span {
  font-size: 0.95rem;
  font-style: italic;
}

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

/* ---- HERO SECTION ---- */
.hero {
  background: linear-gradient(90deg, #23262A 0%, #181B1F 100%);
  position: relative;
  margin: 0 0 60px 0;
  padding: 54px 0 54px 0;
  min-height: 320px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}
.hero .content-wrapper {
  align-items: flex-start;
  max-width: 520px;
  gap: 26px;
}
.hero h1 {
  color: var(--color-accent);
  font-size: 2.25rem;
}
.hero p {
  color: var(--color-secondary);
  font-size: 1.16rem;
  margin-bottom: 0;
}

/* ---- FEATURE GRID ---- */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.feature-grid > div {
  flex: 1 1 220px;
  max-width: 315px;
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px 18px 23px 18px;
  margin-bottom: 20px;
  min-width: 215px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: transform .18s, box-shadow .18s;
}
.feature-grid > div:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 8px 34px rgba(36,45,60,0.16);
  border-color: var(--color-accent);
}
.feature-grid img {
  width: 38px;
  height: 38px;
  margin-bottom: 14px;
  filter: grayscale(0.2) contrast(1.2);
}
.feature-grid h3 {
  color: var(--color-accent);
  margin-bottom: 10px;
}
.feature-grid p {
  color: var(--color-secondary);
  font-size: 0.98rem;
}

/* ---- PROJECT LIST (projekte.html) ---- */
.project-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.project-item {
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.project-item h3 {
  color: var(--color-accent);
}
.project-item p > strong {
  color: var(--color-accent);
}

/* ----- CTA BUTTONS ----- */
.cta-button {
  padding: 14px 32px;
  border-radius: 38px;
  background: var(--color-accent);
  color: #23262A;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.12rem;
  border: none;
  box-shadow: 0 2px 10px rgba(223,175,55,0.09);
  cursor: pointer;
  margin-top: 12px;
  display: inline-block;
  transition: background 0.20s cubic-bezier(.55,.09,.68,.53), color .18s;
  letter-spacing: 0.02em;
}
.cta-button:hover, .cta-button:focus {
  background: #f2c652;
  color: #181B1F;
}

/* ----- HEADER & MAIN NAVIGATION ----- */
header {
  background: var(--color-footer-bg);
  border-bottom: 2px solid var(--color-metal);
  position: sticky;
  z-index: 50;
  top: 0;
  width: 100%;
  min-height: 86px;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
}
header nav {
  display: flex;
  flex-direction: row;
  gap: 22px;
  align-items: center;
}
header nav a {
  color: var(--color-secondary);
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.01em;
  padding: 6px 0;
  position: relative;
  transition: color .14s;
}
header nav a:not(.cta-button):hover, header nav a:not(.cta-button):focus {
  color: var(--color-accent);
}
header nav .cta-button {
  margin-left: 14px;
}
header img {
  height: 44px;
}

/* ----- MOBILE MENU ----- */
.mobile-menu-toggle {
  display: none;
  background: var(--color-primary);
  color: var(--color-accent);
  border: 2px solid var(--color-accent);
  padding: 8px 14px;
  border-radius: 7px;
  font-size: 1.6rem;
  align-self: center;
  margin-left: 18px;
  cursor: pointer;
  transition: background .18s, color .15s;
  z-index: 201;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: var(--color-accent);
  color: var(--color-primary);
}
@media (max-width: 1080px) {
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(24,27,31,0.97);
  z-index: 2000;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(.4,.17,.76,.97);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-end;
  box-shadow: var(--shadow-modal);
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  margin: 24px 26px 0 0;
  font-size: 2.2rem;
  color: var(--color-accent);
  background: none;
  border: none;
  cursor: pointer;
  align-self: flex-end;
  transition: color .2s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #fff1c6;
}
.mobile-nav {
  width: 100%;
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}
.mobile-nav a {
  color: var(--color-accent);
  font-size: 1.24rem;
  font-family: var(--font-display);
  font-weight: 600;
  padding: 16px 0;
  width: 82vw;
  text-align: center;
  border-radius: var(--radius);
  background: rgba(33,65,93,0.08);
  letter-spacing: 0.01em;
  transition: background .15s, color .14s;
  margin-bottom: 2px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-accent);
  color: #131519;
}

@media (max-width: 768px) {
  .container {
    padding-left: 8px;
    padding-right: 8px;
  }
  .hero {
    padding: 34px 0;
    min-height: 180px;
  }
  .feature-grid {
    flex-direction: column;
    gap: 20px;
  }
  .content-wrapper, .text-section {
    gap: 18px;
  }
  header img {
    height: 34px;
  }
  section {
    padding: 28px 6px;
  }
  .footer-logo {
    margin-top: 18px;
    margin-bottom: 0;
  }
}

/* ------ FOOTER STYLE ------ */
footer {
  background: var(--color-footer-bg);
  border-top: 2px solid var(--color-metal);
  padding-top: 34px;
  padding-bottom: 38px;
  color: var(--color-secondary);
}
.footer-menu {
  display: flex;
  flex-direction: row;
  gap: 38px;
  justify-content: flex-start;
  margin-bottom: 10px;
}
.footer-menu a {
  color: var(--color-metal);
  font-size: 0.98rem;
  transition: color .14s;
}
.footer-menu a:hover, .footer-menu a:focus {
  color: var(--color-accent);
}
.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 28px 45px;
  align-items: center;
  margin-bottom: 22px;
  margin-top: 8px;
}
.footer-contact span {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--color-secondary);
  font-size: 1rem;
  margin-bottom: 0;
}
.footer-contact img {
  width: 22px;
  height: 22px;
  opacity: 0.72;
}
.footer-logo {
  margin-top: 18px;
}
.footer-logo img {
  height: 38px;
  opacity: .95;
}
@media(max-width: 800px) {
  .footer-contact {
    flex-direction: column;
    gap: 12px 0;
    align-items: flex-start;
  }
  .footer-menu {
    flex-direction: column;
    gap: 11px;
    margin-bottom: 20px;
  }
}

/* ------ LISTS and DL (FAQs etc) ------ */
dt {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-accent);
  margin-top: 14px;
}
dd {
  margin-bottom: 14px;
  margin-left: 0.9em;
  color: var(--color-secondary);
  font-size: 1rem;
}

/* --- MAP PLACEHOLDER BOX STYLE --- */
.map-placeholder {
  background: var(--color-card-bg);
  border: 1.5px dashed var(--color-metal);
  border-radius: var(--radius);
  padding: 28px 12px 28px 12px;
  margin-top: 16px;
  color: var(--color-metal);
  font-style: italic;
  font-size: 1rem;
  text-align: center;
}

/* --- ANIMATIONS --- */
@media (prefers-reduced-motion: no-preference) {
  .cta-button,
  .feature-grid > div,
  .card,
  .testimonial-card {
    transition: box-shadow .25s cubic-bezier(.41,0,.29,1), color .14s, background .2s, transform .18s cubic-bezier(.4,.17,.76,.97);
  }
  .mobile-menu,
  .cookie-banner,
  .cookie-modal {
    transition: transform 0.35s cubic-bezier(.4,.17,.76,.97), opacity .25s;
  }
}

/* --------- COOKIE CONSENT BANNER --------- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  z-index: 2200;
  background: #23262A;
  color: var(--color-secondary);
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 30px;
  box-shadow: 0 -3px 22px 0 rgba(36,45,60,0.11);
  padding: 18px 10px 16px 10px;
  font-size: 0.99rem;
  border-top: 2px solid var(--color-accent);
  opacity: 1;
  transform: translateY(0);
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(100%);
}
.cookie-banner .cookie-banner-content {
  max-width: 820px;
}
.cookie-banner .cookie-action-buttons {
  display: flex;
  flex-direction: row;
  gap: 16px;
  align-items: center;
}
.cookie-banner button {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.96rem;
  border-radius: 34px;
  padding: 8px 22px;
  background: var(--color-accent);
  color: #23262A;
  border: none;
  box-shadow: 0 2px 8px 0 rgba(223,175,55,0.09);
  cursor: pointer;
  transition: background .17s, color .10s;
}
.cookie-banner button.cookie-reject {
  background: var(--color-dark-bg);
  color: var(--color-accent);
  border: 1px solid var(--color-accent);
}
.cookie-banner button.cookie-reject:hover, 
.cookie-banner button.cookie-reject:focus {
  background: #282a2e;
}
.cookie-banner button.cookie-settings {
  background: var(--color-primary);
  color: var(--color-accent);
  border: 1px solid var(--color-accent);
}
.cookie-banner button.cookie-settings:hover, 
.cookie-banner button.cookie-settings:focus {
  background: #183147;
}
@media (max-width: 640px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 5px 18px 4px;
    font-size: 0.96rem;
  }
  .cookie-banner .cookie-action-buttons {
    flex-direction: column;
    gap: 9px;
    width: 100%;
    align-items: stretch;
  }
}

/* ---- COOKIE MODAL ---- */
.cookie-modal {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 2300;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(32, 38, 53, 0.86);
  opacity: 1;
  transform: translateY(0);
}
.cookie-modal.hide {
  pointer-events: none;
  opacity: 0;
  transform: translateY(20px);
}
.cookie-modal-dialog {
  background: #23262A;
  color: var(--color-secondary);
  border-radius: 18px;
  box-shadow: var(--shadow-modal);
  padding: 38px 28px 30px 28px;
  max-width: 420px;
  width: 90vw;
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
}
.cookie-modal-dialog h3 {
  color: var(--color-accent);
  margin-top: 0;
  font-size: 1.22rem;
  font-weight: 700;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cookie-category-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  font-size: 1rem;
  justify-content: space-between;
}
.cookie-category-row label {
  font-size: 1rem;
  font-family: var(--font-body);
  color: var(--color-secondary);
}
.cookie-modal-close {
  position: absolute;
  right: 18px;
  top: 18px;
  font-size: 2.1rem;
  color: var(--color-accent);
  background: none;
  border: none;
  cursor: pointer;
}
/* toggles for analytics/marketing cookies */
.cookie-switch {
  position: relative;
  width: 42px;
  height: 24px;
  display: inline-block;
}
.cookie-switch input[type="checkbox"] {
  opacity: 0;
  width: 0;
  height: 0;
}
.cookie-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #444A52;
  border-radius: 22px;
  transition: background .2s;
}
.cookie-switch input:checked + .cookie-slider {
  background: var(--color-accent);
}
.cookie-slider:before {
  position: absolute;
  content: '';
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform .19s;
}
.cookie-switch input:checked + .cookie-slider:before {
  transform: translateX(18px);
}
.cookie-category-row .always-on {
  font-size: 0.97rem;
  color: var(--color-metal);
  font-style: italic;
  margin-left: 6px;
}
/* Category text truncation for mobile */
@media (max-width: 480px) {
  .cookie-modal-dialog { padding: 22px 9px 18px 13px; }
  .cookie-category-row label { font-size: 0.97rem; }
  .cookie-category-row { font-size: 0.93rem; }
}

/* ------ ERROR STYLES (if needed for forms) ------ */
input.error, textarea.error, select.error {
  border: 1.6px solid var(--color-error);
  background: #2c2121;
}
.error-message {
  color: var(--color-error);
  font-size: 0.99rem;
  margin-top: 4px;
}

/* --- GENERAL VISIBLE FOCUS STYLE FOR ACCESSIBILITY */
a:focus, button:focus, .cta-button:focus {
  outline: 2px solid var(--color-accent) !important;
  outline-offset: 2px;
  z-index: 10;
}

/* ------ RESPONSIVE TITLE SIZES ------ */
@media (max-width: 600px) {
  h1 { font-size: 1.48rem; }
  h2 { font-size: 1.08rem; }
  h3 { font-size: 1rem; }
  .hero h1 { font-size: 1.26rem; }
}

/* ----------- UTILITY CLASSES ----------- */
.d-flex {
  display: flex !important;
}
.flex-col { flex-direction: column !important; }
.flex-row { flex-direction: row !important; }
.align-center { align-items: center !important; }
.justify-between { justify-content: space-between !important; }
.gap-20 { gap: 20px !important; }
.gap-24 { gap: 24px !important; }

/* --------------- END --------------- */