/* ========================================
   IVO KÖHNKOW – Fotografie
   Farbpalette: Schwarz/Dunkelgrau + Porsche-Rot (#E30613) + Gelb (#FFD700)
   ======================================== */

:root {
  --black:    #0a0a0a;
  --dark:     #141414;
  --gray:     #1e1e1e;
  --mid:      #2c2c2c;
  --light:    #888888;
  --white:    #f0f0f0;
  --red:      #E30613;   /* Porsche Rot */
  --yellow:   #FFD700;   /* Porsche Gelb */
  --accent:   var(--red);
  --font-sans: 'Montserrat', sans-serif;
  --font-serif:'Playfair Display', serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-sans);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent); }

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

/* ---- NAV ---- */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: transparent;
  transition: background .4s;
}
#nav.scrolled {
  background: rgba(10,10,10,.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--mid);
}
.nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.4rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .25em;
  color: var(--white);
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.nav-logo span {
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .25em;
  color: var(--white);
}
.nav-logo:hover { color: var(--accent); }
.nav-logo:hover span { color: var(--accent); }

.nav-links {
  list-style: none;
  display: flex;
  gap: 2.5rem;
}
.nav-links a {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--yellow);
}
.nav-links a:hover { color: var(--white); }

.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: 1.5px;
  background: var(--white);
  transition: all .3s;
}

/* ---- HERO ---- */
#hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  background: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Hintergrundbild – wird via JS gesetzt oder bleibt Dunkelgrau */
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('bilder/foto3.jpg') center/cover no-repeat;
  opacity: .45;
  transition: opacity 1s;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10,10,10,.3) 0%, rgba(10,10,10,.7) 100%);
}

.hero-content {
  position: relative;
  text-align: center;
  padding: 2rem;
}
.hero-tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: var(--accent);
  margin-bottom: .75rem;
  letter-spacing: .05em;
}
.hero-name {
  font-size: clamp(2.5rem, 7vw, 6rem);
  font-weight: 700;
  letter-spacing: .1em;
  line-height: 1;
  margin-bottom: .5rem;
}
.hero-sub {
  font-size: clamp(.8rem, 1.5vw, 1rem);
  letter-spacing: .4em;
  text-transform: uppercase;
  color: var(--light);
  margin-bottom: 2.5rem;
}
.btn-hero {
  display: inline-block;
  padding: .8rem 2.5rem;
  border: 1px solid var(--accent);
  color: var(--white);
  font-size: .78rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  transition: background .25s, color .25s;
}
.btn-hero:hover {
  background: var(--accent);
  color: var(--white);
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--light);
  font-size: 1.2rem;
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* ---- SECTIONS ---- */
section { padding: 7rem 2rem; }

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: .05em;
  margin-bottom: .5rem;
}
.section-title::after {
  content: '';
  display: block;
  width: 3rem;
  height: 2px;
  background: var(--accent);
  margin-top: .75rem;
}
.section-sub {
  color: var(--light);
  font-size: .9rem;
  letter-spacing: .1em;
  margin-top: 1.5rem;
  margin-bottom: 3rem;
}

/* ---- FILTER ---- */
.filter-bar {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
.filter-btn {
  background: none;
  border: 1px solid var(--mid);
  color: var(--light);
  padding: .45rem 1.2rem;
  font-family: var(--font-sans);
  font-size: .75rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all .2s;
}
.filter-btn:hover, .filter-btn.active {
  border-color: var(--accent);
  color: var(--white);
  background: var(--accent);
}

/* ---- GRID ---- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1px;
  background: var(--mid);
}
.grid-item {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--gray);
  cursor: pointer;
}
.grid-item img {
  transition: transform .5s ease;
}
.grid-item:hover img {
  transform: scale(1.05);
}
.grid-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10,10,10,.6);
  display: flex;
  align-items: flex-end;
  padding: 1.2rem;
  opacity: 0;
  transition: opacity .3s;
}
.grid-item:hover .grid-overlay { opacity: 1; }
.grid-overlay span {
  font-size: .75rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--white);
}

/* Placeholder wenn keine Bilder */
.portfolio-placeholder {
  display: none;
  text-align: center;
  padding: 4rem 2rem;
  color: var(--light);
}
.portfolio-placeholder p { margin-bottom: 1.5rem; }
.grid:empty + .portfolio-placeholder { display: block; }

.btn-outline {
  display: inline-block;
  padding: .7rem 2rem;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: .78rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  transition: all .25s;
}
.btn-outline:hover { background: var(--accent); color: var(--white); }

/* ---- ABOUT ---- */
#about { background: var(--dark); }

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.about-img {
  aspect-ratio: 3/4;
  background: var(--gray);
  position: relative;
}
.about-img-frame {
  position: absolute;
  inset: 0;
  border: 2px solid var(--accent);
  transform: translate(1rem, 1rem);
  z-index: 0;
}
.about-img img {
  position: relative;
  z-index: 1;
}

.about-text .section-title { margin-bottom: 1.5rem; }
.about-text p {
  color: var(--light);
  margin-bottom: 1.2rem;
  font-size: .95rem;
}
.about-email a {
  color: var(--accent);
  font-size: .9rem;
  letter-spacing: .05em;
}
.about-social {
  margin-top: 1.5rem;
}
.about-social a {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  color: var(--light);
  font-size: .85rem;
  letter-spacing: .08em;
  transition: color .2s;
}
.about-social a:hover { color: var(--white); }

/* ---- CONTACT ---- */
#contact {
  background: var(--black);
  text-align: center;
}
.contact-inner { max-width: 700px; }

.btn-contact {
  display: inline-block;
  margin-top: 2rem;
  padding: 1rem 3rem;
  background: var(--accent);
  color: var(--white);
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  transition: background .25s, transform .2s;
}
.btn-contact:hover {
  background: #b8000f;
  transform: translateY(-2px);
  color: var(--white);
}

.contact-details {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.contact-details a {
  color: var(--light);
  font-size: .9rem;
}
.contact-details a:hover { color: var(--white); }

/* ---- FOOTER ---- */
footer {
  background: var(--dark);
  border-top: 1px solid var(--mid);
  padding: 2rem;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .75rem;
  color: var(--light);
  letter-spacing: .1em;
}
.footer-nav {
  display: flex;
  gap: 1.5rem;
}
.footer-nav a { color: var(--light); }
.footer-nav a:hover { color: var(--white); }

/* ---- LIGHTBOX ---- */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.95);
  z-index: 200;
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  width: auto;
  height: auto;
}
.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .about-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .about-img { max-height: 400px; }
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--black);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 1rem; }
  .nav-toggle { display: flex; }

  .grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}
