/* ============================================================
   Local Fonts (DSGVO-konform – kein Google-Server-Aufruf)
   ============================================================ */
@font-face {
  font-family: 'Bodoni Moda';
  src: url('../fonts/BodoniModa-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Bodoni Moda';
  src: url('../fonts/BodoniModa-Italic.ttf') format('truetype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Bodoni Moda';
  src: url('../fonts/BodoniModa-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* ============================================================
   CSS Custom Properties
   ============================================================ */
:root {
  --color-bg:        #ffffff;
  --color-text:      #000000;
  --color-nav:       #ffffff; /* must stay pure white for mix-blend-mode: difference */

  --font-serif:      'Bodoni 72 Book', 'Bodoni 72', 'Bodoni Moda', 'Didot', Georgia, serif;
  --font-sans:       'Bodoni 72 Book', 'Bodoni 72', 'Bodoni Moda', 'Didot', Georgia, serif;

  --content-max:     1080px;
  --content-padding: 20px;
  --page-left:       20px;

  --hero-height:     100vh;
  --hero-height-mob: 100vh;
}

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

html {
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 200;
  line-height: 1.35;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

address {
  font-style: normal;
}

/* ============================================================
   Accessibility Utilities
   ============================================================ */

/* Skip-to-content link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 20px;
  background: #000;
  color: #fff;
  padding: 8px 14px;
  font-family: var(--font-serif);
  font-size: 14px;
  z-index: 100;
  transition: top 0.15s;
}
.skip-link:focus {
  top: 10px;
}

/* Visually hidden (screen reader only) */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Focus indicators */
:focus-visible {
  outline: 2px solid #000;
  outline-offset: 3px;
}
.nav :focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  width: 100%;
  height: var(--hero-height);
  overflow: hidden;
}

.hero__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* ============================================================
   Navigation – Desktop (default)
   - Vertical stack, top-left, over the hero image
   - Order in HTML: work | Nina Nachbaur | about
   - On desktop: name first (via order), then work, then about
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

/* Name appears first visually on desktop */
.nav__name-link {
  order: -1;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 400;
  color: var(--color-nav);
  line-height: 1.3;
  letter-spacing: 0.01em;
  margin-bottom: 10px;
}

.nav__name-link:hover {
  opacity: 0.75;
}

.nav__link {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 400;
  color: var(--color-nav);
  line-height: 1.3;
  display: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.nav__link:hover {
  opacity: 0.75;
}

.nav--open .nav__link {
  display: block;
  opacity: 1;
}

/* ============================================================
   Bio Section
   ============================================================ */
.bio {
  padding: 24px var(--page-left) 0;
}

.bio__text {
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 400;
  line-height: 1.35;
  color: var(--color-text);
  max-width: 880px;
}

.bio__text em {
  font-style: italic;
}

/* ============================================================
   Footer (Contact + Services)
   ============================================================ */
.footer {
  padding: 100px var(--page-left) 60px;
  display: flex;
  gap: 0;
}

/* --- Columns --- */
.footer__col--contact {
  width: 35%;
}

.footer__col--services {
  width: 65%;
}

/* --- Section Heading (CONTACT / SERVICES) --- */
.footer__heading {
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  margin-bottom: 22px;
}

/* --- Address --- */
.footer__address {
  font-family: var(--font-serif);
  font-size: 17px;
  line-height: 1.35;
  margin-bottom: 18px;
}

/* --- Contact List --- */
.footer__contact-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.footer__contact-list li {
  font-family: var(--font-serif);
  font-size: 17px;
  line-height: 1.35;
}

.footer__link {
  color: var(--color-text);
  text-decoration: none;
}

.footer__link:hover {
  text-decoration: underline;
  text-decoration-thickness: 0.5px;
  text-underline-offset: 3px;
}

/* --- Services --- */
.services {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.services__group {
  margin-bottom: 18px;
}

.services__group:last-child {
  margin-bottom: 0;
}

.services__category,
.services__item {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.35;
}

/* ============================================================
   Mobile Navigation – Horizontal bar
   (< 768px)
   ============================================================ */
@media (max-width: 767px) {

  /* Hero taller on mobile – goes all the way to the top */
  .hero {
    height: 100svh; /* svh = small viewport height, accounts for browser chrome */
  }

  /* Horizontal nav bar: work | Nina Nachbaur | about */
  .nav {
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    padding-top: calc(env(safe-area-inset-top) + 13px);
    padding-left: 16px;
    padding-right: 16px;
    padding-bottom: 13px;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 0;
  }

  /* Always show links on mobile */
  .nav__link {
    display: block !important;
    opacity: 1 !important;
    font-size: 12px;
  }

  /* work = left */
  .nav__link--work {
    order: 1;
    font-size: 12px;
  }

  /* Name = center */
  .nav__name-link {
    order: 2;
    font-size: 13px;
    margin-bottom: 0;
  }

  /* about = right */
  .nav__link--about {
    order: 3;
    font-size: 12px;
  }

  /* Bio section */
  .bio {
    padding-top: 26px;
    padding-left: var(--page-left);
    padding-right: var(--page-left);
  }

  .bio__text {
    font-size: 19px;
    line-height: 1.35;
  }

  /* Footer */
  .footer {
    padding: 80px var(--page-left) 70px;
    flex-direction: row;
  }

  .footer__col--contact {
    width: 50%;
    overflow-wrap: break-word;
    word-break: break-word;
  }

  .footer__col--services {
    width: 50%;
    padding-left: 20px;
  }

  .footer__heading {
    font-size: 12px;
    margin-bottom: 18px;
  }

  .footer__address {
    font-size: 14px;
    margin-bottom: 14px;
  }

  .footer__contact-list li {
    font-size: 14px;
  }

  .services__category,
  .services__item {
    font-size: 14px;
  }

  .services__group {
    margin-bottom: 14px;
  }
}
