/* ============================================================
   Immobilien Akademie Bonn e.V. — Style Guide Implementation
   ============================================================ */

:root {
  --green: #50AF00;
  --green-dark: #006400;
  --black: #1a1a1a;
  --white: #FFFFFF;
  --gray-light: #F2F2F2;
  --gray-border: #E0E0E0;
  --magenta: #BE006E;
}

/* ── Reset & Base ── */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Garamond', 'Georgia', serif;
  color: var(--black);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a {
  color: inherit;
  text-decoration: none;
}

ul { list-style: none; }

/* ── Typography ── */

h1, h2, h3 {
  font-family: 'Arial Black', 'Arial', sans-serif;
  text-transform: uppercase;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 0.02em;
}

h1 { font-size: clamp(2.4rem, 6vw, 4.5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); color: var(--black); }
h3 { font-size: clamp(1.1rem, 2vw, 1.5rem); }

p {
  font-size: clamp(1rem, 1.1vw, 1.2rem);
  max-width: 680px;
}

/* ── Buttons ── */

.btn {
  display: inline-block;
  padding: 16px 40px;
  font-family: 'Arial Black', 'Arial', sans-serif;
  font-weight: 900;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn-green {
  background: var(--green);
  color: var(--black);
}

.btn-green:hover {
  background: var(--green-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(76, 212, 40, 0.35);
}

.btn-magenta {
  background: var(--magenta);
  color: var(--white);
}

.btn-magenta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(230, 0, 126, 0.35);
}

/* ── Container ── */

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Navigation ── */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(76, 212, 40, 0.15);
  transition: background 0.3s;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
}

.nav-brand svg {
  width: 36px;
  height: 36px;
  color: var(--green);
}

.nav-logo-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  cursor: pointer;
  transition: transform .3s;
}
.nav-logo-img:hover {
  animation: alpaka-flip .6s ease;
}

.nav-brand span {
  font-family: 'Arial Black', 'Arial', sans-serif;
  font-weight: 900;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-family: 'Arial Black', 'Arial', sans-serif;
  font-weight: 900;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--white);
  position: relative;
  transition: color 0.2s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--green);
  transition: width 0.3s;
}

.nav-links a:hover {
  color: var(--green);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links .btn {
  padding: 10px 24px;
  font-size: 0.75rem;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--white);
  transition: transform 0.3s, opacity 0.3s;
}

/* ── HERO ── */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--black);
  overflow: hidden;
  padding: 100px 24px 60px;
}

.hero-watermark {
  position: absolute;
  right: -2%;
  bottom: -2%;
  width: 55%;
  max-width: 500px;
  opacity: 0.08;
  pointer-events: none;
  filter: brightness(0) invert(1);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 32px;
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  letter-spacing: 0.06em;
}

.hero h1 .dot {
  color: var(--green);
}

.hero-subtitle {
  color: rgba(255, 255, 255, 0.75);
  font-size: clamp(1.05rem, 1.4vw, 1.3rem);
  line-height: 1.7;
  max-width: 700px;
  margin: 0 auto 48px;
}

.hero .btn {
  font-size: 1.05rem;
  padding: 18px 52px;
}

/* ── AL-PA-KA ── */

.alpaka {
  padding: 120px 0;
  background: var(--white);
}

.alpaka .section-header {
  text-align: center;
  margin-bottom: 72px;
}

.alpaka .section-header h2 {
  margin-bottom: 16px;
}

.alpaka-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}

.alpaka-card {
  text-align: center;
  padding: 48px 32px;
  border: 1px solid var(--gray-light);
  border-radius: 8px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.alpaka-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

.alpaka-letter {
  font-family: 'Arial Black', 'Arial', sans-serif;
  font-weight: 900;
  font-size: clamp(3rem, 5vw, 4.5rem);
  color: var(--green);
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: 8px;
}

.alpaka-card h3 {
  margin-bottom: 16px;
  font-size: 1.1rem;
}

.alpaka-card p {
  margin: 0 auto;
  color: #444;
  font-size: 1.05rem;
}

/* ── EVENT ── */

.event {
  padding: 120px 0;
  background: var(--white);
  color: var(--black);
  border-top: 1px solid var(--gray-border);
  border-bottom: 1px solid var(--gray-border);
}

.event h2 {
  color: var(--white);
  text-align: center;
  margin-bottom: 12px;
  font-size: clamp(2rem, 4.5vw, 3.5rem);
}

.event-date {
  text-align: center;
  color: var(--green);
  font-family: 'Arial Black', 'Arial', sans-serif;
  font-weight: 900;
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.event-location {
  text-align: center;
  color: rgba(0, 0, 0, 0.5);
  font-size: 1.1rem;
  margin-bottom: 64px;
}

/* Timetable */

.timetable {
  max-width: 920px;
  margin: 0 auto;
}

.tt-block {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 0;
  border-bottom: 1px solid var(--gray-border);
  padding: 20px 0;
  align-items: start;
}

.tt-time {
  font-family: 'Arial Black', 'Arial', sans-serif;
  font-weight: 900;
  font-size: 0.9rem;
  color: var(--green-dark);
  letter-spacing: 0.04em;
  padding-top: 2px;
}

.tt-content h3 {
  font-size: 1rem;
  margin-bottom: 4px;
  color: var(--black);
}

.tt-content p {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.95rem;
  line-height: 1.5;
}

.tt-content .tt-tag {
  display: inline-block;
  font-family: 'Arial Black', 'Arial', sans-serif;
  font-weight: 900;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 3px 10px;
  border-radius: 3px;
  margin-bottom: 6px;
}

.tt-tag--analyse { background: var(--green); color: var(--black); }
.tt-tag--value { background: var(--magenta); color: var(--white); }
.tt-tag--strategie { background: var(--white); color: var(--black); }
.tt-tag--workshop { background: rgba(255,255,255,0.15); color: var(--white); }
.tt-tag--pause { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.5); }

.tt-parallel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 4px;
}

