@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,700;1,400;1,500&family=Lato:wght@300;400;700&display=swap');

:root {
  --gold: #C9A84C;
  --gold-light: #e8d5a3;
  --gold-dark: #a88630;
  --black: #1a1a1a;
  --white: #ffffff;
  --cream: #faf8f4;
  --gray-light: #f0ede8;
  --gray-mid: #9e9e9e;
  --text: #2c2c2c;
}

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

body {
  font-family: 'Lato', sans-serif;
  background: var(--white);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── HEADER ── */
header {
  background: var(--black);
  color: var(--white);
  text-align: center;
  padding: 2.5rem 1rem 1.8rem;
}

.site-title {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  letter-spacing: 0.12em;
  color: var(--gold);
  font-weight: 400;
}

.site-subtitle {
  font-size: 0.78rem;
  letter-spacing: 0.35em;
  color: var(--gray-mid);
  text-transform: uppercase;
  margin-top: 0.4rem;
}

.gold-line {
  width: 55px;
  height: 1px;
  background: var(--gold);
  margin: 1rem auto 0;
}

/* ── NAV ── */
nav {
  background: #111;
  border-top: 1px solid rgba(201,168,76,0.25);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  padding: 0 1rem;
}

.nav-links {
  display: flex;
  list-style: none;
  flex-wrap: wrap;
  justify-content: center;
  flex: 1;
}

.nav-links a {
  display: block;
  color: #ccc;
  text-decoration: none;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.95rem 0.8rem;
  border-bottom: 2px solid transparent;
  transition: color 0.25s, border-color 0.25s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 1rem 0 1rem 1rem;
  margin-left: auto;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
}

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

.page-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.9rem;
  font-weight: 400;
  color: var(--black);
  text-align: center;
  margin-bottom: 0.6rem;
}

.page-title-line {
  width: 45px;
  height: 1px;
  background: var(--gold);
  margin: 0 auto 2.8rem;
}

.page-intro {
  text-align: center;
  font-size: 0.95rem;
  color: var(--gray-mid);
  margin-bottom: 2.5rem;
  line-height: 1.9;
  font-style: italic;
  font-family: 'Playfair Display', serif;
}

/* ── HOME ── */
.home-content {
  text-align: center;
  padding: 1rem 0 3rem;
}

.home-ornament {
  font-family: 'Playfair Display', serif;
  font-size: 0.85rem;
  color: var(--gold);
  letter-spacing: 0.35em;
  text-transform: uppercase;
  margin-bottom: 2.5rem;
}

.portrait-container {
  display: flex;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.portrait-placeholder {
  width: 260px;
  height: 320px;
  border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
  min-height: unset !important;
  padding: 2rem;
}

.portrait-img {
  width: 260px;
  height: 320px;
  object-fit: cover;
  border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
  border: 3px solid var(--gold-light);
  display: block;
}

.home-title {
  font-family: 'Playfair Display', serif;
  font-size: 3.8rem;
  font-weight: 600;
  font-style: italic;
  color: var(--black);
  letter-spacing: 0.08em;
  line-height: 1.1;
  margin-bottom: 0.4rem;
}

.home-fullname {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 600;
  font-style: normal;
  color: #777;
  letter-spacing: 0.08em;
  margin-bottom: 0.6rem;
}

.home-years {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  color: var(--gold);
  letter-spacing: 0.2em;
  margin-bottom: 2.2rem;
}

.home-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  margin: 0 auto 2rem;
  max-width: 380px;
}

.home-divider::before,
.home-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--gold);
  opacity: 0.5;
}

.home-divider-icon { color: var(--gold); font-size: 1rem; }

.home-quote {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.5rem;
  font-weight: 600;
  color: #777;
  max-width: 560px;
  margin: 0 auto 3.5rem;
  line-height: 1.7;
}

.nav-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: 700px;
  margin: 0 auto;
}

.nav-card {
  display: block;
  background: var(--black);
  color: var(--gold);
  text-decoration: none;
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 1rem 0.8rem;
  border: 1px solid rgba(201,168,76,0.3);
  text-align: center;
  transition: background 0.25s, color 0.25s;
}

.nav-card:hover {
  background: var(--gold);
  color: var(--black);
}

/* ── PAGE IMAGES ── */
.page-img {
  width: auto;
  max-width: 100%;
  max-height: 480px;
  height: auto;
  display: block;
  margin: 0 auto;
  object-fit: contain;
}

.img-grid.grid-1 .page-img {
  max-width: 620px;
}

.page-img-doc {
  width: auto;
  max-width: 100%;
  max-height: 780px;
  height: auto;
  display: block;
  margin: 0 auto;
  object-fit: contain;
}

/* ── IMAGE PLACEHOLDERS ── */
.img-placeholder {
  background: var(--gray-light);
  border: 2px dashed var(--gold-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  min-height: 380px;
  transition: border-color 0.25s, background 0.25s;
}

.img-placeholder:hover {
  border-color: var(--gold);
  background: #e9e5dc;
}

.placeholder-icon {
  margin-bottom: 1.1rem;
  opacity: 0.55;
}

.placeholder-icon svg {
  width: 44px;
  height: 44px;
  color: var(--gold);
}

.placeholder-label {
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 0.4rem;
}

.placeholder-hint {
  font-size: 0.85rem;
  color: var(--gray-mid);
  font-style: italic;
}

/* ── IMAGE GRIDS ── */
.img-grid { display: grid; gap: 1.5rem; }
.grid-1   { grid-template-columns: 1fr; }
.grid-2   { grid-template-columns: 1fr 1fr; }
.grid-3   { grid-template-columns: 1fr 1fr 1fr; }
.taz-grid { grid-template-columns: 3fr 2fr; align-items: start; }
.taz-small { max-height: 520px !important; }
.msg-grid { grid-template-columns: 2fr 1.5fr; align-items: start; }

.img-caption {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gray-mid);
  font-style: italic;
  text-align: center;
  margin-top: 0.6rem;
  line-height: 1.5;
}

