/* progloba.de — Editorial Trust design system
   Used across all 5 pages. Tailwind handles layout/utility,
   this file owns: tokens, typography defaults, component classes. */

:root {
  --navy:        #0F172A;
  --navy-soft:   #1E293B;
  --blue:        #1D4ED8;
  --blue-soft:   #2563EB;
  --off-white:   #F8FAFC;
  --paper:       #FFFFFF;
  --ink:         #1C1917;
  --mute:        #64748B;
  --line:        #E2E8F0;
  --line-dark:   #334155;
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }
body {
  font-family: 'Source Sans 3', system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--off-white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
@media (max-width: 640px) { body { font-size: 16px; } }

h1, h2, h3, h4, h5, h6,
.font-display {
  font-family: 'Fraunces', Georgia, serif;
  font-optical-sizing: auto;
  letter-spacing: -0.02em;
  color: var(--navy);
  line-height: 1.1;
  font-weight: 500;
}
h1 { font-weight: 500; }
h2 { font-weight: 500; }
h3 { font-weight: 600; letter-spacing: -0.015em; }

a { color: inherit; }
::selection { background: var(--blue); color: var(--off-white); }

/* ---------- Eyebrow (small caps accent label above headings) ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
}
.eyebrow::before {
  content: '';
  width: 24px; height: 1px;
  background: var(--blue);
  display: inline-block;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  border-radius: 2px;
  text-decoration: none;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
  border: 1px solid transparent;
  min-height: 48px;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.btn-primary {
  background: var(--blue);
  color: var(--off-white);
  border-color: var(--blue);
}
.btn-primary:hover { background: var(--blue-soft); border-color: var(--blue-soft); }

.btn-ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-ghost:hover { background: var(--navy); color: var(--off-white); }

.btn-ghost-light {
  background: transparent;
  color: var(--off-white);
  border-color: rgba(248,250,252,0.4);
}
.btn-ghost-light:hover { background: var(--off-white); color: var(--navy); border-color: var(--off-white); }

.btn-emergency {
  background: transparent;
  color: var(--blue);
  border-color: var(--blue);
  position: relative;
  font-feature-settings: 'tnum';
}
.btn-emergency::before {
  content: '';
  width: 8px; height: 8px;
  background: var(--blue);
  border-radius: 50%;
  margin-right: 0.5rem;
  box-shadow: 0 0 0 0 rgba(29, 78, 216, 0.6);
  animation: pulse 2.2s infinite;
}
.btn-emergency:hover { background: var(--blue); color: var(--off-white); }
.btn-emergency:hover::before { background: var(--off-white); box-shadow: none; animation: none; }

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(29, 78, 216, 0.55); }
  70%  { box-shadow: 0 0 0 12px rgba(29, 78, 216, 0); }
  100% { box-shadow: 0 0 0 0 rgba(29, 78, 216, 0); }
}

/* ---------- Card ---------- */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 2rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.card:hover {
  border-color: var(--blue);
}
.card-link { cursor: pointer; }
.card-link:hover { transform: translateY(-2px); }

/* ---------- Rule (accent divider line) ---------- */
.rule {
  width: 48px;
  height: 1px;
  background: var(--blue);
  border: 0;
  margin: 1rem 0;
}
.rule-center { margin-left: auto; margin-right: auto; }

/* ---------- Portrait frame ---------- */
.portrait {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--line);
  box-shadow: 0 12px 40px -12px rgba(15, 23, 42, 0.25);
}
.portrait img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.portrait::after {
  content: '';
  position: absolute; inset: 0;
  border: 8px solid var(--off-white);
  pointer-events: none;
}

/* ---------- Header (sticky) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(248, 250, 252, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-nav a {
  position: relative;
  text-decoration: none;
  font-weight: 500;
  color: var(--navy);
  padding: 0.5rem 0;
  font-size: 16px;
}
.site-nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after { transform: scaleX(1); }
.site-nav a[aria-current="page"] { color: var(--blue); }

/* ---------- Nav dropdown (Leistungen) ---------- */
.nav-dd { position: relative; display: flex; align-items: center; }
.nav-dd > a { display: inline-flex; align-items: center; gap: 5px; }
.nav-dd-caret { transition: transform 0.2s ease; opacity: 0.7; }
.nav-dd:hover .nav-dd-caret,
.nav-dd:focus-within .nav-dd-caret { transform: rotate(180deg); }
.nav-dd-menu {
  position: absolute;
  top: 100%; left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 260px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 24px 48px -18px rgba(15, 23, 42, 0.28);
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 60;
}
/* invisible hover bridge so the menu doesn't close in the gap */
.nav-dd-menu::before {
  content: '';
  position: absolute;
  top: -10px; left: 0; right: 0; height: 10px;
}
.nav-dd:hover .nav-dd-menu,
.nav-dd:focus-within .nav-dd-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav-dd-menu a {
  display: block;
  padding: 0.65rem 0.9rem;
  border-radius: 5px;
  font-size: 15px;
  font-weight: 500;
  color: var(--navy);
  white-space: nowrap;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}
.nav-dd-menu a::after { display: none; }
.nav-dd-menu a:hover { background: var(--off-white); color: var(--blue); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: rgba(248, 250, 252, 0.78);
}
.site-footer a {
  color: rgba(248, 250, 252, 0.78);
  text-decoration: none;
  transition: color 0.18s ease;
}
.site-footer a:hover { color: var(--blue-soft); }
.site-footer h4 {
  color: var(--off-white);
  font-family: 'Source Sans 3', sans-serif;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 1rem;
}

