/*
Theme Name: Projektservice GbR
Theme URI: https://projektservice-gbr.de
Author: Projektservice GbR
Author URI: https://projektservice-gbr.de
Description: Professionelles Theme für die Projektservice GbR – Kinder- und Jugendhilfe in Sachsen-Anhalt.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 8.0
License: Private
Text Domain: projektservice
*/

/* ── CSS VARIABLES ── */
:root {
  --orange:      #e8a020;
  --orange-dark: #c8880e;
  --navy:        #1a2a3a;
  --navy-light:  #243446;
  --white:       #ffffff;
  --gray-light:  #f5f5f5;
  --gray:        #666666;
  --text:        #222222;
  --border:      #e0e0e0;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Open Sans', sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; }

/* ── TOPBAR ── */
.ps-topbar {
  background: #111;
  color: rgba(255,255,255,0.85);
  font-size: 0.8rem;
  padding: 8px 0;
}
.ps-topbar-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 40px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 8px;
}
.ps-topbar-left { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.ps-topbar-left a {
  color: rgba(255,255,255,0.8);
  display: flex; align-items: center; gap: 6px;
  transition: color .2s;
}
.ps-topbar-left a:hover { color: var(--orange); }
.ps-topbar-right { display: flex; gap: 8px; }
.ps-topbar-right a {
  color: rgba(255,255,255,0.7);
  width: 28px; height: 28px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; transition: all .2s;
}
.ps-topbar-right a:hover { color: #fff; border-color: rgba(255,255,255,0.6); }

/* ── HEADER ── */
#masthead {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 200;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.ps-header-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 40px;
  display: flex; align-items: center; justify-content: space-between;
  height: 90px;
}
.ps-logo img { height: 52px; width: auto; }

/* ── NAVIGATION ── */
#site-navigation { display: flex; align-items: center; }
#site-navigation ul {
  display: flex; list-style: none; gap: 4px; align-items: center;
}
#site-navigation ul li { position: relative; }
#site-navigation ul li a {
  display: flex; align-items: center; gap: 4px;
  padding: 10px 15px; border-radius: 4px;
  color: var(--navy); font-size: 0.9rem; font-weight: 600;
  transition: color .2s, background .2s; white-space: nowrap;
}
#site-navigation ul li a:hover { color: var(--orange); background: #fef8ee; }
#site-navigation ul li.menu-item-has-children > a::after {
  content: '▾'; font-size: 0.7rem; opacity: 0.6; margin-left: 2px;
}
/* Dropdown */
#site-navigation ul li ul {
  display: none; position: absolute; top: 100%; left: 0;
  background: #fff; border: 1px solid var(--border);
  border-top: 3px solid var(--orange);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  border-radius: 0 0 6px 6px; min-width: 210px;
  flex-direction: column; gap: 0; z-index: 100;
}
#site-navigation ul li:hover > ul { display: flex; }
#site-navigation ul li ul li a {
  padding: 10px 18px; border-radius: 0;
  font-weight: 400; font-size: 0.88rem;
  border-bottom: 1px solid var(--border);
}
#site-navigation ul li ul li:last-child a { border-bottom: none; }
#site-navigation ul li ul li a:hover { background: #fef8ee; color: var(--orange); }

/* Mobile menu toggle */
.menu-toggle {
  display: none; background: none; border: none;
  cursor: pointer; padding: 8px;
  flex-direction: column; gap: 5px;
}
.menu-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--navy); border-radius: 2px;
  transition: all .3s;
}

/* ── HERO SLIDER ── */
.ps-hero {
  position: relative; width: 100%;
  height: calc(100vh - 90px - 95px);
  min-height: 480px; max-height: 800px;
  overflow: hidden;
}
.ps-slide {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity 0.8s ease;
}
.ps-slide.active { opacity: 1; }
.ps-slide img {
  width: 100%; height: 100%; object-fit: cover;
}
.ps-slide-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(10,20,35,0.72) 0%, rgba(10,20,35,0.35) 60%, rgba(0,0,0,0.1) 100%);
}
.ps-slide-content {
  position: absolute; top: 50%; left: 8%;
  transform: translateY(-50%);
  max-width: 580px; color: #fff;
}
.ps-slide-content h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 800; line-height: 1.15;
  margin-bottom: 6px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}
