/* =======================================
   Elegant Classic CSS for DIPLOGARNE Autoberatung
   ======================================= */
/* Reset and Normalize */
html { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; margin: 0; padding: 0; }
html, body { height: 100%; font-size: 16px; }
body {
  background: #F3F6F8;
  color: #232323;
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  line-height: 1.7;
  min-height: 100vh;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  font-smooth: always;
}
img { max-width: 100%; height: auto; display: block; }
a { color: #388D80; text-decoration: none; transition: color 0.2s; }
a:hover, a:focus { color: #1B232C; }
ul, ol { padding-left: 2em; }
button, input, select, textarea {
  font-family: inherit;
  font-size: 1em;
  background: none;
  border: none;
  outline: none;
  box-shadow: none;
}
button { cursor: pointer; }

/* Typography Hierarchy */
h1, .h1 {
  font-family: 'Montserrat', Georgia, serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: #1B232C;
  margin-bottom: 24px;
  line-height: 1.18;
}
h2, .h2 {
  font-family: 'Montserrat', Georgia, serif;
  font-size: 2rem;
  font-weight: 600;
  color: #1B232C;
  margin-bottom: 20px;
  line-height: 1.22;
}
h3, .h3 {
  font-family: 'Montserrat', Georgia, serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: #1B232C;
  margin-bottom: 16px;
}
h4, .h4 {
  font-family: 'Montserrat', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 500;
  color: #1B232C;
}
p, ul, ol, li, table, th, td {
  font-family: 'Open Sans', Georgia, serif;
  font-size: 1rem;
  color: #232323;
}
strong {
  color: #1B232C;
  font-weight: bold;
}

/* Container & Layouts */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 32px rgba(27, 35, 44, 0.08);
}

/* Header & Main Nav */
header {
  background: #fff;
  border-bottom: 1px solid #EAEAEA;
  box-shadow: 0 2px 8px rgba(27, 35, 44, 0.07);
  position: sticky;
  top: 0;
  z-index: 990;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 80px;
}
header img {
  height: 48px;
  margin-right: 24px;
  flex-shrink: 0;
}
.main-nav {
  display: flex;
  gap: 24px;
  align-items: center;
}
.main-nav a {
  font-family: 'Montserrat', Georgia, serif;
  font-weight: 500;
  color: #1B232C;
  font-size: 1rem;
  padding: 6px 0;
  opacity: 0.92;
  position: relative;
  transition: color 0.15s, opacity 0.18s;
}
.main-nav a:after {
  content: '';
  display: block;
  height: 2px;
  width: 0;
  background: #388D80;
  border-radius: 2px;
  transition: width 0.22s;
  margin-top: 2px;
}
.main-nav a:hover:after, .main-nav a:focus:after {
  width: 100%;
}
.main-nav a.active, .main-nav a:focus, .main-nav a:hover {
  color: #388D80;
  opacity: 1;
}

.btn-primary, .btn-secondary {
  font-family: 'Montserrat', Georgia, serif;
  border-radius: 24px;
  padding: 12px 32px;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: none;
  display: inline-block;
  box-shadow: 0 2px 10px rgba(56, 141, 128, 0.09);
  transition: background 0.18s, color 0.16s, box-shadow 0.18s, transform 0.16s;
}
.btn-primary {
  color: #fff;
  background: #388D80;
  box-shadow: 0 2px 10px rgba(56,141,128,0.13);
  margin-left: 16px;
}
.btn-primary:hover, .btn-primary:focus {
  background: #1B232C;
  color: #fff;
  transform: translateY(-1px) scale(1.03);
}
.btn-secondary {
  color: #388D80;
  background: #F3F6F8;
  border: 1px solid #388D80;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: #388D80;
  color: #fff;
}

/* Mobile Navigation */
.mobile-menu-toggle {
  display: none;
  background: #388D80;
  color: #fff;
  font-size: 2.1rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  border: none;
  z-index: 1021;
  transition: background 0.2s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #1B232C;
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(243,246,248,0.97);
  transform: translateX(100%);
  transition: transform 0.33s cubic-bezier(.62,1.8,.5,1), background 0.24s;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
  box-shadow: -6px 0 32px rgba(27,35,44,0.09);
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
}
.mobile-menu-close {
  background: transparent;
  color: #1B232C;
  font-size: 2.4rem;
  border: none;
  margin: 30px 0 10px 24px;
  align-self: flex-start;
  z-index: 1210;
  cursor: pointer;
  transition: color 0.15s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #388D80;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
  width: 100%;
  padding: 20px 32px 20px 40px;
}
.mobile-nav a {
  font-family: 'Montserrat', Georgia, serif;
  font-size: 1.18rem;
  font-weight: 600;
  color: #1B232C;
  padding: 14px 0;
  border-bottom: 1px solid #EAEAEA;
  transition: color 0.17s, background 0.19s;
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:active, .mobile-nav a:focus, .mobile-nav a:hover {
  color: #388D80;
  background: #E5F1EE;
}

@media (max-width: 1024px) {
  header .container {
    gap: 10px;
  }
  .main-nav {
    gap: 12px;
  }
}

@media (max-width: 900px) {
  .main-nav {
    gap: 8px;
  }
  .btn-primary {
    margin-left: 8px;
  }
}

@media (max-width: 820px) {
  header .container {
    flex-wrap: wrap;
  }
}

@media (max-width: 850px) {
  .main-nav {
    display: none;
  }
  .btn-primary {
    margin-left: 0;
  }
  .mobile-menu-toggle {
    display: flex;
    margin-left: auto;
  }
}

/* Hero Section */
.hero {
  background: linear-gradient(90deg, #F3F6F8 70%, #E5F1EE 100%);
  padding: 54px 0 54px 0;
  border-bottom: 1px solid #EAEAEA;
}
.hero .container {
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero .content-wrapper {
  align-items: flex-start;
}
.hero h1 {
  font-size: 2.7rem;
}
.hero p {
  font-size: 1.2rem;
  color: #1B232C;
  opacity: 0.85;
  margin-bottom: 22px;
}

@media (max-width: 700px) {
  .hero {
    padding: 26px 0 26px 0;
  }
  .hero h1 {
    font-size: 2rem;
  }
}

/* Features Section */
.features {
  background: #fff;
}
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 24px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #F3F6F8;
  border-radius: 12px;
  padding: 30px 24px 24px 24px;
  box-shadow: 0 2px 8px rgba(27,35,44,0.05);
  width: calc(20% - 19.2px);
  min-width: 220px;
  flex: 1 1 220px;
  transition: box-shadow 0.22s, transform 0.17s;
}
.feature-item img {
  width: 40px;
  height: 40px;
}
.feature-item h3 {
  font-size: 1.18rem;
  color: #388D80;
  margin-bottom: 3px;
}
.feature-item p {
  font-size: 0.99rem;
  color: #1B232C;
  opacity: 0.92;
}
.feature-item:hover {
  box-shadow: 0 8px 28px rgba(56,141,128,0.13);
  transform: translateY(-4px) scale(1.03);
}

@media (max-width: 1100px) {
  .feature-item { width: calc(33.333% - 16px); }
}
@media (max-width: 900px) {
  .feature-item { width: calc(50% - 12px); }
}
@media (max-width: 600px) {
  .feature-grid {
    flex-direction: column;
    gap: 20px;
  }
  .feature-item {
    width: 100%;
  }
}

/* About Snippet */
.about-snippet .content-wrapper {
  align-items: flex-start;
}
.about-snippet p {
  font-size: 1.08rem;
  color: #232323;
  margin-bottom: 12px;
}

/* Testimonials Section */
.testimonials-preview {
  background: #E5F1EE;
  border-radius: 12px;
  margin-bottom: 60px;
  padding: 40px 0;
}
.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 22px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 28px 22px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 24px rgba(27,35,44,0.08);
  min-width: 250px;
  flex: 1 1 270px;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow 0.18s, transform 0.18s;
}
.testimonial-card span {
  color: #388D80;
  font-weight: 700;
  font-size: 1rem;
  opacity: 0.87;
}
.testimonial-card p {
  color: #1B232C;
  font-size: 1.05rem;
  font-style: italic;
  margin-bottom: 2px;
}
.testimonial-card:hover {
  box-shadow: 0 8px 35px rgba(56,141,128,0.13);
  transform: scale(1.035);
}

@media (max-width: 700px) {
  .testimonial-slider, .testimonial-list {
    flex-direction: column;
    gap: 20px;
  }
  .testimonial-card { min-width: 0; width: 100%; }
}

.customer-rating {
  font-size: 1.3rem;
  color: #FFD803;
  margin-bottom: 6px;
  letter-spacing: 1.3px;
}

/* CTA Section */
.cta {
  margin-bottom: 60px;
  padding: 40px 0;
  background: #388D80;
  border-radius: 16px;
}
.cta .content-wrapper {
  align-items: center;
}
.cta a.btn-primary {
  background: #fff;
  color: #388D80;
  border: 2px solid #fff;
  margin: 12px 0;
}
.cta a.btn-primary:hover, .cta a.btn-primary:focus {
  background: #1B232C;
  color: #fff;
  border-color: #1B232C;
}

/* Service List (Leistungen) */
.service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 28px;
}
.service-item {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: #F3F6F8;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(27,35,44,0.06);
  padding: 32px 20px 24px 20px;
  min-width: 230px;
  flex: 1 1 240px;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow 0.18s, transform 0.16s;
}
.service-item img {
  width: 42px;
  height: 42px;
}
.service-item h2 {
  font-size: 1.25rem;
  margin-bottom: 6px;
  color: #388D80;
}
.service-item p {
  color: #232323;
  opacity: 0.93;
  font-size: 1.02rem;
}
.service-item .price {
  color: #1B232C;
  background: #fff;
  padding: 4px 18px;
  border-radius: 7px;
  font-weight: 600;
  font-size: 1.07rem;
  align-self: flex-end;
  box-shadow: 0 1px 5px rgba(56,141,128,0.09);
}
.service-item:hover {
  box-shadow: 0 8px 28px rgba(56,141,128,0.13);
  transform: translateY(-3px) scale(1.028);
}

@media (max-width: 900px) {
  .service-item { width: calc(50% - 16px); }
}
@media (max-width: 600px) {
  .service-list {
    flex-direction: column;
    gap: 20px;
  }
  .service-item {
    width: 100%;
  }
}

/* Tables (Preise page) */
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(27,35,44,0.06);
  margin-bottom: 28px;
}
thead {
  background: #F3F6F8;
}
th, td {
  padding: 20px 12px;
  text-align: left;
}
th {
  font-family: 'Montserrat', Georgia, serif;
  font-weight: 600;
  color: #388D80;
  font-size: 1.1rem;
  border-bottom: 1px solid #EAEAEA;
}
td {
  font-size: 1.03rem;
  vertical-align: top;
  border-bottom: 1px solid #F3F6F8;
}
tr:last-child td {
  border-bottom: none;
}
@media (max-width: 700px) {
  table, tbody, tr, th, td {
    display: block;
    width: 100%;
  }
  th, td { padding: 12px 8px; }
  thead { display: none; }
  tr { margin-bottom: 20px; }
}

