/* =====================================================
   reuticom.ch — Portfolio Stylesheet
   Palette: ink / slate / accent (teal) + off-white
   ===================================================== */

@font-face {
  font-family: 'Inter';
  src: url('/fonts/Inter-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('/fonts/Inter-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* Custom Properties */
:root {
  --ink:        #1c2426;
  --slate:      #4d5a5e;
  --slate-lt:   #7c898d;
  --accent:     #1f7a6c;
  --accent-dark:#155c51;
  --accent-lt:  #e3f2ef;
  --text:       #1c2426;
  --text-muted: #57656a;
  --bg:         #ffffff;
  --bg-alt:     #f4f6f6;
  --border:     #dde3e3;
  --white:      #ffffff;

  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
  --max-w: 980px;
  --radius: 10px;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --transition: 0.2s ease;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink:        #eef1f1;
    --slate:      #c3ccce;
    --slate-lt:   #8b9598;
    --accent:     #4fbfac;
    --accent-dark:#7fd6c6;
    --accent-lt:  #16302c;
    --text:       #eef1f1;
    --text-muted: #a9b3b5;
    --bg:         #14191a;
    --bg-alt:     #1b2122;
    --border:     #2b3335;
    --white:      #14191a;
  }
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); text-decoration: underline; }
h1, h2, h3 { line-height: 1.3; font-weight: 600; }
p { margin-bottom: 1rem; }

/* =====================================================
   HEADER / INTRO
   ===================================================== */
.intro {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 4rem 1.25rem 2.5rem;
}

.intro h1 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: 1rem;
}

.intro p {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 640px;
}

.intro a { font-weight: 600; }

/* =====================================================
   PROJECT CARDS
   ===================================================== */
.projects {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.25rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  position: relative;
}

.card:nth-child(even) .card-media {
  order: 2;
}

.card-media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.card-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform var(--transition);
}

.card-media a:hover img { transform: scale(1.02); }

.card-body h2 {
  font-size: 1.4rem;
  margin-bottom: 0.6rem;
}

.card-body p {
  color: var(--text-muted);
}

.card-tech {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.card-tech strong {
  color: var(--text);
  font-weight: 600;
}

.badge {
  display: inline-block;
  background: var(--accent-lt);
  color: var(--accent-dark);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}

.card-link {
  display: inline-block;
  margin-top: 0.75rem;
  font-weight: 600;
}

/* =====================================================
   IMPRESSUM MODAL
   ===================================================== */
#impressum-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 600;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

#impressum-modal.open {
  display: flex;
}

.modal-box {
  background: var(--bg);
  color: var(--text);
  border-radius: var(--radius);
  max-width: 480px;
  width: 100%;
  padding: 2rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  position: relative;
}

.modal-box h2 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

.modal-box address {
  font-style: normal;
  color: var(--text-muted);
  line-height: 1.6;
}

.modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.25rem;
}

.modal-close:hover { color: var(--text); }

/* =====================================================
   FOOTER
   ===================================================== */
footer {
  background: var(--bg-alt);
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: auto;
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
}

.footer-inner p { margin-bottom: 0; }

.footer-links {
  display: flex;
  gap: 1rem;
  list-style: none;
}

.footer-links button {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: var(--text-muted);
  text-decoration: underline;
  cursor: pointer;
}

.footer-links button:hover { color: var(--accent); }

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 768px) {
  .card,
  .card:nth-child(even) .card-media {
    grid-template-columns: 1fr;
    order: initial;
  }

  .card {
    grid-template-columns: 1fr;
  }

  .intro { padding: 3rem 1.25rem 2rem; }
}
