/* RaumGlanz Renovierung – Industrial Modern CSS Theme */

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

:root {
  --color-primary: #19354F;
  --color-secondary: #758190;
  --color-accent: #F8F9FA;
  --color-bg: #181C22;
  --color-bg-light: #232933;
  --color-metal: #AEB4BB;
  --color-steel: #49505A;
  --color-shadow: rgba(25, 53, 79, 0.15);
  --color-success: #4CAF50;
  --color-danger: #D32F2F;
  --color-warning: #FFA000;
  --color-link: #F8F9FA;
  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Roboto', Arial, Helvetica, sans-serif;
  --radius: 8px;
  --transition: 0.25s cubic-bezier(.4,0,.2,1);
  --shadow-card: 0 4px 24px var(--color-shadow);
  --shadow-hover: 0 8px 32px rgba(25,53,79,0.25);
  --border-metal: 1.5px solid var(--color-metal);
  --gap-section: 60px;
  --gap-card: 24px;
  --gap-content: 20px;
  --gap-feature: 15px;
}

html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}

body {
  background: var(--color-bg);
  color: var(--color-accent);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  margin: 0;
  min-height: 100vh;
  letter-spacing: 0.01em;
}

/* ====== TYPOGRAPHY ====== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--color-accent);
  margin-top: 0;
  margin-bottom: 0.5em;
  font-weight: 900;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.2rem;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
h2 {
  font-size: 1.6rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
h3 {
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
h4, h5, h6 {
  font-size: 1rem;
  font-weight: 700;
}
p, ul, ol {
  margin-top: 0;
  margin-bottom: 1em;
}
strong {
  color: var(--color-metal);
  font-weight: 700;
}
a {
  color: var(--color-link);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover, a:focus {
  color: var(--color-secondary);
}

/* ====== CONTAINER & LAYOUT ====== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--gap-content);
}

.section {
  margin-bottom: var(--gap-section);
  padding: 40px 20px;
  background: var(--color-bg-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

/* ====== FLEXBOX PATTERNS ====== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap-card);
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--color-bg-light);
  border: var(--border-metal);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
  min-width: 260px;
  max-width: 100%;
}
.card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px) scale(1.01);
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap-content);
  justify-content: space-between;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: var(--color-accent);
  color: var(--color-primary);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
  min-width: 260px;
  max-width: 100%;
  flex: 1 1 320px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.testimonial-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px) scale(1.01);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ====== HERO SECTION ====== */
.hero {
  background: linear-gradient(120deg, #232933 60%, #19354F 100%);
  padding: 60px 0 40px 0;
  margin-bottom: var(--gap-section);
  box-shadow: 0 8px 32px rgba(25,53,79,0.18);
}
.hero .content-wrapper {
  align-items: flex-start;
  gap: 24px;
}
.hero h1 {
  color: var(--color-accent);
  font-size: 2.5rem;
  text-shadow: 0 2px 8px rgba(25,53,79,0.25);
}
.hero p {
  color: var(--color-metal);
  font-size: 1.2rem;
  max-width: 600px;
}

/* ====== BUTTONS ====== */
.cta-button, .cookie-btn, .cookie-settings-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(90deg, var(--color-primary) 80%, var(--color-secondary) 100%);
  color: var(--color-accent);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.03em;
  border: none;
  border-radius: var(--radius);
  padding: 14px 32px;
  margin-top: 10px;
  box-shadow: 0 2px 12px rgba(25,53,79,0.10);
  cursor: pointer;
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
  text-transform: uppercase;
  outline: none;
}
.cta-button:hover, .cookie-btn:hover, .cookie-settings-btn:hover {
  background: linear-gradient(90deg, var(--color-secondary) 60%, var(--color-primary) 100%);
  color: var(--color-accent);
  box-shadow: 0 4px 24px rgba(25,53,79,0.18);
  transform: translateY(-2px) scale(1.02);
}