/* Steps Section (Ablauf) */
ol {
  margin-bottom: 18px;
  padding-left: 24px;
}
ol li {
  margin-bottom: 10px;
}
ul {
  margin-bottom: 14px;
}

/* Contact Section */
.contact-section .contact-details {
  margin-bottom: 18px;
}
.contact-details ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-left: 0;
}
.contact-details li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
  color: #232323;
}
.contact-details img {
  width: 24px;
  height: 24px;
  margin-right: 6px;
  opacity: 0.78;
}
.map-snippet {
  margin-top: 10px;
}

/* Legal Pages */
.legal {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(27,35,44,0.07);
  padding: 38px 22px;
  margin-bottom: 60px;
}
.legal h1, .legal h2, .legal h3 {
  margin-top: 18px;
}

/* Text Section */
.text-section {
  padding: 0 4px;
  margin-bottom: 10px;
}
.text-section ul {
  list-style: disc inside;
  padding-left: 10px;
  margin-bottom: 12px;
}
.text-section li {
  margin-bottom: 7px;
}

/* Thank You Page */
.thank-you {
  text-align: center;
  background: #E5F1EE;
  border-radius: 16px;
  padding: 60px 24px;
  margin-bottom: 60px;
}
.thank-you h1 {
  color: #388D80;
  margin-bottom: 20px;
}
.thank-you p {
  color: #1B232C;
  margin-bottom: 20px;
}

