/* ══════════════════════════════════════════════════
   Studio Sohns – Shared Subpage Styles
   ══════════════════════════════════════════════════ */

/* ── Page Header ── */
.page-header {
  padding-top: calc(80px + 64px);
  padding-bottom: 64px;
  text-align: center;
}

.page-header h1 {
  font-family: var(--font-head);
  font-size: clamp(32px, 5vw, 48px);
  color: var(--text);
  margin-bottom: 16px;
}

.page-header .page-subtitle {
  font-family: var(--font-body);
  font-size: 18px;
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto;
}

/* ── Page Content ── */
.page-content {
  padding: 64px 0 128px;
}

.page-content h2 {
  font-family: var(--font-head);
  font-size: clamp(20px, 6vw, 30px);
  line-height: var(--leading-snug);
  color: var(--text);
  margin: 64px 0 24px;
  text-wrap: balance;
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
}

.page-content h3 {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 20px;
  color: var(--text);
  margin: 48px 0 16px;
  text-wrap: balance;
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
}

.page-content p,
.page-content li {
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 16px;
  font-family: var(--font-body);
  font-size: 16px;
}

.page-content ul {
  list-style: none;
  padding: 0;
}

.page-content ul li::before {
  content: "—";
  color: var(--accent);
  margin-right: 12px;
}

/* ── Tool-Page Layout — Footer am unteren Bildschirmrand ── */
body:has(.tool-page) {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

body:has(.tool-page) .tool-page {
  flex: 1;
}

/* ── Tool-Page Headline + Subheadline ── */
.section-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.tool-headline {
  font-family: var(--font-head);
  font-size: clamp(30px, 5vw, 48px);
  font-weight: 800;
  line-height: var(--leading-snug);
  letter-spacing: -0.03em;
  margin-bottom: 12px;
  color: var(--text);
  text-wrap: balance;
  hyphens: none;
  overflow-wrap: normal;
  word-break: normal;
}

.tool-subheadline {
  color: var(--muted);
  font-size: 17px;
  margin-bottom: 48px;
  max-width: 720px;
  line-height: 1.65;
}

/* ── Tool-Komponenten (shared across all tool pages) ── */

/* Primary Action Button */
.tool-btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 20px;
  background: var(--accent);
  color: var(--bg);
  border: none;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--duration-fast);
}

.tool-btn-primary:hover {
  background: var(--accent-hover);
}

.tool-btn-primary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.tool-btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Ghost Button (Secondary) */
.tool-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  height: 44px;
  line-height: 1;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s;
  box-sizing: border-box;
  margin: 0;
}

.tool-btn-ghost:hover {
  border-color: var(--text);
  color: var(--text);
}

/* Pill / Tab Selection */
.tool-pill {
  padding: 5px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  transition: border-color var(--duration-base) var(--ease-out),
              color var(--duration-base) var(--ease-out),
              background var(--duration-base) var(--ease-out);
}

.tool-pill:hover {
  border-color: var(--accent);
  color: var(--text);
}

.tool-pill.active,
.tool-pill[aria-pressed="true"] {
  border-color: var(--accent);
  background: var(--accent-dim);
  color: var(--accent);
}

/* Card / Surface Container */
.tool-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}

@media (max-width: 600px) {
  .tool-card { padding: 20px; }
}

/* Divider */
.tool-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 48px 0 32px;
}

/* Warning / Info Box */
.tool-warning {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: var(--radius);
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
}