.ps-slide-content h2 .ps-orange { color: var(--orange); display: block; }
.ps-slide-content p {
  font-size: clamp(0.95rem, 1.4vw, 1.1rem);
  line-height: 1.7; color: rgba(255,255,255,0.88);
  margin-bottom: 36px;
  text-shadow: 0 1px 6px rgba(0,0,0,0.3);
  max-width: 480px;
}
.ps-slide-buttons { display: flex; gap: 14px; flex-wrap: wrap; }

/* Slider Controls */
.ps-slider-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.15); border: none;
  color: #fff; width: 48px; height: 48px; border-radius: 50%;
  font-size: 1.4rem; cursor: pointer; z-index: 10;
  transition: background .2s;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(4px);
}
.ps-slider-btn:hover { background: rgba(255,255,255,0.3); }
.ps-slider-prev { left: 20px; }
.ps-slider-next { right: 20px; }
.ps-slider-dots {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px; z-index: 10;
}
.ps-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,0.4); border: none; cursor: pointer;
  transition: background .2s, transform .2s;
}
.ps-dot.active { background: var(--orange); transform: scale(1.2); }

/* ── BUTTONS ── */
.btn-orange {
  display: inline-block;
  background: var(--orange); color: #fff;
  padding: 13px 30px; border-radius: 4px;
  font-weight: 700; font-size: 0.92rem;
  letter-spacing: 0.02em;
  transition: background .2s, transform .15s;
  border: none; cursor: pointer;
}
.btn-orange:hover { background: var(--orange-dark); transform: translateY(-1px); color: #fff; }

.btn-white {
  display: inline-block;
  background: #fff; color: var(--navy);
  padding: 13px 30px; border-radius: 4px;
  font-weight: 700; font-size: 0.92rem;
  transition: background .2s, transform .15s;
  border: none; cursor: pointer;
}
.btn-white:hover { background: #f0f0f0; transform: translateY(-1px); color: var(--navy); }

.btn-outline {
  display: inline-block;
  background: transparent; color: var(--navy);
  padding: 12px 28px; border-radius: 4px;
  font-weight: 700; font-size: 0.92rem;
  border: 2px solid var(--navy);
  transition: all .2s;
}
.btn-outline:hover { background: var(--navy); color: #fff; }

/* ── STATS BAR ── */
.ps-stats { background: var(--navy); color: #fff; }
.ps-stats-inner {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.ps-stat {
  padding: 40px 32px; text-align: center;
  border-right: 1px solid rgba(255,255,255,0.1);
}
.ps-stat:last-child { border-right: none; }
.ps-stat-number {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.8rem; font-weight: 800;
  color: var(--orange); display: block;
  line-height: 1; margin-bottom: 8px;
}
.ps-stat-label {
  font-size: 0.82rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: rgba(255,255,255,0.7);
}

/* ── SECTIONS ── */
.ps-section { padding: 84px 0; }
.ps-section-alt { background: var(--gray-light); }
.ps-section-dark { background: var(--navy); color: #fff; }
.ps-container { max-width: 1180px; margin: 0 auto; padding: 0 48px; }

.ps-eyebrow {
  font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--orange); margin-bottom: 10px; display: block;
}
.ps-section-dark .ps-eyebrow { color: var(--orange); }

.ps-section-title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.7rem, 2.8vw, 2.4rem);
  font-weight: 800; color: var(--navy);
  line-height: 1.2; margin-bottom: 18px;
}
.ps-section-dark .ps-section-title { color: #fff; }

.ps-section-lead {
  font-size: 1.05rem; color: var(--gray);
  max-width: 620px; line-height: 1.8;
}
.ps-section-dark .ps-section-lead { color: rgba(255,255,255,0.7); }

/* ── ÜBER UNS ── */
.ps-ueber-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 72px; align-items: center;
}
.ps-ueber-image { border-radius: 8px; overflow: hidden; position: relative; }
.ps-ueber-image img { width: 100%; height: 380px; object-fit: cover; }
.ps-ueber-badge {
  position: absolute; bottom: -20px; right: -20px;
  background: var(--orange); color: #fff;
  width: 120px; height: 120px; border-radius: 50%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  font-family: 'Montserrat', sans-serif;
  text-align: center;
  box-shadow: 0 8px 24px rgba(232,160,32,0.35);
}
.ps-ueber-badge strong { font-size: 2rem; font-weight: 800; line-height: 1; }
.ps-ueber-badge span { font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }

.ps-quote {
  margin: 32px 0;
  padding: 24px 28px;
  border-left: 4px solid var(--orange);
  background: #fef8ee; border-radius: 0 6px 6px 0;
}
.ps-quote p {
  font-style: italic; font-size: 1.05rem;
  color: var(--navy); line-height: 1.7; margin-bottom: 8px;
}
.ps-quote cite {
  font-size: 0.8rem; font-weight: 700;
  color: var(--orange); text-transform: uppercase;
  letter-spacing: 0.06em; font-style: normal;
}
.ps-values { display: flex; flex-direction: column; gap: 18px; margin-top: 8px; }
.ps-value-item { display: flex; align-items: flex-start; gap: 14px; }
.ps-value-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--orange); flex-shrink: 0; margin-top: 7px;
}
.ps-value-item h4 { font-size: 0.95rem; font-weight: 700; color: var(--navy); margin-bottom: 3px; }
.ps-value-item p { font-size: 0.88rem; color: var(--gray); line-height: 1.6; }

/* ── LEISTUNGEN ── */
.ps-leistungen-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px; margin-top: 48px;
}
.ps-leistung-card {
  background: #fff; border-radius: 8px;
  border: 1px solid var(--border); padding: 32px 28px;
  transition: box-shadow .25s, transform .25s, border-color .25s;
}
.ps-leistung-card:hover {
  box-shadow: 0 12px 36px rgba(0,0,0,0.1);
  transform: translateY(-3px); border-color: var(--orange);
}
.ps-leistung-icon {
  width: 52px; height: 52px; border-radius: 8px;
  background: #fef8ee; display: flex;
  align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 18px;
}
.ps-leistung-para {
  font-size: 0.78rem; font-weight: 700;
  color: var(--orange); letter-spacing: 0.06em; margin-bottom: 6px;
}
.ps-leistung-card h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem; font-weight: 800;
  color: var(--navy); margin-bottom: 10px;
}
.ps-leistung-card p { font-size: 0.88rem; color: var(--gray); line-height: 1.7; }

