 :root {
     --bg: #020617;
     --bg-panel: #020617;
     --bg-soft: #030712;
     --card-bg: #020617;
     --border-subtle: #1f2937;
     --border-soft: #111827;
     --accent: #22c55e;
     --accent-soft: #22c55e33;
     --accent-blue: #38bdf8;
     --accent-orange: #f97316;
     --text: #e5e7eb;
     --muted: #9ca3af;
     --muted-soft: #6b7280;
     --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
         "Segoe UI", sans-serif;
     --font-mono: "Fira Code", "JetBrains Mono", ui-monospace, SFMono-Regular,
         Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
 }

 * {
     box-sizing: border-box;
     margin: 0;
     padding: 0;
 }

 html,
 body {
     height: 100%;
 }

 body {
     background: radial-gradient(circle at top, #020617 0%, #000 70%);
     color: var(--text);
     font-family: var(--font-sans);
     display: flex;
     flex-direction: column;
 }

 a {
     color: inherit;
     text-decoration: none;
 }

 .app {
     display: flex;
     flex-direction: column;
     min-height: 100%;
 }

 /* TOP NAV (Jira-like) */

 .topbar {
     height: 48px;
     background: #020617;
     border-bottom: 1px solid var(--border-subtle);
     display: flex;
     align-items: center;
     justify-content: space-between;
     padding: 0 1.4rem;
     font-size: 0.8rem;
     color: var(--muted-soft);
 }

 .topbar-left {
     display: flex;
     align-items: center;
     gap: 1.2rem;
 }

 .topbar-logo {
     width: 22px;
     height: 22px;
     border-radius: 6px;
     background: radial-gradient(circle at 30% 20%, #bbf7d0, #22c55e 45%, #052e16 80%);
     box-shadow: 0 0 14px rgba(34, 197, 94, 0.8);
 }

 .topbar-link {
     cursor: default;
     opacity: 0.5;
 }

 .topbar-link.active {
     opacity: 1;
     font-weight: 500;
     color: var(--text);
 }

 .topbar-right {
     display: flex;
     align-items: center;
     gap: 0.8rem;
     font-family: var(--font-mono);
 }

 .topbar-chip {
     padding: 0.15rem 0.6rem;
     border-radius: 999px;
     border: 1px solid var(--accent-soft);
     background: #022c22;
     color: var(--accent);
     font-size: 0.7rem;
 }

 /* BOARD HEADER (Project / Sprint bar) */

 .board-header {
     height: 56px;
     background: linear-gradient(135deg, #020617 0%, #030712 60%, #020617 100%);
     border-bottom: 1px solid var(--border-soft);
     display: flex;
     align-items: center;
     justify-content: space-between;
     padding: 0 1.4rem;
     font-size: 0.85rem;
 }

 .board-header-left {
     display: flex;
     flex-direction: column;
     gap: 0.15rem;
 }

 .board-title-line {
     display: flex;
     align-items: center;
     gap: 0.4rem;
 }

 .board-title {
     font-size: 1rem;
     font-weight: 600;
 }

 .board-key {
     font-size: 0.7rem;
     padding: 0.1rem 0.5rem;
     border-radius: 999px;
     border: 1px solid var(--border-subtle);
     background: #020617;
     color: var(--muted-soft);
     font-family: var(--font-mono);
 }

 .board-subtitle {
     font-size: 0.8rem;
     color: var(--muted);
 }

 .board-header-right {
     display: flex;
     align-items: center;
     gap: 0.6rem;
     font-size: 0.8rem;
     color: var(--muted-soft);
 }

 .board-pill {
     padding: 0.18rem 0.5rem;
     border-radius: 999px;
     border: 1px solid var(--border-subtle);
     background: #020617;
     display: inline-flex;
     align-items: center;
     gap: 0.25rem;
     font-family: var(--font-mono);
     font-size: 0.75rem;
 }

 .board-pill-dot {
     width: 0.35rem;
     height: 0.35rem;
     border-radius: 999px;
     background: var(--accent);
     box-shadow: 0 0 8px rgba(34, 197, 94, 0.8);
 }

 .board-filter {
     padding: 0.2rem 0.5rem;
     border-radius: 0.35rem;
     border: 1px solid transparent;
     cursor: pointer;
     transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
 }

 .board-filter:hover {
     background: #020617;
     border-color: var(--border-subtle);
     color: var(--text);
 }

 /* BOARD LAYOUT */

 .board-main {
     flex: 1;
     display: flex;
     flex-direction: column;
     padding: 1rem 1.4rem 1.6rem;
     min-height: 0;
 }

 .board-top-info {
     font-size: 0.8rem;
     color: var(--muted-soft);
     margin-bottom: 0.7rem;
 }

 .board-columns {
     flex: 1;
     display: grid;
     grid-template-columns: repeat(3, minmax(0, 1fr));
     gap: 1rem;
     min-height: 0;
 }

 .header-link {
     padding: 0.15rem 0.4rem;
     border-radius: 0.3rem;
     border: 1px solid transparent;
     cursor: pointer;
     transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
 }

 @media (max-width: 1024px) {
     .board-columns {
         grid-template-columns: repeat(2, minmax(0, 1fr));
     }
 }

 @media (max-width: 768px) {
     .board-columns {
         grid-template-columns: 1fr;
     }
 }

 /* MOBILE FIX: Board soll so hoch sein wie sein Inhalt,
   nicht auf die freie Höhe gequetscht werden */
 @media (max-width: 768px) {

     .board-main {
         min-height: auto;
     }

     .board-columns {
         flex: 0 0 auto;
         /* kein flex:1 mehr, Höhe durch Inhalt */
     }

     .column {
         min-height: auto;
         max-height: none;
     }

     .column-body {
         overflow: visible;
         max-height: none;
     }
 }


 .column {
     background: radial-gradient(circle at top left, #030712, #020617 60%, #020617);
     border-radius: 0.8rem;
     border: 1px solid var(--border-soft);
     display: flex;
     flex-direction: column;
     min-height: 260px;
     max-height: 100%;
 }

 .column-header {
     padding: 0.7rem 0.8rem 0.5rem;
     border-bottom: 1px solid var(--border-soft);
     display: flex;
     align-items: center;
     justify-content: space-between;
     gap: 0.4rem;
 }

 .column-title-wrap {
     display: flex;
     flex-direction: column;
     gap: 0.15rem;
 }

 .column-title {
     font-size: 0.85rem;
     font-weight: 600;
     text-transform: uppercase;
     letter-spacing: 0.12em;
 }

 .column-sub {
     font-size: 0.72rem;
     color: var(--muted-soft);
 }

 .column-count {
     font-size: 0.7rem;
     padding: 0.1rem 0.45rem;
     border-radius: 999px;
     border: 1px solid var(--border-subtle);
     background: #020617;
     color: var(--muted-soft);
     font-family: var(--font-mono);
 }

 .column-body {
     padding: 0.6rem 0.6rem 0.8rem;
     overflow-y: auto;
 }

 .issue {
     background: var(--card-bg);
     border-radius: 0.55rem;
     border: 1px solid var(--border-subtle);
     padding: 0.55rem 0.6rem;
     margin-bottom: 0.5rem;
     display: flex;
     flex-direction: column;
     gap: 0.3rem;
     font-size: 0.8rem;
     cursor: default;
     transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.12s ease;
 }

 .issue:hover {
     border-color: var(--accent-soft);
     box-shadow: 0 10px 25px rgba(15, 23, 42, 0.9);
     transform: translateY(-1px);
 }

 .issue-top {
     display: flex;
     align-items: center;
     justify-content: space-between;
     gap: 0.4rem;
 }

 .issue-key {
     font-family: var(--font-mono);
     font-size: 0.72rem;
     color: var(--muted-soft);
 }

 .issue-priority {
     font-size: 0.7rem;
     padding: 0.05rem 0.4rem;
     border-radius: 999px;
     border: 1px solid var(--border-subtle);
     display: inline-flex;
     align-items: center;
     gap: 0.25rem;
 }

 .priority-dot {
     width: 0.38rem;
     height: 0.38rem;
     border-radius: 999px;
 }

 .priority-high .priority-dot {
     background: #f97373;
     box-shadow: 0 0 8px rgba(248, 113, 113, 0.7);
 }

 .priority-normal .priority-dot {
     background: #22c55e;
     box-shadow: 0 0 8px rgba(34, 197, 94, 0.7);
 }

 .priority-low .priority-dot {
     background: #64748b;
 }

 .issue-title {
     font-size: 0.85rem;
     font-weight: 500;
     margin-top: 0.1rem;
 }

 .issue-desc {
     font-size: 0.78rem;
     color: var(--muted);
     line-height: 1.4;
 }

 .issue-tags-row {
     margin-top: 0.1rem;
     display: flex;
     flex-wrap: wrap;
     gap: 0.3rem;
     align-items: center;
 }

 .issue-tag {
     font-size: 0.7rem;
     padding: 0.08rem 0.45rem;
     border-radius: 999px;
     border: 1px solid var(--border-subtle);
     background: #020617;
     color: var(--muted-soft);
     font-family: var(--font-mono);
 }

 .issue-tag.green {
     border-color: var(--accent-soft);
     background: #022c22;
     color: var(--accent);
 }

 .issue-footer {
     margin-top: 0.15rem;
     font-size: 0.72rem;
     display: flex;
     align-items: center;
     justify-content: space-between;
     gap: 0.4rem;
     color: var(--muted-soft);
 }

 .issue-footer-left {
     display: flex;
     align-items: center;
     gap: 0.4rem;
 }

 .issue-assignee {
     font-family: var(--font-mono);
 }

 .issue-meta {
     font-family: var(--font-mono);
 }

 /* CTA BAR UNTER DEM BOARD */

 .hire-cta-bar {
     margin-top: 1rem;
     padding: 0.8rem 0.9rem;
     border-radius: 0.7rem;
     border: 1px dashed var(--border-soft);
     background: rgba(15, 23, 42, 0.85);
     display: flex;
     flex-wrap: wrap;
     gap: 0.8rem;
     align-items: center;
     justify-content: space-between;
     font-size: 0.82rem;
     color: var(--muted);
 }

 @media (max-width: 680px) {
     .hire-cta-bar {
         flex-direction: column;
         align-items: flex-start;
     }
 }

 .hire-cta-actions {
     display: flex;
     flex-wrap: wrap;
     gap: 0.5rem;
     align-items: center;
 }

 .hire-btn {
     padding: 0.4rem 0.9rem;
     border-radius: 999px;
     border: 1px solid var(--accent-soft);
     background: linear-gradient(135deg, #22c55e, #16a34a);
     color: #01110a;
     font-size: 0.8rem;
     font-weight: 600;
     cursor: pointer;
     text-decoration: none;
     font-family: var(--font-sans);
     box-shadow: 0 10px 25px rgba(34, 197, 94, 0.3);
     transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
 }

 .hire-btn:hover {
     transform: translateY(-1px);
     filter: brightness(1.03);
     box-shadow: 0 14px 35px rgba(34, 197, 94, 0.4);
 }

 .hire-link {
     font-size: 0.8rem;
     color: var(--accent-blue);
     border-bottom: 1px dashed rgba(56, 189, 248, 0.4);
     padding-bottom: 0.03rem;
 }

 .hire-link:hover {
     border-bottom-style: solid;
 }

 /* FOOTER */

 .footer {
     border-top: 1px solid var(--border-subtle);
     padding: 0.7rem 1.4rem 0.9rem;
     font-size: 0.75rem;
     color: #6b7280;
     display: flex;
     justify-content: space-between;
     align-items: center;
     gap: 0.6rem;
     font-family: var(--font-mono);
 }

 @media (max-width: 640px) {
     .footer {
         flex-direction: column;
         align-items: flex-start;
     }
 }

 .footer span.accent {
     color: var(--accent);
 }

 @media (max-width: 768px) {
     body {
         font-size: 14px;
     }

     .topbar {
         padding: 0.5rem 1rem;
     }

     .topbar-left {
         gap: 0.6rem;
     }

     .topbar-right {
         gap: 0.4rem;
         font-size: 0.7rem;
     }

     .board-header {
         height: auto;
         padding: 0.75rem 1rem;
         flex-direction: column;
         align-items: flex-start;
         gap: 0.6rem;
     }

     .board-header-right {
         width: 100%;
         justify-content: flex-start;
         flex-wrap: wrap;
         gap: 0.4rem;
     }

     .board-main {
         padding: 0.8rem 1rem 1rem;
     }

     /* Nur noch eine Spalte untereinander */
     .board-columns {
         grid-template-columns: 1fr;
         gap: 0.8rem;
     }

     .column {
         min-height: auto;
         max-height: none;
     }

     /* Kein internes Scrolling auf Handy, lieber normale Seite scrollen */
     .column-body {
         overflow: visible;
         max-height: none;
     }

     .issue {
         font-size: 0.78rem;
     }

     .issue-title {
         font-size: 0.82rem;
     }

     .issue-desc {
         font-size: 0.76rem;
     }

     .hire-cta-bar {
         padding: 0.8rem;
     }

     .footer {
         padding: 0.7rem 1rem 0.9rem;
     }
 }

 /* Sehr kleine Devices */
 @media (max-width: 480px) {
     .topbar {
         flex-direction: column;
         align-items: flex-start;
         gap: 0.3rem;
         height: auto;
     }

     .board-title {
         font-size: 0.95rem;
     }

     .board-subtitle {
         font-size: 0.75rem;
     }

     .board-pill {
         font-size: 0.7rem;
     }

     .board-filter {
         width: 100%;
         text-align: center;
     }

     .hire-cta-actions {
         flex-direction: column;
         align-items: stretch;
     }

     .hire-btn {
         width: 100%;
         text-align: center;
     }
 }