/* =====================================================
   DIMA Service – Shared Stylesheet
   Farben: #3078A4 / #2387C0 | Weiß/Hell | Schwarz
   ===================================================== */

:root {
  --brand-dark:   #3078A4;
  --brand-mid:    #2387C0;
  --brand-light:  #EAF4FB;
  --brand-pale:   #F5FAFD;
  --accent:       #1a6fa3;

  --text:         #111827;
  --muted:        #4b5563;
  --border:       rgba(32,120,180,.18);

  --radius:       14px;
  --radius-sm:    8px;
  --shadow:       0 4px 24px rgba(32,120,180,.10);
  --shadow-md:    0 8px 36px rgba(32,120,180,.14);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Nunito Sans", "Segoe UI", system-ui, sans-serif;
  color: var(--text);
  background: #ffffff;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3 {
  font-family: "Sora", "Segoe UI", system-ui, sans-serif;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--text);
}

h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); margin-bottom: 1rem; }
h2 { font-size: clamp(1.25rem, 2.5vw, 1.6rem); margin-bottom: .75rem; margin-top: 2rem; color: var(--brand-dark); }
h3 { font-size: 1.05rem; margin-bottom: .4rem; color: var(--brand-dark); }

p { margin-bottom: 1rem; font-size: 1.02rem; color: #1f2937; }
p:last-child { margin-bottom: 0; }

a { color: var(--brand-dark); text-decoration-color: rgba(32,120,180,.35); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--brand-mid); }

ul, ol { padding-left: 1.25rem; margin-bottom: 1rem; }
li { margin-bottom: .35rem; }
li::marker { color: var(--brand-mid); }

/* ===== HEADER ===== */
header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: .85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo img {
  max-height: 52px;
  width: auto;
  display: block;
}

/* ===== NAV ===== */
nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  padding: 0;
  margin: 0;
  justify-content: flex-end;
}

nav a {
  text-decoration: none;
  font-size: .88rem;
  font-weight: 700;
  color: var(--text);
  padding: .42rem .85rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  transition: all .18s ease;
  white-space: nowrap;
}

nav a:hover,
nav a.active {
  background: var(--brand-light);
  border-color: rgba(32,120,180,.3);
  color: var(--brand-dark);
}

nav a.cta-nav {
  background: var(--brand-mid);
  color: #fff;
  border-color: transparent;
}
nav a.cta-nav:hover {
  background: var(--brand-dark);
  color: #fff;
}

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, var(--brand-pale) 0%, #dceef8 60%, #f0f8ff 100%);
  border-bottom: 1px solid var(--border);
  padding: 3.5rem 1.25rem 3rem;
}

.hero-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-text .badge {
  display: inline-block;
  background: rgba(32,120,180,.12);
  color: var(--brand-dark);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .3rem .75rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.hero-text h1 { margin-bottom: .75rem; }

.hero-text .lead {
  font-size: 1.08rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
  line-height: 1.65;
}

.hero-img img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  display: block;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-weight: 700;
  font-size: .97rem;
  padding: .72rem 1.4rem;
  border-radius: 999px;
  text-decoration: none;
  transition: all .18s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--brand-mid);
  color: #fff;
  box-shadow: 0 4px 14px rgba(35,135,192,.3);
}
.btn-primary:hover {
  background: var(--brand-dark);
  box-shadow: 0 6px 20px rgba(35,135,192,.35);
  transform: translateY(-1px);
  color: #fff;
  text-decoration: none;
}

.btn-outline {
  background: transparent;
  color: var(--brand-dark);
  border: 2px solid var(--brand-mid);
}
.btn-outline:hover {
  background: var(--brand-light);
  transform: translateY(-1px);
  color: var(--brand-dark);
  text-decoration: none;
}

.btn-group {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  align-items: center;
}

/* ===== SECTION WRAPPER ===== */
.section {
  max-width: 1000px;
  margin: 0 auto;
  padding: 3rem 1.25rem;
}

.section-sm {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem 1.25rem;
}

