/* ============================================================
   proofIT – Custom-Styling (Nachbau des alten shaper_macro-Looks)
   Wird von Cassiopeia automatisch als "template.user" geladen.
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Arvo:ital,wght@0,400;0,700;1,400&family=Raleway:wght@300;400;500;600;700&display=swap');

:root {
  --pit-orange: #f75d21;   /* Markenorange (strong, Akzente) */
  --pit-red:    #E92414;   /* Prozess-Kreise (wie Original) */
  --pit-green:  #90c940;
  --pit-text:   #565656;
  --pit-dark:   #2d2d2d;
  --pit-muted:  #a8a8a8;
  --pit-light:  #f5f5f5;
}

/* ============================================================
   HEADER / NAVIGATION – dunkler Balken, nur Hamburger + Off-Canvas
   (exakter Nachbau des Originals)
   ============================================================ */
.header.container-header,
.container-header.full-width {
  background: #2d2d2d !important;
  box-shadow: none;
  position: relative;
  z-index: 1000;
  min-height: 70px;
}
/* Logo und horizontale Navi ausblenden */
.header .navbar-brand { display: none !important; }
.header .container-nav { display: none !important; }

/* Home: transparenter Header über dem Hero (kein schwarzer Balken, wie Original).
   position !important, da Cassiopeia .container-header{position:relative!important} erzwingt. */
body.itemid-101 .header.container-header {
  background: transparent !important;
  position: absolute !important;
  top: 0; left: 0; right: 0;
  box-shadow: none;
}
/* Oberen Abstand auf der Home-Seite entfernen, damit das Hero ganz oben beginnt */
body.itemid-101 .site-grid { margin-top: 0 !important; }
body.itemid-101 main { margin-top: 0 !important; padding-top: 0 !important; }
body.itemid-101 .container-component { margin-top: 0 !important; padding-top: 0 !important; }

/* Hamburger-Button (per user.js eingefügt) – am rechten Rand des Content-Containers (~1140px) */
.pit-burger {
  position: absolute; top: 50%;
  right: max(20px, calc(50vw - 570px));
  transform: translateY(-50%);
  width: 42px; height: 42px; padding: 0;
  background: transparent; border: 0; cursor: pointer;
  display: flex; flex-direction: column; justify-content: center; gap: 6px;
  z-index: 1002;
}
.pit-burger span {
  display: block; height: 3px; width: 28px; margin-left: auto;
  background: #fff; border-radius: 2px; transition: all .3s ease;
}
body.pit-oc-open .pit-burger span:nth-child(1){ transform: translateY(9px) rotate(45deg); }
body.pit-oc-open .pit-burger span:nth-child(2){ opacity: 0; }
body.pit-oc-open .pit-burger span:nth-child(3){ transform: translateY(-9px) rotate(-45deg); }

/* Off-Canvas: rechtes Seiten-Panel 400px, dunkel, schiebt von rechts (wie Original) */
.pit-offcanvas {
  position: fixed; top: 0; right: -400px; z-index: 9999;
  width: 400px; max-width: 85vw; height: 100%;
  background: rgba(0,0,0,.9);
  padding: 70px 50px 90px;
  box-sizing: border-box; overflow-y: auto;
  transition: right .5s cubic-bezier(0.77,0,0.175,1);
}
body.pit-oc-open .pit-offcanvas { right: 0; }
/* Abdunkelnder Hintergrund hinter dem Panel */
.pit-oc-backdrop {
  position: fixed; inset: 0; z-index: 9998;
  background: rgba(0,0,0,.4);
  opacity: 0; visibility: hidden; transition: opacity .4s ease;
}
body.pit-oc-open .pit-oc-backdrop { opacity: 1; visibility: visible; }

.pit-offcanvas .mod-menu,
.pit-offcanvas ul {
  list-style: none; margin: 0; padding: 0; display: block !important;
}
.pit-offcanvas .mod-menu > li { display: block; border: none; }
.pit-offcanvas .mod-menu > li > a {
  display: flex; align-items: center; white-space: nowrap;
  padding: 8px 0;
  color: #fff !important; font-size: 14px; font-weight: 500;
  line-height: 28px; letter-spacing: 4px; text-transform: uppercase;
  font-family: 'Raleway', sans-serif; text-decoration: none;
  transition: color .2s ease;
}
/* Cassiopeias eigene Pseudoelemente im Off-Canvas abschalten */
.pit-offcanvas .mod-menu > li > a::after,
.pit-offcanvas .mod-menu > li > a::before { content: none !important; }

