/* it-quickies.css — per-site overrides for the IT-Quickies platform.
 * Loaded after _shared/base.css. Keep deltas only; the base sheet handles
 * typography, grid, link colours, and dark-mode tokens. */

:root {
  --accent: #177e8a;            /* gedecktes Teal-Petrol */
  --accent-soft: #cce5e9;
  --accent-deep: #0e5b65;
}

@media (prefers-color-scheme: dark) {
  :root {
    --accent-soft: #133e44;
    --accent-deep: #2eb2c1;
  }
}

/* ---- Brand wordmark ---- */
.brand .accent {
  color: var(--accent);
}

/* ---- Lang switcher (Cross-Domain DE/EN button) ---- */
.lang-switcher {
  display: inline-block;
  margin-left: 1rem;
  padding: 0.35em 0.7em;
  border: 1px solid var(--accent);
  border-radius: 0.3em;
  color: var(--accent);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}
.lang-switcher:hover {
  background: var(--accent);
  color: #fff;
}

/* ---- Hero ---- */
.hero {
  padding: 4rem 0 2.5rem;
  text-align: left;
}
.hero h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.1;
  margin: 0 0 0.6rem;
}
.hero .tagline {
  font-size: 1.15rem;
  max-width: 42rem;
  color: var(--muted, #555);
}
.hero .cta-row {
  margin-top: 1.6rem;
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: 0.7em 1.2em;
  border-radius: 0.4em;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-deep); }
.btn-secondary {
  border-color: var(--accent);
  color: var(--accent);
}

/* ---- Topic cards (Themen / Topics) ---- */
.topic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: 1.6rem;
  margin: 2rem 0;
}
.topic-card {
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 0.6rem;
  padding: 1.6rem;
  background: var(--surface, #fff);
  text-decoration: none;
  color: inherit;
  display: block;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
a.topic-card:hover,
a.topic-card:focus {
  border-color: var(--accent);
  box-shadow: 0 4px 18px rgba(23, 126, 138, 0.15);
  transform: translateY(-1px);
  outline: none;
}
.topic-card h3 {
  margin-top: 0;
  color: var(--accent);
}
.topic-card p {
  color: var(--text, #2a2a2a);
}
.topic-card .topic-meta {
  font-size: 0.85rem;
  color: var(--muted, #666);
  margin-top: 1rem;
}
a.topic-card:hover h3 {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ---- Article (Artikel) ---- */
.article-header {
  padding: 3rem 0 1rem;
  border-bottom: 1px solid var(--border, #e5e7eb);
  margin-bottom: 2rem;
}
.article-header h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  line-height: 1.15;
  margin: 0 0 0.6rem;
}
.article-header .byline {
  font-size: 0.95rem;
  color: var(--muted, #666);
}
.article-body {
  max-width: 38rem;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.65;
}
.article-body h2 {
  margin-top: 2.4rem;
  font-size: 1.5rem;
  color: var(--accent-deep);
}
.article-body h3 {
  margin-top: 1.8rem;
  font-size: 1.2rem;
}
.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}
.article-body th,
.article-body td {
  border: 1px solid var(--border, #e5e7eb);
  padding: 0.5rem 0.7rem;
  text-align: left;
  vertical-align: top;
}
.article-body th {
  background: var(--accent-soft);
}
.article-body blockquote {
  border-left: 3px solid var(--accent);
  padding: 0.4rem 1rem;
  margin: 1.4rem 0;
  color: var(--muted, #444);
  background: var(--accent-soft);
  border-radius: 0 0.4rem 0.4rem 0;
}
.article-body code {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.92em;
  background: var(--accent-soft);
  padding: 0.05em 0.4em;
  border-radius: 0.25em;
}

/* ---- Inline SVG diagrams ---- */
.diagram-figure {
  max-width: 40rem;
  margin: 2rem auto;
  text-align: center;
}
.diagram-figure svg {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 0.4rem;
  background: var(--surface, #fafafa);
  padding: 1rem;
}
.diagram-figure figcaption {
  margin-top: 0.7rem;
  font-size: 0.9rem;
  color: var(--muted, #666);
  text-align: center;
}

/* ---- Author card at end of article ---- */
.author-card {
  margin: 3rem auto 0;
  max-width: 38rem;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 0.6rem;
  padding: 1.4rem 1.6rem;
  background: var(--surface, #fafafa);
}
.author-card h4 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}
.author-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted, #555);
}

/* ---- Book CTA at end of article ---- */
.book-cta {
  margin: 2.4rem auto 0;
  max-width: 38rem;
  border: 1px solid var(--accent);
  border-radius: 0.6rem;
  padding: 1.4rem 1.6rem;
  background: var(--accent-soft);
}
.book-cta h4 {
  margin: 0 0 0.5rem;
  color: var(--accent-deep);
}
.book-cta p {
  margin: 0 0 0.8rem;
}

/* ---- Footer (it-quickies override) ---- */
.site-footer {
  border-top: 1px solid var(--border, #e5e7eb);
  margin-top: 4rem;
  padding: 2.5rem 0 1.5rem;
  font-size: 0.92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}
@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-brand {
  font-weight: 700;
  margin: 0;
}
.footer-tagline {
  margin: 0.3rem 0 0;
  color: var(--muted, #666);
  max-width: 22rem;
}
.footer-col h4 {
  margin: 0 0 0.6rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted, #666);
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 0.3rem; }
.footer-meta {
  border-top: 1px solid var(--border, #eee);
  padding-top: 1rem;
  color: var(--muted, #777);
  font-size: 0.85rem;
}