/* ── EINRICHTUNGEN ── */
.ps-einrichtungen-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px; margin-top: 48px;
}
.ps-einr-card {
  border-radius: 8px; overflow: hidden;
  border: 1px solid var(--border);
  background: #fff; display: block;
  /* isolation verhindert dass Kinder-Elemente in Nachbarkarten bluten */
  isolation: isolate;
  transition: box-shadow .25s;
  color: inherit;
}
.ps-einr-card:hover {
  box-shadow: 0 12px 36px rgba(0,0,0,0.12);
}
/* Zoom-Effekt NUR auf das Bild-Container-Element, nicht die ganze Karte */
.ps-einr-img {
  height: 195px;
  overflow: hidden;
  border-radius: 8px 8px 0 0;
}
.ps-einr-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s ease;
  will-change: transform;
}
.ps-einr-card:hover .ps-einr-img img { transform: scale(1.05); }
.ps-einr-body { padding: 22px 24px 26px; }
.ps-einr-body h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem; font-weight: 800;
  color: var(--navy); margin-bottom: 6px;
}
.ps-einr-addr { font-size: 0.82rem; color: var(--gray); margin-bottom: 12px; }
.ps-tag-row { display: flex; flex-wrap: wrap; gap: 5px; }
.ps-tag {
  font-size: 0.7rem; font-weight: 700;
  padding: 3px 8px; border-radius: 3px;
  background: #fef8ee; color: var(--orange-dark);
  border: 1px solid #f5d99a;
}

/* ── JOBS ── */
.ps-jobs-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 72px; align-items: center;
}
.ps-jobs-content .ps-section-lead { margin-bottom: 32px; }
.ps-jobs-image { border-radius: 8px; overflow: hidden; }
.ps-jobs-image img { width: 100%; height: 380px; object-fit: cover; }

