/* Jabber.de — hand-written, no frameworks.
   The design is built around the JABBER.DE banner: heavy black lettering,
   pink tagline (#eb4691), blue birds (#4ca8f8). */

:root {
  --pink: #eb4691;        /* banner tagline — decorative accents */
  --pink-dark: #c2185b;   /* contrast-safe pink for text links */
  --blue: #1565c0;        /* bird blue, darkened for text use */
  --blue-bg: #eef6fe;
  --blue-line: #cfe4f9;
  --black: #101418;       /* banner headline black */
  --text: #1f2933;
  --muted: #6b7280;
  --line: #e5e7eb;
  --code-bg: #f4f5f7;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 46rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---------- Masthead: the banner IS the brand ---------- */

.site-header {
  border-top: 3px solid var(--pink);
}

.site-header .wrap {
  max-width: 64rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  padding-top: 1.75rem;
  padding-bottom: 1.4rem;
}

.brand img {
  width: 30rem;
  max-width: 84vw;
  height: auto;
  display: block;
}

/* Big masthead on the home page, compact on subpages */
.home .brand img {
  width: 54rem;
  max-width: 90vw;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.9rem;
}

.site-nav a {
  color: var(--black);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 0.85rem;
  font-weight: 700;
  padding-bottom: 0.2rem;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover { color: var(--pink-dark); }

.site-nav a.active {
  color: var(--pink-dark);
  border-bottom-color: var(--pink);
}

/* ---------- Main ---------- */

main { padding: 2.5rem 0 3rem; }

h1 {
  font-size: 2rem;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--black);
  margin: 0 0 1.25rem;
}

h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--black);
  margin: 2.25rem 0 0.75rem;
}

h3 { font-size: 1.05rem; margin: 1.75rem 0 0.5rem; }

p { margin: 0 0 1rem; }

a { color: var(--pink-dark); }
a:hover { color: #961344; }

img { max-width: 100%; height: auto; }

.figure {
  text-align: center;
  margin: 1.5rem 0;
}

.lead { font-size: 1.1rem; color: var(--muted); }

.muted { color: var(--muted); }
.small { font-size: 0.875rem; }

/* ---------- Home ---------- */

.tagline {
  text-align: center;
  font-size: 1.2rem;
  color: var(--muted);
  margin: 0 0 2.5rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 1rem;
  margin: 0;
}

.card {
  display: block;
  border: 1px solid var(--line);
  border-top: 3px solid var(--line);
  border-radius: 0.6rem;
  padding: 1.25rem 1.25rem 1rem;
  text-decoration: none;
  color: var(--text);
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.card:hover {
  border-color: var(--pink);
  box-shadow: 0 4px 14px rgba(235, 70, 145, 0.12);
}

.card h2 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--black);
}

.card:hover h2 { color: var(--pink-dark); }

.card p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* ---------- Jabber-ID highlight (bird blue) ---------- */

.jabber-id {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--blue);
  background: var(--blue-bg);
  border: 1px solid var(--blue-line);
  border-radius: 0.4rem;
  padding: 0.6rem 1rem;
  display: inline-block;
}

/* ---------- Server status ---------- */

.status-box {
  background: var(--code-bg);
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  padding: 1rem 1.25rem;
  overflow-x: auto;
}

.status-box pre {
  margin: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.875rem;
  line-height: 1.55;
  white-space: pre-wrap;
}

.status-ok { color: #15803d; font-weight: 600; }
.status-fail { color: #dc2626; font-weight: 600; }

/* ---------- Footer ---------- */

.site-footer {
  margin-top: 2rem;
  padding: 1.75rem 0 2.5rem;
  color: var(--muted);
  font-size: 0.875rem;
  text-align: center;
}

.site-footer .wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.site-footer nav {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  justify-content: center;
}

.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--pink-dark); }

/* ---------- Small screens ---------- */

@media (max-width: 34rem) {
  h1 { font-size: 1.6rem; }
}
