/*
 * Pauden Support-Portal.
 * Farben, Typografie und Formen folgen bewusst der Marketing-Website
 * (website/src/styles/tokens.css), damit ein Kunde sofort erkennt, dass er
 * wirklich bei Pauden gelandet ist.
 */
:root {
  color-scheme: light;
  --ink: #111827;
  --muted: #4b5563;
  --soft: #6b7280;
  --line: #e5e7eb;
  --surface: #ffffff;
  --primary: #009688;
  --primary-dark: #00766f;
  --primary-tint: #f0fdfc;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 50% -10%, rgba(0, 150, 136, 0.1), transparent 32rem),
    var(--surface);
  font-size: 16px;
  line-height: 1.6;
}

/* Gleiche Kopfleiste wie auf pauden.com, nur ohne Navigation. */
.topbar {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.topbar-inner {
  display: flex;
  width: min(1060px, calc(100% - 40px));
  height: 72px;
  align-items: center;
  margin: 0 auto;
}

.logo {
  width: 140px;
  height: auto;
}

main {
  width: min(1060px, calc(100% - 40px));
  margin: 0 auto;
  padding: 40px 0 64px;
}

/* Anleitung links, Ansprechpartner rechts. Die Seitenspalte laeuft mit,
 * damit der Kontaktweg auch unten im Text noch sichtbar ist. */
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 322px;
  gap: 26px;
  align-items: start;
}

.column-side {
  position: sticky;
  top: 24px;
}

.intro {
  margin-bottom: 26px;
}

h1 {
  margin: 0;
  font-size: clamp(1.85rem, 5vw, 2.35rem);
  font-weight: 900;
  letter-spacing: -0.022em;
  line-height: 1.15;
}

.intro p {
  max-width: 34rem;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 1.03rem;
}

h2 {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.3;
}

p {
  margin: 0;
}

/* Karten ------------------------------------------------------------- */
/* Abstaende kommen aus dem Spaltenfluss, nicht aus Nachbarschaftsregeln:
 * eine ausgeblendete Karte darf der sichtbaren keinen Rand vererben, sonst
 * beginnen linke und rechte Spalte nicht auf derselben Hoehe. */
.column-main {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(17, 24, 39, 0.04), 0 8px 24px rgba(17, 24, 39, 0.05);
}

.card-eyebrow {
  margin-bottom: 8px;
  color: var(--primary-dark);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.card-lead {
  margin-top: 10px;
  color: var(--muted);
}

/* Nur wenn die Erkennung gegriffen hat, wird gefiltert. Ohne JavaScript
 * bleiben alle Wege sichtbar, damit niemand auf einer leeren Seite steht. */
body[data-view="windows"] .card[data-for]:not([data-for="windows"]),
body[data-view="mac"] .card[data-for]:not([data-for="mac"]),
body[data-view="mobile"] .card[data-for]:not([data-for="mobile"]) {
  display: none;
}

body[data-view="windows"] .switcher [data-view-target="windows"],
body[data-view="mac"] .switcher [data-view-target="mac"],
body[data-view="mobile"] .switcher [data-view-target="mobile"] {
  display: none;
}

/* Aktionen ----------------------------------------------------------- */
.action,
.action-secondary,
.inline-action,
.switcher button,
.data button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 10px;
  font: inherit;
  text-decoration: none;
  cursor: pointer;
}

.action {
  margin-top: 18px;
  padding: 13px 22px;
  color: #ffffff;
  background: var(--primary);
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(0, 118, 111, 0.28);
}

.action:hover {
  background: var(--primary-dark);
}

.action-secondary {
  margin-top: 18px;
  padding: 12px 20px;
  color: var(--ink);
  border: 1px solid var(--line);
  background: var(--surface);
  font-weight: 600;
}

.action-secondary:hover {
  border-color: var(--soft);
}

.inline-action {
  padding: 4px 10px;
  color: var(--primary-dark);
  background: var(--primary-tint);
  font-size: 0.94rem;
  font-weight: 700;
}

.inline-action:hover {
  background: #d7f5f1;
}

.hint {
  margin-top: 12px;
  color: var(--soft);
  font-size: 0.88rem;
}

.hint strong {
  color: var(--muted);
}

.hint a {
  color: var(--primary-dark);
}

.steps {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding: 0 0 0 38px;
  color: var(--muted);
  counter-increment: step;
}

.steps li + li {
  margin-top: 12px;
}

