/*
Theme Name: JuMa Theme
Theme URI: https://pflegedienst-juma.de
Description: Onepager-Child-Theme mit Sticky Header (Ambulanter Pflegedienst JuMa GmbH)
Author: JuMa
Template: astra
Version: 1.0.1
*/

:root{
  --brand-green: #2e7d32;
  --brand-green-50: #f0fdf4;
  --text: #1f2937;
  --muted: #4b5563;
  --border: #e5e7eb;
  --radius: 12px;
  --container: 1200px;
}
html{scroll-behavior:smooth;}
body{font-family:system-ui,Arial,sans-serif;color:var(--text);margin:0;line-height:1.55;}
img{max-width:100%;height:auto;display:block;}
a{color:var(--brand-green);text-decoration:none;}
a:hover{text-decoration:underline;}
h1,h2,h3{line-height:1.2;margin:.2em 0 .6em}
.container{max-width:var(--container);margin:0 auto;padding:0 20px}
.section{padding:60px 0}
section[id]{scroll-margin-top:90px}

/* Sticky Header */
.juma-header{
  background:#fff;
  border-bottom:2px solid var(--border);
  position:sticky;
  top:0;
  z-index:1000;
  display:flex;                 /* NEU */
  justify-content: center;      /* NEU ï¿½ zentriert den inneren Container */
  border-bottom:2px solid var(--border);
}
.admin-bar .juma-header{ top:32px; }
@media(max-width:782px){ .admin-bar .juma-header{ top:46px; } }

/* Schatten, wenn gescrollt */
.juma-header.is-stuck{ box-shadow: 0 6px 12px rgba(0,0,0,.06); }

.juma-header__inner{max-width:var(--container);margin:0 auto;padding:10px 20px;display:flex;align-items:center;justify-content:space-between;gap:20px}
.juma-logo img{height:40px;max-height:40px;width:auto}
@media(max-width:900px){.juma-logo img{height:34px;max-height:34px}}

