/* ========== Basis ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: serif;
  background: #111;
  color: #ffaa00;
  line-height: 1.6;
}

/* ========== Navigation ========== */
.header {
  background: #000;
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
}
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: auto;
}
.logo {
  font-size: 1.8rem;
  font-weight: bold;
}
.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s;
}
.nav-links a:hover {
  color: #fff;
}

/* ========== Hero-Bereich ========== */
.hero {
  height: 90vh;
  background: url("/assets/armin6.jpg") center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}
.hero-content {
  position: relative;
  z-index: 1;
  color: #fff;
  padding: 2rem;
}
.btn {
  display: inline-block;
  margin-top: 2rem;
  padding: 1rem 2rem;
  background: #ffcc33;
  color: #000;
  font-weight: bold;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.3s;
  scroll-behavior: smooth;
}
.btn:hover {
  background: #ffaa00;
}

/* ========== Galerie ========== */
.preview {
  padding: 4rem 2rem;
  text-align: center;
  background: #1a1a1a;
}
.preview h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
}
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 1400px;
  margin: 0 auto;
  justify-items: center;
}
.gallery-item {
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  background: none;
  display: inline-block;
  position: relative;
}
.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s;
}
.gallery-item img:hover {
  transform: scale(1.03);
  z-index: 2;
}
.caption {
  position: absolute;
  top: 20px;
  left: 5px;
  right: 5px;
  text-align: center;
  font-size: 1rem;
  color: #ccc;
  background: rgba(0, 0, 0, 0.5);
  padding: 0.5rem;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  border-radius: 10px 10px 10px 10px;
}
.gallery-item:hover .caption,
.gallery-item img:hover + .caption {
  opacity: 1;
}
.stacked {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* ========== Lightbox ========== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  z-index: 2000;
}
.lightbox.show {
  display: flex;
}
.lightbox img {
  max-width: 90vw;
  max-height: 80vh;
  border-radius: 8px;
}
.lightbox p {
  margin-top: 1rem;
  font-size: 1.2rem;
  color: #fff;
  text-align: center;
}

/* ========== Responsive ========== */
@media (max-width: 600px) {
  .caption {
    font-size: 0.9rem;
  }
}
/* ---------- kleine Held-Sektion fr Unterseiten ---------- */
.herosmall{
  height:55vh;
  background-position:center 25%;
}
.page-title{
  font-size:3rem;letter-spacing:1px;
  text-shadow:0 4px 12px rgba(0,0,0,.55)
}
@media(max-width:600px){
  .page-title{font-size:2.2rem}
}

/* ---------- Portfolio: Intro-Absatz ---------- */
.intro{max-width:700px;margin:0 auto 2.5rem auto;color:#bbb}

/* ---------- Kontaktformular ---------- */
.contact-wrapper{display:flex;justify-content:center;background:#111;padding:4rem 1rem}
.contact-card{
  width:100%;max-width:560px;background:#181818;border-radius:12px;
  box-shadow:0 8px 20px rgba(0,0,0,.5);padding:2.5rem 2rem;
  display:flex;flex-direction:column;gap:1.4rem;animation:fade .8s ease-out
}
.contact-card h2{margin-bottom:.5rem}
.contact-card label{display:flex;flex-direction:column;font-size:.9rem;gap:.4rem}
.contact-card input,
.contact-card textarea{
  padding:.8rem 1rem;border:none;border-radius:6px;font:inherit;color:#000
}
.contact-card.sent{opacity:.4;pointer-events:none}

/* ---------- Timeline (ber mich) ---------- */
.bio-wrapper{padding:4rem 1rem;background:#111}
.timeline{list-style:none;margin:auto;max-width:700px;position:relative;padding-left:1.5rem}
.timeline::before{
  content:"";position:absolute;left:14px;top:0;bottom:0;width:4px;background:#444
}
.timeline li{margin-bottom:2.5rem;position:relative}
.tl-dot{
  position:absolute;left:-2px;top:.25rem;width:18px;height:18px;
  border-radius:50%;background:#ffb347;box-shadow:0 0 8px #ffb347aa
}
.tl-content{background:#1a1a1a;border-radius:8px;padding:1rem 1.4rem;
            box-shadow:0 4px 12px rgba(0,0,0,.45)}
.tl-content h3{margin-bottom:.6rem}

/* ---------- Navigation: aktive Seite ---------- */
.nav-links a.active{color:#ffcc33;font-weight:600}

/* ---------- Button smooth-scroll ---------- */
html{scroll-behavior:smooth}

/* JS-Scroll-Target */
#gallery{scroll-margin-top:90px}

