/* ============================================================
   Global / Base – ruhige Typografie & konsistente Abstände
   ============================================================ */
:root {
  --brand-blue-600: #2563eb;
  --brand-blue-700: #1d4ed8;
  --ink-900: #0f172a;
  --ink-800: #1e293b;
  --ink-700: #334155;
  --ink-600: #475569;
  --muted-500: #94a3b8;
  --panel: #ffffff;
  --panel-alt: #f8fafc;
  --border: #e5e7eb;
  --shadow-1: 0 3px 12px rgba(0, 0, 0, 0.06);
  --shadow-2: 0 12px 30px rgba(2, 8, 23, 0.06);
  --radius-m: 14px;
  --radius-l: 18px;

  /* Cards / Grid (vereinheitlicht für B2C und B2B) */
  --card-height: 300px;
  --card-radius: 18px;
  --card-gap: 20px;
  --card-overlay-top-alpha: 0;
  --card-overlay-bottom-alpha: 0.45;
}

html,
body {
  font-family: "Open Sans", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased !important;
  text-rendering: optimizeLegibility !important;
  color: #4b5563;
  font-weight: 400;
  width: 100% !important;
  height: 100% !important;
  background: #fff;
}

h1,
h2,
h3,
h4,
h5 {
  font-family: "Raleway", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, sans-serif;
  color: var(--ink-900);
  margin: 0 0 0.35rem;
}
h1 {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 800;
  line-height: 1.15;
  color: #fff;
}
h2 {
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.2px;
  text-transform: none;
}
h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink-900);
}
h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink-800);
}
h5 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--ink-700);
}

p {
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
}
p.intro {
  margin: 12px 0 0;
  line-height: 24px;
}

a {
  color: #608dfd;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s ease;
}
a:hover,
a:focus {
  color: #4f7df9;
  text-decoration: none;
  outline: 0;
}

ul,
ol {
  list-style: none;
  padding: 0;
  margin: 0;
}

hr {
  height: 2px;
  width: 70px;
  background: #1e7a46;
  border: 0;
  margin: 20px auto;
}

.container {
  padding-bottom: 0 !important;
}

/* ============================================================
   Section Title – einheitlich site-weit
   ============================================================ */
.section-title {
  margin: 0 0 18px;
  text-align: center;
}
.section-title h2 {
  position: relative;
  color: var(--ink-900);
}
.section-title h2::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -8px;
  transform: translateX(-50%);
  height: 4px;
  width: 60px;
  border-radius: 999px;
  background: linear-gradient(to right, #5ca9fb 0%, #6372ff 100%);
}
.section-title p {
  font-size: 16px;
  color: var(--ink-700);
  margin-top: 12px;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  font-size: 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--ink-900);
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease,
    transform 0.06s ease;
}
.btn:hover {
  background: #f3f4f6;
}
.btn:active {
  transform: translateY(1px);
}

.btn-custom {
  font-family: "Raleway", sans-serif;
  text-transform: none;
  color: #fff;
  background-image: linear-gradient(to right, #5ca9fb 0%, #6372ff 100%);
  border: 0;
  border-radius: 999px;
  padding: 12px 22px;
  letter-spacing: 0.2px;
  font-weight: 700;
  transition: filter 0.18s ease, transform 0.06s ease;
}
.btn-custom:hover {
  filter: brightness(1.05);
}
.btn-custom:active {
  transform: translateY(1px);
}

.btn-dark {
  background: var(--brand-blue-600);
  color: #fff;
  border-color: var(--brand-blue-600);
}
.btn-dark:hover {
  background: var(--brand-blue-700);
}


/* ============================================================
   Features
   ============================================================ */
#features {
  background: #f6f6f6;
}
#features i.fa {
  font-size: 38px;
  margin-bottom: 20px;
  transition: all 0.5s;
  color: #fff;
  width: 100px;
  height: 100px;
  padding: 30px 0;
  border-radius: 50%;
  background: linear-gradient(to right, #6372ff 0%, #5ca9fb 100%);
  box-shadow: 10px 10px 10px rgba(0, 0, 0, 0.05);
}

/* ============================================================
   About (konsolidiert)
   ============================================================ */