/* ── YEAR SECTIONS ── */
.year-section { margin-bottom: 3.5rem; }

.year-heading {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  color: var(--gold);
  border-bottom: 1px solid var(--gold-light);
  padding-bottom: 0.6rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.year-heading::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  border: 1.5px solid var(--gold);
  transform: rotate(45deg);
  flex-shrink: 0;
}

.add-note {
  text-align: center;
  padding: 2rem;
  border: 1px dashed var(--gold-light);
  color: var(--gray-mid);
  font-style: italic;
  font-size: 0.9rem;
}

/* ── LINKS PAGE ── */
.links-section-heading {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  color: var(--gold);
  border-bottom: 1px solid var(--gold-light);
  padding-bottom: 0.6rem;
  margin-bottom: 1.5rem;
  margin-top: 2.5rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.links-section-heading::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  border: 1.5px solid var(--gold);
  transform: rotate(45deg);
  flex-shrink: 0;
}

.link-placeholder {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.1rem 1.5rem;
  border: 1px dashed var(--gold-light);
  margin-bottom: 0.9rem;
  background: var(--cream);
}

.link-ph-icon {
  color: var(--gold);
  opacity: 0.5;
  flex-shrink: 0;
}

.link-ph-icon svg { width: 22px; height: 22px; }

.link-ph-title {
  font-family: 'Playfair Display', serif;
  font-size: 0.95rem;
  color: var(--black);
  margin-bottom: 0.15rem;
}

.link-ph-url {
  font-size: 0.8rem;
  color: var(--gray-mid);
  font-style: italic;
}

.pdf-container {
  border: 1px solid var(--gold-light);
  background: var(--gray-light);
}

.pdf-fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  min-height: 300px;
  text-align: center;
}

/* ── GUESTBOOK ── */
.guestbook-form {
  background: var(--cream);
  border: 1px solid var(--gold-light);
  padding: 2.2rem;
  margin-bottom: 3rem;
}

.guestbook-form h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  color: var(--black);
  margin-bottom: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group { margin-bottom: 1.2rem; }

.form-group label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--black);
  margin-bottom: 0.45rem;
  font-weight: 700;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #d4cfc7;
  background: var(--white);
  font-family: 'Lato', sans-serif;
  font-size: 0.95rem;
  color: var(--text);
  outline: none;
  transition: border-color 0.25s;
  border-radius: 0;
  -webkit-appearance: none;
}

.form-group input:focus,
.form-group textarea:focus { border-color: var(--gold); }

.form-group textarea { min-height: 120px; resize: vertical; }

.btn-submit {
  background: var(--black);
  color: var(--gold);
  border: none;
  padding: 0.85rem 2.5rem;
  font-family: 'Lato', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.25s, color 0.25s;
}

.btn-submit:hover { background: var(--gold); color: var(--black); }

.entries-section h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  color: var(--black);
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--gold-light);
}

.entry-card {
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-left: 3px solid var(--gold);
  padding: 1.4rem 1.5rem;
  margin-bottom: 1rem;
}

.entry-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.6rem;
}

.entry-name {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  color: var(--black);
}

.entry-date { font-size: 0.78rem; color: var(--gray-mid); }

.entry-message {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text);
  font-style: italic;
}

.no-entries {
  text-align: center;
  color: var(--gray-mid);
  font-style: italic;
  padding: 2rem;
  border: 1px dashed var(--gold-light);
}

/* ── IMPRESSUM ── */
.impressum-content {
  max-width: 680px;
  margin: 0 auto;
}

.impressum-heading {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--gold);
  border-bottom: 1px solid var(--gold-light);
  padding-bottom: 0.4rem;
  margin: 2rem 0 0.8rem;
}

.impressum-text {
  font-size: 0.92rem;
  line-height: 1.85;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.impressum-link {
  color: var(--gold);
  text-decoration: none;
}

.impressum-link:hover {
  text-decoration: underline;
}

/* ── FOOTER ── */
footer {
  background: var(--black);
  color: var(--gray-mid);
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
}

.footer-cross { color: var(--gold); font-size: 1.3rem; display: block; margin-bottom: 0.4rem; }
.footer-name  { font-family: 'Playfair Display', serif; color: var(--gold); font-size: 1rem; margin-bottom: 0.35rem; }
footer p      { font-style: italic; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .site-title { font-size: 1.6rem; }
  .home-title { font-size: 2.8rem; }
  .portrait-placeholder { width: 200px !important; height: 250px !important; }
  .hamburger { display: flex; }
  .nav-links { display: none; flex-direction: column; width: 100%; padding: 0.5rem 0 0.8rem; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.7rem 1.5rem; border-bottom: 1px solid rgba(255,255,255,0.06); }
  .nav-cards { grid-template-columns: 1fr 1fr; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  main { padding: 2rem 1rem 3rem; }
}

@media (max-width: 480px) {
  .nav-cards { grid-template-columns: 1fr; }
  .home-title { font-size: 2.3rem; }
}
