/* Panels-Seite (B2B): Startseite, "Meine Panels" und Panel-Auswahl (views/panelsHome.ejs, panelsMine.ejs,
   panelsStart.ejs). Kopf, Hero, Karten, Knoepfe und Fuss kommen aus landing.css und werden dort bzw. in theme.css fuer
   hell und dunkel gefaerbt - hier steht nur, was diese Seiten zusaetzlich brauchen, mit den Farb-Tokens des Themas. */

/* Kopf: der Konto-Verweis im Menue gehoert nur aufs Handy (siehe unten) - sonst steht er als Knopf rechts. */
.landing .landing-nav-links .ps-nav-account { display: none; }

/* Hero: Einstieg in die Klickstrecke - die Zielgruppen als Verweise, die das passende Panel vorwaehlen. */
.landing .ps-hero-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 28px; }
.landing .ps-hero-pick > span { margin-right: 4px; color: var(--text-muted); font-size: .875rem; }
.landing .ps-hero-pick a { padding: 7px 14px; border: 1px solid var(--border-soft); border-radius: 980px; background: var(--bg-panel); color: var(--text); font-size: .875rem; font-weight: 500; text-decoration: none; white-space: nowrap; transition: border-color .2s, color .2s; }
.landing .ps-hero-pick a:hover { border-color: var(--accent); color: var(--accent); }
.landing .ps-hero-pick a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* Sprungziel dieser Verweise (Schritt 1 im Abschnitt "Panels"): nicht unter dem Seitenkopf landen. */
.landing #panel-step-choose { scroll-margin-top: 104px; }

/* Hero der Startseite: rechts das Panel als Fenster. In der Leiste steht die Adresse - normale Schreibweise statt der
   Versalien der Fensterleiste, der selbst gewaehlte Teil hervorgehoben. min-width 0, damit die Adresszeile (bricht
   nicht um) die Spalte auf schmalen Bildschirmen nicht ueber die Seite hinaus dehnt. */
.landing .ps-hero-visual { min-width: 0; padding: 30px 22px; }
.landing .ps-hero-visual .window-bar { justify-content: flex-start; }
.landing .ps-hero-visual .ps-url { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-transform: none; letter-spacing: 0; font-weight: 500; font-variant-numeric: tabular-nums; }
.landing .ps-hero-visual .ps-url b { color: var(--accent); font-weight: 600; }
/* Zeilen der Bereiche: Symbol und Pfeil behalten ihre Breite, der Text dazwischen bricht bei Bedarf um - so stehen
   alle Namen auf einer Linie. */
.landing .ps-hero-visual .action-row { padding: 12px 0; }
.landing .ps-hero-visual .action-row > span { flex: none; }
.landing .ps-hero-visual .action-row > div { flex: 1; min-width: 0; }

/* Ablauf der Einrichtung: vier nummerierte Schritte. */
.landing .ps-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.landing .ps-steps li { padding: 28px; border: 1px solid var(--border-soft); border-radius: 26px; background: var(--bg-panel); }
.landing .ps-step-number { display: inline-grid; place-items: center; width: 38px; height: 38px; margin-bottom: 18px; border-radius: 12px; border: 1px solid var(--border-soft); color: var(--accent); font-weight: 650; font-variant-numeric: tabular-nums; }
.landing .ps-steps h3 { margin: 0 0 10px; font-size: 1.1875rem; line-height: 1.25; font-weight: 600; color: var(--text); }
.landing .ps-steps p { margin: 0; color: var(--text-muted); font-size: .9375rem; line-height: 1.6; }

/* "Meine Panels" und Panel-Auswahl. */
.landing .ps-account { padding-top: 12px; }
.landing .ps-notice { margin: 0 0 22px; padding: 14px 18px; border: 1px solid var(--border-soft); border-radius: 16px; background: var(--bg-panel); color: var(--text); font-size: .9375rem; line-height: 1.5; }
.landing .ps-setup { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 18px 32px; margin: 0 0 22px; padding: 26px 28px; border: 1px solid var(--accent); border-radius: 26px; background: var(--bg-panel); }
.landing .ps-setup h2 { margin: 8px 0 6px; font-size: 1.5rem; font-weight: 600; letter-spacing: -.02em; color: var(--text); }
.landing .ps-setup p { margin: 0; color: var(--text-muted); }
.landing .ps-setup p b { color: var(--text); font-weight: 600; }

