/* Pressespiegel – zentrale CSS (Admin + Public)
   Ablage: /pressespiegel/pressespiegel.css
   Ziele:
   - Einheitlicher Header (vollbreit)
   - Arbeitsflaeche zentriert mit fixer Max-Breite
   - Robuste Form-Rows ohne Ueberlappungen (wie pressespiegel_run.css)
   - Konsistente Typografie, deutsche Umlaute (UTF-8) korrekt
*/

:root{
  --ps-green:#17644f;
  --ps-green-dark:#005336;
  --ps-bg:#f4f7f5;
  --ps-card:#ffffff;
  --ps-border:#cfd8d3;
  --ps-text:#1a1a1a;
  --ps-muted:#4f5b57;
}

*{ box-sizing:border-box; }

html, body{ height:100%; }

body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--ps-bg);
  color: var(--ps-text);
}

/* =========================================================
   HEADER (vollbreit, einzeilig auf Desktop)
   ========================================================= */

.ps-header{
  background: var(--ps-green);
  color:#fff;
  padding:12px 18px;
  width:100%;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  flex-wrap:nowrap; /* Desktop: bleibt 1-zeilig */
}

.ps-header a{
  color:#fff;
  text-decoration:none;
}
.ps-header a:hover{ text-decoration:underline; }

.ps-header-left{
  display:flex;
  align-items:baseline;
  gap:8px;
  min-width:0;
  flex:1 1 auto;
}

.ps-brand{ font-weight:700; }
.ps-sep{ font-weight:700; }
.ps-mask{ font-weight:700; }
.ps-version{ font-weight:400; opacity:.95; }

.ps-header-right{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:12px;
  flex:0 1 auto;
  min-width:0;
  flex-wrap:nowrap;
}

.ps-user{
  font-weight:400;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  max-width:60vw;
}

.ps-logout{
  font-weight:700;
  padding:6px 10px;
  border:1px solid rgba(255,255,255,.55);
  border-radius:10px;
}
.ps-logout:hover{
  background: rgba(255,255,255,.12);
  text-decoration:none;
}

@media (max-width: 720px){
  .ps-header{ flex-wrap:wrap; }
  .ps-header-left{ flex-wrap:wrap; }
  .ps-header-right{ flex-wrap:wrap; }
  .ps-user{ max-width:100%; white-space:normal; }
}

/* =========================================================
   WORKAREA / CONTAINER (zentriert, fixe Max-Breite)
   ========================================================= */

main{
  padding:18px;
  max-width:1100px;  /* wie clippings_backup / pressespiegel_run.css */
  margin:0 auto;
}

/* =========================================================
   PANELS / CARDS
   ========================================================= */

.panel, .card{
  background: var(--ps-card);
  border:1px solid rgba(0,0,0,.06);
  border-radius:10px;
  padding:14px;
  margin:12px 0;
  box-shadow:0 1px 6px rgba(0,0,0,.08);
}

/* Login/Registrierung etc. duerfen schmaler sein, bleiben aber zentriert */
.card{
  width:min(520px, 100%);
  margin-left:auto;
  margin-right:auto;
}

h1,h2,h3{ color: var(--ps-green); }
h2{ margin:0 0 10px; font-size:18px; }

/* =========================================================
   FORM ROWS (wie pressespiegel_run.css: flexibel + wrap)
   ========================================================= */

.row{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.row > *{
  flex:1;
  min-width:220px;
}

/* Labels / Inputs */
label{
  display:block;
  font-size:13px;
  margin:8px 0 4px;
  color: var(--ps-muted);
}

/* Inputs ohne type fallen sonst aus dem Styling -> mitnehmen */
input:not([type]),
input[type="text"],
input[type="email"],
input[type="password"],
input[type="date"],
input[type="url"],
input[type="number"],
select,
textarea{
  width:100%;
  padding:9px 10px;
  border:1px solid var(--ps-border);
  border-radius:8px;
  font-size:14px;
  background:#fff;
}

textarea{ resize:vertical; min-height:90px; }

/* Checkbox/Radio nicht aufblasen */
input[type="checkbox"], input[type="radio"]{
  width:auto;
}

/* Buttons */
button, .btn{
  padding:10px 14px;
  border:0;
  border-radius:9px;
  background: var(--ps-green);
  color:#fff;
  font-weight:700;
  cursor:pointer;
  text-decoration:none;
  display:inline-block;
}
button:hover, .btn:hover{ background: var(--ps-green-dark); }

.btn.ps-btn-ghost{
  background: transparent;
  color: var(--ps-green-dark);
  border:1px solid rgba(0,0,0,.12);
}
.btn.ps-btn-ghost:hover{
  background: rgba(0,0,0,.05);
}

.ps-danger{
  background:#8b1e1e;
}
.ps-danger:hover{
  background:#6f1717;
}

/* Alerts */
.alert{
  margin:10px 0;
  padding:10px 12px;
  border-radius:10px;
  font-size:13px;
  border:1px solid var(--ps-border);
  background:#f7faf8;
}
.alert.error{ border-color:#ffb8b8; background:#ffecec; }
.alert.success{ border-color:#bfeccc; background:#e9fbef; }

/* Tables */
table{ width:100%; border-collapse:collapse; }
th, td{ padding:10px 8px; border-bottom:1px solid #e6ece9; text-align:left; vertical-align:top; }
th{ color:var(--ps-muted); font-weight:700; }

/* Helpers */
.muted{ color: var(--ps-muted); }
.small{ font-size:12px; }

/* Linkfarbe innerhalb Content */
main a{ color: var(--ps-green-dark); }