/* ── KONTAKT ── */
.ps-kontakt-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px;
}
.ps-kontakt-info { display: flex; flex-direction: column; gap: 24px; }
.ps-kontakt-item { display: flex; align-items: flex-start; gap: 16px; }
.ps-kontakt-icon {
  width: 46px; height: 46px; border-radius: 8px;
  background: #fef8ee; border: 1px solid #f5d99a;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; flex-shrink: 0;
}
.ps-kontakt-item strong {
  display: block; font-size: 0.78rem;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--orange); margin-bottom: 4px; font-weight: 700;
}
.ps-kontakt-item a, .ps-kontakt-item span {
  font-size: 0.98rem; color: var(--text);
}
.ps-kontakt-item a:hover { color: var(--orange); }
.ps-kontakt-map {
  background: #eef2f5; border-radius: 8px;
  border: 1px solid var(--border);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 14px; min-height: 320px;
  color: var(--gray); text-align: center; padding: 32px;
}
.ps-kontakt-map .map-icon { font-size: 2.5rem; }
.ps-kontakt-map p { font-size: 0.9rem; line-height: 1.6; }

/* ── FOOTER ── */
#colophon { background: var(--navy); color: rgba(255,255,255,0.65); }
.ps-footer-top {
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  gap: 48px; padding: 60px 0 44px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.ps-footer-brand img {
  height: 38px; filter: brightness(0) invert(1);
  opacity: 0.85; margin-bottom: 16px;
}
.ps-footer-brand p { font-size: 0.88rem; line-height: 1.75; max-width: 280px; }
.ps-footer-col h5 {
  font-size: 0.75rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--orange);
  font-weight: 700; margin-bottom: 16px;
}
.ps-footer-col ul { list-style: none; }
.ps-footer-col li { margin-bottom: 10px; }
.ps-footer-col a {
  color: rgba(255,255,255,0.6); font-size: 0.88rem;
  transition: color .2s;
}
.ps-footer-col a:hover { color: #fff; }
.ps-footer-bottom {
  padding: 24px 0;
  display: flex; justify-content: space-between;
  font-size: 0.8rem; align-items: center;
  flex-wrap: wrap; gap: 12px;
}
.ps-footer-bottom-links { display: flex; gap: 20px; }
.ps-footer-bottom-links a {
  color: rgba(255,255,255,0.4); transition: color .2s;
}
.ps-footer-bottom-links a:hover { color: rgba(255,255,255,0.8); }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .ps-ueber-grid, .ps-jobs-grid, .ps-kontakt-grid { grid-template-columns: 1fr; gap: 40px; }
  .ps-einrichtungen-grid, .ps-leistungen-grid { grid-template-columns: repeat(2, 1fr); }
  .ps-stats-inner { grid-template-columns: repeat(2, 1fr); }
  .ps-stat { border-bottom: 1px solid rgba(255,255,255,0.1); }
  .ps-footer-top { grid-template-columns: 1fr 1fr; }
  .ps-ueber-badge { width: 90px; height: 90px; bottom: -10px; right: -10px; }
  .ps-ueber-badge strong { font-size: 1.5rem; }
}
@media (max-width: 768px) {
  .ps-topbar { display: none; }
  .ps-header-inner { padding: 0 20px; height: 70px; }
  .menu-toggle { display: flex; }
  #site-navigation {
    display: none; position: absolute;
    top: 70px; left: 0; right: 0;
    background: #fff; border-top: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    flex-direction: column; align-items: stretch; padding: 16px 0;
  }
  #site-navigation.is-open { display: flex; }
  #site-navigation ul { flex-direction: column; gap: 0; }
  #site-navigation ul li ul { display: none !important; }
  #site-navigation ul li a { padding: 12px 24px; border-radius: 0; font-size: 1rem; }
  .ps-container { padding: 0 20px; }
  .ps-section { padding: 56px 0; }
  .ps-einrichtungen-grid, .ps-leistungen-grid { grid-template-columns: 1fr; }
  .ps-stats-inner { grid-template-columns: 1fr 1fr; }
  .ps-footer-top { grid-template-columns: 1fr; gap: 32px; }
  .ps-footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
  .ps-slide-content { left: 5%; max-width: 90%; }
}
