/* ============================================================
   andremis.de — Shared Stylesheet
   ============================================================ */

/* --- Self-Hosted Fonts (GDPR-safe, no external requests) --- */

/* Lora — normal (variable: weights 400–700) */
@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/lora-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/lora-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Lora — italic (variable: weight 400) */
@font-face {
  font-family: 'Lora';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/lora-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Lora';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/lora-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Outfit (variable: weights 300–600) */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url('/fonts/outfit-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url('/fonts/outfit-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --- Custom Properties --- */
:root {
  --bg: #E2DFD9;
  --card-bg: #EEEDE8;
  --text: #2A2725;
  --text-secondary: #4E4944;
  --text-muted: #6B655C;
  --accent: #3A7565;
  --accent-hover: #2D6354;
  --warm: #B8834E;
  --border: #D0CDC5;
  --shadow: rgba(0, 0, 0, 0.045);
  --serif: 'Lora', serif;
  --sans: 'Outfit', sans-serif;
}

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

/* --- Base --- */
html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--accent-hover);
}

/* --- Skip to Content --- */
.skip-to-content {
  position: absolute;
  top: -100%;
  left: 16px;
  padding: 8px 16px;
  background: var(--accent);
  color: #fff;
  border-radius: 0 0 6px 6px;
  font-size: 14px;
  z-index: 200;
  transition: top 0.2s;
}

.skip-to-content:focus {
  top: 0;
  color: #fff;
}

/* --- Nav --- */
nav {
  max-width: 940px;
  margin: 0 auto;
  padding: 32px 32px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-name {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}

.nav-name:hover {
  color: var(--text);
}

.nav-links {
  display: flex;
  gap: 28px;
}

.nav-links a {
  font-size: 15px;
  color: var(--text-muted);
}

.nav-links a:hover {
  color: var(--accent);
}

.nav-current {
  font-size: 15px;
  color: var(--text);
  cursor: default;
}

/* --- Hero --- */
.hero {
  max-width: 1020px;
  margin: 0 auto;
  padding: 80px 48px 64px;
}

.hero-greeting {
  font-size: 18px;
  font-weight: 400;
  color: var(--accent);
  margin-bottom: 14px;
}

.hero h1 {
  font-family: var(--serif);
  font-size: 58px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.12;
  margin-bottom: 20px;
}

.hero-personal {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
  max-width: 640px;
  font-style: italic;
}

.hero-summary {
  font-size: 19px;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 680px;
  margin-bottom: 36px;
}

.hero-meta {
  display: flex;
  gap: 32px;
  align-items: center;
}

.hero-meta-item {
  font-size: 16px;
  color: var(--text-muted);
}

.hero-meta-item strong {
  font-weight: 500;
  color: var(--text-secondary);
}

.hero-meta-divider {
  width: 1px;
  height: 18px;
  background: var(--border);
}

/* CV download link in meta bar */
.cv-link-inline {
  font-size: 16px;
  font-weight: 500;
  color: var(--accent);
}

.cv-link-inline:hover {
  color: var(--accent-hover);
}

/* --- Sections --- */
.section {
  max-width: 940px;
  margin: 0 auto;
  padding: 0 32px 64px;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}

.section-title {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 600;
  color: var(--text);
}

.section-line {
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* --- Experience Cards --- */
.exp-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 30px;
  margin-bottom: 16px;
  box-shadow: 0 1px 3px var(--shadow), 0 4px 12px var(--shadow);
  transition: box-shadow 0.25s ease;
}

.exp-card:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06), 0 10px 28px rgba(0, 0, 0, 0.06);
}

.exp-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 4px;
}

.exp-company {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--text);
}

.exp-location {
  font-size: 15px;
  color: var(--text-muted);
}

.exp-role {
  font-size: 16px;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 4px;
}

.exp-dates {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.exp-bullets {
  list-style: none;
}

.exp-bullets li {
  font-size: 18px;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 12px;
  padding-left: 20px;
  position: relative;
}

.exp-bullets li:last-child {
  margin-bottom: 0;
}

.exp-bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--warm);
}

/* --- Pull Quote Breakout --- */
.quote-breakout {
  margin: 24px -12px 0;
  padding: 28px 32px;
  background: linear-gradient(135deg, rgba(184, 131, 78, 0.08), rgba(58, 117, 101, 0.05));
  border-left: 4px solid var(--warm);
  border-radius: 0 12px 12px 0;
}

.quote-breakout blockquote {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 400;
  font-style: italic;
  color: var(--text-secondary);
  line-height: 1.7;
}

.quote-breakout cite {
  display: block;
  font-family: var(--sans);
  font-style: normal;
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 10px;
}

/* --- Tech Stack Grid --- */
.tech-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.tech-group {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 22px 24px;
  box-shadow: 0 1px 3px var(--shadow);
}

