/* ============================================================
   hgman.net — Sascha Hagemann, Chefrestaurator des ewigen Bundes
   Basierend auf Entwurf des Grafikers (Adobe XD)
   ============================================================ */

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

:root {
  --color-bg: #F9F9F7;
  --color-text: #1A1A1A;
  --color-red: #8B251D;
  --color-red-dark: #75251C;
  --color-green: #5D675B;
  --color-grey: #62676B;
  --color-separator: rgba(112, 112, 112, 0.1);

  --font-heading: 'Crimson Text', Georgia, 'Times New Roman', serif;
  --font-label: 'Tenor Sans', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Crimson Text', Georgia, 'Times New Roman', serif;

  --max-width: 1080px;
  --pad-inline: clamp(1rem, 5vw, 2rem);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: clamp(1.125rem, 1.8vw, 1.5rem);
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

/* ---------- Accessibility ---------- */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Header / Navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--color-bg);
  border-bottom: 1px solid rgba(93, 103, 91, 0.3);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--pad-inline);
  height: 80px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 2.5rem;
}

.nav-link {
  font-family: var(--font-label);
  font-size: 0.9rem;
  color: var(--color-green);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color 0.25s;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--color-red);
  outline: none;
}

/* ---------- Section ---------- */
.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 5rem var(--pad-inline);
}

.section + .section {
  border-top: 1px solid var(--color-separator);
}

.section.person {
  padding-bottom: 1.5rem;
}


.section-label {
  font-family: var(--font-label);
  font-size: 0.85rem;
  color: var(--color-red);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 3rem;
}

/* ---------- Hero ---------- */
.hero {
  padding-top: 6rem;
  padding-bottom: 6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border-top: none;
}

.hero-signature {
  margin-top: 3rem;
}

.hero-context {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  color: var(--color-grey);
  line-height: 1.5;
  margin-bottom: 2.5rem;
}

.hero-name {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--color-text);
  margin-bottom: 1rem;
}

.hero-separator {
  display: flex; justify-content: center;
  margin: 1.5rem 0;
}

.hero-separator span {
  display: block;
  width: 100px;
  height: 1px;
  background: var(--color-red);
}

.hero-title {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: clamp(1rem, 1.5vw, 1.35rem);
  color: var(--color-green);
}

/* ---------- Crest Icons ---------- */
.crest-icon {
  width: clamp(80px, 12vw, 144px);
  height: clamp(80px, 12vw, 144px);
  position: relative;
  flex-shrink: 0;
}

.crest-ring {
  position: absolute; inset: 0; width: 100%; height: 100%;
}

.crest-inner {
  position: absolute;
  width: 65%; height: 78%;
  left: 12%; top: 10%;
  fill: currentColor;
}

.crest-inner--red  { color: var(--color-red); }
.crest-inner--green { color: var(--color-green); }

/* ---------- Decor Icons (section ornaments) ---------- */
.decor-icon {
  margin: 0 auto 1.5rem;
  width: clamp(72px, 10vw, 120px);
  height: clamp(72px, 10vw, 120px);
  position: relative;
  opacity: 0.4;
}

.decor-icon--left {
  margin: 0 0 1.5rem 0;
}

/* ---------- Gelöbnis ---------- */
.geloebnis-content {
  display: flex;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.geloebnis-accent {
  flex-shrink: 0;
  width: 1px;
  min-height: 100%;
  background: var(--color-red);
  align-self: stretch;
}

.geloebnis-text {
  font-family: var(--font-body);
  font-size: inherit;
  line-height: 1.7;
  color: var(--color-text);
}

.geloebnis-text p + p {
  margin-top: 1.2em;
}

/* ---------- Zitate ---------- */
.zitat {
  text-align: center;
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.zitat-text {
  font-family: var(--font-heading);
  font-style: italic;
  color: var(--color-green);
  line-height: 1.55;
}

.zitat-text--large {
  font-size: clamp(1.2rem, 1.8vw, 1.5rem);
}

.zitat-text p + p {
  margin-top: 0.6em;
}

.zitat-text footer {
  font-family: var(--font-heading);
  font-style: normal;
  color: var(--color-red);
  font-size: 1rem;
  margin-top: 1rem;
}

/* ---------- Person / Bio ---------- */
.person-bio {
  font-family: var(--font-body);
  line-height: 1.7;
}

.person-bio p + p {
  margin-top: 1.3em;
}

.bio-highlight {
  color: var(--color-red-dark);
}

/* ---------- Footer ---------- */
.site-footer {
  text-align: center;
  padding: 2rem var(--pad-inline) 4rem;
}

.site-footer .crest-icon {
  margin: 0 auto 2rem;
}

.footer-name {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 2vw, 1.75rem);
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

.footer-title {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  color: var(--color-green);
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .section {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }

  .hero {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  .hero-signature {
    margin-top: 2rem;
  }

  .geloebnis-content {
    flex-direction: column;
    gap: 1.5rem;
  }

  .geloebnis-accent {
    width: 80px;
    height: 1px;
  }

  .header-inner {
    height: 64px;
    gap: 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero-context br { display: none; }

  .zitat-text--large br { display: none; }
}

/* ---------- Focus ---------- */
:focus-visible {
  outline: 2px solid var(--color-red);
  outline-offset: 2px;
}

/* ---------- Inline quote within bio ---------- */
.person-zitat {
  text-align: center;
  margin: 3rem 0;
  padding: 2rem 0;
}

.person-zitat .decor-icon {
  margin-bottom: 1.25rem;
}

.person-zitat .zitat-text {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
}

@media (max-width: 480px) {
  .person-zitat {
    margin: 2rem 0;
    padding: 1.5rem 0;
  }
}

/* ---------- Hero Portrait ---------- */
.hero-portrait {
  width: clamp(120px, 20vw, 180px);
  height: clamp(120px, 20vw, 180px);
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.hero-portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------- Active Nav State ---------- */
.nav-link.active,
.nav-link[aria-current="page"] {
  color: var(--color-red);
}
