/* DibroPensi Autowerkstatt - Professional Corporate Flexbox CSS */

/* ===== CSS RESET & BASE ===== */
html {
  box-sizing: border-box;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Roboto', Arial, sans-serif;
  background: #F4F5F7;
  color: #273747;
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
a {
  color: #273747;
  text-decoration: none;
  transition: color 0.2s;
}

ul, ol {
  margin-left: 24px;
  margin-bottom: 16px;
}
li {
  margin-bottom: 8px;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: #273747;
  margin-bottom: 16px;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}
p, address {
  margin-bottom: 16px;
  color: #273747;
}
sub, sup {
  font-size: 80%;
}
strong {
  color: #273747;
  font-weight: 700;
}
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
  font-size: 1rem;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 3px 12px 0 rgba(39,55,71,0.05);
}
thead th {
  background: #273747;
  color: #fff;
  text-align: left;
  padding: 16px 10px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
}
tbody td {
  padding: 14px 10px;
  border-bottom: 1px solid #e5e7eb;
}
tbody tr:last-child td {
  border-bottom: none;
}

/* ===== CONTAINER & SECTION SPACING ===== */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.text-section {
  margin-bottom: 24px;
}

/* ===== HEADER & NAVIGATION ===== */
header {
  background: #fff;
  box-shadow: 0 3px 16px rgba(39,55,71,0.06);
  position: relative;
  z-index: 40;
}
header .container {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 28px;
  min-height: 84px;
  justify-content: space-between;
}
header nav {
  display: flex;
  gap: 24px;
  align-items: center;
}
header nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  color: #273747;
  padding: 8px 8px;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
  position: relative;
}
header nav a:hover,
header nav a:focus {
  background: #D8A90015;
  color: #D8A900;
}
.cta-button {
  display: inline-block;
  background: #D8A900;
  color: #fff;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  padding: 12px 28px;
  border: none;
  border-radius: 6px;
  box-shadow: 0 3px 10px rgba(39,55,71,0.04);
  cursor: pointer;
  margin-left: 16px;
  transition: background 0.20s, box-shadow 0.18s, transform 0.16s;
}
.cta-button:hover,
.cta-button:focus {
  background: #273747;
  color: #fff;
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 6px 18px 0 rgba(39,55,71,0.15);
}

/* ===== HERO ===== */
.hero {
  background: #273747 url('../assets/hero-bg.jpg') center/cover no-repeat;
  color: #fff;
  position: relative;
  margin-bottom: 60px;
  min-height: 340px;
  display: flex;
  align-items: center;
}
.hero .container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 340px;
}
.hero .content-wrapper {
  color: #fff;
  gap: 18px;
  flex: 1;
  max-width: 680px;
}
.hero h1 {
  color: #fff;
  font-size: 2.5rem;
}
.hero .subheadline {
  color: #D8A900;
  font-size: 1.25rem;
  font-weight: 400;
  margin-bottom: 22px;
}
.hero .cta-button {
  background: #D8A900;
  color: #273747;
}
.hero .cta-button:hover {
  background: #fff;
  color: #273747;
}

/* ===== FLEXBOX LAYOUTS FOR SECTIONS & CARDS ===== */
.feature-grid, .service-list, .service-category-list, .testimonial-slider, .testimonial-list, .team-member-profile, .faq-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.feature-grid > div, .service-list > div, .service-category-list > div, .testimonial-card, .team-member-profile .text-section {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 3px 16px 0 rgba(39,55,71,0.07);
  padding: 28px 20px;
  flex: 1 1 270px;
  min-width: 250px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  transition: box-shadow 0.2s, transform 0.18s;
  position: relative;
}
.feature-grid > div:hover, .service-list > div:hover, .service-category-list > div:hover, .testimonial-card:hover, .team-member-profile .text-section:hover {
  box-shadow: 0 10px 28px 0 rgba(39,55,71,0.13);
  transform: translateY(-2px) scale(1.015);
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 3px 10px 0 rgba(39,55,71,0.09);
  padding: 24px;
  min-width: 220px;
}
.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;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 22px 20px 22px;
  background: #fff;
  color: #273747;
  border-radius: 12px;
  box-shadow: 0 3px 16px rgba(39,55,71,0.11);
  min-width: 260px;
  max-width: 340px;
  margin-bottom: 20px;
}
.testimonial-card span {
  font-size: 1rem;
  color: #273747;
}
.testimonial-card strong {
  color: #D8A900;
  font-weight: 600;
}

