:root {
  --ink: #1c1612;
  --ink-muted: #5a4e44;
  --surface: #faf7f2;
  --surface-alt: #f2ebe0;
  --border: #ddd3c3;
  --accent: #7a5c3a;
  --accent-light: #c8a87a;
  --radius: 6px;
  --font-body: 'Georgia', 'Times New Roman', serif;
  --font-sans: 'Helvetica Neue', 'Arial', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--surface);
  color: var(--ink);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── HEADER ─────────────────────────────────────────────── */
header {
  background: var(--ink);
  color: var(--surface);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  min-height: 72px;
}

.logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo-name {
  font-family: var(--font-body);
  font-size: 1.8rem;
  font-weight: normal;
  letter-spacing: 0.06em;
  color: var(--accent-light);
}

.logo-sub {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #a0907e;
  margin-top: 2px;
}

/* ── NAV ──────────────────────────────────────────────────── */
nav {
  display: flex;
  gap: 0.25rem;
}

nav a {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: none;
  border: none;
  color: #a0907e;
  padding: 0.55rem 1.1rem;
  text-decoration: none;
  border-radius: var(--radius);
  transition: color 0.15s, background 0.15s;
}

nav a:hover {
  color: var(--surface);
  background: rgba(255, 255, 255, 0.08);
}

nav a.active {
  color: var(--accent-light);
  background: rgba(200, 168, 122, 0.12);
  border-bottom: 2px solid var(--accent-light);
}

/* ── MAIN ─────────────────────────────────────────────────── */
main {
  flex: 1;
  max-width: 860px;
  width: 100%;
  margin: 0 auto;
  padding: 3.5rem 2rem 4rem;
}

/* ── HOME TAB ─────────────────────────────────────────────── */
.home-hero {
  border-left: 3px solid var(--accent-light);
  padding-left: 1.5rem;
  margin-bottom: 2.5rem;
}

.home-hero h1 {
  font-family: var(--font-body);
  font-size: 2rem;
  font-weight: normal;
  color: var(--accent);
  line-height: 1.25;
  margin-bottom: 0.4rem;
}

.home-hero .tagline {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.home-body {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.home-body p {
  font-size: 1.08rem;
  line-height: 1.75;
  color: var(--ink);
  text-wrap: pretty;
}

.home-divider {
  width: 56px;
  height: 2px;
  background: var(--accent-light);
  border: none;
  margin: 2.5rem 0;
}

.home-closing {
  font-family: var(--font-body);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--accent);
  line-height: 1.6;
  padding: 1.2rem 1.5rem;
  background: var(--surface-alt);
  border-radius: var(--radius);
}

/* ── WERK TAB ─────────────────────────────────────────────── */
.werk-header {
  margin-bottom: 2rem;
}

.werk-header h2 {
  font-family: var(--font-body);
  font-size: 1.7rem;
  font-weight: normal;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

.werk-header p {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--ink-muted);
}

/* Slideshow */
.slideshow {
  position: relative;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.slides-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
}

.slide.active {
  opacity: 1;
  pointer-events: auto;
}

.slide-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background: var(--surface-alt);
  color: var(--ink-muted);
}

.slide-placeholder svg {
  opacity: 0.25;
}

.slide-placeholder .slide-label {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Controls */
.slideshow-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.1rem;
  background: var(--ink);
}

.slide-btn {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--surface);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, border-color 0.15s;
}

.slide-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--accent-light);
}

.slide-counter {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: #a0907e;
  letter-spacing: 0.08em;
}

.slide-dots {
  display: flex;
  gap: 6px;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: background 0.15s;
}

.dot.active {
  background: var(--accent-light);
}

.werk-note {
  margin-top: 1.5rem;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--ink-muted);
  font-style: italic;
}

.werk-note a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent-light);
}

/* ── CONTACT TAB ──────────────────────────────────────────── */
.contact-wrap {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 520px;
}

.contact-wrap h2 {
  font-family: var(--font-body);
  font-size: 1.7rem;
  font-weight: normal;
  color: var(--accent);
}

.contact-block {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contact-block p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink);
}

.contact-mail {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent-light);
  padding-bottom: 1px;
  transition: color 0.15s, border-color 0.15s;
}

.contact-mail:hover {
  color: var(--ink);
  border-color: var(--ink);
}

.contact-card {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
}

.contact-card .name {
  font-family: var(--font-body);
  font-size: 1.15rem;
  color: var(--ink);
  margin-bottom: 0.2rem;
}

.contact-card .role {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 1rem;
}

/* ── FOOTER ───────────────────────────────────────────────── */
footer {
  background: var(--surface-alt);
  border-top: 1px solid var(--border);
  padding: 1.25rem 2rem;
  text-align: center;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: var(--ink-muted);
  letter-spacing: 0.05em;
}

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 600px) {
  header {
    padding: 0.75rem 1.25rem;
    gap: 1rem;
  }

  main {
    padding: 2.5rem 1.25rem 3rem;
  }

  .home-hero h1 {
    font-size: 1.55rem;
  }

  .slide-counter {
    display: none;
  }
}
