/* =============================================
   sec-sv.at — Florian Schilchegger BSc., MA
   Stylesheet v1.0
   ============================================= */

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --white:       #FAFAF8;
  --off-white:   #F2F1EC;
  --light:       #E8E6DF;
  --mid:         #8A8880;
  --ink-light:   #5C5A55;
  --ink:         #3A3935;
  --ink-dark:    #1C1B19;
  --accent:      #2B4162;
  --accent-light:#EBF0F6;
  --rule:        1px solid var(--light);
  --max-w:       680px;
  --font-serif:  Georgia, 'Times New Roman', serif;
  --font-mono:   'Courier New', Courier, monospace;
}

html {
  font-size: 18px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--ink);
  background-color: var(--white);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---- Typography ---- */
h1, h2, h3 {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 300;
  line-height: 1.2;
  color: var(--ink-dark);
  letter-spacing: 0.01em;
}

h1 { font-size: 2.4rem; margin-bottom: 0.25rem; }
h2 { font-size: 1.5rem; margin-bottom: 1.5rem; }
h3 { font-size: 1.1rem; font-weight: 400; margin-bottom: 0.5rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.15s;
}
a:hover { opacity: 0.65; }

em { font-style: italic; }
strong { font-weight: 500; }

small {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: var(--ink-light);
}

/* ---- Layout ---- */
.site-wrapper {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
}

/* ---- Header ---- */
.site-header {
  border-bottom: var(--rule);
  padding: 2rem 0 1.5rem;
  margin-bottom: 0;
}

.site-header .site-wrapper {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 2rem;
}

.site-title {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 300;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  color: var(--ink-dark);
  line-height: 1.3;
  text-decoration: none;
  flex-shrink: 0;
}
.site-title:hover { opacity: 0.7; }
.site-title span {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  color: var(--ink-light);
  text-transform: uppercase;
  margin-top: 0.1rem;
}

/* ---- Navigation ---- */
.site-nav {
  display: flex;
  gap: 1.75rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav a {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 300;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-light);
  text-decoration: none;
  transition: color 0.15s;
  white-space: nowrap;
}
.site-nav a:hover,
.site-nav a.active { color: var(--ink-dark); }

/* ---- Main Content ---- */
main {
  flex: 1;
  padding: 4rem 0 5rem;
}

/* ---- Page Intro ---- */
.page-intro {
  padding-bottom: 3rem;
  margin-bottom: 3rem;
  border-bottom: var(--rule);
}

.page-intro .eyebrow {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 300;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-light);
  display: block;
  margin-bottom: 1rem;
}

/* ---- Sections ---- */
.section {
  padding: 2.5rem 0;
  border-bottom: var(--rule);
}
.section:last-child { border-bottom: none; }

.section-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink);
  display: block;
  margin-bottom: 1.25rem;
}

/* ---- CV Entries ---- */
.cv-entry {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 0 2rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--off-white);
}
.cv-entry:last-child { border-bottom: none; }

.cv-period {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 300;
  color: var(--ink-light);
  letter-spacing: 0.04em;
  padding-top: 0.2rem;
  line-height: 1.5;
}

.cv-content h3 { margin-bottom: 0.15rem; }
.cv-content .org {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--ink-light);
  letter-spacing: 0.06em;
  display: block;
  margin-bottom: 0.4rem;
}
.cv-content p {
  font-size: 0.9rem;
  color: var(--ink);
  margin-bottom: 0;
  line-height: 1.65;
}

/* ---- Download Items ---- */
.download-list { list-style: none; }
.download-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  border-bottom: 1px solid var(--off-white);
  gap: 1rem;
}
.download-list li:last-child { border-bottom: none; }

.download-info h3 { margin-bottom: 0.1rem; font-size: 1rem; }
.download-info p {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--ink-light);
  letter-spacing: 0.06em;
  margin: 0;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 0.45rem 0.9rem;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
  flex-shrink: 0;
}
.btn-download:hover {
  background: var(--accent);
  color: var(--white);
  opacity: 1;
}
.btn-download svg {
  width: 12px;
  height: 12px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

/* ---- Contact Items ---- */
.contact-item {
  display: flex;
  gap: 1.5rem;
  align-items: baseline;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--off-white);
}
.contact-item:last-child { border-bottom: none; }
.contact-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  width: 5rem;
  flex-shrink: 0;
}

/* ---- Legal / Prose ---- */
.prose { max-width: 60ch; }
.prose h3 { margin-top: 2rem; margin-bottom: 0.5rem; }
.prose p, .prose li { font-size: 0.95rem; line-height: 1.8; }
.prose ul { padding-left: 1.25rem; margin-bottom: 1rem; }
.prose li { margin-bottom: 0.25rem; }

/* ---- Footer ---- */
.site-footer {
  border-top: var(--rule);
  padding: 1.5rem 0;
}
.site-footer .site-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.site-footer small { font-size: 0.62rem; }
.site-footer nav { display: flex; gap: 1.5rem; }
.site-footer nav a {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-light);
}
.site-footer nav a:hover { color: var(--ink-dark); }

/* ---- Tag Liste (Schwerpunkte) ---- */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.25rem;
}
.tag-list span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--ink);
  background: var(--off-white);
  border: 1px solid var(--light);
  padding: 0.3rem 0.7rem;
  border-radius: 2px;
}

/* ---- Responsive ---- */
@media (max-width: 600px) {
  html { font-size: 16px; }
  .site-header .site-wrapper { flex-direction: column; gap: 1rem; }
  .site-nav { justify-content: flex-start; gap: 1.25rem; }
  .cv-entry { grid-template-columns: 1fr; gap: 0.25rem; }
  .cv-period { padding-top: 0; }
  .site-footer .site-wrapper { flex-direction: column; align-items: flex-start; }
}