/* =============================================
   DESIGN TOKENS
   ============================================= */
:root {
  --bg:          #000000;
  --fg:          #e8e8e8;
  --muted:       rgba(232, 232, 232, 0.55);
  --accent:      #c8a87a;        /* warmes Bernstein */
  --ice:         #5BAFCA;        /* Eisblau aus bg.webp – für Logo und Nav */

  --font-body:    'Nunito', sans-serif;
  --font-display: 'Cinzel', serif;
}

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

html { scroll-behavior: smooth; }

body {
  background-color: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.5;
}

img { max-width: 100%; display: block; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* =============================================
   NAVIGATION
   ============================================= */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.15em;
  color: var(--ice);
  transition: opacity 0.2s;
}

.nav-logo:hover .nav-logo-name {
  opacity: 0.65;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav-links a {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  color: var(--muted);
  text-transform: uppercase;
}

.nav-links a:hover {
  color: var(--fg);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--fg);
  transition: transform 0.25s, opacity 0.25s;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =============================================
   RUBRIK HERO
   ============================================= */
.rubrik-hero {
  position: relative;
  width: 100%;
  min-height: 60vh;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
}

.rubrik-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.75) 100%);
}

.rubrik-hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 3rem 2rem;
  text-align: center;
}

.rubrik-hero-content h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  letter-spacing: 0.1em;
  color: #fff;
  margin-bottom: 1rem;
}

.rubrik-hero-content .rubrik-subtitle {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.rubrik-hero-content p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 1.05rem;
  line-height: 1.5;
  max-width: 50%;
  margin: 0 auto;
}

@media (max-width: 700px) {
  .rubrik-hero-content p {
    max-width: 100%;
  }
}

/* =============================================
   FOTO-GRID
   ============================================= */
.foto-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 4px;
  padding: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.foto-grid img {
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
  cursor: pointer;
  transition: opacity 0.2s;
}

.foto-grid img:hover {
  opacity: 0.85;
}

/* =============================================
   LEGAL PAGES (Impressum, Datenschutz)
   ============================================= */
.legal-page {
  max-width: 700px;
  margin: 0 auto;
  padding: 4rem 2rem 6rem;
}

.legal-page h1 {
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: 0.1em;
  margin-bottom: 3rem;
  color: var(--ice);
}

.legal-page h2 {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.legal-page h3 {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  margin: 1.5rem 0 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.legal-page ul {
  padding-left: 1.5rem;
  color: var(--fg);
  margin: 0.5rem 0;
}

.legal-page ul li {
  margin-bottom: 0.25rem;
}

.legal-page section {
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.legal-page section:last-child {
  border-bottom: none;
}

.legal-page p {
  color: var(--fg);
  line-height: 1.6;
}

/* =============================================
   RUBRIKEN-GRID (Startseite)
   ============================================= */
.rubriken-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
  max-width: 1100px;
  margin: 0 auto 6rem;
  padding: 0 2rem;
}

.rubrik-karte {
  position: relative;
  aspect-ratio: 3/2;
  overflow: hidden;
  border-radius: 0.25rem;
  display: block;
  text-decoration: none;
}

.rubrik-karte img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}

.rubrik-karte:hover img {
  transform: scale(1.06);
}

.rubrik-karte-titel {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 60%);
  padding: 1.25rem 1.5rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  color: #fff;
  text-transform: uppercase;
  transition: color 0.2s;
}

.rubrik-karte:hover .rubrik-karte-titel {
  color: var(--ice);
}

/* =============================================
   ICH-SEITE (Me Myself And I)
   ============================================= */
.ich-page {
  min-height: 100vh;
  background-image: url('/subsrc/bg.webp');
  background-size: cover;
  background-position: center top;
  background-attachment: fixed;
  padding-top: 6vh;
  padding-bottom: 6rem;
}

.ich-title {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 2rem 6rem;
  text-align: center;
}

.ich-title .name {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  letter-spacing: 0.08em;
  color: var(--fg);
  margin-bottom: 0.25rem;
  line-height: 1.1;
}

.ich-title .brand {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2vw, 1.5rem);
  letter-spacing: 0.3em;
  color: var(--ice);
  text-transform: uppercase;
}