.juma-nav-toggle{display:none;background:var(--brand-green);color:#fff;border:0;padding:8px 12px;border-radius:8px;cursor:pointer}
.juma-menu{list-style:none;margin:0;padding:0;display:flex;gap:10px}
.juma-menu li a{display:block;color:var(--brand-green);padding:10px 14px;border-radius:8px;font-weight:600;transition:.2s ease;text-decoration:none}
.juma-menu li a:hover,.juma-menu .current-menu-item>a{background:var(--brand-green);color:#fff}

@media(max-width:900px){.juma-nav-toggle{display:inline-block}.juma-nav{display:none;width:100%}.juma-nav.open{display:block}.juma-menu{flex-direction:column;gap:6px;padding-top:10px}}

.button{display:inline-block;background:var(--brand-green);color:#fff;padding:12px 20px;border-radius:24px;font-weight:600;transition:.2s ease;box-shadow:0 3px 6px rgba(0,0,0,.06)}
.button:hover{filter:brightness(.92);transform:translateY(-1px)}
.button.outline{background:#fff;color:var(--brand-green);border:2px solid var(--brand-green)}

.hero{background:var(--brand-green-50);text-align:center;padding:80px 0}
.hero p{max-width:740px;margin:0 auto 24px}
.hero .actions a{margin:0 6px}

.leistungen{background:#f9f9f9}
.leistungen-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:24px}
.card{background:#fff;border:1px solid var(--border);border-radius:var(--radius);padding:20px;text-align:center}
.card .icon{font-size:30px;margin-bottom:8px}

.juma-footer{background:#f8f9fa;padding:40px 20px;text-align:center;font-size:.9em;color:#555}

.bewerbung-hero {
  text-align: center;
  padding: 80px 20px 40px;
  background: #f0fdf4;
}

.bewerbung-hero h1 {
  font-size: 2rem;
  margin-bottom: 15px;
  color: var(--juma-dark);
}

.bewerbung-hero p {
  font-size: 1.1rem;
  color: var(--juma-mid);
}

.bewerbung-form {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
}

.bewerbung-form form {
  background: #fff;
  padding: 30px;
  border-radius: var(--radius);
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
/* === Buttons === */
.hero-buttons {
  margin-top: 20px;
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  font-weight: 600;
  border-radius: 30px;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 16px;
  text-align: center;
}

/* Grï¿½ner Button */
.btn-primary {
  background-color: #2e7d32; /* JuMa-Grï¿½n */
  color: #fff;
  box-shadow: 0 3px 6px rgba(0,0,0,0.15);
}

.btn-primary:hover {
  background-color: #256428; /* dunkleres Grï¿½n */
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}

/* Weiï¿½er Outline-Button */
.btn-outline {
  background-color: transparent;
  color: #2e7d32;
  border: 2px solid #2e7d32;
}

.btn-outline:hover {
  background-color: #2e7d32;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}
/* ===== Team Slider ===== */
.juma-slider{
  position:relative;
  overflow:hidden;
  border-radius:12px;
  box-shadow:0 8px 20px rgba(0,0,0,.06);
  background:#fff;
}

.juma-slides{ position:relative; min-height: 280px; } /* Hï¿½he ergibt sich durch erstes Bild */

.juma-slide{
  position:absolute; inset:0;           /* <-- Stapelt Slides ï¿½bereinander */
  opacity:0; transition:opacity .45s ease;
}
.juma-slide.is-active{
  opacity:1; position:relative;         /* sichtbares Slide */
}
.juma-slide img{ width:100%; height:auto; display:block; }

/* Pfeile */
.juma-slide-btn{
  position:absolute; top:50%; transform:translateY(-50%);
  background:#fff; border:0; width:40px; height:40px;
  border-radius:50%; box-shadow:0 4px 12px rgba(0,0,0,.15);
  cursor:pointer; font-size:22px; line-height:40px; text-align:center;
  color:#2e7d32; transition:transform .2s ease, filter .2s ease;
}
.juma-slide-btn:hover{ transform:translateY(-50%) scale(1.05); filter:brightness(.95); }
.juma-slide-btn.prev{ left:12px; }
.juma-slide-btn.next{ right:12px; }

/* Punkte */
.juma-dots{
  position:absolute; left:50%; bottom:12px; transform:translateX(-50%);
  display:flex; gap:8px; padding:6px 10px; border-radius:16px;
  background:rgba(255,255,255,.85); box-shadow:0 4px 10px rgba(0,0,0,.08);
}
.juma-dots button{
  width:10px; height:10px; border-radius:50%; border:0; cursor:pointer;
  background:#b9dec0;
}
.juma-dots button.is-active{ background:#2e7d32; }

/* Mobile Pfeile etwas kleiner */
@media (max-width:600px){
  .juma-slide-btn{ width:34px; height:34px; font-size:18px; }
}

/* Icon-Container konsistent zentrieren */
.card .icon{
  display:flex;
  justify-content:center;
  align-items:center;
  margin-bottom:8px;
  height:40px; /* gleiche Hï¿½he wie andere Icons */
}

/* SVG-Stil (Farbe = JuMa-Grï¿½n) */
.icon-clipboard{
  width:36px;
  height:36px;
  stroke:#2e7d32;
  fill:none;
  stroke-width:2;
  stroke-linecap:round;
  stroke-linejoin:round;
}
/* Call-Button als eigener Menï¿½punkt */
.juma-menu .menu-call > a {
  background: #2e7d32;               /* JuMa-Grï¿½n */
  color: #fff !important;
  border-radius: 28px;
  padding: 10px 18px;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(0,0,0,.12);
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none !important;
  border: 0;                          /* ï¿½berschreibt evtl. Outline-Stile */
  margin-left: 6px;                    /* etwas Abstand zum vorherigen Menï¿½punkt */
}

.juma-menu .menu-call > a:hover {
  background: #256428;                /* dunkleres Grï¿½n */
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0,0,0,.18);
}

/* Telefon-Icon per SVG (keine Emoji-Probleme) */
.juma-menu .menu-call > a::before {
  content: "";
  width: 18px;
  height: 18px;
  display: inline-block;
  background: center / contain no-repeat
    url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6A19.79 19.79 0 0 1 2.1 4.18 2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72c.12.81.37 1.6.72 2.34a2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.74-1.29a2 2 0 0 1 2.11-.45c.74.35 1.53.6 2.34.72A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E");
}

/* Mobile: Button nicht zu groï¿½ werden lassen */
@media (max-width: 900px){
  .juma-menu .menu-call > a {
    padding: 10px 14px;
    font-weight: 600;
  }
}


.leistungen-detail {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  margin: 32px auto 0 auto; /* auto sorgt fï¿½r zentriert */
  box-shadow: 0 6px 14px rgba(0,0,0,.04);
  max-width: 66%; /* ca. 2/3 der Breite */
}

.leistungen-detail h3 {
  text-align: center;
  margin: 0 0 16px;
  color: var(--text);
}

.leistungen-detail p {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.6;
}

/* ===== Team Tabs ===== */
.team-tabs{
  display:flex; gap:10px; justify-content:center; flex-wrap:wrap;
  margin: 12px 0 20px;
}
.team-tab{
  background:#fff; border:1px solid var(--border); color:var(--text);
  padding:8px 14px; border-radius:20px; cursor:pointer; font-weight:600;
  transition:.2s ease; box-shadow:0 2px 6px rgba(0,0,0,.04);
}
.team-tab:hover{ filter:brightness(.98); transform:translateY(-1px); }
.team-tab.is-active{ background:#2e7d32; color:#fff; border-color:#2e7d32; }

.team-pane{ margin-top: 8px; }
.team-pane[hidden]{ display:none !important; }

/* Team Slider Hï¿½he anpassen (nutzt deinen bestehenden Slider-Stil) */
.team-slider .juma-slide img{
  width:100%; height:auto; display:block; border-radius:12px 12px 0 0;
}

.team-card{
  background:#fff; border:1px solid var(--border); border-radius:12px;
  overflow:hidden; box-shadow:0 8px 18px rgba(0,0,0,.05);
}
.team-card__text{
  padding:12px 14px; text-align:center;
}
.team-card__text strong{ display:block; color:var(--text); }
.team-card__text span{ color:var(--muted); font-size:.95rem; }

.team-card img {
  max-width: 220px;   /* maximale Breite */
  height: auto;       /* Höhe automatisch */
  border-radius: 12px; /* optional: abgerundete Ecken */
  object-fit: cover;   /* Bild bleibt im Rahmen sauber */
  display: block;
  margin: 0 auto;     /* zentriert das Bild */
}
/* Karten-Bild: bereits von dir begrenzt – hier nur sicherstellen */
.team-card img{
  max-width: 220px;
  height: auto;
  border-radius: 12px;
  display: block;
  margin: 0 auto;
  object-fit: cover;
}

/* Split-Info unter dem Bild */
.team-card__split{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 14px 10px 6px;
  border-top: 1px solid var(--border);
  margin-top: 10px;
}

/* Trennlinie in der Mitte (nur Desktop) */
@media (min-width: 700px){
  .team-card__split{
    position: relative;
  }
  .team-card__split::before{
    content: "";
    position: absolute;
    top: 10px; bottom: 10px; left: 50%;
    width: 1px; background: var(--border);
    transform: translateX(-0.5px);
  }
}

.team-card__split .person{
  text-align: left;
  padding: 0 8px;
}

.team-card__split .person strong{
  display: block;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}

.team-card__split .person .role{
  display: block;
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 6px;
}

/* Kompakte Faktenliste */
.team-card__split .facts{
  list-style: none;
  padding: 0;
  margin: 0;
}
.team-card__split .facts li{
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  color: var(--text);
  margin: 4px 0;
}
.team-card__split .facts li::before{
  content: "•";               /* kleiner Punkt als Bullet */
  font-weight: 700;
  color: #2e7d32;             /* JuMa-Grün */
}

/* Mobil: untereinander, ohne Mittellinie */
@media (max-width: 699px){
  .team-card__split{
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .team-card__split::before{ display: none; }
  .team-card__split .person{
    padding: 6px 0;
    border-top: 1px solid var(--border);
  }
  .team-card__split .person:first-child{
    border-top: 0;
  }
}
/* Hero-Buttons sicher klickbar machen */
.hero-buttons { position: relative; z-index: 20; }
.hero-buttons .btn { position: relative; z-index: 21; }

/* Falls ein Deko-Overlay drüber liegt: Mausaktionen ignorieren */
.section.hero::before,
.section.hero::after,
.hero::before,
.hero::after,
.hero-overlay,
.hero .overlay {
  pointer-events: none !important;
}

/* Sicherheitsnetz: nichts im Hero soll Klicks blocken */
.section.hero * { pointer-events: auto; }


.team-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 20px 0;
}

.team-tab {
  background: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 20px;
  padding: 6px 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.team-tab.is-active {
  background: var(--juma-green, #2e7d32);
  color: #fff;
  border-color: var(--juma-green, #2e7d32);
}

.team-pane {
  display: none;
  margin-top: 20px;
}

.team-pane.is-active {
  display: block;
}
/* Zwei Karten (Sebastian/Daniel) im Verwaltung-Tab */
.team-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap:18px;
  margin-top: 10px;
}
@media (max-width: 800px){
  .team-grid{ grid-template-columns: 1fr; }
}

.team-card-mini{
  background:#fff;
  border:1px solid var(--border, #e5e7eb);
  border-radius:12px;
  box-shadow:0 8px 18px rgba(0,0,0,.05);
  padding:14px;
  display:grid;
  grid-template-columns: 120px 1fr;
  gap:14px;
  align-items: start;
}
@media (max-width: 560px){
  .team-card-mini{
    grid-template-columns: 1fr;
    text-align: left;
  }
}

.team-mini-photo{
  width:120px;
  height:120px;
  object-fit: cover;
  border-radius: 10px;
  display:block;
}

.team-mini-text strong{
  display:block;
  font-weight:700;
  color: var(--text, #0f172a);
  margin-bottom:2px;
}
.team-mini-text .role{
  display:block;
  color: var(--muted, #6b7280);
  margin-bottom:8px;
}
.team-mini-text p{
  margin:0;
  color: var(--text, #0f172a);
  line-height:1.55;
  font-size: .98rem;
}

/* Team-Tabs: Hover/Active in JuMa-Grün */
.team-tab{
  background:#f5f5f5;
  border:1px solid #ddd;
  border-radius:20px;
  padding:6px 14px;
  cursor:pointer;
  transition:all .2s ease;
}
.team-tab:hover{
  background:#2e7d32;      /* JuMa-Grün */
  color:#fff;
  border-color:#2e7d32;
}
.team-tab.is-active{
  background:#2e7d32;
  color:#fff;
  border-color:#2e7d32;
}
.footer-legal {
  text-align: center;
  margin-top: 20px;
  font-size: 0.9rem;
  color: #555;
}
.footer-legal a {
  color: #2e7d32;
  text-decoration: none;
  margin: 0 6px;
}
.footer-legal a:hover {
  text-decoration: underline;
}

.contact-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.contact-btn {
  display: inline-block;
  padding: 10px 18px;
  border: 2px solid #2e7d32;
  border-radius: 8px;
  color: #2e7d32;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.contact-btn:hover {
  background: #2e7d32;
  color: #fff;
}

.contact-btn.phone::before {
  content: "?? ";
}

.contact-btn.fax::before {
  content: "?? ";
}