/* ---------- Accordion (FAQ) ---------- */
.faq-item {
  border-top: 1px solid var(--line);
}
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 22px;
  font-weight: 500;
  color: var(--navy);
  letter-spacing: -0.01em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-family: 'Source Sans 3', sans-serif;
  font-size: 28px;
  color: var(--blue);
  font-weight: 300;
  transition: transform 0.25s ease;
  flex-shrink: 0;
}
.faq-item[open] summary::after { content: '−'; }
.faq-item[open] summary { color: var(--blue); }
.faq-answer {
  padding: 0 0 1.75rem 0;
  color: var(--mute);
  max-width: 56rem;
  font-size: 17px;
  line-height: 1.7;
}

/* ---------- Stat (Trust bar) ---------- */
.stat-num {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 48px;
  font-weight: 500;
  color: var(--navy);
  letter-spacing: -0.02em;
  line-height: 1;
}
.stat-label {
  font-size: 14px;
  color: var(--mute);
  letter-spacing: 0.04em;
  margin-top: 0.5rem;
}

/* ---------- Process step (Timeline) ---------- */
.step-num {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 14px;
  color: var(--blue);
  letter-spacing: 0.18em;
  font-weight: 500;
}

/* ---------- Pull quote ---------- */
.pullquote {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 36px;
  line-height: 1.25;
  color: var(--navy);
  letter-spacing: -0.02em;
  font-weight: 400;
  font-style: italic;
}
.pullquote::before {
  content: '\201C';
  display: block;
  font-size: 80px;
  color: var(--blue);
  line-height: 0.8;
  margin-bottom: 0.5rem;
  font-style: normal;
}
@media (max-width: 768px) { .pullquote { font-size: 26px; } }

/* ---------- Form ---------- */
.field-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 0.5rem;
}
.field-input,
.field-textarea,
.field-select {
  width: 100%;
  padding: 0.875rem 1rem;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--ink);
  transition: border-color 0.2s ease;
}
.field-input:focus,
.field-textarea:focus,
.field-select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.15);
}
.field-textarea { min-height: 140px; resize: vertical; }

/* ---------- Partner logos (greyscale → color on hover) ---------- */
.partner-logo {
  filter: grayscale(100%) opacity(0.55);
  transition: filter 0.25s ease;
  max-height: 56px;
  width: auto;
}
.partner-logo:hover { filter: grayscale(0%) opacity(1); }

/* ---------- Partner tiles (logo grid) ---------- */
.partner-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 100px;
  padding: 1.25rem 1rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--paper);
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.partner-tile:hover { border-color: var(--blue); transform: translateY(-2px); }
.partner-tile img {
  max-height: 48px;
  max-width: 82%;
  width: auto;
  object-fit: contain;
  filter: grayscale(100%) opacity(0.6);
  transition: filter 0.25s ease;
}
.partner-tile:hover img { filter: grayscale(0%) opacity(1); }
.partner-name {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 17px;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.partner-tile[href="#"] { cursor: default; }

/* ---------- Partner band (swipeable carousel) ---------- */
.partner-band { position: relative; margin-top: 2.5rem; }
.partner-track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-behavior: smooth;
  padding: 6px 2px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.partner-track::-webkit-scrollbar { display: none; }
.partner-track > .partner-tile {
  flex: 0 0 auto;
  width: 200px;
  scroll-snap-align: center;
}
@media (max-width: 640px) {
  .partner-track > .partner-tile { width: 150px; }
}
/* edge fades hint scrollability */
.partner-band::before,
.partner-band::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 48px;
  z-index: 2;
  pointer-events: none;
}
.partner-band::before { left: 0; background: linear-gradient(90deg, var(--paper), rgba(255,255,255,0)); }
.partner-band::after { right: 0; background: linear-gradient(270deg, var(--paper), rgba(255,255,255,0)); }
/* arrow controls */
.partner-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 26px -12px rgba(15, 23, 42, 0.3);
  transition: border-color 0.2s ease, color 0.2s ease;
}
.partner-arrow:hover { border-color: var(--blue); color: var(--blue); }
.partner-arrow-prev { left: -8px; }
.partner-arrow-next { right: -8px; }
@media (max-width: 640px) { .partner-arrow { display: none; } }

/* ---------- Page-load orchestration ---------- */
.reveal {
  opacity: 0;
  transform: translateY(8px);
  animation: reveal 0.7s 0.05s ease forwards;
}
.reveal-delay-1 { animation-delay: 0.15s; }
.reveal-delay-2 { animation-delay: 0.3s; }
.reveal-delay-3 { animation-delay: 0.45s; }
@keyframes reveal {
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-delay-1, .reveal-delay-2, .reveal-delay-3 {
    animation: none;
    opacity: 1;
    transform: none;
  }
  .btn-emergency::before { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Section spacing helper ---------- */
.section { padding: 6rem 0; }
@media (max-width: 768px) { .section { padding: 4rem 0; } }
.section-tight { padding: 4rem 0; }

/* ---------- Skip-link (a11y) ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: var(--off-white);
  padding: 1rem 1.5rem;
  z-index: 100;
  text-decoration: none;
}
.skip-link:focus { left: 0; }

/* ---------- Hero overlay (for image-backed heroes) ---------- */
.hero-overlay {
  background: linear-gradient(180deg, rgba(15,23,42,0.05) 0%, rgba(15,23,42,0.45) 100%);
}