.testimonial-slider, .testimonial-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: stretch;
}

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

/* ===== FOOTER ===== */
footer {
  background: #273747;
  color: #fff;
  font-size: 1rem;
  margin-top: 48px;
  padding-top: 32px;
  padding-bottom: 18px;
  border-top: 5px solid #D8A900;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 28px;
}
.footer-nav nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-nav a {
  color: #fff;
  opacity: 0.90;
  font-size: 1rem;
  padding: 4px 0;
  border-radius: 3px;
  transition: background 0.16s, color 0.16s;
}
.footer-nav a:hover,
.footer-nav a:focus {
  color: #D8A900;
  background: #fff2;
}
.footer-contact {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.footer-contact img {
  width: 44px;
  height: auto;
  margin-bottom: 6px;
}
.footer-bottom {
  padding-top: 12px;
  text-align: left;
  font-size: 0.98rem;
  color: #fff;
  opacity: 0.75;
}

/* ===== FAQ ===== */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 24px;
}
.faq-list h3 {
  font-size: 1.1rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #273747;
  font-weight: 600;
}
.faq-list p {
  color: #273747;
  margin-bottom: 10px;
}

/* ===== TEAM PROFILE ===== */
.team-member-profile {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 32px;
}
.team-member-profile .text-section {
  flex: 1 1 230px;
  min-width: 230px;
  padding: 22px 18px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 10px 0 rgba(39,55,71,0.07);
}

/* ===== TABLES ===== */
table {
  box-shadow: 0 2px 8px 0 rgba(39,55,71,0.08);
  border-radius: 10px;
  overflow: hidden;
}
thead th {
  background: #273747;
  color: #fff;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
}
tbody td {
  color: #273747;
  background: #fff;
}

/* ===== BUTTONS ===== */
button, .cta-button {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  outline: none;
  cursor: pointer;
}
button:focus:not(:active), .cta-button:focus:not(:active) {
  box-shadow: 0 0 0 3px #D8A90044;
}

/* ===== ADDRESS ===== */
address {
  font-style: normal;
  color: #273747;
  margin-bottom: 16px;
}
address img {
  margin-right: 8px;
  vertical-align: middle;
}

/* ===== TRANSITIONS & EFFECTS ===== */
.card, .cta-button, .testimonial-card, .feature-grid > div, .service-list > div, .service-category-list > div {
  transition: box-shadow 0.17s, transform 0.13s;
}
.card:hover, .service-list > div:hover, .feature-grid > div:hover, .testimonial-card:hover {
  box-shadow: 0 8px 32px 0 rgba(39,55,71,0.16);
  transform: translateY(-2px) scale(1.018);
}