.about-split {
  display: flex;
  flex-wrap: wrap;
  min-height: 100vh;
}
.about-left,
.about-right {
  flex: 1;
  padding: 60px 40px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
}
.about-left {
  background: #f9fafb;
}
.about-right {
  background: #eef2ff;
  text-align: center;
  align-items: center;
}
.about-right .section-title,
.about-left .section-title {
  max-width: 600px;
  margin: 0 auto;
}
#about h2 {
  position: relative;
  margin-bottom: 20px;
  padding-bottom: 15px;
  padding-top: 100px;
  font-size: 36px;
  font-weight: 800;
  color: #1e3a8a;
  text-transform: uppercase;
  text-align: center;
}
#about h2::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(to right, #5ca9fb 0%, #6372ff 100%);
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  justify-items: center;
  margin-top: 40px;
}
.team-member {
  text-align: center;
}
.team-img {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border: 4px solid #fff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}
.team-img:hover {
  transform: scale(1.05);
}
.caption {
  margin-top: 12px;
  color: #555;
}
.caption h4 {
  font-size: 18px;
  margin: 8px 0 4px;
  color: #1e3a8a;
}
.caption p {
  font-size: 14px;
  color: #666;
}
@media (max-width: 768px) {
  .about-split {
    flex-direction: column;
  }
  .about-left,
  .about-right {
    padding: 40px 20px;
  }
  .team-img {
    width: 140px;
    height: 140px;
  }
}

/* ============================================================
   Container Breite
   ============================================================ */
.container,
.container-lg,
.container-md,
.container-sm,
.container-xl,
.container-xxl {
  }
}

/* ============================================================
   Portfolio
   ============================================================ */
#portfolio {
  padding: 100px 0;
}
.portfolio-item {
  margin: 1px -15px 0 -14px;
  padding: 0;
}
.portfolio-item .hover-bg {
  overflow: hidden;
  position: relative;
  margin: 0;
}
.hover-bg .hover-text {
  position: absolute;
  text-align: center;
  color: #fff;
  background: linear-gradient(
    to right,
    rgba(99, 114, 255, 0.8) 0%,
    rgba(92, 169, 251, 0.8) 100%
  );
  padding: 30% 0 0;
  height: 100%;
  width: 100%;
  opacity: 0;
  transition: all 0.5s;
}
.hover-bg .hover-text > h4 {
  opacity: 0;
  color: #fff;
  transform: translateY(100%);
  transition: all 0.3s;
  font-size: 18px;
  letter-spacing: 1px;
  font-weight: 600;
  text-transform: uppercase;
}
.hover-bg:hover .hover-text > h4 {
  opacity: 1;
  transform: translateY(0);
}
.hover-bg:hover .hover-text {
  opacity: 1;
}

/* ============================================================
   Testimonials
   ============================================================ */
#testimonials {
  padding: 100px 0;
  background: #f6f6f6;
}
#testimonials i {
  color: #e6e6e6;
  font-size: 32px;
  margin-bottom: 20px;
}
.testimonial {
  position: relative;
  padding: 20px;
}
.testimonial-image {
  float: left;
  margin-right: 15px;
}
.testimonial-image,
.testimonial-image img {
  display: block;
  width: 64px;
  height: 64px;
  border-radius: 50%;
}
.testimonial-content {
  position: relative;
  outline: 0;
}

/* ============================================================
   Footer
   ============================================================ */
#footer {
  background: #f6f6f6;
  padding: 30px 0;
}
#footer p {
  color: #888;
  font-size: 14px;
}
#footer a {
  color: #608dfd;
}
#footer a:hover {
  border-bottom: 2px solid #608dfd;
}

@media (max-width: 768px) {
  #about img {
    margin: 50px 0;
  }
}

/* ============================================================
   Profilbereich / Netzwerk / Übersicht
   ============================================================ */
.handwerker-profil {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
  padding: 80px 48px 48px;
  margin-bottom: 48px;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}
.handwerker-header {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
}
.handwerker-bild {
  flex: 0 0 160px;
  width: 160px;
  height: 160px;
  border-radius: 12px;
  object-fit: cover;
  border: 3px solid #f0f0f0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}
.handwerker-infos {
  flex: 1;
}
.handwerker-profil h1 {
  font-size: 32px;
  font-weight: 800;
  color: #1e3a8a;
  margin-bottom: 6px;
}
.handwerker-profil .firma {
  font-size: 20px;
  font-weight: 700;
  color: #444;
}
.handwerker-profil .beruf {
  font-style: italic;
  font-size: 16px;
  color: #666;
  margin: 8px 0 20px;
}
.handwerker-profil .beschreibung {
  font-size: 17px;
  line-height: 1.7;
  color: #333;
  margin-bottom: 30px;
}
.handwerker-profil .kategorie h2 {
  font-size: 22px;
  font-weight: 800;
  margin: 30px 0 12px;
  color: #1d4ed8;
  border-bottom: 2px solid #e0e7ff;
  padding-bottom: 6px;
}
.handwerker-profil .kategorie ul {
  list-style: disc inside;
  color: #333;
  padding-left: 1rem;
  margin-bottom: 1rem;
}
.handwerker-profil .kategorie li {
  margin-bottom: 8px;
  line-height: 1.6;
}
.handwerker-profil .kategorie p,
.handwerker-profil .kategorie a {
  font-size: 15px;
  color: #1e3a8a;
  text-decoration: none;
}
.handwerker-profil .kategorie a:hover {
  text-decoration: underline;
}
.profil-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 20px;
}
#handwerkerSlider {
  margin: 32px;
}

