/* ══════════════════════════════════════════════
   FPS Campus — Core Styles
   Shared across all pages: Variables, Reset,
   Nav, Mobile Menu, Footer, Accessibility
   ══════════════════════════════════════════════ */

/* ========== DESIGN TOKENS ========== */
:root {
  --warm-cream: #F5F0EA;
  --sand: #E8E0D4;
  --deep-brown: #2C2420;
  --medium-brown: #5C4A3A;
  --accent-olive: #6B7B4C;
  --accent-olive-light: #8A9E64;
  --soft-white: #FDFBF8;
  --warm-gray: #9C9084;
  --highlight: #D4A86C;
  --light-sage: #E8EDDE;
}

/* ========== RESET ========== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  overscroll-behavior-y: none;
}
body {
  font-family: 'DM Sans', sans-serif;
  color: var(--deep-brown);
  background: var(--soft-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  overscroll-behavior-y: none;
}

/* ========== GRAIN OVERLAY ========== */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px;
}

/* ========== SCROLL PROGRESS ========== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-olive), var(--highlight));
  z-index: 1000;
  width: 0%;
  transition: width 0.12s ease-out;
  will-change: width;
}

/* ========== NAV ========== */
.nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  padding: 1.1rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(253,251,248,0.85);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid rgba(0,0,0,0.04);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav.scrolled {
  padding: 0.7rem 3rem;
  box-shadow: 0 4px 30px rgba(44,36,32,0.06);
}
.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.nav-logo img {
  height: 40px;
  width: auto;
  display: block;
}
.nav-logo-text {
  font-family: 'DM Serif Display', serif;
  font-size: 1.35rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--deep-brown);
}
.nav-logo-text span { color: var(--accent-olive); }
.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links a {
  text-decoration: none;
  color: var(--medium-brown);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.3s;
  position: relative;
}
.nav-links a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--accent-olive);
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-links a:not(.nav-cta):hover::after { width: 100%; }
.nav-links a:hover { color: var(--accent-olive); }
.nav-cta {
  background: var(--deep-brown) !important;
  color: var(--soft-white) !important;
  padding: 0.55rem 1.4rem !important;
  border-radius: 100px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
  letter-spacing: 0.08em !important;
}
.nav-cta:hover {
  background: var(--accent-olive) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(107,123,76,0.25);
}

/* ========== MOBILE MENU ========== */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  z-index: 110;
  background: none;
  border: none;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--deep-brown);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: center;
}
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(253,251,248,0.98);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.mobile-menu.open { display: flex; opacity: 1; }
.mobile-menu a {
  text-decoration: none;
  color: var(--deep-brown);
  font-family: 'DM Serif Display', serif;
  font-size: 1.6rem;
  transition: color 0.3s;
}
.mobile-menu a:hover { color: var(--accent-olive); }

/* ========== FOOTER ========== */
.footer {
  padding: 4.5rem 3rem 3rem;
  border-top: 1px solid rgba(0,0,0,0.06);
  background: var(--soft-white);
}
.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 3rem;
}
.footer-col {}
.footer-logo { text-decoration: none; display: inline-block; margin-bottom: 1rem; }
.footer-logo img { height: 32px; width: auto; }
.footer-tagline {
  font-size: 0.88rem;
  color: var(--medium-brown);
  line-height: 1.7;
  font-weight: 300;
  margin-bottom: 1.2rem;
}
.footer-group {
  font-size: 0.78rem;
  color: var(--warm-gray);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: color 0.3s;
}
a.footer-group:hover { color: var(--accent-olive); }
.footer-col-title {
  font-family: 'DM Serif Display', serif;
  font-size: 1rem;
  font-weight: 400;
  color: var(--deep-brown);
  margin-bottom: 1.2rem;
}
.footer-nav { list-style: none; display: flex; flex-direction: column; gap: 0.7rem; }
.footer-nav a {
  font-size: 0.82rem;
  color: var(--medium-brown);
  text-decoration: none;
  transition: color 0.3s;
  font-weight: 400;
}
.footer-nav a:hover { color: var(--accent-olive); }
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 0.8rem;
  font-size: 0.82rem;
  color: var(--medium-brown);
  line-height: 1.6;
}
.footer-contact-item svg {
  width: 16px;
  height: 16px;
  color: var(--accent-olive);
  flex-shrink: 0;
  margin-top: 0.15rem;
}
.footer-contact-item a {
  color: var(--medium-brown);
  text-decoration: none;
  transition: color 0.3s;
}
.footer-contact-item a:hover { color: var(--accent-olive); }
.footer-bottom {
  max-width: 1200px;
  margin: 2.5rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(0,0,0,0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-bottom-text {
  font-size: 0.72rem;
  color: var(--warm-gray);
  letter-spacing: 0.04em;
}
.footer-bottom-links { display: flex; gap: 2rem; }
.footer-bottom-links a {
  font-size: 0.72rem;
  color: var(--warm-gray);
  text-decoration: none;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.3s;
}
.footer-bottom-links a:hover { color: var(--accent-olive); }
.footer-social { display: flex; gap: 1rem; align-items: center; }
.footer-social a { display: flex; align-items: center; color: var(--warm-gray); transition: color 0.3s; }
.footer-social a:hover { color: var(--accent-olive); }
.footer-social svg { width: 18px; height: 18px; }

/* ========== ACCESSIBILITY ========== */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background: var(--accent-olive);
  color: #fff;
  padding: 0.75rem 1.5rem;
  z-index: 10000;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 0.5rem 0;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 0;
}

:focus-visible {
  outline: 2px solid var(--accent-olive);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ========== CUSTOM CURSOR (alle Seiten) ========== */
.cursor {
  position: fixed;
  width: 8px;
  height: 8px;
  background: var(--accent-olive);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10001;
  transform: translate(-50%, -50%);
  transition: width 0.2s ease, height 0.2s ease, opacity 0.3s ease;
  mix-blend-mode: multiply;
  will-change: left, top;
}
.cursor-ring {
  position: fixed;
  width: 40px;
  height: 40px;
  border: 1.5px solid rgba(107,123,76,0.38);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  transition: width 0.55s cubic-bezier(0.16,1,0.3,1), height 0.55s cubic-bezier(0.16,1,0.3,1), border-color 0.3s ease;
  will-change: left, top;
}
.cursor-ring.hovered { width: 64px; height: 64px; border-color: rgba(107,123,76,0.55); }
.cursor-ring.clicking { width: 28px; height: 28px; border-color: var(--accent-olive); }
@media (hover: none), (pointer: coarse) { .cursor, .cursor-ring { display: none; } }