/* Cookie Banner Button Variants */
.cookie-btn.accept {
  background: linear-gradient(90deg, #4CAF50 80%, #388E3C 100%);
  color: #fff;
}
.cookie-btn.reject {
  background: linear-gradient(90deg, #D32F2F 80%, #B71C1C 100%);
  color: #fff;
}
.cookie-btn.settings {
  background: linear-gradient(90deg, var(--color-secondary) 80%, var(--color-primary) 100%);
  color: var(--color-accent);
}

/* ====== NAVIGATION ====== */
header {
  background: var(--color-bg-light);
  box-shadow: 0 2px 12px rgba(25,53,79,0.10);
  position: sticky;
  top: 0;
  z-index: 100;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 20px;
}
header nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
header nav a {
  color: var(--color-metal);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 1rem;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}
header nav a:hover, header nav a.active {
  color: var(--color-accent);
  border-bottom: 2px solid var(--color-secondary);
}
header img {
  height: 44px;
  width: auto;
  margin-right: 18px;
}

/* ====== MOBILE NAVIGATION ====== */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-accent);
  font-size: 2rem;
  cursor: pointer;
  margin-left: 12px;
  transition: color var(--transition);
}
.mobile-menu-toggle:focus {
  outline: 2px solid var(--color-secondary);
}
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(25,53,79,0.98);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 40px 24px 24px 24px;
  transform: translateX(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(.4,0,.2,1), opacity 0.25s;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  background: none;
  border: none;
  color: var(--color-accent);
  font-size: 2.2rem;
  align-self: flex-end;
  margin-bottom: 24px;
  cursor: pointer;
  transition: color var(--transition);
}
.mobile-menu-close:focus {
  outline: 2px solid var(--color-secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}
.mobile-nav a {
  color: var(--color-accent);
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-steel);
  transition: color var(--transition), background var(--transition);
}
.mobile-nav a:hover {
  color: var(--color-secondary);
  background: rgba(117,129,144,0.08);
}

/* ====== FOOTER ====== */
footer {
  background: var(--color-bg-light);
  color: var(--color-metal);
  padding: 40px 0 20px 0;
  border-top: 2px solid var(--color-steel);
  margin-top: 60px;
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}
footer .content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
footer nav {
  display: flex;
  gap: 20px;
}
footer nav a {
  color: var(--color-metal);
  font-family: var(--font-display);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  transition: color var(--transition);
}
footer nav a:hover {
  color: var(--color-accent);
}
.footer-contact-short {
  font-size: 0.95rem;
  color: var(--color-steel);
  margin-top: 8px;
}
footer img {
  height: 36px;
  width: auto;
}

/* ====== FEATURE GRID & PROJECT GALLERY ====== */
.feature-grid, .project-gallery, .case-study-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap-card);
  margin-top: 20px;
  margin-bottom: 20px;
}
.feature-grid > div, .project-gallery > div, .case-study-list > div {
  background: var(--color-bg-light);
  border: var(--border-metal);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 24px 20px;
  flex: 1 1 260px;
  min-width: 260px;
  max-width: 100%;
  margin-bottom: 20px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.feature-grid > div:hover, .project-gallery > div:hover, .case-study-list > div:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px) scale(1.01);
}