.tt-parallel-item {
  background: var(--gray-light);
  border: 1px solid var(--gray-border);
  border-radius: 6px;
  padding: 16px;
}

.tt-parallel-item h4 {
  font-family: 'Arial Black', 'Arial', sans-serif;
  font-weight: 900;
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 4px;
}

.tt-parallel-item p {
  font-size: 0.9rem;
  color: rgba(0, 0, 0, 0.5);
}

.event-cta {
  text-align: center;
  margin-top: 64px;
}

/* ── SPEAKER ── */

.speaker {
  padding: 120px 0;
  background: var(--white);
}

.speaker h2 {
  text-align: center;
  margin-bottom: 64px;
}

.speaker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 32px;
  max-width: 1000px;
  margin: 0 auto;
}

.speaker-card {
  text-align: center;
  padding: 32px 16px;
  border: 1px solid var(--gray-light);
  border-radius: 8px;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.speaker-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
  border-color: var(--green);
}

.speaker-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--gray-light);
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Arial Black', 'Arial', sans-serif;
  font-weight: 900;
  font-size: 1.4rem;
  color: var(--green-dark);
  text-transform: uppercase;
}

.speaker-card h3 {
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  color: var(--black);
}

/* ── VEREIN ── */

.verein {
  padding: 120px 0;
  background: var(--gray-light);
}

.verein-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.verein h2 {
  margin-bottom: 24px;
}

.verein p {
  color: #333;
  margin-bottom: 20px;
  font-size: 1.1rem;
  line-height: 1.7;
}

.verein-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.verein-value {
  background: var(--white);
  padding: 32px 24px;
  border-radius: 8px;
  border-left: 4px solid var(--green);
}

.verein-value h3 {
  font-size: 0.9rem;
  margin-bottom: 8px;
  color: var(--black);
}

.verein-value p {
  font-size: 0.95rem;
  margin-bottom: 0;
  color: #555;
}

/* ── STAMMTISCH ── */

.stammtisch {
  padding: 120px 0;
  background: var(--white);
}

.stammtisch-inner {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.stammtisch h2 {
  margin-bottom: 24px;
}

.stammtisch-badge {
  display: inline-block;
  font-family: 'Arial Black', 'Arial', sans-serif;
  font-weight: 900;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 8px 20px;
  background: var(--green);
  color: var(--black);
  border-radius: 30px;
  margin-bottom: 32px;
}

.stammtisch p {
  margin: 0 auto 24px;
  color: #444;
  font-size: 1.1rem;
  line-height: 1.7;
}

.stammtisch-features {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 48px;
  flex-wrap: wrap;
}

.stammtisch-feature {
  text-align: center;
}

.stammtisch-feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  font-size: 1.4rem;
}

.stammtisch-feature h3 {
  font-size: 0.8rem;
  letter-spacing: 0.06em;
}

/* ── CTA ── */

.cta-section {
  padding: 100px 0;
  background: var(--gray-light);
  text-align: center;
  border-top: 1px solid var(--gray-border);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -10%;
  width: 120%;
  height: 200%;
  background: radial-gradient(ellipse at center, rgba(190, 0, 110, 0.06) 0%, transparent 60%);
  pointer-events: none;
}

.cta-section h2 {
  color: var(--black);
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin-bottom: 16px;
  position: relative;
}

.cta-section p {
  color: rgba(0, 0, 0, 0.5);
  margin: 0 auto 40px;
  font-size: 1.15rem;
  position: relative;
}

.cta-section .btn {
  position: relative;
  font-size: 1.1rem;
  padding: 20px 56px;
}

.cta-magenta-line {
  width: 60px;
  height: 4px;
  background: var(--magenta);
  margin: 0 auto 32px;
  border-radius: 2px;
}

/* ── FOOTER ── */

