/* ============================================================
   Projekt Portfolio – style.css  v1.2.0
   ============================================================ */

/* ---------- White background on single pages ---------- */
body.pp-single-page {
    background: #fff !important;
}

/* ---------- Base ---------- */
.pp-section *, .pp-section *::before, .pp-section *::after { box-sizing: border-box; }

/* ---------- Section ---------- */
.pp-section {
    background: #f4f6f9;
    padding: 80px 0 60px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.pp-container { max-width: 1320px; margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.pp-header { text-align: center; margin-bottom: 48px; }
.pp-title {
    font-size: clamp(32px, 5vw, 62px);
    font-weight: 700; color: #0d1f6e; line-height: 1.15; margin: 0 0 12px;
}
.pp-subtitle-text { font-size: 18px; color: #666; margin: 0; }

/* ---------- Tabs ---------- */
.pp-tabs-wrap {
    display: flex; justify-content: center;
    margin-bottom: 48px; border-bottom: 2px solid #dde1ec;
    overflow-x: auto;
}
.pp-tabs { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.pp-tab {
    background: none; border: none; cursor: pointer;
    font-family: inherit; font-size: 13px; font-weight: 600;
    letter-spacing: 1.5px; text-transform: uppercase;
    color: #888; padding: 14px 24px;
    position: relative; transition: color .25s; white-space: nowrap;
}
.pp-tab::after {
    content: ''; position: absolute; bottom: -2px; left: 0; right: 0;
    height: 2px; background: #0d1f6e;
    transform: scaleX(0); transition: transform .25s;
}
.pp-tab:hover { color: #0d1f6e; }
.pp-tab.active { color: #0d1f6e; }
.pp-tab.active::after { transform: scaleX(1); }

/* ---------- Panels ---------- */
.pp-panel { display: none; }
.pp-panel.is-active { display: block; }

/* ---------- Carousel ---------- */
.pp-carousel { position: relative; }
.pp-track-wrap { overflow: hidden; border-radius: 8px; }
.pp-track {
    display: flex;
    transition: transform .45s cubic-bezier(.4,0,.2,1);
    will-change: transform;
}

/* ---------- Slide (1 gleichzeitig sichtbar) ---------- */
.pp-slide {
    flex: 0 0 100%;       /* WICHTIG: immer 100% der sichtbaren Breite */
    min-width: 100%;      /* Fallback für ältere Browser */
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-radius: 8px;
    overflow: hidden;
}

/* ---------- Slide Image – gleiche Höhe / Seitenverhältnis ---------- */
.pp-slide-img {
    aspect-ratio: 4 / 3;  /* Alle Hauptbilder gleich groß */
    overflow: hidden;
    position: relative;
}
.pp-slide-img img {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
    transition: transform .6s ease;
}
.pp-slide:hover .pp-slide-img img { transform: scale(1.04); }

.pp-no-img {
    width: 100%; height: 100%; min-height: 300px;
    background: #cdd3e0; display: flex;
    align-items: center; justify-content: center;
    color: #888; font-size: 14px;
}

/* ---------- Card ---------- */
.pp-slide-card {
    background: #0d1f6e; padding: 48px 44px;
    display: flex; flex-direction: column; justify-content: center; gap: 18px;
}
.pp-badge {
    display: flex; align-items: center; gap: 10px;
    font-size: 11px; font-weight: 700; letter-spacing: 2px;
    color: rgba(255,255,255,.7); text-transform: uppercase;
}
.pp-badge::before {
    content: ''; display: inline-block;
    width: 28px; height: 2px; background: rgba(255,255,255,.5);
}
.pp-card-title { font-size: clamp(20px, 2vw, 28px); font-weight: 700; line-height: 1.3; margin: 0; }
.pp-card-title a { color: #fff; text-decoration: none; transition: opacity .2s; }
.pp-card-title a:hover { opacity: .8; }
.pp-card-text {
    font-size: 15px; line-height: 1.7; color: rgba(255,255,255,.75); margin: 0;
    display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}

/* ---------- Button ---------- */
.pp-btn {
    display: inline-flex; align-items: center; gap: 10px;
    color: #fff; font-size: 14px; font-weight: 600;
    text-decoration: none; margin-top: 8px;
    transition: gap .25s; width: fit-content;
}
.pp-btn:hover { gap: 16px; color: #fff; }
.pp-btn-icon {
    display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px;
    border: 1.5px solid rgba(255,255,255,.4); border-radius: 50%;
    transition: background .25s, border-color .25s;
}
.pp-btn:hover .pp-btn-icon { background: rgba(255,255,255,.15); border-color: rgba(255,255,255,.8); }

/* ---------- Nav ---------- */
.pp-nav { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 24px; }
.pp-prev, .pp-next {
    display: flex; align-items: center; justify-content: center;
    width: 44px; height: 44px;
    border: 2px solid #0d1f6e; border-radius: 4px;
    background: transparent; cursor: pointer; color: #0d1f6e;
    transition: background .2s, color .2s;
}
.pp-prev:hover, .pp-next:hover { background: #0d1f6e; color: #fff; }
.pp-dots { display: flex; gap: 8px; align-items: center; }
.pp-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: #ccc; cursor: pointer;
    transition: background .2s, transform .2s;
}
.pp-dot.is-active { background: #0d1f6e; transform: scale(1.35); }

/* ---------- Empty ---------- */
.pp-empty {
    text-align: center; padding: 48px 24px; color: #888;
    background: #fff; border: 2px dashed #dde1ec; border-radius: 8px; font-size: 15px;
}

/* ============================================================
   EINZELSEITE
   ============================================================ */
.pp-single {
    max-width: 1000px; margin: 0 auto;
    padding: 48px 24px 80px;
    font-family: 'Inter', -apple-system, sans-serif;
    background: #fff;
}

/* Zurück-Link */
.pp-single-back {
    display: inline-flex; align-items: center; gap: 8px;
    color: #0d1f6e; text-decoration: none;
    font-size: 14px; font-weight: 600;
    margin-bottom: 32px; transition: gap .2s;
}
.pp-single-back:hover { gap: 14px; }

/* Kategorien */
.pp-single-cats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.pp-single-cat {
    background: #0d1f6e; color: #fff;
    font-size: 11px; font-weight: 700; letter-spacing: 1.5px;
    text-transform: uppercase; padding: 4px 14px; border-radius: 3px;
}

/* Titel */
.pp-single-title {
    font-size: clamp(28px, 4vw, 48px); font-weight: 700;
    color: #0d1f6e; margin: 0 0 32px; line-height: 1.2;
}

/* Hauptbild */
.pp-single-img {
    width: 100%;
    aspect-ratio: 16 / 7;   /* Gleichmäßiges Seitenverhältnis */
    object-fit: cover;
    border-radius: 8px; display: block; margin-bottom: 40px;
}

/* Inhalt */
.pp-single-content { font-size: 17px; line-height: 1.8; color: #333; }
.pp-single-content p { margin: 0 0 20px; }
.pp-single-content h2,
.pp-single-content h3 { color: #0d1f6e; margin: 36px 0 16px; }
.pp-single-content h2 { font-size: clamp(20px, 2.5vw, 28px); }
.pp-single-content h3 { font-size: clamp(18px, 2vw, 22px); }
.pp-single-content strong { color: #1a2a7a; }
.pp-single-content a { color: #0d1f6e; }

/* ---- Galerie ---- */
.pp-gallery-section { margin-top: 60px; }
.pp-gallery-title {
    font-size: 24px; font-weight: 700; color: #0d1f6e;
    margin: 0 0 24px; padding-bottom: 12px;
    border-bottom: 2px solid #dde1ec;
}
.pp-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.pp-gallery-item {
    aspect-ratio: 4 / 3;   /* Alle Galeriebilder gleich groß */
    overflow: hidden; border-radius: 6px;
    cursor: pointer; position: relative;
}
.pp-gallery-item img {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
    transition: transform .4s ease;
}
.pp-gallery-item:hover img { transform: scale(1.06); }
.pp-gallery-item::after {
    content: '🔍';
    position: absolute; inset: 0;
    background: rgba(13,31,110,.35);
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; opacity: 0; transition: opacity .3s;
}
.pp-gallery-item:hover::after { opacity: 1; }

/* Lightbox overlay */
.pp-lightbox {
    display: none; position: fixed; inset: 0; z-index: 99999;
    background: rgba(0,0,0,.92); align-items: center; justify-content: center;
}
.pp-lightbox.open { display: flex; }
.pp-lightbox img { max-width: 90vw; max-height: 88vh; object-fit: contain; border-radius: 4px; }
.pp-lightbox-close {
    position: absolute; top: 20px; right: 24px;
    color: #fff; font-size: 36px; cursor: pointer; line-height: 1;
    background: none; border: none; opacity: .8;
}
.pp-lightbox-close:hover { opacity: 1; }
.pp-lightbox-prev, .pp-lightbox-next {
    position: absolute; top: 50%; transform: translateY(-50%);
    color: #fff; font-size: 32px; cursor: pointer;
    background: rgba(255,255,255,.1); border: none;
    padding: 12px 16px; border-radius: 4px; opacity: .8;
}
.pp-lightbox-prev:hover, .pp-lightbox-next:hover { opacity: 1; background: rgba(255,255,255,.2); }
.pp-lightbox-prev { left: 20px; }
.pp-lightbox-next { right: 20px; }

/* ---- Kontakt CTA ---- */
.pp-cta-section {
    margin-top: 64px;
    background: #0d1f6e;
    border-radius: 12px;
    padding: 48px 48px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 32px;
    align-items: center;
}
.pp-cta-title {
    font-size: clamp(20px, 2.5vw, 28px);
    font-weight: 700; color: #fff; margin: 0 0 8px;
}
.pp-cta-text { font-size: 16px; color: rgba(255,255,255,.8); margin: 0; }
.pp-cta-buttons { display: flex; flex-direction: column; gap: 12px; align-items: flex-end; }
.pp-cta-btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 14px 28px; border-radius: 4px;
    font-size: 15px; font-weight: 600; text-decoration: none;
    white-space: nowrap; transition: transform .2s, opacity .2s;
}
.pp-cta-btn:hover { transform: translateY(-1px); opacity: .9; }
.pp-cta-btn-phone { background: #fff; color: #0d1f6e; }
.pp-cta-btn-contact { background: rgba(255,255,255,.15); color: #fff; border: 1.5px solid rgba(255,255,255,.4); }
.pp-cta-btn svg { flex-shrink: 0; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
    .pp-cta-section { grid-template-columns: 1fr; }
    .pp-cta-buttons { align-items: flex-start; flex-direction: row; flex-wrap: wrap; }
}

@media (max-width: 768px) {
    .pp-section { padding: 48px 0 36px; }

    .pp-slide {
        grid-template-columns: 1fr;
    }
    .pp-slide-img { aspect-ratio: 16 / 9; }
    .pp-slide-card { padding: 28px 20px; gap: 14px; }

    .pp-gallery-grid { grid-template-columns: repeat(2, 1fr); }

    .pp-cta-section { padding: 32px 24px; }
}

@media (max-width: 480px) {
    .pp-title { font-size: 26px; }
    .pp-card-title { font-size: 18px; }
    .pp-tab { padding: 10px 14px; font-size: 11px; }
    .pp-gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .pp-single-title { font-size: 24px; }
    .pp-cta-buttons { flex-direction: column; }
}

/* ============================================================
   STATISCHES LISTEN-LAYOUT (stil="liste") – Referenz image2.png
   Für die "Leistungen"-Sektion auf der Startseite
   ============================================================ */
.pp-section--liste { background: #f4f6f9; }

.pp-static-grid {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 56px;
    align-items: start;
}

.pp-static-header { position: sticky; top: 100px; }
.pp-static-header .pp-title {
    text-align: left; font-size: clamp(28px, 3.5vw, 44px); margin-bottom: 16px;
}
.pp-static-header .pp-title::after {
    content: ''; display: block; width: 56px; height: 3px; background: #003C6F; margin-top: 16px;
}
.pp-static-header .pp-subtitle-text {
    text-align: left; font-size: 15px; line-height: 1.7; color: #555; margin-top: 20px;
}

.pp-static-cards { display: flex; flex-direction: column; gap: 24px; }

.pp-static-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transition: transform .3s ease, box-shadow .3s ease;
}
.pp-static-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0,60,111,0.1);
}

.pp-static-card-img { aspect-ratio: 4/3; overflow: hidden; }
.pp-static-card-img img {
    width: 100%; height: 100%; object-fit: cover; display: block;
    transition: transform .5s ease;
}
.pp-static-card:hover .pp-static-card-img img { transform: scale(1.05); }

.pp-static-card-body {
    padding: 40px 36px;
    display: flex; flex-direction: column; justify-content: center;
}
.pp-static-card-icon {
    display: inline-flex; color: #003C6F; margin-bottom: 16px;
}
.pp-static-card-body .pp-card-title { color: #003C6F; margin-bottom: 10px; font-size: clamp(19px, 2vw, 24px); }
.pp-static-card-body .pp-card-title a { color: #003C6F; }
.pp-static-card-body .pp-card-text {
    color: #555; -webkit-line-clamp: unset; display: block; overflow: visible; margin-bottom: 18px;
}
.pp-static-card-link {
    display: inline-flex; align-items: center; gap: 8px;
    color: #003C6F; font-size: 14px; font-weight: 700; text-decoration: none;
    width: fit-content; transition: gap .2s;
}
.pp-static-card-link:hover { gap: 14px; color: #003C6F; }
.pp-static-card-link .pp-btn-icon {
    display: flex; align-items: center; justify-content: center;
    width: 28px; height: 28px; border-radius: 50%;
    border: 1.5px solid rgba(0,60,111,.35);
}

@media (max-width: 900px) {
    .pp-static-grid { grid-template-columns: 1fr; gap: 32px; }
    .pp-static-header { position: static; text-align: center; }
    .pp-static-header .pp-title, .pp-static-header .pp-subtitle-text { text-align: center; }
    .pp-static-header .pp-title::after { margin-left: auto; margin-right: auto; }
}

@media (max-width: 768px) {
    .pp-static-card { grid-template-columns: 1fr; }
    .pp-static-card-body { padding: 28px 24px; }
}

/* ================= ARBEITSPROZESS – Redesign v2 ================= */
.pp-arbeitsprozess { background:#f4f6f9 !important; padding:80px 0; font-family:'Inter',-apple-system,sans-serif; }
.pp-arbeitsprozess .container { max-width:1200px; margin:0 auto; padding:0 24px; }
.pp-arbeitsprozess .section-title { text-align:left; margin-bottom:48px; }
.pp-arbeitsprozess .section-title h2 {
  color:#003C6F !important; -webkit-text-fill-color:#003C6F !important; text-shadow:none !important;
  font-size:clamp(28px,4vw,44px); font-weight:800; margin:0;
}
.pp-ap-sub { color:#666; font-size:15px; margin-top:8px; }

.pp-ap-wrap { display:grid; grid-template-columns:220px 1fr; gap:56px; align-items:start; }

/* sol – dikey stepper */
.pp-ap-steps { position:relative; padding-left:28px; }
.pp-ap-steps::before {
  content:''; position:absolute; left:5px; top:6px; bottom:6px; width:2px;
  background:repeating-linear-gradient(to bottom,#c7cede 0,#c7cede 4px,transparent 4px,transparent 9px);
}
.pp-ap-step { position:relative; cursor:pointer; padding:14px 0; }
.pp-ap-dot {
  position:absolute; left:-28px; top:8px; width:12px; height:12px; border-radius:50%;
  background:#fff; border:2px solid #c7cede; transition:all .25s ease; z-index:2;
}
.pp-ap-step.active .pp-ap-dot { border-color:#003C6F; background:#003C6F; box-shadow:0 0 0 4px rgba(0,60,111,.15); }

.pp-ap-line {
  display:none; position:absolute; right:-56px; top:13px; width:56px; height:2px;
  background:repeating-linear-gradient(to right,#003C6F 0,#003C6F 4px,transparent 4px,transparent 8px);
}
.pp-ap-step.active .pp-ap-line { display:block; }

.pp-ap-num { display:block; font-size:clamp(30px,3vw,44px); font-weight:800; color:#d7dbe4; line-height:1; transition:color .25s ease; }
.pp-ap-step.active .pp-ap-num { color:#003C6F; }
.pp-ap-label { display:block; font-size:12px; font-weight:700; letter-spacing:1px; color:#9aa1b1; margin-top:6px; }
.pp-ap-step.active .pp-ap-label { color:#003C6F; }
.pp-ap-step:hover .pp-ap-num { color:#4d7ba6; }

/* sağ – kart */
.pp-ap-panel { position:relative; }
.pp-ap-card {
  background:#fff; border-radius:16px; padding:40px; max-width:640px;
  box-shadow:0 20px 60px rgba(0,60,111,.12); position:relative;
}
.pp-ap-slide { display:none; }
.pp-ap-slide.active { display:block; }
.pp-ap-title {
  font-size:19px; font-weight:800; letter-spacing:.5px; color:#003C6F; margin:0 0 16px; padding-bottom:16px;
  border-bottom:1px solid #eceff5;
}
.pp-ap-slide p { font-size:14.5px; line-height:1.75; color:#555; margin:0 0 24px; }
.pp-ap-slide img { width:100%; height:220px; object-fit:cover; border-radius:12px; display:block; }

.pp-ap-nav { display:flex; align-items:center; gap:20px; margin-top:28px; }
.pp-ap-prev, .pp-ap-next {
  width:40px; height:40px; border-radius:50%; border:1.5px solid #003C6F; background:#fff; color:#003C6F;
  display:flex; align-items:center; justify-content:center; cursor:pointer; transition:all .2s ease; flex-shrink:0;
}
.pp-ap-prev:hover, .pp-ap-next:hover { background:#003C6F; color:#fff; }
.pp-ap-counter { font-size:14px; font-weight:700; color:#003C6F; letter-spacing:.5px; }

/* alt bilgi kutusu + bağlantı çizgisi */
.pp-ap-info-line {
  width:2px; height:32px; margin:0 auto;
  background:repeating-linear-gradient(to bottom,#c7cede 0,#c7cede 4px,transparent 4px,transparent 8px);
}
.pp-ap-info-box {
  max-width:420px; margin:0 auto; background:#fff; border-radius:12px; padding:20px 24px;
  display:flex; gap:14px; align-items:flex-start; box-shadow:0 10px 30px rgba(0,60,111,.08);
}
.pp-ap-info-icon {
  flex-shrink:0; width:26px; height:26px; border-radius:50%; background:#003C6F;
  display:flex; align-items:center; justify-content:center; margin-top:2px;
}
.pp-ap-info-text strong { display:block; font-size:13px; font-weight:800; letter-spacing:.5px; color:#003C6F; margin-bottom:4px; }
.pp-ap-info-text p { margin:0; font-size:13px; line-height:1.6; color:#666; }

@media (max-width:900px) {
  .pp-ap-wrap { grid-template-columns:1fr; gap:32px; }
  .pp-ap-steps { display:flex; padding-left:0; gap:18px; overflow-x:auto; }
  .pp-ap-steps::before { display:none; }
  .pp-ap-step { flex:0 0 auto; padding:0 8px; }
  .pp-ap-dot, .pp-ap-line { display:none !important; }
  .pp-ap-card { padding:28px 24px; }
  .pp-ap-info-box { margin:0 16px; }
  .pp-ap-nav { justify-content:center; }
}
