/* ===============================================================
   JENA IMMOBILIENGLANZ - INDUSTRIAL MODERN STYLE CSS
   Responsive, Flexbox-Only Layout, Burger Navigation, Cookie Consent
=============================================================== */
/* --- 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;
}
html {
  scroll-behavior: smooth;
}
body {
  line-height: 1.5;
  background: #22343C;
  color: #F5F3F0;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  min-height: 100vh;
}
img, svg {
  max-width: 100%;
  display: block;
}
ul, ol { list-style: none; }
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
  appearance: none;
  box-sizing: border-box;
}
button { cursor: pointer; }

/* --- SCROLLBAR --- */
::-webkit-scrollbar { width:8px; background:#2c424b; }
::-webkit-scrollbar-thumb { background:#475a62; border-radius:4px; }

/* --- COLORS & FONTS --- */
:root {
  --primary: #22343C;
  --secondary: #A7BFAF;
  --accent: #F5F3F0;
  --metal-dark: #23282a;
  --metal-light: #778187;
  --card-bg: #283A41;
  --card-hover: #313F47;
  --border: #363F43;
  --shadow: rgba(24,34,38,0.15);
  --success: #6bb489;
}
@font-face {
  font-family: 'Montserrat';
  src: local('Montserrat'), url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700&display=swap');
}
@font-face {
  font-family: 'Roboto';
  src: local('Roboto'), url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500&display=swap');
}

/* --- TYPOGRAPHY SCALE --- */
h1 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 2.75rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--accent);
  margin-bottom: 24px;
}
h2 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 2rem;
  font-weight: 600;
  color: var(--secondary);
  text-shadow: 0 1px 0 var(--border);
  margin-bottom: 20px;
}
h3 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 8px;
}
h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: var(--secondary);
  font-weight: 400;
}
p, li {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  color: var(--accent);
  line-height: 1.65;
  margin-bottom: 12px;
}
strong { font-weight: 600; }

/* ----------- LAYOUT CONTAINERS ----------- */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
}
.header .container,
footer .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

/* ----------- GLOBAL SECTION SPACING ----------- */
.section, main > section, section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
  display: flex;
}
@media (max-width: 768px) {
  .section, main > section, section {
    padding: 28px 8px;
    margin-bottom: 40px;
  }
}

/* ----------- HEADER / NAVIGATION ----------- */
header {
  width: 100%;
  background: var(--metal-dark);
  box-shadow: 0 2px 16px var(--shadow);
  position: relative;
  z-index: 103;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 70px;
}
.logo img {
  height: 38px;
  filter: grayscale(30%) brightness(0.95);
  transition: filter 0.3s;
}
nav {
  display: flex;
  flex-direction: row;
  gap: 18px;
  align-items: center;
}
nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 8px 12px;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s, box-shadow 0.18s;
}
nav a:hover, nav a:focus {
  background: var(--metal-light);
  color: var(--metal-dark);
  box-shadow: 0 2px 12px var(--shadow);
}

/* --- CTA BUTTON --- */
.cta-btn {
  background: var(--secondary);
  color: var(--primary);
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  padding: 11px 28px;
  border-radius: 32px;
  border: none;
  box-shadow: 0 2px 10px var(--shadow);
  transition: background 0.18s, color 0.18s, box-shadow 0.18s, transform 0.15s;
  margin-left: 16px;
  letter-spacing: 0.06em;
  outline: none;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--accent);
  color: var(--metal-dark);
  box-shadow: 0 4px 16px var(--shadow);
  transform: translateY(-2px) scale(1.04);
}

/* --- MOBILE NAVIGATION --- */
.mobile-menu-toggle {
  display: none;
  background: none;
  color: var(--accent);
  font-size: 2.2rem;
  padding: 0 8px;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
  z-index: 303;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--secondary);
  color: var(--primary);
}
@media (max-width: 991px) {
  nav { display: none !important; }
  .mobile-menu-toggle { display: block; }
  .cta-btn { margin-left: 0; }
}
/* --- MOBILE MENU OVERLAY --- */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(34,52,60, 0.96);
  z-index: 300;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  transform: translateX(-100vw);
  transition: transform 0.35s cubic-bezier(.79,0,.19,1);
  box-shadow: 4px 0 26px #181e20af;
  width: 100vw; min-height: 100dvh;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  color: var(--secondary);
  font-size: 2.5rem;
  position: absolute;
  right: 23px;
  top: 22px;
  border: none;
  z-index: 305;
  transition: color 0.2s;
}
.mobile-menu-close:focus, .mobile-menu-close:hover { color: var(--accent); }

