/* === HAFENPARK NEXTGEN — STYLE.CSS v2 ===
   Industrial Editorial / Premium Real Estate
*/

/* === 0. DESIGN TOKENS === */
:root {
  --navy: #17182e;
  --navy-2: #20243c;
  --ink: #111326;
  --cream: #f7f2e8;
  --cream-2: #eee8dd;
  --gold: #d8a344;
  --gold-2: #ebb14a;
  --brick: #8b2427;
  --muted: #8f8f94;
  --line: rgba(216, 163, 68, 0.28);
  --white: #fffaf0;
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --shadow-soft: 0 18px 60px rgba(17, 19, 38, 0.16);
  --shadow-dark: 0 24px 80px rgba(0, 0, 0, 0.35);
  --container: 1120px;
  --font-serif: Georgia, "Times New Roman", Times, serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* === 1. RESET === */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; width: 100%; max-width: 100%; overflow-x: hidden; }
body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg, iframe, video { max-width: 100%; height: auto; }

/* === 2. TYPOGRAPHY === */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: normal;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
h1 { font-size: clamp(2.8rem, 6vw, 5.2rem); }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }
h4 { font-size: 1.1rem; font-weight: 600; }
.section-headline::after {
  content: '';
  display: block;
  width: 48px;
  height: 2px;
  background: var(--gold);
  margin: 1.2rem 0 0 0;
}
.section-subtext::after {
  content: '';
  display: block;
  margin: 1.2rem auto 0 auto;
  width: 48px;
  height: 2px;
  background: var(--gold);
  margin: 1.2rem auto 3rem auto;
}

.container {
  width: min(var(--container), calc(100% - 32px));
  margin-inline: auto;
}

/* === 3. HEADER === */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 72px;
  background: rgba(17, 19, 38, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 100;
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo {
  font-family: var(--font-serif);
  color: var(--cream);
  font-size: 1.1rem;
  text-decoration: none;
  letter-spacing: -0.01em;
}
.logo span { color: var(--gold); }
.burger {
  display: none;
  background: none; border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
}
.burger span {
  width: 22px; height: 2px;
  background: var(--cream);
  display: block;
}
.burger.active span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); }

/* === 4. HERO === */
.hero-section {
  min-height: 92vh;
  background: linear-gradient(180deg, #0d0f1a 0%, #17182e 55%, #20243c 100%);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="4" height="4"><rect width="1" height="1" fill="rgba(255,255,255,0.08)"/></svg>');
  opacity: 0.04;
  pointer-events: none;
}
.hero-overlay {
  position: relative;
  z-index: 1;
}
.hero-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 40%, rgba(216, 163, 68, 0.08) 0%, transparent 60%);
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 120px 24px 80px;
  max-width: 800px;
  margin: 0 auto;
}
.hero-content h1 {
  color: var(--cream);
  margin-bottom: 1.5rem;
}
.hero-subline {
  color: rgba(255, 250, 240, 0.82);
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  line-height: 1.65;
  max-width: 680px;
  margin: 0 auto 2.5rem;
}
.hero-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* === 5. BUTTONS === */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}
.btn-gold { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.btn-gold:hover { background: var(--gold-2); border-color: var(--gold-2); transform: translateY(-2px); box-shadow: 0 8px 30px rgba(216, 163, 68, 0.3); }
.btn-ghost { background: transparent; color: var(--cream); border-color: var(--line); }
.btn-ghost:hover { background: rgba(216, 163, 68, 0.15); border-color: var(--gold); color: var(--gold); }
.btn-location { display: inline-block; margin-top: 1.5rem; }
.btn-submit { width: 100%; margin-top: 1.5rem; padding: 16px; }

/* === 6. SECTIONS === */
.section-light { background: var(--white); padding: 120px 0; }
.section-dark { background: linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%); padding: 120px 0; }
.contact-card-wrapper { background: var(--navy); padding: 100px 0; }
.section-headline {
  margin-bottom: 1rem;
  color: var(--ink);

  }
