/* === Wak-Lab Dark Neon Theme === */
:root{
  --bg: #071018;
  --surface: #0f1720;
  --panel: #0b1220;
  --primary: #19b2b2;
  --accent: #00c88a;
  --neon: #00ff8c;
  --muted: rgba(255,255,255,0.03);
  --text: #e6eef6;
  --subtext: #9fb0bf;
  --mono: "Fira Code", ui-monospace, SFMono-Regular, Menlo, Monaco, "Roboto Mono", monospace;
  --ui: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 10px;
  --shadow: 0 12px 36px rgba(0,0,0,0.6);
}

/* Reset */
*{box-sizing:border-box;margin:0;padding:0}
html,body{height:100%}
body{
  background:
    radial-gradient(1200px 800px at 10% 10%, rgba(0,200,138,0.03), transparent 6%),
    radial-gradient(900px 600px at 90% 90%, rgba(25,178,178,0.02), transparent 6%),
    var(--bg);
  color:var(--text);
  font-family:var(--ui);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  line-height:1.5;
  font-size:16px;
}

/* subtle circuit/grid overlay */
.site-grid::before{
  content:"";
  position:fixed;
  inset:0;
  background-image:
    linear-gradient(0deg, rgba(25,178,178,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(25,178,178,0.02) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events:none;
  z-index:0;
  opacity:0.55;
}

/* Container helper */
.container{max-width:80%;margin:0 auto;padding:0 1.25rem;position:relative;z-index:2}

/* Header */
.header{
  display:flex;align-items:center;justify-content:space-between;gap:1rem;
  padding:1rem 0;border-bottom:1px solid var(--muted);
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.00));
  position:sticky; top:0; z-index:40; backdrop-filter: blur(6px);
}
.brand{display:flex;align-items:center;gap:.75rem}
.logo{height:96px;width:auto;filter:drop-shadow(0 6px 18px rgba(0,200,138,0.06))}
.wordmark{font-family:var(--mono);color:var(--neon);font-weight:800;letter-spacing:0.06em;font-size:3rem}

/* === NEW CONSOLIDATED NAVIGATION === */

/* Utility: Trenner | auf Mobile & Tablet immer weg */
@media (max-width: 980px) {
  .nav .sep { display: none !important; }
}

/* --- DESKTOP (Ab 981px) --- */
@media (min-width: 981px) {
  .menu-toggle { display: none; }
  .nav { display: flex; align-items: center; }
  
  /* Der Container (nur für Abstände) */
  .nav-links { display: flex; align-items: center; gap: 1.5rem; }
  .nav-item { position: relative; }

  /* 1. HAUPTMENÜ-LINKS (Die großen 1.5rem Links) */
  /* Wir nutzen .nav-links > .nav-item > .nav-link um nur die oberste Ebene zu treffen */
  .nav-links .nav-link {
    color: var(--subtext);
    text-decoration: none;
    padding: .45rem .65rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.5rem;
    transition: color 0.2s ease;
    display: inline-block;
  }
  
  .nav-links .nav-link:hover {
    color: var(--neon);
  }

  /* 2. DAS DROP-DOWN FENSTER */
  .submenu {
    position: absolute; top: 100%; left: 0;
    background: var(--surface);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    min-width: 200px;
    opacity: 0; visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease;
    z-index: 100;
    padding: 0.5rem 0;
    box-shadow: var(--shadow);
  }

  /* 3. SUBMENU-LINKS (Die kleinen 0.8rem Links) */
  /* Wir machen den Selektor extra stark, damit er alles andere überschreibt */
  .nav-links .submenu .submenu-link {
    font-size: 0.95rem;      /* Etwas größer als 0.8 für die Lesbarkeit */
    color: var(--subtext);
    padding: 0.6rem 1.2rem;
    text-decoration: none;
    display: block;          /* Wichtig, damit sie untereinander stehen */
    font-weight: 500;
    transition: all 0.2s;
  }

  .nav-links .submenu .submenu-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--neon);
  }

  .nav-item:hover .submenu-trigger-arrow {
    transform: rotate(180deg);
  }
  
  /* Optional: Wenn du den Pfeil auf Desktop ganz verstecken willst:
     .submenu-trigger-arrow { display: none; } 
  */

  /* Einblenden bei Hover */
  .nav-item:hover .submenu {
    opacity: 1; visibility: visible; transform: translateY(0);
  }
}