.landing .ps-panel-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 20px; }
.landing .ps-panel-card { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; min-height: 250px; padding: 28px; border: 1px solid var(--border-soft); border-radius: 26px; background: var(--bg-panel); text-decoration: none; }
.landing .ps-panel-card h2 { margin: 0; max-width: 100%; font-size: 1.75rem; line-height: 1.15; font-weight: 600; letter-spacing: -.02em; color: var(--text); overflow-wrap: anywhere; }
.landing .ps-panel-card > p { margin: 0; color: var(--text-muted); font-size: .9375rem; line-height: 1.55; }
.landing .ps-panel-card .ps-panel-address { max-width: 100%; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.landing .ps-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.landing .ps-chips li { padding: 5px 12px; border: 1px solid var(--border-soft); border-radius: 980px; color: var(--text-muted); font-size: .8125rem; font-weight: 500; }
.landing .ps-chips li:first-child { color: var(--accent); border-color: var(--accent); }
/* Der Knopf sitzt unten, egal wie viel darueber steht - so stehen die Knoepfe aller Karten auf einer Linie. */
.landing .ps-panel-card > .button { margin-top: auto; }

.landing .ps-panel-add { align-items: center; justify-content: center; text-align: center; border-style: dashed; background: transparent; color: var(--text); transition: border-color .2s, transform .25s var(--ease); }
.landing .ps-panel-add:hover { border-color: var(--accent); transform: translateY(-3px); }
.landing .ps-panel-add:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.landing .ps-panel-add b { font-size: 1.125rem; font-weight: 600; }
.landing .ps-panel-add small { color: var(--text-muted); font-size: .875rem; }
.landing .ps-add-icon { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; border: 1px solid var(--border-soft); color: var(--accent); }

.landing .ps-empty { padding: 44px 28px; border: 1px dashed var(--border-soft); border-radius: 26px; text-align: center; }
.landing .ps-empty h2 { margin: 0 0 8px; font-size: 1.5rem; font-weight: 600; color: var(--text); }
.landing .ps-empty p { margin: 0 0 22px; color: var(--text-muted); }
.landing .ps-empty p:last-child { margin-bottom: 0; }

.landing .ps-account-foot { margin: 34px 0 0; font-size: .875rem; }
.landing .ps-account-foot a { color: var(--text-muted); }
.landing .ps-account-foot a:hover { color: var(--accent); }

@media (max-width: 1000px) {
  .landing .ps-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  /* Kopf auf dem Handy: Logo, Hell-Dunkel-Regler, Konto-Knopf und Menue passen nicht nebeneinander (zusammen rund
     530 px). Der Regler wird schmaler, das Konto wandert ins Menue. */
  html body .panels-site .theme-dial.theme-dial--inline { width: 120px; }
  .landing.panels-site .landing-nav-cta { display: none; }
  .landing.panels-site .landing-nav-links .ps-nav-account { display: block; }
  /* Fenster im Hero: ohne die drei Punkte passt die Adresse in die Leiste. */
  .landing .ps-hero-visual { padding: 22px 14px; }
  .landing .ps-hero-visual .window-dots { display: none; }
  .landing .ps-steps { grid-template-columns: 1fr; }
  .landing .ps-setup { padding: 22px; }
  .landing .ps-panel-card { min-height: 0; padding: 24px; }
}
/* Sehr schmale Handys (bis 360 px): Kopf noch enger, sonst ragt der Menue-Knopf ueber den Rand. */
@media (max-width: 360px) {
  html body .panels-site .theme-dial.theme-dial--inline { width: 96px; }
  .landing.panels-site .landing-nav-inner { padding-inline: 14px; gap: 8px; }
  .landing.panels-site .landing-nav-actions { gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  .landing .ps-panel-add:hover { transform: none; }
}