.steps li::before {
  position: absolute;
  top: 2px;
  left: 0;
  display: flex;
  width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--primary-dark);
  background: var(--primary-tint);
  content: counter(step);
  font-size: 0.8rem;
  font-weight: 800;
}

.steps strong {
  color: var(--ink);
}

.copy-fallback {
  display: block;
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f9fafb;
  color: var(--ink);
  font-size: 0.76rem;
  overflow-wrap: anywhere;
}

[hidden] {
  display: none;
}

.link-box {
  margin-top: 18px;
  padding: 14px 18px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  background: #f9fafb;
  font-size: 1.05rem;
  font-weight: 700;
  text-align: center;
}

/* Geräteauswahl ------------------------------------------------------ */
.switcher {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 0 4px;
  color: var(--soft);
  font-size: 0.88rem;
}

.switcher button {
  padding: 6px 12px;
  color: var(--muted);
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 0.88rem;
  font-weight: 600;
}

.switcher button:hover {
  color: var(--ink);
  border-color: var(--soft);
}

/* Ansprechpartner ---------------------------------------------------- */
.contact {
  padding: 20px 22px 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(17, 24, 39, 0.04), 0 8px 24px rgba(17, 24, 39, 0.05);
}

.contact-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.contact-photo {
  width: 72px;
  height: 72px;
  flex: 0 0 auto;
  border-radius: 999px;
  object-fit: cover;
  background: #f3f4f6;
}

.contact-name {
  font-size: 1.08rem;
  font-weight: 800;
}

.contact-role {
  margin-top: 1px;
  color: var(--soft);
  font-size: 0.86rem;
}

/* Ohne JavaScript bleibt jede Erreichbarkeitsaussage aus. */
.contact-status {
  display: none;
  align-items: center;
  gap: 6px;
  margin-top: 5px;
  font-size: 0.82rem;
  font-weight: 700;
}

.contact-status::before {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  content: "";
}

body[data-availability="online"] [data-status-online],
body[data-availability="offline"] [data-status-offline] {
  display: inline-flex;
}

[data-status-online] {
  color: #059669;
}

[data-status-online]::before {
  background: #10b981;
}

[data-status-offline] {
  color: var(--soft);
}

[data-status-offline]::before {
  background: #9ca3af;
}

.contact-text {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.94rem;
}

.contact-actions {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.contact-actions .action,
.contact-actions .action-secondary {
  margin-top: 0;
  width: 100%;
}

/* Technische Angaben ------------------------------------------------- */
.details {
  margin-top: 8px;
  padding: 0 4px;
}

.details summary {
  color: var(--soft);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
}

.details summary:hover {
  color: var(--ink);
}

.details-body {
  padding-top: 12px;
  color: var(--soft);
  font-size: 0.88rem;
}

.details-body p + dl,
.details-body dl + p {
  margin-top: 16px;
}

.data {
  margin: 0;
}

.data > div {
  position: relative;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.data dt {
  margin-bottom: 4px;
  font-weight: 700;
}

.data dd {
  max-width: calc(100% - 86px);
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 0.82rem;
}

.data button {
  position: absolute;
  top: 12px;
  right: 0;
  padding: 5px 10px;
  color: var(--primary-dark);
  background: var(--primary-tint);
  font-size: 0.78rem;
  font-weight: 700;
}

/* Fußzeile ----------------------------------------------------------- */
/* Ab hier passt keine sinnvolle zweite Spalte mehr daneben. Der
 * Ansprechpartner rutscht dann unter die Anleitung. */
@media (max-width: 900px) {
  /* Einspaltig zaehlt eine andere Reihenfolge: erst der Weg, dann der
   * Ansprechpartner, technische Angaben zuletzt. Dafuer werden die Kinder
   * der linken Spalte zu direkten Elementen des Layouts. */
  .layout {
    display: flex;
    flex-direction: column;
  }

  .column-main {
    display: contents;
  }

  .card {
    order: 1;
  }

  .switcher {
    order: 2;
  }

  .column-side {
    order: 3;
    position: static;
  }

  .details {
    order: 4;
  }

  /* Einspaltig bestimmt allein der Spaltenabstand den Rhythmus. */
  .column-side,
  .details {
    margin-top: 0;
  }
}

@media (max-width: 620px) {
  main {
    padding: 26px 0 48px;
  }

  .card {
    padding: 22px;
  }

  .action,
  .action-secondary {
    width: 100%;
  }
}