/* ===== SPACING CLASSES (MANDATORY) ===== */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
}
.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;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ===== MOBILE NAVIGATION/ BURGER MENU ===== */
.mobile-menu-toggle {
  display: none;
  background: #D8A900;
  color: #273747;
  font-size: 2rem;
  line-height: 1;
  border: none;
  border-radius: 8px;
  padding: 6px 16px 8px 16px;
  margin-left: 12px;
  cursor: pointer;
  z-index: 101;
  transition: background 0.18s, color 0.18s, box-shadow 0.16s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #fff;
  color: #D8A900;
  box-shadow: 0 3px 12px 0 rgba(39,55,71,0.13);
}
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #273747;
  color: #fff;
  z-index: 999;
  transform: translateX(-100%);
  transition: transform 0.32s cubic-bezier(.22, .61, .36, 1), opacity 0.24s;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 0;
}
.mobile-menu.active {
  display: flex;
  transform: translateX(0%);
  opacity: 1;
  animation: mobmenu-slide-in 0.36s cubic-bezier(.25, .46, .45, .94);
}
@keyframes mobmenu-slide-in {
  from { transform: translateX(-100%); opacity: 0; }
  to   { transform: translateX(0%); opacity: 1; }
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 22px 24px 0 0;
  background: #fff;
  border: none;
  color: #D8A900;
  font-size: 2rem;
  line-height: 1;
  border-radius: 6px;
  padding: 4px 16px 8px 16px;
  cursor: pointer;
  z-index: 1001;
  transition: background 0.16s, color 0.14s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #D8A900;
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  width: 100%;
  align-items: flex-start;
  gap: 20px;
  margin-top: 32px;
  padding-left: 40px;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.25rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 500;
  padding: 12px 0;
  border-radius: 5px;
  width: 100%;
  display: block;
  transition: background 0.14s, color 0.13s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  color: #D8A900;
  background: #fff2;
}

/* ===== COOKIE CONSENT BANNER & MODAL ===== */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: #273747;
  color: #fff;
  z-index: 1200;
  padding: 22px 18px;
  box-shadow: 0 -3px 16px rgba(39,55,71,0.18);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 24px;
  animation: cookie-appear 0.55s cubic-bezier(.25, .46, .45, .94);
}
@keyframes cookie-appear {
  from {opacity: 0; transform: translateY(90px);}
  to {opacity: 1; transform: translateY(0);}
}
.cookie-banner p {
  font-size: 1rem;
  color: #fff;
  margin-bottom: 0;
  max-width: 420px;
}
.cookie-buttons {
  display: flex;
  gap: 14px;
}
.cookie-btn, .cookie-btn-primary {
  border: none;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  padding: 10px 22px;
  border-radius: 5px;
  margin: 0 5px;
  cursor: pointer;
  transition: background 0.18s, color 0.13s, box-shadow 0.17s;
}
.cookie-btn-primary {
  background: #D8A900;
  color: #273747;
  font-weight: 700;
}
.cookie-btn-primary:hover, .cookie-btn-primary:focus {
  background: #fff;
  color: #D8A900;
}
.cookie-btn {
  background: #fff;
  color: #273747;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #D8A90044;
  color: #273747;
}