/* ====== BEFORE-AFTER SLIDER PLACEHOLDER ====== */
.before-after-slider {
  background: var(--color-steel);
  color: var(--color-accent);
  border-radius: var(--radius);
  padding: 8px 16px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  margin-top: 8px;
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

/* ====== GUARANTEE BADGE ====== */
.guarantee-badge {
  display: inline-block;
  background: linear-gradient(90deg, var(--color-secondary) 60%, var(--color-metal) 100%);
  color: var(--color-primary);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  padding: 8px 20px;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(117,129,144,0.10);
  margin-bottom: 16px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ====== TIMELINE GRAPHIC ====== */
.timeline-graphic {
  font-family: var(--font-display);
  color: var(--color-metal);
  font-size: 1.1rem;
  margin-top: 18px;
  letter-spacing: 0.03em;
}

/* ====== MAP PLACEHOLDER ====== */
.map img {
  width: 100%;
  max-width: 480px;
  border-radius: var(--radius);
  border: var(--border-metal);
  box-shadow: var(--shadow-card);
  margin-top: 10px;
}

/* ====== LISTS ====== */
ul, ol {
  padding-left: 1.2em;
  margin-bottom: 1em;
}
ul li, ol li {
  margin-bottom: 0.5em;
  color: var(--color-metal);
  font-size: 1rem;
  line-height: 1.6;
}

/* ====== TABLES (if any) ====== */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
}
th, td {
  padding: 12px 16px;
  border: var(--border-metal);
  color: var(--color-accent);
}
th {
  background: var(--color-steel);
  font-family: var(--font-display);
}

/* ====== RESPONSIVE DESIGN ====== */
@media (max-width: 1024px) {
  .container {
    max-width: 900px;
  }
  .feature-grid, .project-gallery, .case-study-list {
    gap: 16px;
  }
}
@media (max-width: 768px) {
  html {
    font-size: 15px;
  }
  .container {
    max-width: 100%;
    padding: 0 12px;
  }
  .content-wrapper {
    gap: 16px;
  }
  .section {
    padding: 28px 8px;
    margin-bottom: 36px;
  }
  .hero {
    padding: 36px 0 24px 0;
  }
  .hero h1 {
    font-size: 1.6rem;
  }
  .hero p {
    font-size: 1rem;
  }
  .feature-grid, .project-gallery, .case-study-list {
    flex-direction: column;
    gap: 12px;
  }
  .feature-grid > div, .project-gallery > div, .case-study-list > div {
    min-width: 0;
    width: 100%;
    padding: 16px 10px;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 14px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  header .container {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px 12px;
  }
  header nav {
    display: none;
  }
  .cta-button {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  footer .content-wrapper {
    gap: 12px;
  }
  .map img {
    max-width: 100%;
  }
}
@media (max-width: 480px) {
  html {
    font-size: 14px;
  }
  .hero {
    padding: 18px 0 10px 0;
  }
  .section {
    padding: 14px 2px;
    margin-bottom: 20px;
  }
  .feature-grid > div, .project-gallery > div, .case-study-list > div {
    padding: 10px 4px;
  }
}

/* ====== TESTIMONIALS: CONTRAST & READABILITY ====== */
.testimonial-card {
  background: var(--color-accent);
  color: var(--color-primary);
  border-left: 6px solid var(--color-secondary);
}
.testimonial-card p {
  color: var(--color-primary);
  font-size: 1.05rem;
  margin-bottom: 0.5em;
}
.testimonial-card span {
  color: var(--color-steel);
  font-size: 0.95rem;
  font-style: italic;
}

/* ====== COOKIE CONSENT BANNER ====== */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99999;
  background: var(--color-bg-light);
  color: var(--color-accent);
  box-shadow: 0 -2px 16px rgba(25,53,79,0.18);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 32px;
  border-top: 2px solid var(--color-metal);
  animation: cookieBannerIn 0.5s cubic-bezier(.4,0,.2,1);
}
@keyframes cookieBannerIn {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner .cookie-text {
  flex: 1 1 320px;
  font-size: 1rem;
  color: var(--color-accent);
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 16px;
}
.cookie-btn {
  min-width: 120px;
  margin: 0 2px;
}
@media (max-width: 768px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 10px;
  }
  .cookie-banner .cookie-actions {
    flex-direction: column;
    gap: 8px;
    width: 100%;
  }
}

/* ====== COOKIE MODAL ====== */
.cookie-modal-overlay {
  position: fixed;
  z-index: 100000;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(25,53,79,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.cookie-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal {
  background: var(--color-bg-light);
  color: var(--color-accent);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(25,53,79,0.25);
  padding: 36px 32px 28px 32px;
  min-width: 320px;
  max-width: 95vw;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: cookieModalIn 0.4s cubic-bezier(.4,0,.2,1);
}
@keyframes cookieModalIn {
  from { transform: scale(0.95) translateY(40px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}
.cookie-modal h2 {
  color: var(--color-accent);
  font-size: 1.3rem;
  margin-bottom: 0.5em;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.cookie-modal .cookie-category label {
  font-size: 1rem;
  color: var(--color-metal);
  font-family: var(--font-body);
}
.cookie-modal .cookie-category input[type="checkbox"] {
  accent-color: var(--color-secondary);
  width: 20px;
  height: 20px;
  margin-right: 6px;
}
.cookie-modal .cookie-category input[disabled] {
  accent-color: var(--color-metal);
  opacity: 0.7;
}
.cookie-modal .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 14px;
  margin-top: 10px;
}
.cookie-modal .cookie-btn {
  min-width: 120px;
}
@media (max-width: 480px) {
  .cookie-modal {
    padding: 18px 6px 14px 6px;
    min-width: 0;
  }
}

/* ====== ANIMATIONS & MICRO-INTERACTIONS ====== */
.card, .feature-grid > div, .project-gallery > div, .case-study-list > div, .testimonial-card {
  transition: box-shadow var(--transition), transform var(--transition);
}
.cta-button, .cookie-btn, .cookie-settings-btn {
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition), color var(--transition);
}
nav a, .mobile-nav a {
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}

/* ====== UTILITY CLASSES ====== */
.hide {
  display: none !important;
}

/* ====== ACCESSIBILITY ====== */
:focus {
  outline: 2px solid var(--color-secondary);
  outline-offset: 2px;
}

/* ====== CUSTOM SCROLLBAR ====== */
::-webkit-scrollbar {
  width: 10px;
  background: var(--color-bg-light);
}
::-webkit-scrollbar-thumb {
  background: var(--color-steel);
  border-radius: 6px;
}

/* ====== END OF CSS ====== */