/* Strich als echtes Element (per user.js) – 40px-Slot, Linie via scaleX:
   ruht bei 50% (=20px), wächst bei Hover flüssig auf 100% (=40px).
   Text bleibt an Ort und Stelle (Slot-Breite konstant). */
.pit-offcanvas .pit-dash {
  flex: 0 0 auto; width: 40px; height: 1px; margin-right: 16px;
  background: #c6c6c6;
  transform: scaleX(0.5);
  transform-origin: left center;
  transition: transform .35s cubic-bezier(0.77,0,0.175,1);
}
.pit-offcanvas .mod-menu > li > a:hover .pit-dash { transform: scaleX(1); }
/* Text bleibt weiß (wie Original) – aktiver Eintrag zusätzlich fett, kein Orange */
.pit-offcanvas .mod-menu > li > a:hover { color: #fff !important; }
.pit-offcanvas .mod-menu > li.current > a,
.pit-offcanvas .mod-menu > li.active > a {
  color: #fff !important; font-weight: 700;
}
/* Schließen-Button: schwarzes Quadrat oben rechts mit weißem × */
.pit-oc-close {
  position: absolute; top: 0; right: 0;
  width: 60px; height: 60px; z-index: 1;
  background: #000; border: 0; color: #fff;
  font-size: 26px; line-height: 60px; text-align: center; cursor: pointer;
}
.pit-oc-close:hover { background: rgba(0,0,0,.5); }

/* Cassiopeias blauen Body-Gradient entfernen (sonst blaue Streifen in Layout-Lücken) */
body.site { background: #fff !important; overflow-x: hidden; }
html { scroll-behavior: smooth; }

/* ---- Grundtypografie (Original: Raleway Body, Arvo Headings) ---- */
body.site,
.pit-page {
  font-family: 'Raleway', -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--pit-text);
  font-weight: 400;
  line-height: 1.7;
}
.pit-page h1, .pit-page h2, .pit-page h3, .pit-page h4 {
  font-family: 'Arvo', Georgia, serif;
  color: var(--pit-dark);
  line-height: 1.25;
}
/* strong = orange Arvo, wie im Original */
.pit-page strong { color: var(--pit-orange); font-family: 'Arvo', serif; font-weight: 700; }

/* Cassiopeia-Containerpolster für unsere Seiten neutralisieren,
   damit Sektionen die volle Breite nutzen können. */
.pit-page { margin: 0; }

/* ---- Sektionen ---- */
.pit-section { padding: 60px 0; background: #fff; }
.pit-container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* Vollbreite Sektionen (Hero/Claim) aus dem Cassiopeia-Container ausbrechen */
.pit-hero,
.pit-claim {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

/* ---- Überschriften: große dünne Headline mit feiner Linie (wie Original) ---- */
.pit-page .pit-heading {
  font-family: 'Raleway', -apple-system, "Segoe UI", Roboto, sans-serif;
  font-weight: 300;
  text-align: center;
  font-size: clamp(2rem, 4vw, 2.9rem);
  color: #444;
  border-bottom: 1px solid #e4e4e4;
  padding-bottom: 22px;
  margin: 0 0 40px;
  letter-spacing: .5px;
  line-height: 1.2;
}
.pit-heading > span { display: inline; }
.pit-page .pit-heading-light { color: #fff; border-bottom-color: rgba(255,255,255,.4); }

.pit-lead {
  max-width: 820px;
  margin: 0 auto 1rem;
  text-align: center;
  font-size: 1.1rem;
}

/* ============================================================
   HERO
   ============================================================ */
.pit-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding: 40px 20px;
}
/* Kein Farb-Overlay – nur das Hintergrundbild */
.pit-hero::before { content: none; }
.pit-hero-inner { position: relative; z-index: 1; }
/* Brand-Label im Original nicht vorhanden */
.pit-hero-brand { display: none; }
.pit-hero .pit-hero-title {
  box-sizing: border-box;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: #fff;
  font-size: 72px;
  font-weight: 700;
  line-height: 79.2px;
  letter-spacing: normal;
  text-transform: capitalize;
  text-align: center;
  margin: 0 0 60px;
}
@media (max-width: 767px) {
  .pit-hero .pit-hero-title { font-size: 40px; line-height: 1.1; margin-bottom: 30px; }
}
.pit-hero-sub {
  box-sizing: border-box;
  color: #fff;
  font-family: Arvo, sans-serif;
  font-size: 40px;
  font-weight: 700;
  line-height: 44px;
  text-align: center;
  text-transform: none;
  max-width: 900px;
  margin: 0 auto;
}
@media (max-width: 767px) {
  .pit-hero-sub { font-size: 24px; line-height: 1.2; }
}

/* Maus-Scroll-Button unten im Hero (Maus-Kontur + 3 Chevrons, wie Original) */
.pit-scrolldown {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  z-index: 2; display: block; text-decoration: none; color: #fff;
}
.pit-mouse-img {
  display: block; width: auto; height: auto;
  filter: drop-shadow(0 1px 4px rgba(0,0,0,.3));
  animation: pit-scrolldown 2s ease-in-out infinite;
}
@keyframes pit-scrolldown {
  0%   { transform: translateY(-5px); }
  50%  { transform: translateY(5px); }
  100% { transform: translateY(-5px); }
}
.pit-scrolldown:hover { color: var(--pit-orange); }

/* ============================================================
   PROZESS-SCHRITTE 1–6
   ============================================================ */
/* Prozess: rote Kreise + Label rechts daneben, 3 pro Reihe (wie Original) */
.pit-process { background: #fff; }
.pit-steps {
  list-style: none; margin: 0 auto; padding: 0;
  max-width: 720px;
  display: flex; flex-wrap: wrap; justify-content: center;
  row-gap: 30px;
}
.pit-steps li {
  display: flex; align-items: center; gap: 18px;
  width: 240px;
}
.pit-step-num {
  flex: 0 0 auto;
  width: 80px; height: 80px; border-radius: 50%;
  background: var(--pit-red); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: Calibri, 'Raleway', sans-serif; font-size: 44px; font-weight: 400;
}
.pit-step-label {
  font-family: 'Arvo', serif; color: #6F6F6F; font-size: 20px; font-weight: 400;
}

/* ============================================================
   TECHNOLOGIE-LOGOS
   ============================================================ */
.pit-tech-web { background: #fff; }
.pit-logos {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-end;
  gap: 30px 45px;
}
.pit-logos li {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  width: 110px; text-align: center;
}
.pit-logos img {
  max-height: 60px; width: auto; object-fit: contain;
  transition: transform .25s ease;
}
.pit-logos li:hover img { transform: scale(1.08); }
.pit-logos li span { color: var(--pit-text); font-size: .9rem; }

/* ============================================================
   CLAIM "Geht nicht, gibt es nicht!"
   ============================================================ */
/* Claim: Brücken-Bild als fixierter Parallax-Hintergrund + oranger Text (wie Original) */
.pit-claim {
  background: url('/images/proofit_home_background.jpg') center center / cover fixed;
  padding: 100px 0;
}
.pit-claim::before {
  content: ""; position: absolute; inset: 0;
  background: rgba(0,0,0,.45);
}
.pit-claim .pit-container { position: relative; z-index: 1; }
.pit-page .pit-claim .pit-heading {
  color: #fff;
  border-bottom: none;
  padding-bottom: 0;
}
.pit-claim .pit-lead { color: #fff; font-weight: 400; }

/* ============================================================
   STANDORT / KONTAKT
   ============================================================ */
.pit-standort-grid,
.pit-kontakt-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
}
.pit-standort-grid img,
.pit-kontakt-map img { max-width: 100%; border-radius: 6px; box-shadow: 0 6px 20px rgba(0,0,0,.12); }
.pit-standort-map { text-align: center; max-width: 900px; margin: 0 auto; }
.pit-standort-map img { max-width: 820px; width: 100%; border-radius: 6px; box-shadow: 0 6px 20px rgba(0,0,0,.12); }
.pit-standort-map iframe {
  width: 100%; height: 420px; border: 0; border-radius: 6px;
  box-shadow: 0 6px 20px rgba(0,0,0,.12);
}
.pit-map-link { margin-top: 12px; font-size: .9rem; }
.pit-map-link a { color: var(--pit-orange); text-decoration: none; }
.pit-map-link a:hover { text-decoration: underline; }
.pit-address { font-style: normal; line-height: 1.9; font-size: 1.05rem; }
.pit-address strong { color: var(--pit-orange); font-size: 1.15rem; }
.pit-kontakt-lines { margin-top: 1rem; line-height: 2; }
.pit-kontakt-lines a, .pit-address a { color: var(--pit-orange); text-decoration: none; }

/* ============================================================
   REFERENZEN – Portfolio-Grid
   ============================================================ */
.pit-intro-cols {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: center;
  margin-top: 1rem;
}
.pit-intro-lead {
  color: var(--pit-orange); font-weight: 700; font-size: 1.5rem;
  line-height: 1.35; margin: 0 0 1rem;
}
.pit-intro-media img { max-width: 100%; height: auto; }
.pit-intro-note { text-align: center; max-width: 900px; margin: 2rem auto 0; }
.pit-checklist { margin: 1rem 0; padding-left: 1.2rem; font-size: 1.05rem; }
.pit-checklist li { margin: .4rem 0; }
@media (max-width: 767px) {
  .pit-intro-cols { grid-template-columns: 1fr; }
}
.pit-ref-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 2rem;
}
.pit-ref-item {
  margin: 0; background: #fff; border-radius: 8px; overflow: hidden;
  box-shadow: 0 4px 18px rgba(0,0,0,.09);
  transition: transform .25s ease, box-shadow .25s ease;
}
.pit-ref-item:hover { transform: translateY(-6px); box-shadow: 0 12px 28px rgba(0,0,0,.16); }
.pit-ref-thumb { overflow: hidden; }
.pit-ref-thumb img { width: 100%; display: block; transition: transform .4s ease; }
.pit-ref-item:hover .pit-ref-thumb img { transform: scale(1.06); }
.pit-ref-item figcaption { padding: 18px 20px 22px; }
.pit-ref-title { margin: 0 0 6px; font-size: 1.2rem; }
.pit-ref-type {
  display: inline-block; margin: 0 0 8px;
  color: var(--pit-orange); font-weight: 700; text-transform: uppercase;
  font-size: .75rem; letter-spacing: 1px;
}
.pit-ref-services { margin: 0; font-size: .9rem; color: var(--pit-muted); }

/* e-publishing */
.pit-epub-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 1.5rem; }
.pit-epub-item { text-align: center; }
.pit-epub-item img { max-width: 100%; margin-bottom: 1rem; }
.pit-epub-item h3 { color: var(--pit-orange); }
.pit-note { text-align: center; margin-top: 2rem; font-size: 1.05rem; }
.pit-note a { color: var(--pit-orange); font-weight: 600; }

/* Apps */
.pit-apps { background: var(--pit-light); }
.pit-apps-os {
  text-align: center; margin: 2.5rem 0 1.2rem; color: var(--pit-dark);
  font-size: 1.4rem;
}
.pit-apps-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 18px;
}
.pit-apps-grid li {
  background: #fff; border-radius: 8px; padding: 14px 10px; text-align: center;
  box-shadow: 0 2px 10px rgba(0,0,0,.07);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  transition: transform .2s ease;
}
.pit-apps-grid li:hover { transform: translateY(-4px); }
.pit-apps-grid img { width: 72px; height: 72px; object-fit: cover; border-radius: 14px; }
.pit-apps-grid span { font-size: .8rem; color: var(--pit-text); }

/* ============================================================
   KUNDEN – Logo-Grid
   ============================================================ */
.pit-clients-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
  column-gap: 2%; row-gap: 24px;
}
/* com_content setzt overflow:hidden auf alle ul/ol im Artikel (höhere Spezifität als
   .pit-clients-grid) – hier gezielt aufheben, sonst wird die letzte Logo-Reihe abgeschnitten. */
.com-content-article ul.pit-clients-grid { overflow: visible; }
.pit-clients-grid li { background: #fff; }
.pit-clients-grid a, .pit-clients-grid span {
  display: flex; align-items: center; justify-content: center;
  height: 150px; padding: 20px;
}
.pit-clients-grid img {
  max-width: 100%; max-height: 100px; width: auto;
  transition: transform .25s ease;
}
.pit-clients-grid a:hover img { transform: scale(1.06); }

/* ============================================================
   ÜBER UNS – Profil
   ============================================================ */
.pit-profile { display: grid; grid-template-columns: 300px 1fr; gap: 40px; align-items: start; }
.pit-profile-photo img { width: 100%; border-radius: 8px; }
.pit-profile-card {
  background: var(--pit-light); border-top: 4px solid var(--pit-orange);
  padding: 18px 20px; margin-top: -6px; border-radius: 0 0 8px 8px;
}
.pit-profile-card h2 { margin: 0 0 4px; font-size: 1.4rem; }
.pit-role { color: var(--pit-orange); font-weight: 600; margin: 0 0 10px; }
.pit-contact { font-size: .9rem; margin: 0; }
.pit-contact a { color: var(--pit-orange); }
.pit-profile-bio p { margin: 0 0 1rem; text-align: justify; }
.pit-partners-grid {
  list-style: none; margin: 1.5rem 0 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 50px; align-items: center;
}
.pit-partners-grid img { max-height: 80px; width: auto; filter: grayscale(100%); opacity: .7; transition: all .25s; }
.pit-partners-grid a:hover img { filter: grayscale(0); opacity: 1; }

/* ============================================================
   RECHTSTEXTE (Impressum / AGB / Datenschutz)
   ============================================================ */
.pit-prose { max-width: 860px; margin: 0 auto; }
.pit-prose h2 { margin: 2rem 0 .6rem; font-size: 1.35rem; color: var(--pit-dark); }
.pit-prose h3 { margin: 1.4rem 0 .5rem; font-size: 1.1rem; color: var(--pit-orange); }
.pit-prose p { margin: 0 0 1rem; }
.pit-prose a { color: var(--pit-orange); word-break: break-word; }
.pit-prose ul { margin: 0 0 1rem 1.2rem; }

/* ============================================================
   FOOTER (Custom-Modul, Position "footer") – auf allen Seiten
   ============================================================ */
/* Footer-Container: volle Breite + hellgrauer Hintergrund statt Cassiopeia-Blau */
.container-footer {
  padding: 0 !important; margin: 0 !important; max-width: none !important;
  width: 100% !important; align-self: stretch !important;
  background: #ededed !important;
  background-image: none !important;
  display: block !important;   /* Cassiopeia-Grid im Footer aufheben */
}
/* Innere Cassiopeia-Wrapper auf volle Breite, damit .pit-footer nicht schmaler/links sitzt */
.container-footer .grid-child,
.container-footer .mod-custom {
  width: 100% !important; max-width: none !important; margin: 0 !important; padding: 0 !important;
  grid-column: 1 / -1 !important;
}
.pit-footer {
  background: #ededed;
  color: #333;
  padding: 55px 0;
  font-family: 'Raleway', sans-serif;
  width: 100%;
  box-sizing: border-box;
}
.pit-footer-grid {
  max-width: 1140px; margin: 0 auto; padding: 0 20px;
  display: grid; grid-template-columns: 1fr 1fr 2fr; gap: 30px;
}
.pit-footer h3 {
  color: #989797; font-family: 'Arvo', serif; font-size: 1.1rem;
  margin: 0 0 14px; font-weight: 700;
}
.pit-footer p { margin: 0 0 6px; font-size: .95rem; line-height: 1.6; }
.pit-footer a { color: #1a6bb5 !important; text-decoration: none; transition: color .2s ease; }
.pit-footer a:hover { color: #0d4f8a !important; text-decoration: underline; }
.pit-footer-links p { margin-bottom: 10px; }
.pit-footer-links a { letter-spacing: 1px; }
@media (max-width: 767px) {
  .pit-footer-grid { grid-template-columns: 1fr; gap: 24px; text-align: center; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 991px) {
  .pit-ref-grid { grid-template-columns: repeat(2, 1fr); }
  .pit-clients-grid { grid-template-columns: repeat(4, 1fr); }
  .pit-profile { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
}
@media (max-width: 767px) {
  .pit-section { padding: 40px 0; }
  .pit-standort-grid, .pit-kontakt-grid, .pit-epub-grid { grid-template-columns: 1fr; }
  .pit-ref-grid { grid-template-columns: 1fr; }
  .pit-clients-grid { grid-template-columns: repeat(3, 1fr); }
  .pit-hero { background-attachment: scroll; min-height: 60vh; }
}
@media (max-width: 480px) {
  .pit-clients-grid { grid-template-columns: repeat(2, 1fr); }
}
