/* ── Layout ── */

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 40px);
}

section {
  padding: var(--space-section) 0;
}

.section-header {
  margin-bottom: var(--space-2xl);
}

.section-title {
  font-size: var(--text-2xl);
  color: var(--rot);
  margin-bottom: var(--space-sm);
}

.section-sub {
  font-size: var(--text-base);
  color: var(--text-hell);
}

.divider {
  width: 50px;
  height: 3px;
  background: var(--tuerkis);
  margin: var(--space-md) 0;
}

/* ── Navigation ── */

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--rot);
  height: var(--nav-height);
  transition: box-shadow var(--transition);
}
nav.scrolled {
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.2);
}

.nav-inner {
  max-width: var(--max-width);
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 clamp(16px, 4vw, 40px);
}

.nav-logo {
  color: #fff;
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-style: italic;
  letter-spacing: 0.5px;
}
.nav-logo span {
  color: var(--tuerkis);
}

.nav-links {
  display: flex;
  gap: var(--space-lg);
}
.nav-links a {
  color: rgba(255, 255, 255, 0.85);
  font-size: var(--text-sm);
  letter-spacing: 0.3px;
  transition: color var(--transition);
  position: relative;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--tuerkis);
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--tuerkis);
  transition: width var(--transition);
}
.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* Burger menu */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.nav-burger span {
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.nav-burger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav-burger.open span:nth-child(2) {
  opacity: 0;
}
.nav-burger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile drawer */
.mobile-drawer {
  position: fixed;
  top: var(--nav-height);
  right: -300px;
  width: 280px;
  height: calc(100vh - var(--nav-height));
  background: var(--rot-dark);
  z-index: 99;
  transition: right 0.3s ease;
  padding: var(--space-lg);
  overflow-y: auto;
}
.mobile-drawer.open {
  right: 0;
}
.mobile-drawer a {
  display: block;
  color: rgba(255, 255, 255, 0.85);
  padding: var(--space-md) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: var(--text-base);
  transition: color var(--transition);
}
.mobile-drawer a:hover {
  color: var(--tuerkis);
}
.mobile-drawer a:last-child {
  border-bottom: none;
}

.drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  top: var(--nav-height);
  background: rgba(0, 0, 0, 0.4);
  z-index: 98;
}
.drawer-overlay.open {
  display: block;
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
}

/* ── Footer ── */

footer {
  background: #1a0808;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
  padding: var(--space-2xl) var(--space-md);
  font-size: var(--text-sm);
}
footer span {
  color: var(--tuerkis);
}
footer a {
  color: var(--tuerkis);
  transition: opacity var(--transition);
}
footer a:hover {
  opacity: 0.8;
}

/* Scroll-to-top */
.scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  background: var(--tuerkis);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition);
  z-index: 50;
  border: none;
  color: #fff;
  box-shadow: var(--shadow);
}
.scroll-top svg {
  width: 20px;
  height: 20px;
}
.scroll-top.visible {
  opacity: 1;
  pointer-events: auto;
}
.scroll-top:hover {
  transform: translateY(-2px);
}

/* Admin FAB */
.admin-fab {
  position: fixed;
  bottom: 5rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  background: var(--rot);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 50;
  border: none;
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: background var(--transition), transform var(--transition);
}
.admin-fab svg {
  width: 20px;
  height: 20px;
}
.admin-fab:hover {
  background: var(--rot-dark);
  transform: scale(1.05);
}
.admin-fab.active {
  background: var(--tuerkis);
}
