:root {
  --accent:#00bcd4;
  --accent-dark:#0097a7;
  --bg-dark:#121212;
  --bg-light:#f7f7f7;
  --text-dark:#eee;
  --text-light:#111;
  --max-width:1200px;
}

html { scroll-behavior:smooth; }
body {
  margin:0;
  font-family:Inter,Arial,sans-serif;
  background:var(--bg-dark);
  color:var(--text-dark);
  transition:background .3s,color .3s;
}

body.light-mode {
  background:var(--bg-light);
  color:var(--text-light);
}

/* HEADER */
header {
  position:sticky; top:0; z-index:100;
  display:flex; align-items:center; justify-content:space-between;
  padding:0.75rem 1.25rem;
  background:inherit;
  box-shadow:0 2px 8px rgba(0,0,0,0.08);
}

.logo { height:70px; }

/* NAVIGATION */
nav {
  display:flex;
  gap:1.2rem;
}

nav a {
  color:var(--accent);
  font-weight:600;
  text-decoration:none;
  transition:.2s;
}
nav a:hover { color:var(--accent-dark); }

.hamburger {
  display:none;
  background:none;
  border:none;
  font-size:2rem;
  color:var(--accent);
  cursor:pointer;
}

/* MOBILE NAV */
@media(max-width:800px){
  nav {
    display:none;
    flex-direction:column;
    position:absolute; top:80px; left:0; right:0;
    padding:1rem;
    background:inherit;
    box-shadow:0 10px 25px rgba(0,0,0,0.15);
  }
  nav.show { display:flex; }
  .hamburger { display:block; }
}

/* HEADER BUTTONS */
.header-right {
  display:flex; gap:.6rem;
}
.btn {
  background:var(--accent);
  border:none;
  color:#fff;
  padding:.55rem .9rem;
  border-radius:8px;
  cursor:pointer;
  font-size:.9rem;
}
.btn:hover { background:var(--accent-dark); }

.btn.ghost {
  background:transparent;
  color:var(--accent);
  border:1px solid var(--accent);
}
.btn.ghost:hover { background:rgba(0,188,212,.15); }

.small { font-size:.82rem; padding:.45rem .75rem; }

.heart-icon {
  font-size:1.2rem;
  border:none !important;
  background:transparent !important;
  color:var(--accent) !important;
  padding:.2rem .4rem;
}

/* HERO */
.hero {
  text-align:center;
  padding:3rem 1rem;
  border-bottom:4px solid var(--accent);
}
.hero h1 {
  font-size:2.4rem;
  color:var(--accent);
}

/* SECTIONS */
.section {
  padding:2.5rem 1rem;
}
.container {
  max-width:var(--max-width);
  margin:0 auto;
}

/* INPUTS & SELECT */
input, select {
  padding:.55rem .8rem;
  border:1px solid #aaa;
  border-radius:6px;
  font-size:.9rem;
  background:transparent;
  color:inherit;
}
body.dark-mode input,body.dark-mode select {
  background:#1f1f1f;
  border-color:#555;
  color:#fff;
}

/* GALLERY GRID */
.gallery-grid {
  display:grid;
  gap:2rem;
  justify-content:center;
  margin-top:2rem;
}
.grid-view { grid-template-columns:repeat(auto-fit,minmax(280px,1fr)); }
.featured-view { grid-template-columns:1fr; }

/* CARDS */
.card {
  position:relative;
  padding:1rem;
  border-radius:12px;
  background:inherit;
  border:1px solid rgba(255,255,255,0.05);
  transition:.2s;
}
.card:hover {
  transform:translateY(-4px);
  box-shadow:0 8px 24px rgba(0,0,0,.15);
}

.thumb {
  width:100%;
  border-radius:6px;
  object-fit:cover;
  aspect-ratio:16/9;
}

/* FAVORITE HEART ON CARDS */
.card .heart-btn {
  position:absolute;
  top:14px; right:14px;
  background:transparent;
  border:none;
  font-size:1.6rem;
  cursor:pointer;
  color:var(--accent);
}
.card .heart-btn:hover { transform:scale(1.15); }

/* FAVORITES SIDEBAR */
#favoritesOverlay {
  position:fixed;
  top:0; right:0;
  width:300px;
  height:100vh;
  padding:1rem;
  background:inherit;
  border-left:1px solid rgba(255,255,255,.1);
  transform:translateX(110%);
  transition:.3s;
  z-index:200;
}
#favoritesOverlay.show {
  transform:translateX(0);
}
.fav-item {
  display:flex;
  gap:.5rem;
  padding:.5rem;
  border-bottom:1px solid rgba(255,255,255,.1);
}

footer {
  text-align:center;
  padding:2rem 0;
  opacity:.8;
}
.controls {
  gap:1rem;
  flex-wrap:wrap;
  justify-content:center;
}

.view-buttons-group button {
  min-width:120px;
}
#mainNav a {
  margin-left: 14px; /* Abstand nach rechts pro Link */
}