.tool-warning--accent {
  background: color-mix(in srgb, var(--accent) 6%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
}

.tool-warning--caution {
  background: color-mix(in srgb, #f59e0b 6%, transparent);
  border: 1px solid color-mix(in srgb, #f59e0b 20%, transparent);
}

/* Checkbox Option */
.tool-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  font-size: 13px;
  color: var(--muted);
}

.tool-checkbox input[type="checkbox"] {
  accent-color: var(--accent);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  cursor: pointer;
}

/* ── Breadcrumbs ── */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 32px;
  font-family: var(--font-body);
}

.breadcrumbs a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumbs a:hover {
  color: var(--accent);
}

.breadcrumbs .separator {
  display: inline;
  background: none;
  height: auto;
  border: none;
  margin: 0;
  color: var(--muted);
  opacity: 0.5;
}

/* ── Page CTA ── */
.page-cta {
  text-align: center;
  padding: 96px 0;
  border-top: 1px solid var(--border);
}

.page-cta h2 {
  font-family: var(--font-head);
  font-size: 30px;
  color: var(--text);
  margin-bottom: 24px;
  text-wrap: balance;
  hyphens: none;
  overflow-wrap: normal;
  word-break: normal;
}

.page-cta p {
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 16px;
  margin-bottom: 32px;
}

/* ── Service Cards (Leistungen) ── */
.service-group {
  margin-bottom: 64px;
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 24px;
  transition: border-color 0.2s;
}

.service-card:hover {
  border-color: var(--accent-border);
}

.service-card h3 {
  margin-top: 0;
}

.service-card p {
  margin-bottom: 0;
}

/* ── Process Steps (Arbeitsweise) ── */
.process-detail {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-top: 48px;
}

.process-detail-step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.process-detail-step .step-number {
  font-family: var(--font-head);
  font-size: 14px;
  color: var(--accent);
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.process-detail-step h3 {
  margin-top: 0;
}

/* ── Trust Items (Arbeitsweise) ── */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.trust-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.trust-item h3 {
  margin-top: 0;
}

/* ── Values List ── */
.values-list {
  margin-top: 48px;
}

.values-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.values-list li:last-child {
  border-bottom: none;
}

/* ── About Page ── */
.about-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 64px;
  align-items: start;
  margin-top: 48px;
}

.about-portrait {
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.about-portrait img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-lg);
}

.about-bio p {
  font-size: 17px;
  line-height: 1.8;
}

.cert-list {
  margin-top: 48px;
}

.cert-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 24px;
  margin-bottom: 12px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text);
}

/* ── Leistungs-Hero (groesser als Standard-Header) ── */
.page-hero {
  padding-top: calc(80px + 80px);
  padding-bottom: 80px;
  position: relative;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(0,200,240,0.07) 0%, transparent 65%);
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 {
  font-family: var(--font-head);
  font-size: clamp(28px, 7vw, 64px);
  color: var(--text);
  margin-bottom: 16px;
  line-height: 1.15;
  text-wrap: balance;
  hyphens: none;
  overflow-wrap: normal;
  word-break: normal;
}
.page-hero .page-subtitle {
  font-size: 18px;
  color: var(--muted);
  max-width: 640px;
  line-height: 1.7;
  margin-bottom: 32px;
}
.page-hero .btn-primary { margin-top: 8px; }

/* ── Section-Separator mit Label ── */
.section-block {
  padding: 80px 0;
  border-top: 1px solid var(--border);
}
.section-block:first-of-type { border-top: none; }
.section-block h2 {
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
}

/* ── Problem / Ausgangslage Block ── */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 32px;
}
.problem-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.problem-item h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  color: var(--text);
  margin: 0 0 8px 0;
}
.problem-item p {
  font-size: 15px;
  margin: 0;
}

/* ── Feature / Leistungs-Grid (Icons + Text) ── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  margin-top: 40px;
}
.feature-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.feature-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  background: rgba(0, 200, 240, 0.06);
  border-radius: var(--radius);
}
.feature-item h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 6px 0;
}
.feature-item p {
  font-size: 15px;
  margin: 0;
  line-height: 1.65;
}

/* ── Tech-Badges ── */
.tech-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.tech-badge {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 6px 16px;
  transition: border-color 0.2s;
}
.tech-badge:hover { border-color: var(--accent-border); }

.badge-group-label {
  width: 100%;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.55;
  margin-top: 8px;
}
.badge-group-label:first-child { margin-top: 0; }

/* ── Projekt-Typen Cards ── */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 32px;
}
.project-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: border-color 0.2s, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.project-card:hover {
  border-color: var(--accent-border);
  transform: translateY(-2px);
}
.project-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 8px 0;
  color: var(--text);
}
.project-card p {
  font-size: 14px;
  margin: 0;
  color: var(--muted);
}

@media (max-width: 1200px) {
  .project-grid--three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ── Erfahrungs-Bar (Trust ohne Erfindung) ── */
.experience-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  margin-top: 32px;
}
.exp-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--muted);
}
.exp-item svg { color: var(--accent); opacity: 0.7; flex-shrink: 0; }