.section-subtext {
  color: var(--ink);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  max-width: 720px;
  margin-bottom: 3rem;
}
.section-dark .section-headline { color: var(--cream); }
.section-dark .section-subtext::after { margin: 1.2rem auto 3rem auto; }
.section-dark p { color: rgba(255, 250, 240, 0.8); }
.section-dark .section-subtext { color: rgba(255, 250, 240, 0.8); }

/* === 7. ANKER-GRID === */
.anker-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.anker-card {
  background: var(--cream-2);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  border: 1px solid var(--line);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.anker-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }

.anker-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.anker-card h3 { color: var(--ink); margin: 0 0 0.8rem 0; }
.anker-card p { color: var(--ink); opacity: 0.85; margin: 0; }

/* === 8. TIMELINE / STORIES === */
.timeline-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.story-card {
  background: var(--cream-2);
  border-radius: var(--radius-md);
  padding: 2rem;
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.story-card::before {
  content: '';
  display: block;
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 3px;
  background: var(--gold);
}
.story-year {
  display: block;
  font-family: var(--font-serif);
  font-size: 2.5rem;
  color: var(--gold);
  margin-bottom: 0.5rem;
}
.story-card h3 { color: var(--ink); margin: 0 0 0.6rem 0; }
.story-card p { margin: 0; color: var(--ink); opacity: 0.85; }

/* === 9. AREAS TABLE (Desktop) === */
.area-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--cream-2);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--line);
}
.area-table th {
  background: var(--navy);
  color: var(--cream);
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05;
  padding: 1rem;
}
.area-table td {
  padding: 0.875rem 1rem;
  border-top: 1px solid var(--line);
}
.area-table tbody :hover { background: rgba(216, 163, 68, 0.05); }