/* Footer */
footer {
  background: #fff;
  border-top: 1px solid #EAEAEA;
  padding: 30px 0 16px 0;
  margin-top: 40px;
  box-shadow: 0 -2px 16px rgba(27,35,44,0.04);
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.footer-nav {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-nav a {
  color: #388D80;
  font-family: 'Montserrat', serif;
  font-size: 1rem;
  font-weight: 600;
  opacity: 0.8;
  padding: 4px 0;
  transition: color 0.16s, opacity 0.14s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #1B232C;
  opacity: 1;
  border-bottom: 1px solid #388D80;
}
.brand-footer-info span {
  font-size: 0.98rem;
  color: #1B232C;
  opacity: 0.75;
}

/* Cards & Card Containers */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 24px rgba(27,35,44,0.07);
  margin-bottom: 20px;
  position: relative;
  padding: 26px 22px;
  transition: box-shadow 0.19s, transform 0.19s;
}
.card:hover {
  box-shadow: 0 10px 32px rgba(56,141,128,0.14);
  transform: translateY(-3px) scale(1.024);
}

/* Content Grid (for content layouts) */
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

/* Text-Image Section (e.g., for about, contact) */
.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: 20px;
  }
}

/* Testimonial Card (Kundenmeinungen.html) */
.testimonial-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 20px;
}