/* --- MOBILE & TABLET (Bis 980px) --- */
@media (max-width: 980px) {
  .menu-toggle {
    display: flex; flex-direction: column; justify-content: space-between;
    width: 30px; height: 21px; background: none; border: none; cursor: pointer; z-index: 1100;
  }
  
  .menu-toggle .bar {
    width: 100%; height: 3px; background-color: var(--neon);
    border-radius: 10px; transition: all 0.3s ease;
    box-shadow: 0 0 8px rgba(0, 255, 140, 0.4);
  }

  .nav {
    position: fixed; top: 0; right: -100%;
    width: 280px; height: 100vh;
    background: rgba(11, 18, 32, 0.98);
    backdrop-filter: blur(15px);
    border-left: 2px solid var(--primary);
    padding: 80px 1.5rem 2rem 1.5rem; /* Festes Padding statt % */
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1000;
    overflow-y: auto;
    display: block !important;
    visibility: visible; /* Standardmäßig sichtbar, aber rechts außerhalb des Bildschirms */
  }

  .nav.is-active { 
    right: 0; 
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
  }

  .nav-links { 
    display: flex; flex-direction: column; gap: 0.5rem; 
    background: transparent; /* Kein doppelter Hintergrund */
    padding: 0; 
  }

  .nav-link {
    width: 100%; text-align: left; background: none; border: none;
    color: var(--text); font-size: 1.1rem; padding: 12px;
    display: flex; justify-content: space-between; align-items: center;
    border-bottom: 1px solid var(--muted); cursor: pointer;
    text-decoration: none;
  }

  /* Submenu Styling Mobil */
  .submenu {
    display: none; background: rgba(255, 255, 255, 0.03);
    margin-top: 5px; border-radius: 4px;
  }
  .nav-item.active .submenu { display: block; }
  .nav-item .arrow { transition: transform 0.3s; font-size: 0.7rem; }
  .nav-item.active .arrow { transform: rotate(180deg); }

  .submenu-link {
    display: block; padding: 12px 20px;
    color: var(--subtext); text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }

  /* Hamburger Animation */
  .menu-toggle.is-active .bar:nth-child(1) { transform: translateY(9px) rotate(45deg); }
  .menu-toggle.is-active .bar:nth-child(2) { opacity: 0; }
  .menu-toggle.is-active .bar:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

  /* Event Grid Fix integriert */
  .events-grid { grid-template-columns: 1fr; }
  .event-card { min-height: 110px; }

    /* Wrapper für Link + Pfeil */
  .nav-link-wrapper {
    display: flex;
    align-items: center;
    gap: 8px; /* Abstand zwischen Text und Pfeil */
    position: relative;
  }

  /* Der Pfeil als eigenständiges Klick-Ziel */
  .submenu-trigger-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--neon);
    font-size: 0.7rem; /* Etwas kleiner als der Text */
    transition: transform 0.3s ease;
    padding: 5px; /* Vergrößert die Trefferfläche für Finger */
    -webkit-tap-highlight-color: transparent;
  }

  .nav-link-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between; /* Text links, Pfeil rechts */
  width: 100%;
  border-bottom: 1px solid var(--muted);
  }

  .nav-link {
    border-bottom: none !important; /* Border jetzt am Wrapper, nicht am Link */
    flex-grow: 1; /* Link nimmt Platz ein, führt zur Seite */
  }

  .submenu-trigger-arrow {
    padding: 12px 20px; /* Große Klickfläche für den Daumen */
    color: var(--neon);
    cursor: pointer;
    transition: transform 0.3s ease;
    -webkit-tap-highlight-color: transparent;
    z-index: 10; /* Höher als der Link selbst */
    pointer-events: auto !important; /* Erzwingt Klickbarkeit */
  }

  /* Pfeil drehen bei aktivem Submenü */
  .nav-item.active .submenu-trigger-arrow {
    transform: rotate(180deg);
  }

}

