/* ------------------------------------------------------------------ *
 * NOWUMs Agentic Review — FH-Aachen-Corporate-Design
 * Primärfarbe: FH-Türkis #00B1AC, dazu Schwarz/Weiß, viel Weißraum.
 * ------------------------------------------------------------------ */
:root {
  --fh-teal: #00B1AC;
  --fh-teal-dark: #00807c;
  --fh-teal-darker: #006b68;
  --pico-font-size: 100%;

  /* Pico-Primärfarbe auf FH-Türkis umstellen */
  --pico-primary: var(--fh-teal-dark);
  --pico-primary-hover: var(--fh-teal-darker);
  --pico-primary-background: var(--fh-teal);
  --pico-primary-hover-background: #009b97;
  --pico-primary-border: var(--fh-teal);
  --pico-primary-hover-border: #009b97;
  --pico-primary-underline: rgba(0, 128, 124, 0.5);
  --pico-primary-focus: rgba(0, 177, 172, 0.35);
  --pico-primary-inverse: #fff;
}

body { --pico-font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }

/* --- Marken-Kopfzeile ------------------------------------------------ */
/* FH-Aachen-Marke: das vertikale FH-Logo sitzt bündig oben rechts als
 * Eck-Emblem (CD der FH Aachen); links die NOWUM-Wortmarke. */
.brandbar {
  background: #fff;
  border-bottom: 3px solid var(--fh-teal);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.brandbar-inner {
  display: flex; align-items: stretch; justify-content: space-between;
  gap: 1rem; padding-top: 0; padding-bottom: 0; min-height: 72px; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 0.85rem; text-decoration: none; color: inherit; padding: 0.7rem 0; }
.brand-logo { height: 26px; width: auto; display: block; }
.brand-name {
  font-weight: 700; font-size: 1.05rem; color: #111; letter-spacing: 0.01em;
  padding-left: 0.85rem; border-left: 2px solid var(--fh-teal);
}
.brand-right { display: flex; align-items: center; gap: 1.6rem; }
.brand-nav { display: flex; gap: 1.3rem; }
.brand-nav a {
  text-decoration: none; font-weight: 600; color: #333; padding: 0.2rem 0;
  border-bottom: 2px solid transparent;
}
.brand-nav a:hover { color: var(--fh-teal-dark); }
.brand-nav a[aria-current="page"] { color: var(--fh-teal-dark); border-bottom-color: var(--fh-teal); }
/* Eck-Emblem: bündig an der Oberkante, hängt in die Kopfzeile. */
.fh-corner-link { display: flex; align-self: flex-start; line-height: 0; }
.fh-corner { height: 72px; width: auto; display: block; }

main.container { padding-top: 2rem; padding-bottom: 2.5rem; min-height: 60vh; }

/* --- Fußzeile -------------------------------------------------------- */
.sitefooter { background: #fafbfb; border-top: 1px solid var(--pico-muted-border-color); margin-top: 2rem; }
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem 1.5rem; padding-top: 1.2rem; padding-bottom: 1.2rem; flex-wrap: wrap;
}
.footer-text small { color: var(--pico-muted-color); }
.footer-nav a { text-decoration: none; font-weight: 600; color: var(--fh-teal-dark); white-space: nowrap; }
.footer-nav a:hover { text-decoration: underline; }

/* --- Rechtsseiten (Impressum / Datenschutz) -------------------------- */
.legal { max-width: 820px; }
.legal h2 { color: var(--fh-teal-dark); margin-top: 0; padding-bottom: 0.3rem; border-bottom: 2px solid var(--fh-teal); }
.legal section + section { margin-top: 2.5rem; }
.legal h3 { margin-top: 1.6rem; font-size: 1.15rem; }
.legal h4 { margin-top: 1.2rem; font-size: 1rem; color: #333; }
.legal address { font-style: normal; line-height: 1.5; }

/* --- Schweregrade ---------------------------------------------------- */
.sev-kritisch { color: #c0392b; font-weight: 600; }
.sev-wichtig  { color: #b9770e; font-weight: 600; }
.sev-optional { color: #667085; font-weight: 600; }

/* --- Hinweise -------------------------------------------------------- */
.notice-ok { border-left: 4px solid var(--fh-teal); }
.notice-info { border-left: 4px solid var(--fh-teal); }

/* --- Upload-Dropzone ------------------------------------------------- */
.dropzone {
  border: 2px dashed var(--pico-muted-border-color);
  border-radius: var(--pico-border-radius);
  padding: 2.5rem 1rem; text-align: center; cursor: pointer;
  transition: border-color .15s, background .15s;
}
.dropzone:hover { border-color: var(--fh-teal); }
.dropzone.drag { border-color: var(--fh-teal); background: rgba(0, 177, 172, 0.06); }
.dropzone input { display: none; }

/* --- Ergebnisse ------------------------------------------------------ */
#results table { font-size: 0.86rem; }
#results td { vertical-align: top; }
.pill { font-size: 0.72rem; padding: 0.1rem 0.45rem; border-radius: 1rem;
        background: var(--pico-muted-border-color); }
.counts span { margin-right: 1.1rem; font-weight: 600; }
.hidden { display: none; }
.tablewrap { max-height: 62vh; overflow: auto; }
details textarea { font-family: var(--pico-font-family-monospace, monospace); font-size: 0.82rem; }

/* --- Generierter Post ------------------------------------------------ */
.post-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 0.8rem; }
.post-actions { display: flex; align-items: center; gap: 0.6rem; }
.post-actions button { margin: 0; padding: 0.4rem 0.9rem; font-size: 0.85rem; width: auto; }
.post-actions a[role="button"] { padding: 0.4rem 0.9rem; font-size: 0.85rem; }
.post-box {
  white-space: pre-wrap; word-break: break-word;
  background: #fff; border: 1px solid var(--pico-muted-border-color);
  border-left: 4px solid var(--fh-teal); border-radius: var(--pico-border-radius);
  padding: 1.1rem 1.2rem; line-height: 1.55; font-size: 0.98rem;
}
.post-hashtags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.8rem 0; }
.post-hashtags .tag {
  font-size: 0.8rem; font-weight: 600; color: var(--fh-teal-dark);
  background: rgba(0, 177, 172, 0.10); padding: 0.15rem 0.55rem; border-radius: 1rem;
}
#postCard details { margin-top: 0.6rem; }
#postCard details summary { font-weight: 600; font-size: 0.9rem; }

/* --- Optionen / Prompt-Editor --------------------------------------- */
.muted { color: var(--pico-muted-color); display: block; margin-bottom: 0.6rem; }
#optionsCard textarea { margin-bottom: 0; }
.modetabs { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1.2rem; }
.modetabs a { margin: 0; padding: 0.35rem 0.8rem; font-size: 0.85rem; }

@media (max-width: 600px) {
  .brand-name { font-size: 0.95rem; }
  .brand-logo { height: 22px; }
  .fh-corner { height: 60px; }
  .brand-right { gap: 1rem; }
  .footer-inner { justify-content: flex-start; }
}