.mobile-nav {
  margin-top: 80px;
  width: 100vw;
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: flex-start;
  padding-left: 36px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--secondary);
  padding: 16px 4px 8px 0;
  border-radius: 8px;
  width: 90%; /* Touch area */
  transition: background 0.17s, color 0.18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--primary);
  background: var(--accent);
}
@media (min-width: 992px) {
  .mobile-menu, .mobile-menu-toggle { display: none !important; }
}

/* ========== MAIN SECTIONS ========== */
main {
  min-height: 60vh;
  background: var(--primary);
}

/* ----------- FLEX LAYOUTS (per specs) ----------- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  align-items: stretch;
  margin-bottom: 32px;
}
.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 4px 20px var(--shadow);
  padding: 28px 24px;
  margin-bottom: 20px;
  position: relative;
  transition: background 0.18s, border-color 0.21s, box-shadow 0.15s, transform 0.18s;
  min-width: 260px;
}
.card:hover, .card:focus-within {
  background: var(--card-hover);
  border-color: var(--secondary);
  box-shadow: 0 10px 36px var(--shadow);
  transform: translateY(-2px) scale(1.025);
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  align-items: stretch;
}
.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;
    gap: 16px;
  }
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: var(--accent);
  color: var(--primary);
  border-radius: 14px;
  box-shadow: 0 3px 18px rgba(55,59,60,0.10);
  margin-bottom: 20px;
  flex-direction: column;
  min-width: 260px;
}
.testimonial-card p {  font-size: 1rem; }
.client-name {
  font-family: 'Montserrat';
  font-weight: 600;
  color: var(--secondary);
  font-size: 1.1rem;
  margin-top: 12px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ===== HERO, FEATURES, SERVICES, TEAM ===== */
.feature-grid, .service-list-full, .success-stories, .testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  align-items: stretch;
}
.feature {
  background: var(--card-bg);
  border-radius: 18px;
  box-shadow: 0 2px 14px var(--shadow);
  border: 1px solid var(--border);
  padding: 28px 20px 26px 20px;
  min-width: 220px;
  max-width: 320px;
  flex: 1 1 220px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow 0.19s, background 0.17s, border 0.19s;
}
.feature img {
  width: 36px;
  height: 36px;
  margin-bottom: 10px;
  filter: grayscale(60%) brightness(1.18);
}
.feature:hover, .feature:focus-within {
  background: var(--card-hover);
  border-color: var(--secondary);
  box-shadow: 0 8px 28px var(--shadow);
}
.service-list-preview, .service-list-preview li {
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--secondary);
  margin-bottom: 30px;
}
.service-list-full {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.service-block {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 4px 18px var(--shadow);
  padding: 28px 22px 18px 22px;
  min-width: 240px;
  max-width: 330px;
  flex: 1 0 260px;
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
  transition: background 0.14s, border 0.18s, box-shadow 0.18s, transform 0.16s;
}
.service-block:hover, .service-block:focus-within {
  background: var(--card-hover);
  border-color: var(--secondary);
  box-shadow: 0 10px 34px var(--shadow);
  transform: translateY(-2px) scale(1.015);
}
.service-price {
  margin-top: 14px;
  padding: 4px 11px;
  background: var(--secondary);
  color: var(--primary);
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  font-family: 'Roboto', Arial, sans-serif;
  align-self: flex-start;
}
.quick-faq-teaser {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 14px;
  margin-top: 16px;
  color: var(--secondary);
  font-size: 0.95rem;
}

/* --- ABOUT, TEAM, VALUES --- */
.text-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 6px 0;
}
.text-section ul {
  list-style: disc inside;
  color: var(--secondary);
  padding-left: 10px;
}
.text-section li { margin-bottom: 6px; }

/* --- SUCCESS STORIES --- */
.success-stories {
  gap: 28px;
  flex-wrap: wrap;
}
.case-study {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px 18px;
  color: var(--accent);
  min-width: 220px;
  flex: 1 0 220px;
  box-shadow: 0 4px 13px rgba(33,38,44,0.12);
  margin-bottom: 20px;
}
.case-study h3 { color: var(--secondary); margin-bottom: 6px; }