.netzwerk-wrapper {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 80px 0 90px;
  background: #f9fafb;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}
.netzwerk-titel {
  position: absolute;
  top: -20px;
  left: 0;
  background: #0474c4;
  color: #fff;
  font-weight: 700;
  padding: 6px 16px;
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
  font-size: 14px;
}
.netzwerk-graph {
  position: relative;
  width: 100%;
  height: 500px;
}
.zentrum {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #1e3a8a;
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-weight: 800;
  font-size: 14px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.partner-node {
  position: absolute;
  width: 160px;
  height: 40px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: #1e3a8a;
  font-weight: 700;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}
.partner-line {
  position: absolute;
  width: 2px;
  background: #94a3b8;
  transform-origin: top left;
  z-index: 0;
}

/* ========================= Handwerker-Übersicht (modern) ========================= */

.handwerker-uebersicht {
  --hw-radius: 16px;
  --hw-border: #e5e7eb;
  --hw-panel: #ffffff;
  --hw-muted: #64748b;
  --hw-ink: #0f172a;
  --hw-shadow: 0 10px 30px rgba(2, 8, 23, 0.06);

  padding: clamp(32px, 5vw, 56px) 20px;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.handwerker-uebersicht h2 {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
  color: var(--hw-ink);
  text-align: center;
  margin: 0 0 10px;
}

.handwerker-uebersicht .section-subtitle {
  text-align: center;
  color: var(--hw-muted);
  font-size: 15px;
  margin-bottom: 22px;
}

/* Toolbar: Suche + Filter in einer cleanen Leiste */
.filter-container {
  --gap: 10px;
  max-width: 1100px;
  margin: 0 auto 24px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr auto;
  gap: var(--gap);
  align-items: center;
}

@media (max-width: 900px) {
  .filter-container {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 520px) {
  .filter-container {
    grid-template-columns: 1fr;
  }
}

.filter-container .hw-input,
.filter-container select {
  border: 1px solid var(--hw-border);
  background: #fff;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 14px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease,
    transform 0.06s ease;
}
.filter-container .hw-input:focus,
.filter-container select:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
.filter-container .btn {
  border: 1px solid var(--hw-border);
  background: #fff;
  color: var(--hw-ink);
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 600;
  transition: background 0.15s, transform 0.06s, box-shadow 0.15s;
}
.filter-container .btn:hover {
  background: #f1f5f9;
}

/* Grid: ruhiger, gleichmäßiger Rhythmus */
.handwerker-grid {
  --card-min: 260px;
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(var(--card-min), 1fr));
  gap: 18px;
}

/* Karte: flach, klar, gutes Hover */
.handwerker-card {
  position: relative;
  border: 1px solid var(--hw-border);
  border-radius: var(--hw-radius);
  background: var(--hw-panel);
  box-shadow: var(--hw-shadow);
  padding: 12px;
  transition: transform 0.16s ease, box-shadow 0.2s ease,
    border-color 0.16s ease;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.handwerker-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 38px rgba(2, 8, 23, 0.08);
  border-color: #cbd5e1;
}

/* Bild als ruhiges Hero im 3:2-Format */
.handwerker-card img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 12px;
  margin: 0;
}

/* Titel & Meta */
.handwerker-card h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--hw-ink);
  margin: 2px 0 0;
}
.handwerker-card .firma {
  font-size: 14px;
  color: var(--hw-ink);
  font-weight: 600;
  opacity: 0.9;
}
.handwerker-card .beruf {
  font-size: 13px;
  color: var(--hw-muted);
  margin-top: -2px;
}

/* kleine Meta-Reihe (z. B. Ort, Bewertung) – optional */
.hw-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: center;
  color: var(--hw-muted);
  font-size: 12px;
}

/* Tags (optional): */
.hw-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.hw-tag {
  border: 1px solid var(--hw-border);
  background: #fff;
  color: #334155;
  padding: 4px 8px;
  font-size: 12px;
  border-radius: 999px;
}

/* CTA: dezent, aber klar */
.handwerker-card .profil-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 6px;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 800;
  background: linear-gradient(135deg, #5ca9fb 0%, #6372ff 100%);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 10px 20px rgba(99, 114, 255, 0.22);
  transition: transform 0.12s ease, filter 0.16s ease, box-shadow 0.18s ease;
}
.handwerker-card .profil-button:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
  box-shadow: 0 16px 32px rgba(99, 114, 255, 0.28);
}

/* Badge oben links (optional: “Top bewertet”, “Neu”, …) */
.hw-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(15, 23, 42, 0.68);
  color: #fff;
  font-size: 11px;