/* Hero */
.hero{padding:4.25rem 0 3.25rem 0;display:grid;grid-template-columns:1fr 720px;gap:1.25rem;align-items:start}
.hero-left{padding-right:1rem}
.hero h1{font-family:var(--mono);font-size:2.6rem;line-height:1.02;margin-bottom:.6rem;color:var(--neon);text-shadow:0 6px 28px rgba(0,255,140,0.03)}
.hero .subtitle{font-size:1.1rem;color:var(--subtext);margin-bottom:1.25rem;max-width:42rem}
.cta-row{display:flex;gap:.85rem;align-items:center}
.btn{display:inline-flex;align-items:center;gap:.6rem;padding:.6rem .95rem;border-radius:10px;font-weight:800;border:0;cursor:pointer;text-decoration:none;
  background:linear-gradient(90deg,var(--primary),var(--accent));color:#061018;box-shadow:0 10px 30px rgba(0,0,0,0.6)}
.btn-outline{background:transparent;border:1px solid rgba(255,255,255,0.04);color:var(--text);font-weight:700;padding:.55rem .9rem;border-radius:10px}
.btn-outline1{background:transparent;color:var(--text);font-weight:700}

/* Right column card (terminal) */
.hero-aside{display:flex;flex-direction:column;gap:.85rem}
.card{
  background:linear-gradient(180deg, rgba(255,255,255,0.01), rgba(255,255,255,0.08));
  border:1px solid rgba(255,255,255,0.03);border-radius:12px;box-shadow:var(--shadow);min-height:64px;
}

/* Terminal (live) */
.terminal {
  font-family: var(--mono);
  color: var(--neon);
  background: linear-gradient(180deg, rgba(2,6,10,0.36), rgba(2,6,10,0.28));
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid rgba(25,178,178,0.12);
  box-shadow: 0 14px 40px rgba(0,0,0,0.6);

  /* Fixierung */
  font-size: 0.95rem;
  line-height: 1.4rem;      /* Höhe einer Zeile */
  height: calc(1.4rem * 6 + 2rem); /* 6 Zeilen Sichtfeld + Padding */
  
  white-space: pre-wrap;    /* Erlaubt Zeilenumbruch */
  word-wrap: break-word;    /* Bricht lange Wörter */
  overflow-y: hidden;       /* Verhindert Scrollbars und Zucken */
  display: block;
}

  

/* "Auf einen Blick" card: 1/3 breiter und 20px nach links verschoben */
.card-glance{width:100%;position:relative;left:-20px}

/* Section headline style */
.section-title{font-family:var(--mono);font-size:1.05rem;color:var(--neon);margin: 0.5rem;letter-spacing:0.08em}

/* Cards grid for "Auf einen Blick" */
.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:1rem;margin-top:.75rem}
.info-card{
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  border:1px solid rgba(255,255,255,0.03);padding:1rem;border-radius:10px;min-height:110px;box-shadow:0 8px 28px rgba(0,0,0,0.55);
}
.info-card h3{font-family:var(--mono);color:var(--primary);margin-bottom:.5rem;font-size:1rem}
.info-card p{color:var(--subtext);font-size:.98rem}

/* Das Grid sorgt dafür, dass alle Karten in einer Reihe gleich hoch sind */
.cards.projects-grid {
    display: grid;
    gap: 1.5rem;
    align-items: stretch; /* Wichtig: Alle Karten in einer Zeile werden gleich hoch */
}

/* Die Karte selbst wird zum Flex-Container */
.card.filter-item {
    display: flex;
    flex-direction: column;
    height: 100%; /* Nutzt die volle Höhe des Grid-Platzes */
    height: 100%;
    border: 1px solid #333;
}

