/* ============================================================
   Personaltaucher – site.css (vollständig)
   Globale Farben, Typografie, Navigation, Layout-Utilities
   Kann neben einer bestehenden theme.css laufen.
   ============================================================ */

/* ----------------- Farben & Design-Tokens ----------------- */
:root {
  --pt-blue:    #0A3D62;
  --pt-orange:  #FF6B00; 
  --pt-gray:    #F5F6F8;
  --pt-black:   #000000;
  --pt-white:   #ffffff;

  --pt-font-head: 'Montserrat', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --pt-font-body: 'Open Sans', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;

  --pt-radius: 12px;
  --pt-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

/* ----------------- Basistypografie ----------------- */
html { font-size: 16px; scroll-behavior: smooth; }
body {
  background-color: var(--pt-white);
  color: #1e293b; /* slate-800 */
  line-height: 1.6;
  font-family: var(--pt-font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--pt-font-head);
  font-weight: 700;
  color: var(--pt-blue);
  margin: 0 0 0.5em;
  line-height: 1.2;
}
p { margin: 0 0 1rem; }

a { color: var(--pt-orange); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ----------------- Buttons ----------------- */
.btn {
  display: inline-block;
  padding: 0.65rem 1.25rem;
  border-radius: 10px;
  font-weight: 600;
  text-align: center;
  transition: all 0.2s ease-in-out;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn--primary {
  background: var(--pt-orange);
  color: var(--pt-white);
  border-color: var(--pt-orange);
}
.btn--primary:hover { filter: brightness(1.05); }

.btn--outline {
  background: transparent;
  border: 2px solid var(--pt-blue);
  color: var(--pt-blue);
}
/* NEU: Hover markenkonsistent in Orange */
.btn--outline:hover {
  border-color: var(--pt-orange);
  color: var(--pt-orange);
  background: transparent;
}

.btn--ghost { /* für dunklen Hero */
  background: transparent;
  border: 1px solid rgba(255,255,255,.7);
  color: #fff;
}
/* Halbtransparenter Orange-Button für dunkle Hintergründe */
.btn--hero {
  background: rgba(255,107,0,0.2);   /* 20 % Deckkraft von #FF6B00 */
  color: #fff;
  border: 1px solid rgba(255,107,0,0.6);
  transition: all 0.25s ease-in-out;
}
.btn--hero:hover {
  background: rgba(255,107,0,0.35);
  border-color: #FF6B00;
}

.btn--ghost:hover {
  background: rgba(255,255,255,.12);
  border-color: #fff;
}

/* ----------------- Layout-Blöcke ----------------- */
.section {
  max-width: 72rem; /* 1152px */
  margin: 0 auto;
  padding: 4rem 1.5rem;
}
.bg-gray { background-color: var(--pt-gray); }

/* Karten/Boxen */
.card {
  background: var(--pt-white);
  border-radius: var(--pt-radius);
  box-shadow: var(--pt-shadow);
  padding: 1.5rem;
}
/* NEU: Karten-Überschriften etwas kräftiger */
.card h3{ color: var(--pt-blue); font-weight: 700; }
.card strong { color: var(--pt-blue); }


/* ----------------- Header / Navigation ----------------- */
header { background: #ffffff; }
header .logo span { color: var(--pt-blue); }

.pt-nav {
  display: flex;
  gap: 1.5rem;
  font-size: .875rem;
  font-weight: 600;
  color: #334155; /* slate-700 */
}
.pt-nav a { color: inherit; text-decoration: none; }
.pt-nav a:hover { color: var(--pt-orange); }

/* Burger-Button (mobil sichtbar) */
.pt-burger {
  background: none;
  border: 0;
  color: var(--pt-blue);
  cursor: pointer;
}

/* Mobile Navigation (ausklappbar) */
.pt-mobile-nav {
  display: none; /* via JS auf flex setzen */
  flex-direction: column;
  background: #fff;
  border-top: 1px solid #e2e8f0;
}
.pt-mobile-nav a {
  padding: .75rem 1.5rem;
  color: #334155;
  text-decoration: none;
}
.pt-mobile-nav a:hover { background: var(--pt-gray); }

/* Sticky Header Helfer (falls JS/Styles deaktiviert) */
header.stuck { position: sticky; top: 0; z-index: 50; }

/* ----------------- Utilities ----------------- */
.text-center { text-align: center; }
.text-orange { color: var(--pt-orange); }
.text-blue   { color: var(--pt-blue); }
.bg-orange   { background: var(--pt-orange); color: var(--pt-white); }
.bg-blue     { background: var(--pt-blue); color: var(--pt-white); }

.mt-1{ margin-top:.25rem; } .mt-2{ margin-top:.5rem; }
.mt-4{ margin-top:1rem;  } .mt-8{ margin-top:2rem;  }

.mb-1{ margin-bottom:.25rem; } .mb-2{ margin-bottom:.5rem; }
.mb-4{ margin-bottom:1rem;  } .mb-8{ margin-bottom:2rem;  }

/* Grid (einfache, Tailwind-freie Variante) */
.grid { display: grid; gap: 1.5rem; }
@media (min-width: 768px){
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ----------------- Footer ----------------- */
footer { background: #fff; }
footer a { color: #475569; }
footer a:hover { color: var(--pt-orange); }

/* ----------------- Hero (Video) ----------------- */
#hero { position: relative; }
#hero .overlay { position:absolute; inset:0; background: rgba(0,0,0,.45); }

/* ===== Polished Hero ===== */
.pt-hero {
  position: relative;
  height: min(88vh, 900px);
  min-height: 560px;
  overflow: hidden;
  isolation: isolate; /* overlay richtig stapeln */
}

/* Video nur ab Tablet zeigen */
.pt-hero__video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: none;
  transition: opacity .4s ease; /* für sanftes Ausblenden */
}
@media (min-width: 768px){
  .pt-hero__video { display: block; }
}
.pt-hero__video.is-hidden { opacity: 0; }

/* Poster standardmäßig sichtbar, auf größeren Screens ausgeblendet */
.pt-hero__poster {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
@media (min-width: 768px){
  .pt-hero__poster { display: none; }
}

/* Gradient-Overlay: unten stärker für Buttons/Text */
.pt-hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.25) 0%,
    rgba(0,0,0,0.35) 40%,
    rgba(0,0,0,0.55) 100%
  );
  pointer-events: none;
}

/* Inhalt (Default: centered) */
.pt-hero__inner {
  position: relative; z-index: 1;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 0 1.5rem;
}

.pt-hero__content {
  max-width: 52rem; /* 832px */
  color: #fff;
}
.pt-hero__content h1 {
  font-family: var(--pt-font-head);
  font-weight: 700;
  line-height: 1.1;
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  margin: 0 0 1rem; /* etwas mehr Luft */
}
.pt-hero__content p {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: rgba(255,255,255,.92);
  margin: 0 0 2rem; /* ruhigerer Rhythmus */
}
/* CTA-Reihe */
.pt-hero__ctas { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; }
/* Mobil gleich breite Buttons */
.pt-hero__ctas .btn { 
  flex: 1 1 12rem;      /* beide wachsen gleich -> gleiche Breite */
  text-align: center;
}
@media (min-width: 768px){
  .pt-hero__ctas .btn { flex: 0 0 auto; } /* ab Tablet wieder natürliche Breite */
}

/* Hero-Heading bewusst über globale h1-Regel stellen */
.pt-hero__content h1{
  color: #fff;                /* Off-White, absolut lesbar auf Overlay */
  text-shadow: 0 2px 8px rgba(0,0,0,.35); /* leichte Lesbarkeitshilfe */
}

/* Mobile Poster – subtile Bewegung */
@media (max-width: 767px){
  .pt-hero__poster {
    animation: kenburns 12s ease-out forwards;
    transform-origin: center;
  }
  @keyframes kenburns {
    0% { transform: scale(1); }
    100% { transform: scale(1.05); }
  }
}

/* HERO: wieder zentriert statt linksbündig */
.pt-hero__inner {
  position: relative;
  z-index: 1;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 0 1.5rem;
}

.pt-hero__content {
  max-width: 52rem; /* 832px */
  color: #fff;
  text-align: center;             /* ← wieder zentriert */
  margin: 0 auto;                 /* zentriert im Grid */
}

.pt-hero__content h1 {
  font-family: var(--pt-font-head);
  font-weight: 700;
  line-height: 1.1;
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  margin: 0 0 .75rem;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,.35);
}

.pt-hero__content p {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: rgba(255,255,255,.92);
  margin: 0 0 1.5rem;
}

.pt-hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  justify-content: center;        /* ← Buttons mittig */
}
.pt-hero__ctas .btn {
  flex: 1 1 12rem;
  text-align: center;
}
@media (min-width: 768px){
  .pt-hero__ctas .btn { flex: 0 0 auto; }
}

/* Hero Sichtbarkeit steuern – nie display:none für <video> nutzen */
.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}


/* ----------------- Responsive Regeln ----------------- */
@media (max-width: 1024px){
  .section { padding: 3.5rem 1.25rem; }
}
@media (max-width: 768px){
  .section { padding: 2rem 1rem; }
  /* Desktop-Navi ausblenden, Burger zeigen */
  .pt-nav { display: none; }
  .pt-burger { display: block; }
}
@media (min-width: 769px){
  /* Auf Desktop Burger ausblenden, Mobile-Nav sicherheitshalber verstecken */
  .pt-burger { display:none; }
  .pt-mobile-nav { display:none !important; }
}

/* ============================================================
   Personaltaucher – Home (namespaced, konfliktarm)
   Diese Klassen gelten nur innerhalb eines Wrappers <div class="home">…</div>
   ============================================================ */

/* Spacing / Container */
.home .home-container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.home .center { text-align: center; }
.home .home-section { padding: 4rem 0; }
.home .home-section--muted { background: #f7f9fb; }
.home .home-section--white { background: #fff; }

/* Hero */
.home .home-hero { color: #fff; background: #0f2d33; }
.home .home-hero {
  background-image: linear-gradient(rgba(15,45,51,.45), rgba(15,45,51,.45));
}
.home .home-hero-title { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; line-height: 1.15; }
.home .home-hero-subtitle { font-size: 1.125rem; opacity: .95; margin-top: .75rem; }
.home .home-hero-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; padding: 5rem 1.5rem; }
@media (min-width: 900px){
  .home .home-hero-grid { grid-template-columns: 1.1fr .9fr; padding: 6rem 1.5rem; }
}

/* Buttons (Home) */
.home .home-cta-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.25rem; }
.home .home-btn { display:inline-block; padding:.9rem 1.2rem; border-radius:.65rem;
  background:var(--pt-orange); color:#fff; text-decoration:none; font-weight:700;
  transition:transform .05s ease, filter .2s ease; }
.home .home-btn:hover{ filter:brightness(.95); }
.home .home-btn:active{ transform:translateY(1px); }
.home .home-btn--outline{ background:transparent; color:var(--pt-orange); border:2px solid var(--pt-orange); }
.home .home-btn--outline:hover{ background:var(--pt-orange); color:#fff; }

/* Grids / Cards */
.home .home-grid-3 { display:grid; grid-template-columns: 1fr; gap: 1rem; margin-top: 2rem; }
.home .home-grid-2 { display:grid; grid-template-columns: 1fr; gap: 1rem; margin-top: 2rem; }
@media (min-width: 900px){
  .home .home-grid-3 { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
  .home .home-grid-2 { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
}
.home .home-card { background:#fff; border:1px solid #e5e7eb; border-radius:1rem; padding:1.2rem 1.25rem; }
.home .home-card__title { font-weight:700; font-size:1.125rem; margin-bottom:.35rem; color:#0f172a; }
.home .home-list { margin:0; padding-left:1.1rem; color:#475569; }
.home .home-list li { list-style:disc; margin:.25rem 0; }

/* Typo */
.home .home-h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); font-weight: 800; color:#0f172a; margin: 0 0 .5rem; }
.home .home-lead { color:#475569; margin: .25rem 0 1rem; }
.home .home-text { color:#475569; }

/* 2-Spalten Bereiche */
.home .home-two-col { display:grid; grid-template-columns: 1fr; gap: 2rem; align-items: center; }
@media (min-width: 900px){
  .home .home-two-col { grid-template-columns: 1.1fr .9fr; }
}
.home .home-media img { display:block; width:100%; height:auto; border-radius: 1rem; }

/* Zitate */
.home .home-quote{
  background:#fff; border-left:4px solid var(--pt-orange); padding:1rem 1.2rem; border-radius:.5rem;
  color:#334155; font-style:italic;
}

/* FAQ */
.home .home-faq__q{
  width:100%; text-align:left; padding:1rem; border:1px solid #e5e7eb; border-radius:.6rem;
  background:#fff; font-weight:700; margin:.5rem 0; cursor:pointer;
}
.home .home-faq__a{ display:none; padding:1rem; color:#475569; }
.home .home-faq__q.is-open + .home-faq__a{ display:block; }

/* Sticky CTA */
.home .home-sticky{
  position:fixed; right:16px; bottom:16px; z-index:60;
  background:var(--pt-orange); color:#fff; padding:.9rem 1.1rem; border-radius:999px;
  text-decoration:none; font-weight:700; box-shadow:0 8px 24px rgba(0,0,0,.18);
}
@media (max-width:640px){
  .home .home-sticky{ right:12px; bottom:12px; padding:.8rem 1rem; }
}
/* ==== Hero Contrast Boost (Startseite) ==== */
.pt-hero__overlay{
  /* Stärkerer Verlauf für bessere Lesbarkeit über Video/Poster */
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.42) 0%,
    rgba(0,0,0,0.55) 40%,
    rgba(0,0,0,0.72) 100%
  );
}
.pt-hero__content h1,
.pt-hero__content p{
  color: #fff; /* harter Weiß-Kontrast */
  text-shadow: 0 2px 10px rgba(0,0,0,.45); /* mehr Tiefe für WCAG-AA */
}
/* Buttons auf dunklem Hero: minimale Verstärkung */
.btn--hero{ border-color: rgba(255,107,0,0.75); }
.btn--ghost{ border-color: rgba(255,255,255,.85); }
.btn--ghost:hover{ background: rgba(255,255,255,.16); }
/* =======================
   Job Cards: Layout-Fix + Kontrast
   ======================= */

/* Grid: gleiche Reihenhöhen, damit Karten sauber ausrichten */
.grid--jobs {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 768px){
  .grid--jobs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Karten als Flex-Container: CTA immer unten, gleiche Gesamthöhe */
.card--job {
  display: flex;
  flex-direction: column;
  border: 1px solid #e5e7eb;
  box-shadow: 0 6px 16px rgba(0,0,0,.06);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  text-decoration: none;
}
.card--job:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0,0,0,.10);
  border-color: #d6d9df;
}

/* Titel-Zone auf exakt zwei Zeilen fixieren -> keine Höhen-Sprünge */
.card--job .job-title {
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.35;
  color: var(--pt-blue);
  margin: 0 0 .4rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;      /* auf 2 Zeilen begrenzen */
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(1.35em * 2); /* reserviert Platz für 2 Zeilen */
}

/* Meta-Zeilen */
.card--job .job-meta { color: #475569; }      /* slate-600 */
.card--job .job-meta--sub { color: #64748b; } /* slate-500 */

/* Platzhalter zwischen Content und CTA -> CTA immer unten */
.card--job .spacer {
  flex: 1 1 auto;
}

/* CTA-Lasche */
.card--job .job-cta {
  margin-top: .75rem;
}

/* Kontrast-Booster für Buttons & Links innerhalb Job-Karten */
.card--job .btn--outline {
  border-width: 2px;
  font-weight: 700;
}

/* Optional: markanter Fokus */
.card--job:focus-visible {
  outline: 3px solid rgba(255,107,0,.5);
  outline-offset: 2px;
}

/* Allgemeiner Kontrast-Boost (dezent) */
:root {
  --pt-shadow: 0 6px 16px rgba(0,0,0,0.08);
}
.btn--primary { filter: saturate(1.05) contrast(1.05); }

.admin-fab{
  position:fixed; right:16px; bottom:16px; width:44px; height:44px;
  background:#0f2d33; color:#fff; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 6px 12px rgba(0,0,0,.2);
  opacity:.25; transition:opacity .2s, transform .1s; z-index:9999;
  text-decoration:none; font-size:22px; line-height:1;
}
.admin-fab:hover{ opacity:.95; transform:scale(1.05); }
/* ==== HERO: Mobile-Video-Fix & saubere Ebenen (überschreibt frühere Regeln) ==== */

/* Video niemals via display:none verstecken */
.pt-hero__video {
  display: block !important;
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  z-index: 0 !important;
  background: transparent !important;
  opacity: 1;
}

/* Poster ebenfalls absolut, wird per .is-hidden ausgeblendet */
.pt-hero__poster {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  z-index: 0 !important;
  background: transparent !important;
}

/* Overlay darüber, Inhalt ganz oben */
.pt-hero__overlay { z-index: 1 !important; }
.pt-hero__inner   { z-index: 2 !important; }

/* Keine harten display:none-Sprünge – nur sichtbar/unsichtbar */
.is-hidden { opacity: 0 !important; visibility: hidden !important; pointer-events: none !important; }

/* Volle Viewport-Höhe auch auf Mobile (Adressleisten berücksichtigen) */
.pt-hero { height: 100vh; }
@supports (height: 100svh) {
  .pt-hero { height: 100svh; }
}

/* Verhindere versehentliche graue Hintergründe aus Globalstyles */
img, video { background: transparent !important; }

/* Performance/Repainthilfen für Android */
.pt-hero, .pt-hero * {
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translateZ(0);
}