.ich-kontakt {
  display: flex;
  align-items: center;
  gap: 3rem;
  max-width: 1100px;
  margin: 0 auto 4rem;
  padding: 0 2rem;
}

.ich-kontakt-img {
  flex: 0 0 35%;
  max-width: 35%;
}

.ich-kontakt-img img {
  width: 100%;
  border-radius: 0.5rem;
  display: block;
}

.ich-kontakt-links {
  flex: 1;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  padding: 2rem 2.5rem;
  border-radius: 0.5rem;
  border-left: 2px solid var(--ice);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ich-kontakt-links a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--fg);
  font-size: 1rem;
  transition: color 0.2s;
}

.ich-kontakt-links a:hover {
  color: var(--ice);
  text-decoration: none;
}

.ich-kontakt-links .kontakt-icon {
  font-size: 1.3rem;
  width: 1.5rem;
  text-align: center;
  flex-shrink: 0;
}

.ich-impressum {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 2rem 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.5;
}

.ich-impressum h3 {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

@media (max-width: 700px) {
  .ich-kontakt {
    flex-direction: column;
  }
  .ich-kontakt-img {
    flex: unset;
    max-width: 100%;
  }
}

.ich-block {
  display: flex;
  align-items: center;
  gap: 3rem;
  max-width: 1100px;
  margin: 0 auto 6rem;
  padding: 0 2rem;
}

.ich-block:nth-child(even) {
  flex-direction: row-reverse;
}

.ich-block-img {
  flex: 0 0 40%;
  max-width: 40%;
}

.ich-block-img img {
  width: 100%;
  border-radius: 0.5rem;
  display: block;
}

.ich-block-text {
  flex: 1;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  padding: 2rem 2.5rem;
  border-radius: 0.5rem;
  border-left: 2px solid var(--ice);
}

.ich-block-text p {
  color: var(--fg);
  font-size: 1.05rem;
  line-height: 1.5;
}

.ich-block-text a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--fg);
  font-size: 1rem;
  margin-bottom: 0.75rem;
  transition: color 0.2s;
}

.ich-block-text a:hover {
  color: var(--ice);
  text-decoration: none;
}

.kontakt-icon {
  font-size: 1.2rem;
  width: 1.5rem;
  text-align: center;
  flex-shrink: 0;
}

@media (max-width: 700px) {
  .ich-block,
  .ich-block:nth-child(even) {
    flex-direction: column;
  }
  .ich-block-img {
    flex: unset;
    max-width: 100%;
  }
}

/* =============================================
   FOOTER
   ============================================= */
footer {
  text-align: center;
  padding: 3rem 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 4rem;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.2em;
  color: var(--muted);
  margin-bottom: 1rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1rem;
  font-size: 0.85rem;
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--muted);
}

/* =============================================
   LIGHTBOX
   ============================================= */
#lightbox {
  border: none;
  background: rgba(0, 0, 0, 0.95);
  padding: 0;
  max-width: 100vw;
  max-height: 100vh;
  width: 100vw;
  height: 100vh;
}

#lightbox[open] {
  display: flex;
  align-items: center;
  justify-content: center;
}

#lightbox::backdrop {
  background: rgba(0, 0, 0, 0.85);
}

.lb-img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  display: block;
  user-select: none;
}

.lb-close,
.lb-prev,
.lb-next {
  position: fixed;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
  z-index: 10;
}

.lb-close:hover,
.lb-prev:hover,
.lb-next:hover {
  color: #fff;
}

.lb-close {
  top: 1.5rem;
  right: 1.5rem;
  font-size: 1.5rem;
}

.lb-prev {
  left: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 3rem;
}

.lb-next {
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 3rem;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 600px) {
  .foto-grid {
    grid-template-columns: 1fr;
    padding: 1rem;
    gap: 2px;
  }

  .nav-toggle { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(0, 0, 0, 0.95);
    border-top: 1px solid rgba(255,255,255,0.08);
  }

  .nav-links.open { display: flex; }

  .nav-links li { border-bottom: 1px solid rgba(255,255,255,0.06); }

  .nav-links a {
    display: block;
    padding: 1rem 2rem;
    font-size: 0.9rem;
  }
}