/* Der Bereich zwischen Header und Footer soll den restlichen Platz einnehmen */
.card-meta {
    flex-grow: 1; /* Dieser Teil dehnt sich aus und schiebt den Footer nach unten */
    margin-bottom: 1rem;
}

/* Der Footer (mit dem Button) klebt nun immer ganz unten */
.card-actions {
    margin-top: auto; /* Schiebt den Button an den unteren Rand der Karte */
    padding-top: 1rem;
}


/* Footer */
.footer{padding:2.25rem 2.25rem;border-top:1px solid rgba(255,255,255,0.03);color:var(--subtext);display:flex;justify-content:space-between;align-items:center;gap:1rem;flex-wrap:wrap;font-size:0.92rem}
.footer a{color:var(--subtext);text-decoration:none}
.footer a:hover{color:var(--neon)}

/* Utilities */
h2{font-family:var(--mono);color:var(--neon);margin-bottom:.6rem}
h3{font-family:var(--mono);color:var(--accent);margin-top:1rem;margin-bottom:.45rem;font-size:1.05rem}
p{margin-bottom:1rem;color:var(--subtext)}
ul,ol{padding-left:2rem;margin-bottom:1rem}
li{margin-bottom:.25rem}
a{color:var(--accent)}
small{color:rgba(255,255,255,0.45)}

/* Responsive */
@media (max-width:980px){
  .hero{grid-template-columns:1fr;padding:2.25rem 0}
  .hero-aside{order:2}
  .hero-left{order:1}
  .container{padding:0 1rem}
}

/* Accessibility focus */
a:focus, button:focus { outline:3px solid rgba(0,255,140,0.16); outline-offset:2px; border-radius:6px }

/* Container (optional zentrieren / Größe anpassen) */
#cursor-only {
  display: inline-block;       /* inline / block / flex je nach Bedarf */
  width: 1ch;                  /* Platz für den Cursor */
  height: 1.1em;               /* Höhe passend zur Schriftgröße */
  vertical-align: middle;
  background: transparent;
}

/* Block-Cursor (Standardeinstellung) */
.wak-cursor {
  display: inline-block;
  width: 0.9ch;                /* Breite des Cursors (Block) */
  height: 100%;
  background: #00ff8c;         /* Farbe des Cursors (neon) */
  border-radius: 2px;
  box-shadow: 0 0 8px rgba(0,255,140,0.35);
  animation: wak-blink 1s steps(1, start) infinite;
}

/* Alternativ: dünner Strich statt Block
.wak-cursor { width: 2px; }
*/

/* Blink-Animation */
@keyframes wak-blink {
  0%   { opacity: 1; transform: scaleY(1); }
  50%  { opacity: 0; transform: scaleY(0.9); }
  100% { opacity: 1; transform: scaleY(1); }
}

/* hero blurred circuit SVG overlay – jetzt über die ganze Seite */
.hero {
  position: relative;
}
body::after{
  content: "";
  position: fixed;
  inset: 0;
  background-image: url('/images/grid.png');
  background-repeat: no-repeat;
  background-position: center top;
  background-size: auto 100vh;       /* Bild füllt die Viewport-Höhe */
  opacity: 0.05;
  mix-blend-mode: screen;
  filter: blur(6px) saturate(1.1);
  pointer-events: none;
  z-index: 0;
}

/* stell sicher, dass Inhalt darüber liegt */
.hero .container { position: relative; z-index: 2; }

.hero-left .info-text ul {
  padding-left: 1.25rem;
}

/* Events Kachel Grid */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.2rem;
  margin-top: 1rem;
}

/* einzelne Kachel */
.event-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04));
  border: 1px solid rgba(255,255,255,0.08);
  padding: 0;
  border-radius: 10px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.4);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 140px;
  overflow: hidden;
  transition: background 0.3s ease;
}

.card-image {
  width: 100%;
  height: 100px; /* Oder eine Höhe deiner Wahl */
  overflow: hidden;
}


