/* ═══════════════════════════════════════════
   UNTERSEITEN (it-service.html, ueber-mich.html)
   Nutzt Tokens + Komponenten aus style.css
═══════════════════════════════════════════ */

/* ─── Seiten-Hero (ohne Video) ─────────────────
   Gleicher Aufbau wie .hero / .wd-hero: volle Höhe, zentriert,
   H1 → Cyan-Zeile → Lead → Buttons */
.page-hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 140px var(--px) 100px;
  overflow: hidden;
  background: var(--bg);
  text-align: center;
}
.page-hero-inner {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-title {
  font-family: var(--font);
  font-size: clamp(3rem, 6.5vw, 6.5rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.045em;
  color: var(--text);
  margin-bottom: 32px;
}
.page-title .fr-italic {
  display: inline-block;
  padding: 0 0.02em;
  transform: translateY(0.02em);
}

.page-kicker {
  font-family: var(--font);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan, #00b2ff);
  margin: -14px 0 28px;
  opacity: 0.95;
}

.page-lead {
  font-size: 1.15rem;
  color: var(--muted-strong);
  line-height: 1.65;
  max-width: 560px;
  margin: 0 auto 44px;
  text-align: center;
}

.page-hero-buttons {
  display: flex; gap: 14px; flex-wrap: wrap;
  justify-content: center; align-items: center;
}

/* Über mich: geteilter Hero – Porträt links, unten bündig angedockt (gerade Bildkante
   sitzt auf der Hero-Unterkante), Text rechts vertikal zentriert.
   Bildhöhe ist an die Viewport-Höhe gekoppelt, damit nichts überläuft. */
.page-hero.page-hero--profile {
  text-align: left;
  align-items: stretch;
  padding-top: 110px;
  padding-bottom: 0;
}
.profile-hero-grid {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 42%) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px);
}
.profile-hero-text {
  align-self: center;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-bottom: 40px;
}
.page-hero--profile .page-title {
  font-size: clamp(2.6rem, min(5.4vw, 10svh), 5.4rem);
}
.page-hero--profile .page-lead {
  margin: 0 0 40px;
  text-align: left;
}
.page-hero--profile .page-hero-buttons { justify-content: flex-start; }

.profile-hero-visual {
  order: -1;
  align-self: end;
  display: flex;
  justify-content: center;
}
.profile-hero-visual picture { display: block; }
.profile-hero-visual img {
  display: block;
  height: min(80svh, calc(100svh - 130px));
  width: auto;
  max-width: 100%;
  object-fit: cover;
  object-position: center top;
}

/* Über mich: „Wer ich bin“ (Text + Grafik) und darunter „Wie ich arbeite“
   als leichte 4er-Reihe mit Haarlinien statt schwerer Glas-Karten */
.who-grid .prose { max-width: 520px; }
.work-points {
  list-style: none;
  padding: 0;
  margin: 88px 0 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.work-points li {
  border-top: 1px solid var(--border);
  padding-top: 26px;
}
.work-points svg {
  width: 22px; height: 22px;
  color: var(--cyan, #00b2ff);
  margin-bottom: 16px;
}
.work-points h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 8px;
}
.work-points p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.65;
}
@media (max-width: 900px) {
  .work-points { grid-template-columns: 1fr 1fr; gap: 28px 24px; }
  .work-points { margin-top: 64px; }
  .who-grid .svc-mirror-content { text-align: left; align-items: flex-start; }
  .who-grid .svc-mirror-title { text-align: left; }
  .who-grid .svc-mirror-visual img { max-height: 280px; }
}
@media (max-width: 520px) {
  .work-points { grid-template-columns: 1fr; }
}

/* Fließtext-Block (z. B. „Wer ich bin“) */
.prose {
  max-width: 720px;
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.85;
}
.prose p + p { margin-top: 16px; }

/* ─── Leistungs-Karten ───────────────── */
.svc-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.svc-card-d {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 34px 30px 30px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.svc-card-d svg {
  width: 28px; height: 28px;
  color: var(--text);
  margin-bottom: 22px;
}
.svc-card-d h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 12px;
}
.svc-card-d p {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 14px;
}

/* Aufzählung mit cyanem Punkt (wie FAQ-Liste) */
.dot-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.dot-list li {
  position: relative;
  padding: 4px 0 4px 18px;
  font-size: 0.9rem;
  color: var(--muted-strong);
  line-height: 1.6;
}
.dot-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 13px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--cyan, #00b2ff);
  opacity: 0.75;
}

/* Hervorgehobener Textlink (z. B. „mehr zum Webdesign“): weiß + fett, ohne Unterstreichung;
   beim Hover rückt der Pfeil leicht nach rechts.
   Bewusst inline (kein inline-flex), damit er wie Fließtext umbricht. */
.inline-link {
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}
.inline-link-end { white-space: nowrap; }
.inline-link svg {
  display: inline-block;
  vertical-align: -1px;
  margin-left: 5px;
  transition: transform 0.2s ease;
}
.inline-link:hover svg,
.inline-link:focus-visible svg { transform: translateX(3px); }
@media (prefers-reduced-motion: reduce) {
  .inline-link svg { transition: none; }
}

/* Überschriften der Unterseiten: kompakte Zeilenhöhe (sonst erben sie 1.6 vom body
   und brechen mit zu großem Abstand um) */
.svc-card-d h3,
.duo-card h3,
.steps h3,
.steps--stacked h4,
.work-points h3 { line-height: 1.2; }