/* --- GUIDE & FAQ --- */
.guide-overview, .faq-snippets, .tipps-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.faq-snippets h3, .tipps-list h3 { color: var(--secondary); font-size: 1.1rem; margin-bottom: 4px; }

/* --- MINI KONTAKT --- */
.mini-kontakt {
  font-size: 0.98rem;
  color: var(--secondary);
  margin-top: 15px;
  display: flex;
  gap: 12px;
}

/* --- ADDRESS/DETAILS --- */
.address-details, .address-map {
  margin-top: 11px;
  color: var(--accent);
  font-size: 1rem;
}

/* --- NEXT STEPS LIST (THANK YOU) --- */
.next-steps-info {
  background: var(--card-bg);
  color: var(--secondary);
  border-radius: 12px;
  padding: 13px 15px;
  margin: 16px 0;
  font-size: 0.98rem;
}

/* --- SUMMARY STATISTICS (REFERENZEN) --- */
.summary-statistics {
  font-size: 1.15rem;
  color: var(--secondary);
  margin-top: 21px;
  letter-spacing: .02em;
}

/* --- LEGAL DOCUMENTS (DATENSCHUTZERKLAERUNG, ETC.) --- */
.legal {
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: var(--accent);
  background: var(--card-bg);
  border-radius: 14px;
  box-shadow: 0 2px 14px var(--shadow);
  padding: 28px 20px;
  margin: 14px 0 4px 0;
  font-size: 0.98rem;
}

/* ========== FOOTER ========== */
footer {
  background: #181F22;
  padding: 0;
  color: var(--secondary);
  font-size: 0.98rem;
  box-shadow: 0 -3px 16px #171b1e8a;
  margin-top: 32px;
}
footer .container {
  flex-direction: row;
  gap: 24px;
  align-items: flex-start;
  padding: 27px 20px 23px 20px;
  flex-wrap: wrap;
}
.footer-logo img {
  max-height: 52px;
  filter: grayscale(35%) brightness(0.97);
}
footer nav {
  display: flex;
  gap: 15px;
}
footer nav a {
  color: var(--secondary);
  font-size: 0.98rem;
  font-family: 'Montserrat', Arial, sans-serif;
  border-radius: 5px;
  padding: 5px 10px;
}
footer nav a:hover { background: var(--secondary); color: var(--primary); }
.footer-contact {
  display: flex;
  gap: 14px;
  font-size: 0.95rem;
  flex-wrap: wrap;
  align-items: flex-end;
  margin-top: 9px;
}
@media (max-width: 830px) {
  footer .container {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
  .footer-logo { margin-bottom: 10px; }
}

/* =========== BUTTONS, INTERACTION =========== */
button, .cta-btn, .mobile-menu-toggle, .mobile-menu-close, .cookie-btn {
  transition: background 0.20s, color 0.15s, box-shadow 0.20s, transform 0.13s;
}
button:focus, .cta-btn:focus, .cookie-btn:focus {
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
}
a:focus {
  outline: 2px dotted var(--secondary);
  outline-offset: 1px;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 991px) {
  .feature-grid, .service-list-full, .success-stories, .testimonial-slider, .content-grid, .card-container {
    flex-direction: column;
    gap: 20px;
  }
  .card, .feature, .service-block, .case-study, .testimonial-card {
    min-width: 90vw;
    max-width: 98vw;
  }
}
@media (max-width: 600px) {
  h1 { font-size: 2.04rem; }
  h2 { font-size: 1.3rem; }
  .container { padding: 0 4vw; }
}
@media (max-width: 480px) {
  .section, section {
    padding: 15px 3vw;
    margin-bottom: 24px;
  }
}

/* ========== SHADOWS & ACCENTS ========== */
.card, .feature, .service-block, .testimonial-card, .case-study, .quick-faq-teaser {
  box-shadow: 0 2.5px 12px var(--shadow);
}

/* ========== MICRO-INTERACTIONS ========== */
a, button, .cta-btn, .cookie-btn {
  transition: background 0.16s, color 0.14s, transform 0.12s, box-shadow 0.13s;
}
a:hover:not(.cta-btn):not(.mobile-nav a), a:focus:not(.cta-btn):not(.mobile-nav a) {
  color: var(--secondary);
  text-shadow: 0 1px 8px var(--shadow);
}

/* ------------------------------------------------------
   COOKIE CONSENT BANNER & MODAL
------------------------------------------------------ */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 999;
  background: var(--metal-dark);
  color: var(--accent);
  font-size: 1rem;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 26px;
  box-shadow: 0 -6px 32px #172426a1;
  padding: 23px 20px 20px 22px;
  min-height: 48px;
}
.cookie-banner__text {
  max-width: 600px;
  font-size: 0.99rem;
}
.cookie-banner__actions {
  display: flex;
  gap: 14px;
}
.cookie-btn {
  padding: 9px 18px;
  border-radius: 22px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 0.98rem;
  border: none;
  transition: background 0.17s, color 0.17s, box-shadow 0.18s;
  box-shadow: 0 2px 8px rgba(40,60,50,0.12);
}
.cookie-btn.accept {
  background: var(--secondary);
  color: var(--primary);
}
.cookie-btn.reject {
  background: #444e52;
  color: var(--accent);
}
.cookie-btn.settings {
  background: var(--accent);
  color: var(--primary);
}
.cookie-btn:hover, .cookie-btn:focus {
  box-shadow: 0 4px 24px var(--shadow);
  background: var(--metal-light);
  color: var(--primary);
}
@media (max-width: 670px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 17px 7vw 17px 7vw;
  }
  .cookie-banner__actions {
    gap: 10px;
    flex-direction: row;
  }
}