.card-image img {
  width: 100%;
  height: 80px;      /* Festgelegte Höhe für einheitliche Karten */
  object-fit: cover;  /* Bild wird passend beschnitten statt verzerrt */
  display: block;
  border-radius: 12px 12px 0 0;
}

.card-head, .card-meta, .card-actions {
  padding: 1rem; 
}

.card-head {
  padding-bottom: 0; /* Weniger Abstand zwischen Titel und Tags */
}

/* Kopf: Titel + Datum */
.card-head { margin-bottom: .6rem; }
.card-title { font-family: var(--mono); font-size: 1.05rem; margin: 0 0 .25rem 0; color: var(--neon); }
.card-title a { color: inherit; text-decoration: none; }
.card-title a:hover { text-decoration: underline; }

.card-date { font-size: .85rem; color: var(--subtext); }

/* Tags */
.card-tags { margin-top: .5rem; color: var(--subtext); font-size: .9rem; }
.tag { display: inline-block; background: rgba(25,178,178,0.08); color: var(--primary); padding: .15rem .45rem; border-radius: 999px; font-weight:700; font-size:.85rem; }

/* Footer / Aktionen */
.card-actions { margin-top: .8rem; display:flex; justify-content:flex-end; gap:.5rem; }
.btn { padding:.5rem .8rem; border-radius:8px; text-decoration:none; font-weight:700; }
.btn-primary { background: linear-gradient(90deg,var(--primary),var(--accent)); color: #061018; }
/* Der invertierte Button */
.btn-secondary {
  background: transparent;                /* Kein Hintergrund */
  border: 2px solid var(--primary);       /* Rahmen in Primärfarbe */
  color: var(--primary);                  /* Text in Primärfarbe */
  transition: all 0.3s ease;              /* Weicher Übergang beim Hover */
}

/* Hover-Effekt: Füllt sich leicht auf oder leuchtet */
.btn-secondary:hover {
  background: rgba(25, 178, 178, 0.1);    /* Ganz leichter Schimmer im Hintergrund */
  border-color: var(--accent);            /* Rahmen wechselt zur Akzentfarbe */
  color: var(--accent);                   /* Text wechselt zur Akzentfarbe */
  box-shadow: 0 0 12px rgba(25, 178, 178, 0.3); /* Ein subtiler Glow-Effekt */
}

/* Grundstyling des Status-Indikators */
.space-indicator {
    display: block;
    padding: 0.5rem;
    font-family: var(--mono);
    font-weight: bold;
    text-align: center;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s ease;
}

/* Status: OFFEN (Neon) */
.status-open {
    color: var(--neon);
    background: rgba(0, 255, 140, 0.1);
    border-color: var(--neon);
    box-shadow: 0 0 15px rgba(0, 255, 140, 0.2);
    animation: glow 2s infinite ease-in-out;
}

/* Status: ZU (Grau) */
.status-closed {
    color: #666;
    background: rgba(255, 255, 255, 0.05);
    border-color: #444;
    width: 40%;
    margin-left: 5%;
}

@keyframes glow {
    0% { opacity: 0.8; }
    50% { opacity: 1; }
    100% { opacity: 0.8; }
}

  /* Animation des Hamburger-Icons zum 'X' */
  .menu-toggle.is-active .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }
  .menu-toggle.is-active .bar:nth-child(2) {
    opacity: 0;
  }
  .menu-toggle.is-active .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }

/* Footer Layout */
.footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 2rem 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  gap: 1rem;
}

/* Damit die Mitte wirklich zentriert ist, geben wir den äußeren 
   Elementen die gleiche Basis-Breite oder nutzen flex: 1 */
.footer-left, .footer-right {
  flex: 1;
}

.footer-right {
  text-align: right;
}

.footer-left .social-icons {
  margin-top: 0.5rem;
}

/* Social Icons Styling */
.social-icons {
  display: flex;
  gap: 1.2rem;
}

.social-icons a {
  color: var(--subtext);
  transition: all 0.3s ease;
  line-height: 0;
}