.tech-group-title {
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tech-tag {
  font-size: 15px;
  font-weight: 400;
  background: var(--bg);
  color: var(--text-secondary);
  padding: 6px 14px;
  border-radius: 6px;
  border: 1px solid var(--border);
  transition: border-color 0.2s, background 0.2s;
}

.tech-tag:hover {
  border-color: var(--accent);
  background: rgba(58, 117, 101, 0.06);
}

/* --- Two-Column Cards --- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.info-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 26px;
  box-shadow: 0 1px 3px var(--shadow);
}

.info-card-title {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
}

.info-card p {
  font-size: 17px;
  color: var(--text-secondary);
  font-weight: 300;
  margin-bottom: 4px;
  line-height: 1.7;
}

.info-card .highlight {
  color: var(--accent);
  font-weight: 500;
}

/* --- Project Card --- */
.project-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 26px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  box-shadow: 0 1px 3px var(--shadow);
}

.project-name {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.project-desc {
  font-size: 17px;
  font-weight: 300;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.project-link {
  font-size: 15px;
  font-weight: 500;
  background: var(--accent);
  color: var(--card-bg);
  padding: 10px 18px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  transition: all 0.2s;
  white-space: nowrap;
}

.project-link:hover {
  background: transparent;
  color: var(--accent);
}

/* --- Footer --- */
footer {
  max-width: 940px;
  margin: 0 auto;
  padding: 32px 32px 48px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

footer a {
  font-size: 16px;
  color: var(--text-muted);
}

footer a:hover {
  color: var(--accent);
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-right {
  font-size: 15px;
  color: var(--text-muted);
}

/* --- Focus Styles --- */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

/* --- Page Content (Impressum, etc.) --- */
.page-content {
  max-width: 940px;
  margin: 0 auto;
  padding: 64px 32px;
}

.page-content h1 {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 24px;
}

.page-content p {
  font-size: 18px;
  color: var(--text-secondary);
  font-weight: 300;
  margin-bottom: 12px;
  line-height: 1.7;
}

.page-content a {
  color: var(--accent);
}

.page-content a:hover {
  color: var(--accent-hover);
}

/* --- Page-Load Animation --- */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate {
  opacity: 0;
  animation: fadeUp 0.6s ease-out forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.25s; }
.delay-3 { animation-delay: 0.4s; }
.delay-4 { animation-delay: 0.55s; }
.delay-5 { animation-delay: 0.7s; }

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .animate {
    opacity: 1;
    animation: none;
    transform: none;
  }
}

/* --- Responsive: Tablet (~768px) --- */
@media (max-width: 768px) {
  nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 24px 24px 0;
  }

  .nav-links {
    gap: 20px;
    flex-wrap: wrap;
  }

  .hero {
    padding: 48px 24px 40px;
  }

  .hero h1 {
    font-size: 40px;
  }

  .hero-personal,
  .hero-summary {
    font-size: 17px;
  }

  .hero-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .hero-meta-divider {
    display: none;
  }

  .section {
    padding: 0 24px 48px;
  }

  .section-title {
    font-size: 24px;
  }

  .tech-grid,
  .two-col {
    grid-template-columns: 1fr;
  }

  .exp-top {
    flex-direction: column;
    gap: 2px;
  }

  .quote-breakout {
    margin: 20px 0 0;
    padding: 20px 24px;
  }

  .quote-breakout blockquote {
    font-size: 18px;
  }

  footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 24px 24px 40px;
  }
}

/* --- Responsive: Mobile (~480px) --- */
@media (max-width: 480px) {
  body {
    font-size: 16px;
  }

  nav {
    padding: 20px 16px 0;
  }

  .nav-links {
    gap: 16px;
  }

  .nav-links a,
  .nav-current {
    font-size: 14px;
  }

  .hero {
    padding: 36px 16px 32px;
  }

  .hero h1 {
    font-size: 34px;
  }

  .hero-personal,
  .hero-summary {
    font-size: 16px;
  }

  .section {
    padding: 0 16px 40px;
  }

  .exp-card {
    padding: 20px;
  }

  .exp-company {
    font-size: 19px;
  }

  .exp-bullets li {
    font-size: 16px;
  }

  .project-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .project-link {
    align-self: flex-start;
  }

  footer {
    padding: 20px 16px 32px;
  }
}

/* --- Print --- */
@media print {
  .animate {
    opacity: 1;
    animation: none;
    transform: none;
  }

  nav, footer, .skip-to-content {
    display: none;
  }

  .hero {
    padding-top: 0;
  }

  .exp-card, .tech-group, .info-card, .project-card {
    box-shadow: none;
    break-inside: avoid;
  }

  .exp-card:hover {
    box-shadow: none;
  }

  a {
    color: var(--text-secondary);
  }

  .project-link {
    border-color: var(--text-secondary);
    color: var(--text-secondary);
  }
}