/* --- COOKIE MODAL --- */
.cookie-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(29,34,37,0.92);
  z-index: 1101;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s cubic-bezier(.61,.01,.37,.99);
}
.cookie-modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal {
  background: var(--card-bg);
  color: var(--accent);
  border-radius: 14px;
  padding: 32px 30px 26px 30px;
  box-shadow: 0 6px 42px var(--shadow);
  min-width: 300px; max-width: 94vw;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  animation: cookieSlideIn 0.55s cubic-bezier(.42,1.34,.42,.98);
}
@keyframes cookieSlideIn {
  from {
    opacity: 0;
    transform: translateY(60px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.cookie-modal h2 {
  color: var(--secondary);
  font-size: 1.30rem;
  font-weight: 600;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin: 12px 0;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cookie-category input[type="checkbox"] {
  width: 22px;
  height: 22px;
  accent-color: var(--secondary);
  margin-right: 4px;
}
.cookie-category label {
  font-family: 'Roboto', Arial, sans-serif;
  color: var(--accent);
  font-size: 1rem;
}
.cookie-category.essential label {
  color: var(--secondary);
  font-weight: 600;
}
.cookie-modal__actions {
  display: flex;
  gap: 17px;
  justify-content: flex-end;
  margin-top: 9px;
}
.cookie-modal-close {
  position: absolute;
  top: 11px; right: 11px;
  background: none;
  color: var(--secondary);
  font-size: 2rem;
  border: none;
  cursor: pointer;
  transition: color 0.18s;
  z-index: 3;
}
.cookie-modal-close:hover, .cookie-modal-close:focus { color: var(--accent); }

/* ========== FORMS & INPUTS (GENERIC) ========== */
input[type=text], input[type=email], textarea {
  background: #f4f4f4;
  color: var(--primary);
  border: 1px solid var(--secondary);
  border-radius: 9px;
  padding: 11px 13px;
  font-size: 1rem;
  margin-top: 8px;
  margin-bottom: 16px;
  box-shadow: 0 1px 6px rgba(32,38,40,0.06);
  width: 100%;
}
input[type=text]:focus, input[type=email]:focus, textarea:focus {
  border-color: var(--secondary);
  background: #fcedec;
  outline: none;
}

/* ===== MISCELLANEOUS UTILITIES ===== */
.hide { display: none !important; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.center { align-items: center; justify-content: center; }

/* ===============================
   INDUSTRIAL MODERN DECORATIVE TOUCHES
=============================== */
.section, .feature, .card, .testimonial-card, .service-block, .case-study {
  border-bottom: 2px solid #364650;
}
.card, .feature, .service-block, .testimonial-card, .case-study {
  background: linear-gradient(124deg,#222b2f 80%,#294249 100%);
}
.card:hover, .feature:hover, .service-block:hover, .testimonial-card:hover, .case-study:hover {
  background: linear-gradient(124deg, #253138 75%, #425a4a 100%);
}
hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 32px 0;
}

/* =========== PRINT =========== */
@media print { body, html { background: #fff; color: #222; } }