/* ── Process Stepper (Leistungsseiten) ── */
.process-stepper {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-top: 40px;
  position: relative;
}
.stepper-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}
.stepper-item:last-child { border-bottom: none; }
.stepper-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  flex-shrink: 0;
}
.stepper-item h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 6px 0;
}
.stepper-item p {
  font-size: 15px;
  margin: 0;
  line-height: 1.65;
}

/* ── Leistungs-Uebersicht Cards (gross) ── */
.overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  margin-top: 48px;
}
.overview-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  transition: border-color 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.overview-card:hover {
  border-color: var(--accent-border);
  transform: translateY(-3px);
  box-shadow: 0 4px 24px rgba(0, 200, 240, 0.04);
}
.overview-card .card-icon {
  color: var(--accent);
  margin-bottom: 20px;
}
.overview-card h3 {
  font-family: var(--font-head);
  font-size: clamp(17px, 5vw, 24px);
  font-weight: 800;
  margin: 0 0 12px 0;
  overflow-wrap: break-word;
  hyphens: auto;
}
.overview-card p {
  font-size: 15px;
  margin: 0 0 20px 0;
}
.overview-card .card-link {
  color: var(--accent);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s;
}
.overview-card .card-link:hover { color: var(--accent-hover); }

/* ── About Erweitert ── */
.about-section-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 12px;
  display: block;
}
.about-values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 24px;
}
.about-value-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.about-value-item svg { color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.about-value-item span { font-size: 15px; color: var(--muted); }

/* ── Responsive ── */
@media (max-width: 768px) {
  .page-header {
    padding-top: calc(64px + 48px);
    padding-bottom: 48px;
  }

  .page-content {
    padding: 48px 0 96px;
  }

  .page-content h2 {
    font-size: 24px;
    margin: 48px 0 20px;
  }

  .page-cta {
    padding: 64px 0;
  }
  .page-cta h2 {
    font-size: clamp(24px, 7vw, 36px);
  }

  .about-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .about-portrait {
    max-width: 300px;
  }

  .page-hero {
    padding-top: calc(64px + 56px);
    padding-bottom: 56px;
  }
  .page-hero .btn-primary {
    width: 100%;
    justify-content: center;
  }

  .section-block {
    padding: 56px 0;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .overview-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .overview-card {
    padding: 28px;
    min-width: 0;
  }
  .overview-card h3 {
    overflow-wrap: break-word;
  }

  .project-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .project-grid--three {
    grid-template-columns: minmax(0, 1fr);
  }

  .stepper-item {
    grid-template-columns: 40px 1fr;
    gap: 16px;
  }

  .breadcrumbs {
    flex-wrap: wrap;
    font-size: 12px;
  }

  .experience-bar {
    flex-direction: column;
    gap: 10px;
  }
}

/* ── FAQ Accordion (gemeinsam fuer alle Seiten) ── */
.faq-section {
  margin-top: 48px;
  margin-bottom: 48px;
}
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item:first-child {
  border-top: 1px solid var(--border);
}
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 20px 0;
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  list-style: none;
  transition: color 0.2s;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question::marker { display: none; content: ''; }
.faq-question:hover { color: var(--accent); }
.faq-question .faq-chevron {
  transition: transform var(--duration-base) var(--ease-out);
  color: var(--muted);
  flex-shrink: 0;
  margin-left: 16px;
}
.faq-item[open] .faq-chevron { transform: rotate(180deg); }
.faq-answer {
  padding: 0 0 20px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
}
/* Backwards-Kompatibilitaet: pwgen-faq-* Klassen als Aliase */
.pwgen-faq { margin-top: 48px; margin-bottom: 48px; }
.pwgen-faq-item { border-bottom: 1px solid var(--border); }
.pwgen-faq-item:first-child { border-top: 1px solid var(--border); }
.pwgen-faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 20px 0;
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  list-style: none;
  transition: color 0.2s;
}
.pwgen-faq-question::-webkit-details-marker { display: none; }
.pwgen-faq-question::marker { display: none; content: ''; }
.pwgen-faq-question:hover { color: var(--accent); }
.pwgen-faq-question .faq-chevron {
  transition: transform var(--duration-base) var(--ease-out);
  color: var(--muted);
  flex-shrink: 0;
  margin-left: 16px;
}
.pwgen-faq-item[open] .faq-chevron { transform: rotate(180deg); }
.pwgen-faq-answer {
  padding: 0 0 20px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
}
