/*
  Shared "Editorial / Academic" design system for intracom.at
  Used by: index, about, contact, impressum, publications,
  papers/*, apps/reist-division/*.
*/

:root {
  --bg: #faf9f6;
  --card: #ffffff;
  --text: #1c1e21;
  --muted: #5f6b74;
  --border: #e5e1d6;
  --border-strong: #d6d0c1;
  --link: #1f3a63;
  --link-hover: #16294a;
  --accent-soft-bg: #eef1f7;
  --accent-soft-border: #d3ddec;
  --accent-soft-text: #1f3a63;
  --code-bg: #f6f5f0;
  --shadow: 0 12px 28px rgba(20, 22, 26, 0.07);
  --shadow-hover: 0 18px 34px rgba(20, 22, 26, 0.1);
  --radius: 10px;
  --radius-sm: 8px;
  --serif: "Source Serif 4", Georgia, "Iowan Old Style", Cambria, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "JetBrains Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: 12px;
  background: #fff;
  border: 1px solid var(--border);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  transform: translateY(-150%);
  transition: transform 0.15s ease;
  z-index: 1000;
}
.skip-link:focus { transform: translateY(0); }

/* Navigation */
.main-nav {
  width: 100%;
  position: sticky;
  top: 0;
  background: rgba(250, 249, 246, 0.86);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

.nav-wrapper {
  max-width: 1040px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  gap: 16px;
}

.nav-logo {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  font-size: 19px;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.1px;
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-menu a {
  color: var(--text);
  font-size: 14.5px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
}
.nav-menu a:hover {
  background: var(--accent-soft-bg);
  color: var(--link);
  text-decoration: none;
}

/* Layout */
.container {
  max-width: 820px;
  margin: 40px auto 64px;
  padding: 0 18px;
}

header.hero {
  margin-bottom: 26px;
  padding: 20px 2px 6px;
}

h1 {
  font-family: var(--serif);
  font-weight: 600;
  margin: 0 0 12px;
  font-size: 36px;
  line-height: 1.18;
  letter-spacing: -0.2px;
  color: var(--text);
}

.tagline {
  font-family: var(--serif);
  font-size: 18px;
  font-style: italic;
  color: var(--muted);
  max-width: 74ch;
  margin: 0;
  line-height: 1.55;
}

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

section.card,
div.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.card h2,
main > h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 21px;
  margin: 0 0 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  letter-spacing: -0.1px;
  color: var(--text);
}

main > h2 { margin-top: 30px; }
h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 16.5px;
  margin: 18px 0 8px;
  color: var(--text);
}

h2 { letter-spacing: -0.1px; }

.lead {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  max-width: 75ch;
}

.meta {
  margin: 0 0 10px;
  font-size: 13.5px;
  color: var(--muted);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--accent-soft-bg);
  border: 1px solid var(--accent-soft-border);
  color: var(--accent-soft-text);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

/* Featured blocks (index.html) */
.feature {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  background: #fff;
  box-shadow: var(--shadow);
}

.feature-title {
  font-family: var(--serif);
  margin: 0 0 8px;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.1px;
  color: var(--text);
}

/* Callouts */
.callout {
  border: 1px solid var(--accent-soft-border);
  background: var(--accent-soft-bg);
  color: var(--accent-soft-text);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-size: 14px;
  margin-top: 14px;
}

.notice {
  border-left: 3px solid var(--link);
  background: var(--accent-soft-bg);
  color: var(--text);
  padding: 14px 16px;
  border-radius: var(--radius-sm);
}

/* Lists */
ul.clean {
  margin: 12px 0 0;
  padding-left: 20px;
  color: var(--text);
}
ul.clean li { margin: 7px 0; }

/* Actions & buttons */
.actions,
.btnrow {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: #fff;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.btn:hover {
  text-decoration: none;
  background: #f5f3ee;
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}
.btn.primary {
  border-color: var(--link);
  background: var(--link);
  color: #fff;
}
.btn.primary:hover {
  background: var(--link-hover);
  border-color: var(--link-hover);
}
.btn.secondary {
  background: transparent;
  color: var(--link);
  border-color: var(--link);
}
.btn.secondary:hover { background: var(--accent-soft-bg); }

/* Publication lists */
.pub-list { display: grid; gap: 16px; margin-top: 14px; }

.pub-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 16px 14px;
  background: #fff;
}

.pub-title {
  font-family: var(--serif);
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.1px;
  color: var(--text);
}
.pub-title a { color: var(--text); text-decoration: none; }
.pub-title a:hover { text-decoration: underline; }

.pub-meta { font-size: 13px; color: var(--muted); margin: 0 0 10px; }
.mini-note { margin-top: 10px; font-size: 13px; color: var(--muted); }

/* Video grid (index.html) */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 14px;
}
.video-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.video-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  text-decoration: none;
}
.video-thumb { width: 100%; aspect-ratio: 16/9; background: #000; display: block; }
.video-title { padding: 12px; font-size: 14px; font-weight: 600; color: var(--text); }

/* Profile links (flat pill row: index.html, about.html) */
.profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-top: 10px;
}
.profile-links a {
  font-size: 14px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: #fff;
}
.profile-links a:hover { text-decoration: none; background: #f5f3ee; }

/* Profile cards (contact.html) */
.profile-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 12px;
}
.profile-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  background: #fff;
}
.profile-card:hover { background: #f5f3ee; text-decoration: none; }
.profile-card strong { display: block; font-size: 15px; color: var(--text); margin-bottom: 2px; }
.profile-card span { display: block; font-size: 13px; color: var(--muted); }

.contact-note { margin-top: 14px; font-size: 14px; color: var(--muted); }

/* Definition lists (impressum.html) */
.kv {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 9px 14px;
  align-items: start;
}
.kv dt { margin: 0; font-weight: 700; color: var(--text); }
.kv dd { margin: 0; color: var(--text); }

/* Section title (apps/reist-division) */
.sectionTitle {
  font-family: var(--serif);
  margin: 22px 0 8px;
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
}

/* Tags / pills */
.tag {
  font-size: 0.85rem;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
}

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

code, .mono {
  font-family: var(--mono);
  font-size: 0.92rem;
  word-break: break-word;
  white-space: normal;
}

pre {
  background: var(--code-bg);
  border: 1px solid var(--border);
  padding: 14px;
  border-radius: var(--radius-sm);
  overflow-x: auto;
  line-height: 1.5;
  font-family: var(--mono);
  font-size: 13.5px;
}

.links a { color: var(--link); }

img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: #fff;
}

.full-bleed img { border-radius: var(--radius-sm); }

/* Footer */
footer {
  text-align: center;
  margin: 48px 0 10px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted);
}

.fineprint {
  max-width: 82ch;
  margin: 10px auto 0;
  color: var(--muted);
}

@media (max-width: 720px) {
  .profile-cards { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  h1 { font-size: 29px; }
  .tagline { font-size: 16px; }
  .nav-wrapper { flex-direction: column; align-items: flex-start; }
  .nav-menu { justify-content: flex-start; }
  .kv { grid-template-columns: 1fr; }
  .btn { width: auto; }
  .full-bleed {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 0 18px;
  }
}