.footer {
  padding: 48px 0;
  background: var(--white);
  border-top: 1px solid var(--gray-border);
  color: rgba(255, 255, 255, 0.4);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand svg {
  width: 28px;
  height: 28px;
  color: var(--green);
}

.footer-brand span {
  font-family: 'Arial Black', 'Arial', sans-serif;
  font-weight: 900;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(0, 0, 0, 0.5);
}

.footer-links {
  display: flex;
  gap: 32px;
}

.footer-links a {
  font-family: 'Arial Black', 'Arial', sans-serif;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(0, 0, 0, 0.4);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--green);
}

.footer-copy {
  width: 100%;
  text-align: center;
  margin-top: 24px;
  font-size: 0.85rem;
  padding-top: 24px;
  border-top: 1px solid var(--gray-border);
}

/* ── Mobile nav overlay ── */

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(0, 0, 0, 0.97);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 36px;
}

.nav-overlay.active {
  display: flex;
}

.nav-overlay a {
  font-family: 'Arial Black', 'Arial', sans-serif;
  font-weight: 900;
  font-size: 1.4rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--white);
  transition: color 0.2s;
}

.nav-overlay a:hover {
  color: var(--green);
}

.nav-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
  font-family: 'Arial Black', 'Arial', sans-serif;
  font-weight: 900;
}

/* ── Animations ── */

.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ── */

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

  .alpaka-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .verein-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .speaker-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
  }

  .tt-block {
    grid-template-columns: 1fr;
    gap: 6px;
  }

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

@media (max-width: 600px) {
  .hero { padding: 100px 20px 60px; }

  .hero h1 {
    font-size: clamp(2rem, 10vw, 3.2rem);
  }

  .btn {
    padding: 14px 32px;
    font-size: 0.9rem;
  }

  .alpaka-card {
    padding: 32px 24px;
  }

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

  .stammtisch-features {
    gap: 32px;
  }

  .speaker-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .speaker-card {
    padding: 24px 12px;
  }

  .speaker-avatar {
    width: 64px;
    height: 64px;
    font-size: 1.1rem;
  }

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

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
  }
}

/* ═══ SUBPAGES ═══ */
.subpage-header {
  padding: 140px 0 60px;
  background: var(--black);
  color: var(--white);
}
.subpage-header h1 {
  font-family: 'Arial Black', 'Arial', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.subpage-content {
  padding: 64px 0 100px;
}
.content-narrow {
  max-width: 780px;
}
.subpage-content h2 {
  font-family: 'Arial Black', 'Arial', sans-serif;
  font-size: 1.1rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin: 40px 0 16px;
}
.subpage-content p {
  font-family: 'Garamond', 'Georgia', serif;
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 16px;
  color: #333;
}
.subpage-content a {
  color: var(--green);
  text-decoration: underline;
}
.subpage-content a.btn {
  text-decoration: none;
  color: var(--black);
}
.subpage-content a.btn:hover {
  color: var(--white);
}
.footer-logo-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

/* ═══ EASTER EGG ALPAKA ═══ */
.alpaka-easter-egg {
  position: fixed;
  width: 60px;
  height: 60px;
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.3));
  transition: none;
}
.alpaka-easter-egg.walk {
  animation: alpaka-walk 8s linear forwards;
}
@keyframes alpaka-walk {
  0%   { left: -80px; bottom: 0; opacity: 0; transform: scaleX(1) rotate(0deg); }
  5%   { opacity: 1; }
  15%  { bottom: 0; }
  25%  { bottom: 20px; }
  30%  { bottom: 0; }
  40%  { bottom: 15px; }
  45%  { bottom: 0; }
  55%  { bottom: 25px; }
  60%  { bottom: 0; }
  70%  { bottom: 10px; }
  75%  { bottom: 0; }
  95%  { opacity: 1; }
  100% { left: calc(100vw + 80px); bottom: 0; opacity: 0; }
}

.alpaka-peek {
  position: fixed;
  bottom: -50px;
  right: 40px;
  width: 50px;
  height: 50px;
  pointer-events: auto;
  cursor: pointer;
  z-index: 9998;
  opacity: 0;
  transition: bottom .4s cubic-bezier(.34,1.56,.64,1), opacity .3s;
  filter: drop-shadow(0 -2px 6px rgba(0,0,0,.2));
}
.alpaka-peek.show {
  bottom: -5px;
  opacity: 1;
}
.alpaka-peek:hover {
  bottom: 0;
  transform: scale(1.1);
}

.alpaka-spin {
  display: inline-block;
  cursor: pointer;
  transition: transform .3s;
}
.alpaka-spin:hover {
  animation: alpaka-flip .6s ease;
}
@keyframes alpaka-flip {
  0%   { transform: rotateY(0deg); }
  50%  { transform: rotateY(180deg) scale(1.2); }
  100% { transform: rotateY(360deg); }
}