.section-bg {
  background: var(--brand-pale);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* ===== CARDS ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: box-shadow .2s, transform .2s;
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card-icon {
  width: 44px;
  height: 44px;
  background: var(--brand-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.4rem;
}

.card h3 { margin-bottom: .4rem; font-size: 1rem; color: var(--text); }
.card p { font-size: .93rem; color: var(--muted); margin: 0; }

/* ===== SERVICE CARD LINK ===== */
.card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}
.card-link .card { cursor: pointer; }
.card-link .card-arrow {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .88rem;
  font-weight: 700;
  color: var(--brand-dark);
  margin-top: .75rem;
}

/* ===== CTA BANNER ===== */
.cta-banner {
  background: linear-gradient(135deg, var(--brand-dark), var(--brand-mid));
  color: #fff;
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  text-align: center;
  margin: 2.5rem 0;
}

.cta-banner h2 {
  color: #fff;
  margin-top: 0;
  margin-bottom: .5rem;
}
.cta-banner p {
  color: rgba(255,255,255,.88);
  max-width: 600px;
  margin: 0 auto 1.5rem;
}
.cta-banner .btn-primary {
  background: #fff;
  color: var(--brand-dark);
  box-shadow: 0 4px 14px rgba(0,0,0,.15);
}
.cta-banner .btn-primary:hover {
  background: rgba(255,255,255,.9);
  color: var(--brand-dark);
}
.cta-banner .btn-outline {
  border-color: rgba(255,255,255,.6);
  color: #fff;
}
.cta-banner .btn-outline:hover {
  background: rgba(255,255,255,.12);
  color: #fff;
}

/* ===== CONTENT PROSE ===== */
.prose { max-width: 760px; }
.prose h2 { margin-top: 2rem; }
.prose p { line-height: 1.75; }
.prose ul { line-height: 1.7; }

/* ===== FAQ ===== */
.faq-list { margin-top: 1.5rem; }

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: .75rem;
  overflow: hidden;
  background: #fff;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  cursor: pointer;
  font-weight: 700;
  font-size: .97rem;
  gap: 1rem;
  user-select: none;
  transition: background .15s;
}
.faq-question:hover { background: var(--brand-pale); }

.faq-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  background: var(--brand-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  color: var(--brand-dark);
  font-weight: 900;
  transition: transform .2s;
}

.faq-item.open .faq-icon { transform: rotate(45deg); }

.faq-answer {
  display: none;
  padding: 0 1.25rem 1rem;
  font-size: .97rem;
  color: var(--muted);
  line-height: 1.7;
}
.faq-item.open .faq-answer { display: block; }

/* ===== PAGE HERO (Unterseiten) ===== */
.page-hero {
  background: linear-gradient(135deg, var(--brand-pale) 0%, #dceef8 100%);
  border-bottom: 1px solid var(--border);
  padding: 2.5rem 1.25rem 2rem;
}

.page-hero-inner {
  max-width: 1000px;
  margin: 0 auto;
}

.page-hero .breadcrumb {
  font-size: .83rem;
  color: var(--muted);
  margin-bottom: .75rem;
}
.page-hero .breadcrumb a { color: var(--brand-dark); text-decoration: none; }
.page-hero .breadcrumb a:hover { text-decoration: underline; }

.page-hero h1 { margin-bottom: .5rem; max-width: 700px; }
.page-hero .lead { font-size: 1.05rem; color: var(--muted); max-width: 680px; margin-bottom: 1.25rem; }

/* ===== HIGHLIGHT BOX ===== */
.highlight-box {
  background: var(--brand-light);
  border-left: 4px solid var(--brand-mid);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1.1rem 1.4rem;
  margin: 1.5rem 0;
  font-size: .97rem;
  color: var(--text);
}

/* ===== CONTACT STRIP ===== */
.contact-strip {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow);
  margin: 2rem 0;
}

.contact-strip .contact-item {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-weight: 700;
  font-size: .97rem;
  color: var(--text);
  text-decoration: none;
}
.contact-strip .contact-item:hover { color: var(--brand-dark); }
.contact-strip .contact-icon {
  width: 36px;
  height: 36px;
  background: var(--brand-light);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

/* ===== FOOTER ===== */
footer {
  background: #f9fafb;
  border-top: 1px solid var(--border);
  padding: 2.5rem 1.25rem 1.5rem;
}

.footer-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 2rem;
}

footer h3 { font-size: .95rem; margin-bottom: .75rem; color: var(--text); }
footer ul { list-style: none; padding: 0; margin: 0; }
footer li { margin-bottom: .35rem; }
footer a { font-size: .9rem; color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--brand-dark); }

.footer-bottom {
  max-width: 1000px;
  margin: 1.5rem auto 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  font-size: .83rem;
  color: var(--muted);
}

.footer-bottom a { color: var(--muted); text-decoration: none; }
.footer-bottom a:hover { color: var(--brand-dark); }

/* ===== IMPRESSUM ===== */
.impressum-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.impressum-block {
  background: var(--brand-pale);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.impressum-block strong { color: var(--brand-dark); }

/* ===== RESPONSIVE ===== */
@media (max-width: 720px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }
  .hero-img { display: none; }

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: .5rem;
  }

  nav ul { justify-content: flex-start; gap: .3rem; }
  nav a { font-size: .8rem; padding: .35rem .7rem; }

  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; }
  .contact-strip { flex-direction: column; align-items: flex-start; }
  .btn { width: 100%; justify-content: center; }
  .btn-group { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