/* Additional Patterns */
.feature-item,
.testimonial-card,
.card,
.service-item {
  margin-bottom: 20px;
}

/* Spacing Utility */
.mb-24 { margin-bottom: 24px; }
.mb-40 { margin-bottom: 40px; }
.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }

/* Responsive (Mobile First) */
@media (max-width: 600px) {
  .container { padding: 0 10px; }
  .section, .legal {
    padding: 22px 4px;
    border-radius: 12px;
  }
  .hero, .features, .about-snippet, .testimonials-preview, .cta, .thank-you {
    padding-left: 4px;
    padding-right: 4px;
  }
  footer .footer-nav { gap: 18px; }
}

/* Cookie Consent Banner */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  color: #232323;
  box-shadow: 0 -2px 24px rgba(27,35,44,0.14);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 8px;
  gap: 24px;
  transition: transform 0.26s cubic-bezier(.71,1.6,.53,1);
  font-size: 1rem;
}
.cookie-banner.hide {
  transform: translateY(120%);
  pointer-events: none;
}
.cookie-banner .cookie-text {
  max-width: 500px;
  font-size: 1.01rem;
  color: #232323;
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 16px;
  align-items: center;
}
.cookie-btn {
  font-family: 'Montserrat', serif;
  border-radius: 22px;
  font-size: 1rem;
  padding: 8px 24px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.16s, color 0.13s;
}
.cookie-btn.accept {
  background: #388D80;
  color: #fff;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: #1B232C;
}
.cookie-btn.reject {
  background: #EAEAEA;
  color: #1B232C;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #E5F1EE;
  color: #388D80;
}
.cookie-btn.settings {
  background: #fff;
  border: 1.5px solid #388D80;
  color: #388D80;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #388D80;
  color: #fff;
}

@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 16px 2px 16px 2px;
  }
}

/* Cookie Modal Overlay */
.cookie-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(27, 35, 44, 0.33);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  pointer-events: all;
  transition: opacity 0.25s;
}
.cookie-modal.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal .modal-content {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 40px rgba(56,141,128,0.22);
  max-width: 400px;
  width: 93%;
  padding: 32px 22px 26px 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: cookie-modal-pop 0.31s cubic-bezier(.6,1.7,.4,1.2);
}
@keyframes cookie-modal-pop {
  0% { transform: scale(0.7) translateY(60px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}
.modal-header {
  font-family: 'Montserrat', serif;
  font-weight: 700;
  font-size: 1.23rem;
  margin-bottom: 6px;
  color: #388D80;
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.cookie-category label {
  font-family: 'Open Sans', serif;
  font-size: 1.09rem;
  color: #232323;
  margin-right: 12px;
}
.cookie-toggle {
  appearance: none;
  background: #E5F1EE;
  border: 1.5px solid #388D80;
  width: 44px;
  height: 24px;
  border-radius: 14px;
  position: relative;
  transition: background 0.17s;
  outline: none;
  cursor: pointer;
}
.cookie-toggle:checked {
  background: #388D80;
  border-color: #388D80;
}
.cookie-toggle:before {
  content: '';
  position: absolute;
  top: 2px;
  left: 3px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(27,35,44,0.06);
  transition: left 0.22s;
}
.cookie-toggle:checked:before {
  left: 21px;
}
.cookie-modal .modal-footer {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 18px;
}
/* End of Cookie Modal */

/* Microinteractions & Animations */
.btn-primary, .btn-secondary, .cookie-btn {
  transition: background 0.19s, color 0.19s, box-shadow 0.23s, border-color 0.16s, transform 0.13s;
}
.card, .testimonial-card, .feature-item, .service-item {
  transition: box-shadow 0.21s, transform 0.16s;
}

/* Hide scroll on body when modal/menu open */
.body-no-scroll {
  overflow: hidden !important;
  touch-action: none;
}

/* Focus Style for All Interactive Elements */
a:focus, button:focus, .btn-primary:focus, .btn-secondary:focus, .cookie-btn:focus {
  outline: 2px solid #388D80;
  outline-offset: 2px;
}

/* Accessibility: make text contrast strong on light backgrounds (esp. testimonials) */
.testimonial-card p, .testimonial-card span, .testimonial-list .testimonial-card p, .testimonial-list .testimonial-card span {
  color: #1B232C !important;
  background: none !important;
  text-shadow: none !important;
  opacity: 1 !important;
}

/* Hide visually (for a11y if needed) */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}