/* ─── Zwei Spalten (Zielgruppen, Seitenlinks) ───────────────── */
.duo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.duo-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 40px 36px 36px;
}
.duo-card h3 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.4vw, 1.8rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 14px;
}
.duo-card > p {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 18px;
}

/* Variante mit Textlink unten (Über mich): kein Hover auf der Karte,
   der Link sitzt bündig am unteren Rand */
.duo-card--link {
  display: flex;
  flex-direction: column;
}
.duo-card-more {
  margin-top: auto;
  font-size: 0.95rem;
}

/* Variante mit Bild oben (Über mich): Hero-Motiv der Zielseite als Vorschau,
   abgedunkelt wie dort und nach unten in die Karte ausgeblendet.
   #090909 = Glas-Hintergrund der Karte auf Schwarz → nahtloser Übergang */
.duo-card.duo-card--media {
  padding: 0;
  overflow: hidden;
}
.duo-card-media {
  position: relative;
  aspect-ratio: 16 / 7;
}
.duo-card-media img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.duo-card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.5) 50%, #090909 100%);
}
/* Webdesign-Motiv ist sehr hell → stärker abdunkeln (wie im Hero) */
.duo-card-media--light::after {
  background: linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.65) 50%, #090909 100%);
}
.duo-card-media--light img { object-position: center 40%; }
.duo-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 28px 36px 36px;
}
.duo-card-body > p {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 18px;
}

/* ─── Ablauf in drei Schritten ───────────────── */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  border-top: 1px solid var(--border);
}
.steps li { padding: 30px 24px 0 0; }
.step-num {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted-strong);
  margin-bottom: 14px;
}
.steps h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 10px;
}
.steps p {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.7;
}

/* ─── Einsatzgebiet + Ablauf (kombinierte Sektion, IT-Service) ───────────────── */
.area-cta { margin-top: 36px; }
.steps-label {
  margin: 36px 0 4px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted-strong);
}
.steps--stacked {
  grid-template-columns: 1fr;
  gap: 0;
  border-top: none;
  max-width: 560px;
}
.steps.steps--stacked li {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.steps.steps--stacked li:last-child { border-bottom: none; }
.steps--stacked .step-num {
  margin: 3px 0 0;
  color: var(--cyan, #00b2ff);
}
.steps--stacked h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 4px;
}
.steps--stacked p { font-size: 0.9rem; }

/* Mobil bleibt diese Sektion linksbündig (Schritte lesen sich zentriert schlecht) */
@media (max-width: 900px) {
  .area-section .svc-mirror-content { text-align: left; align-items: flex-start; }
  .area-section .svc-mirror-title { text-align: left; }
  .area-section .svc-mirror-cta { align-self: flex-start; }
  .steps.steps--stacked li { padding: 18px 0; border-bottom: 1px solid var(--border); }
  .steps.steps--stacked li:last-child { border-bottom: none; }
}
.area-text {
  max-width: 720px;
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.8;
}
.area-text strong { color: var(--text); font-weight: 600; }

/* ─── FAQ (ohne Tabs, natives <details>) ───────────────── */
.faq-layout {
  display: grid;
  grid-template-columns: 1fr 1.9fr;
  gap: 72px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: start;
}
.faq-heading {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.035em;
  line-height: 1.08;
}
.faq-list { border-bottom: 1px solid var(--border); }
.faq-item { border-top: 1px solid var(--border); }
.faq-item summary {
  padding: 22px 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '';
  flex-shrink: 0;
  width: 12px; height: 12px;
  border-right: 2px solid var(--text);
  border-bottom: 2px solid var(--text);
  transform: rotate(45deg);
  transition: transform 0.25s ease;
  opacity: 0.75;
}
.faq-item[open] summary::after { transform: rotate(-135deg); }
.faq-a {
  padding: 0 40px 22px 0;
  font-size: 0.925rem;
  color: var(--muted);
  line-height: 1.75;
}

/* ─── Responsive ───────────────── */
@media (max-width: 1024px) {
  .svc-cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .page-hero { padding-top: 120px; padding-bottom: 72px; }
  .page-title { font-size: clamp(2.6rem, 11vw, 4.5rem); letter-spacing: -0.03em; }
  /* Mobil: Text oben, Porträt darunter unten angedockt */
  .page-hero.page-hero--profile { padding-top: 104px; padding-bottom: 0; }
  .profile-hero-grid { grid-template-columns: 1fr; grid-template-rows: auto 1fr; gap: 24px; }
  .profile-hero-text { padding-bottom: 0; align-self: start; }
  .profile-hero-visual { order: 0; align-self: end; }
  .profile-hero-visual img { height: min(42svh, 420px); }
  .page-hero--profile .page-lead { margin-bottom: 28px; }
  .page-hero--profile .page-title { font-size: clamp(2.4rem, min(11vw, 7.5svh), 4.5rem); }
  .page-kicker { font-size: 0.9rem; }
  .page-lead { font-size: 1.05rem; max-width: 100%; }
  .duo-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps li { padding: 26px 0; border-bottom: 1px solid var(--border); }
  .faq-layout { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 640px) {
  .svc-cards { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .page-hero-buttons { flex-direction: column; align-items: center; }
  .page-hero--profile .page-hero-buttons { align-items: flex-start; }
  .duo-card { padding: 32px 24px 28px; }
  .duo-card.duo-card--media { padding: 0; }
  .duo-card-body { padding: 24px 24px 28px; }
  .svc-card-d { padding: 30px 24px 26px; }
  .faq-a { padding-right: 0; }
}