/* Cookie Modal Popup */
.cookie-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-52%) scale(1);
  min-width: 340px;
  max-width: 96vw;
  background: #fff;
  color: #273747;
  border-radius: 18px;
  box-shadow: 0 6px 48px 0 rgba(39,55,71,0.27);
  padding: 36px 26px 30px 26px;
  z-index: 1201;
  display: none;
  flex-direction: column;
  gap: 18px;
  animation: cookie-modal-in 0.5s cubic-bezier(.32, .9, .71, 1.45);
}
@keyframes cookie-modal-in {
  from { opacity: 0; transform: translate(-50%,-62%) scale(0.83);}
  to   { opacity: 1; transform: translate(-50%,-52%) scale(1);}
}
.cookie-modal.active {
  display: flex;
}
.cookie-modal h3 {
  font-size: 1.25rem;
  color: #273747;
  margin-bottom: 8px;
}
.cookie-category-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 16px;
}
.cookie-category-list label {
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.cookie-category-list input[type="checkbox"] {
  accent-color: #D8A900;
  width: 19px;
  height: 19px;
  margin: 0 8px 0 0;
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  gap: 16px;
  margin-top: 10px;
  justify-content: flex-end;
}
.cookie-modal .close-modal {
  position: absolute;
  top: 14px;
  right: 20px;
  background: none;
  border: none;
  color: #273747;
  font-size: 1.45rem;
  cursor: pointer;
}
.cookie-modal .close-modal:hover,
.cookie-modal .close-modal:focus {
  color: #D8A900;
}

/* Example Essential Cookie Always Enabled style */
.cookie-category-list .essential {
  color: #273747;
  font-weight: 600;
  opacity: 0.82;
}
.cookie-modal .essential input[type="checkbox"] {
  display: none;
}

/* ===== RESPONSIVE: MOBILE-FIRST ===== */
@media (max-width: 1150px) {
  .container { max-width: 970px; }
  .hero h1 {font-size: 2.2rem;}
}
@media (max-width: 900px) {
  .container { max-width: 730px; }
  .feature-grid > div, .service-category-list > div, .service-list > div, .team-member-profile .text-section, .card {
    min-width: 200px;
    flex: 1 1 200px;
  }
  header .container {gap: 16px;}
}
@media (max-width: 768px) {
  h1 {font-size: 2rem;}
  h2 {font-size: 1.4rem;}
  .section {padding: 24px 8px; margin-bottom: 48px;}
  .footer-contact, .footer-nav {flex-direction: column; gap: 18px;}
  .content-wrapper, .feature-grid, .service-list, .service-category-list, .testimonial-list, .testimonial-slider, .card-container, .team-member-profile {
    flex-direction: column;
    gap: 20px;
  }
  .feature-grid > div, .service-category-list > div, .service-list > div, .team-member-profile .text-section, .card {
    min-width: 0;
    width: 100%;
  }
  .content-grid, .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start !important;
  }
  thead th, tbody td { padding-left: 6px; padding-right: 6px; }
  .hero {
    min-height: 220px;
    background-position: center center;
  }
  .hero .container { min-height: 220px; }
}
@media (max-width: 650px) {
  .container { padding-left:12px; padding-right:12px; }
  header .container {padding-left:0; padding-right:0;}
  .hero h1 { font-size: 1.25rem; }
}
@media (max-width: 540px) {
  .hero .content-wrapper { padding:0 2px; }
  .footer-contact img {width:38px;}
  .cookie-modal { min-width: 90vw; padding: 20px 5vw; }
}

/* ===== HIDE/SHOW NAV ON MOBILE ===== */
@media (max-width: 992px) {
  header nav,
  .cta-button {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
}

@media (min-width: 993px) {
  .mobile-menu {
    display: none !important;
  }
}

/* ===== FORM ELEMENTS (if forms are added later) ===== */
input, select, textarea {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  padding: 10px 12px;
  border: 1px solid #dee2e6;
  border-radius: 5px;
  margin-bottom: 18px;
  width: 100%;
  background: #fff;
  color: #273747;
}
input:focus, select:focus, textarea:focus {
  border-color: #D8A900;
  outline: 2px solid #D8A90033;
}
label {
  display: block;
  color: #273747;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  margin-bottom: 7px;
}

/* ===== MISC ===== */
::-webkit-input-placeholder {color: #a1aabb;}
::-moz-placeholder {color: #a1aabb;}
:-ms-input-placeholder {color: #a1aabb;}
::placeholder {color: #a1aabb;}

::-webkit-scrollbar {
  width: 10px;
  background: #F4F5F7;
}
::-webkit-scrollbar-thumb {
  background: #D8A90033;
  border-radius: 4px;
}

/* ===== VISUAL HIERARCHY & MICRO-INTERACTIONS ===== */
.cta-button, .cookie-btn, .cookie-btn-primary, .mobile-menu-toggle, .mobile-menu-close {
  transition: background 0.19s, color 0.18s, box-shadow 0.18s, transform 0.14s;
}

/* ===== ACCESSIBILITY (FOCUS STATES ETC.) ===== */
:focus {
  outline: 2px solid #D8A90099;
  outline-offset: 2px;
}


/* ===== PRINT (OPTIONAL: clean output) ===== */
@media print {
  header, footer, .cookie-banner, .cookie-modal, .mobile-menu {
    display: none !important;
  }
  body { background: #fff; color: #000; }
}