.social-icons svg {
  width: 24px;
  height: 24px;
}

/* Neon Hover Effekt */
.social-icons a:hover {
  color: var(--neon);
  filter: drop-shadow(0 0 8px rgba(0, 255, 140, 0.6));
  transform: translateY(-2px);
}

/* Responsive: Auf Smartphones untereinander stapeln */
@media (max-width: 768px) {
  .footer {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }
  
  .footer-left, .footer-right {
    text-align: center;
    flex: none;
  }
  
  .footer-right nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .footer-right .sep {
    display: none; /* Trennstriche vertikal ausblenden */
  }
}

/* Erwingt Zeilenumbrüche in Code-Blöcken */
code, pre {
    white-space: pre-wrap !important;
    word-wrap: break-word !important;
    overflow-wrap: anywhere !important;
}

/* Der Container bekommt die Breite */
.small-img {
    width: 50%;
    height: auto;
}

/* Das Bild im Container muss sich anpassen */
.small-img img {
    width: 100%;   /* Nutze 100% der Breite des Containers (also der 50%) */
    height: auto;
    display: block;
}

/* Erlaubt dem Event-Container, Elemente untereinander anzuordnen */
.fc-v-event .fc-event-main,
.fc-daygrid-event.fc-daygrid-dot-event {
    display: flex !important;
    flex-direction: column !important; /* Zeit oben, Titel unten */
    align-items: flex-start !important;
    padding: 2px 5px !important;
}

/* Entfernt den Punkt oder positioniert ihn neben die Zeit, falls gewünscht */
.fc-daygrid-event-dot {
    display: none !important; /* Optional: Versteckt den Punkt für mehr Platz */
}

/* Styling für die Zeit-Zeile */
.fc-event-time {
    font-weight: bold;
    font-size: 0.75rem;
    color: var(--neon); /* Nutzt dein Neon-Grün */
    margin-bottom: 2px;
}

/* Styling für die Titel-Zeile */
.fc-event-title {
    font-size: 0.85rem;
    white-space: normal !important; /* Erlaubt Zeilenumbruch bei langen Titeln */
    line-height: 1.2;
}

.fc-scrollgrid-sync-table {
  width: 100% !important;
}

.project-filters {
    margin-bottom: 2rem;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.filter-btn {
    background: transparent;
    border: 1px solid var(--neon);
    color: var(--neon);
    padding: 5px 15px;
    cursor: pointer;
    font-family: var(--mono);
    border-radius: 4px;
    transition: 0.3s;
}

.filter-btn:hover, .filter-btn.active {
    background: var(--neon);
    color: #000;
}

.btn-reset {
    border-color: #666;
    color: #666;
}

.btn-reset:hover {
    background: #666;
    color: #fff;
}

ul {
    list-style-type: disc; /* Bullets sichtbar machen */
}

li {
    margin-bottom: 0.25em; /* Abstand zwischen Listenpunkten */
}

.menu-toggle, .nav-link, .submenu-link {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent; /* Verhindert den grauen Kasten beim Tippen */
}

/* Space-Übersicht Karten */
.space-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.25rem;
  margin-top: 1rem;
}

.space-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.space-card:hover {
  border-color: var(--primary);
  box-shadow: 0 0 20px rgba(25, 178, 178, 0.15);
}

.space-card h3 {
  font-family: var(--mono);
  color: var(--neon);
  font-size: 1.1rem;
  margin: 0;
}

.space-location {
  color: var(--subtext);
  font-size: 0.95rem;
  margin: 0;
}

.space-card {
  position: relative;
}

.space-link {
  position: absolute;
  top: 1rem;
  right: 1rem;
  color: var(--subtext);
  transition: color 0.3s ease, filter 0.3s ease;
  line-height: 0;
}

.space-link svg {
  width: 18px;
  height: 18px;
}

.space-card:hover .space-link {
  color: var(--neon);
  filter: drop-shadow(0 0 6px rgba(0, 255, 140, 0.5));
}