.badge {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
}
.badge-verfuegbar { background: rgba(34, 197, 94, 0.15); color: #16a34a; }
.badge-anfrage { background: rgba(216, 163, 68, 0.2); color: var(--gold); }
.badge-vermietet { background: rgba(143, 143, 148, 0.15); color: var(--muted); }

/* === 10. AREA CARDS (Mobile) === */
.area-cards-mobile { display: none; }

/* === 11. EVENTS === */
.events-container { text-align: center; }
.event-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
.event-card {
  background: rgba(255, 250, 240, 0.06);
  border: 1px solid rgba(216, 163, 68, 0.25);
  border-radius: var(--radius-md);
  padding: 2rem;
  text-align: left;
  transition: all 0.3s ease;
}
.event-card:hover {
  background: rgba(216, 163, 68, 0.12);
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}
.event-card h3 {
  color: var(--gold);
  font-family: Georgia, serif;
  margin: 0 0 0.8rem 0;
}
.event-card p { color: rgba(255, 250, 240, 0.7); margin: 0; font-size: 0.92rem; }

/* === 12. MIETER — CHIPS === */
.tenant-chips {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.chip {
  display: inline-block;
  padding: 0.5rem 1.2rem;
  border: 1px solid var(--gold);
  border-radius: 20px;
  font-size: 0.9rem;
  color: var(--gold);
  transition: all 0.3s ease;
}
.chip:hover { background: rgba(216, 216, 163, 68, 0.15); transform: translateY(-2px); }
.stat-text { color: var(--ink); opacity: 0.7; font-size: 1rem; max-width: 480px; }

/* === 13. LOCATION === */
.location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.map-wrapper { border-radius: var(--radius-md); overflow: hidden; max-height: 480px; }
.location-facts {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
}
.fact-card {
  padding: 1.25rem;
  background: var(--cream-2);
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
}
.fact-card h4 { color: var(--gold); margin: 0 0 0.3rem 0; }
.fact-card p { margin: 0; font-size: 0.92rem; color: var(--ink); }

/* === 14. CONTACT === */
.contact-card-dark {
  background: rgba(27, 36, 60, 0.8);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 3rem;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.contact-card-dark h3 { color: var(--cream); margin: 0 0 1rem 0; }
.contact-card-dark > p { color: rgba(255, 250, 240, 0.8); margin: 0 0 2rem 0; }
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1rem;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  background: rgba(255, 250, 240, 0.06);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  color: var(--cream);
  transition: all 0.3s ease;
  font-family: var(--font-sans);
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: rgba(255, 250, 240, 0.5); }
.contact-form select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8"><path d="M1 1.5L6 6 11 1.5" stroke="rgba(216,163,68,0.5)" fill="none" stroke-width="1.5"/></svg>');
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}
.contact-form textarea {
  width: 100%;
  min-height: 84px;
  margin-bottom: 0.75rem;
  resize: vertical;
}
.contact-address {
  color: rgba(255, 250, 240, 0.6);
  font-size: 0.9rem;
  margin-top: 2rem;
}

/* === 15. FOOTER === */
.site-footer {
  background: var(--navy);
  padding: 2rem 0;
  text-align: center;
}
.site-footer p { color: rgba(255, 250, 240, 0.5); font-size: 0.85rem; margin: 0; }

/* === 16. SCROLL-MARGIN (for sticky header) === */
section { scroll-margin-top: 96px; }

/* === 17. REVEAL-UP ANIMATION === */
.reveal-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* === 18. RESPONSIVE === */

/* --- Tablet (768px - 1024px) --- */
@media (max-width: 1024px) {
  .anker-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
  .anker-card { padding: 1.5rem; }
  .event-grid { grid-template-columns: repeat(2, 1fr); }
  .timeline-grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
}

/* --- Mobile (<768px) --- */
@media (max-width: 768px) {
  .container { width: min(100% - 32px); margin-inline: auto; }
  
  /* Header */
  .burger { display: flex; }
  .mobile-nav {
    display: block;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(17, 19, 38, 0.98);
    backdrop-filter: blur(12px);
    padding: 2rem;
    z-index: 99;
    border-bottom: 1px solid var(--line);
  }
  .mobile-nav ul { list-style: none; margin: 0; padding: 0; }
  .mobile-nav li { margin-bottom: 1rem; }
  .mobile-nav a { color: var(--cream); text-decoration: none; font-family: var(--font-serif); font-size: 1.2rem; }
  
  /* Hero */
  .hero-content { padding: 100px 20px 60px; max-width: 100%; }
  .hero-ctas { flex-direction: column; align-items: center; }
  .btn { width: 100%; max-width: 320px; text-align: center; }
  
  /* Sections */
  .section-light { padding: 80px 0; }
  .section-dark { padding: 80px 0; }
  .contact-card-wrapper { padding: 80px 0; }
  
  /* Anker Grid */
  .anker-grid { grid-template-columns: 1fr; }
  
  /* Timeline */
  .story-card { padding: 1.5rem; }
  .story-year { font-size: 2rem; }
  
  /* Tables -> Cards */
  .area-table { display: none; }
  .area-cards-mobile { display: flex; flex-direction: column; gap: 1rem; }
  
  /* Events */
  .event-grid { grid-template-columns: 1fr; }
  
  /* Location */
  .location-grid { grid-template-columns: 1fr; }
  .map-wrapper { max-height: 360px; }
  
  /* Contact */
  .contact-card-dark { padding: 2rem 1.5rem; }
  .form-grid { grid-template-columns: 1fr; }
  
  /* Stats */
  .story-year { font-size: 2rem; }
}

/* === 19. VERY SMALL SCREENS (<390px) === */
@media (max-width: 390px) {
  .hero-content { padding: 100px 16px 40px; }
  .anker-card { padding: 1.5rem; }
  .story-card { padding: 1.5rem; }
  .event-card { padding: 1.5rem; }
  .contact-card-dark { padding: 2rem 1.5rem; }
  .fact-card { padding: 1rem; }
}
