:root{
 --bg:#0f172a;
 --panel: #111827aa;
 --panel2: #0b1220;
 --border: #22314d;
 --text: #e2e8f0;
 --muted: #38bdf8;
 --accent: #38bdf8;
}

*{box-sizing: border-box;}

body {
  font-family: "Space Grotesk", sans-serif;
  background-color:#0f172a;
  color: #e5e7eb;
  margin: 0 auto;
  padding: 40px 18px;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
  background-image:
  linear-gradient(rgba(56,189,248,0.06) 1px, transparent 1px);   
background-size: 32px 32px;
} 

.page-content{
  position:relative;
  z-index: 2;
}
.scan-layer{
  pointer-events:none;	
  position:fixed;
  inset:0;
  pointer-events:none;
  z-index:1;
--trail-angle: 90deg;
--point-x: 5px;
} 
.scan-layer::before{
  content:"";
  position: absolute;
  left: 0;
  top: 0;
  width: 48px;
  height: 2px;
  background:linear-gradient(var(--trail-angle),
 	 rgba(56,189,248,0.05) 0%,
         rgba(56,189,248,0.18) 45%,
         rgba(56,189,248,0.45) 75%,
         transparent 100%);

  border-radius: 999px;
  filter: blur(0.8px);

  transform: translate(
		calc(var(--scan-x, 0px) - var(--pointer-x, 
	     2.5px) + var(--trail-offset, 0px)), 
		calc(var(--scan-y, 0px) - 1px));
}

.scan-layer::after{
  content:"";
  position:absolute;
  left:0;
  top:0;

  width:5px;
  height:5px;

  border-radius:50%;

  background:radial-gradient(circle at 50% 50%,
	 rgba(56,189,248,1) 0px,
	 rgba(56,189,248,0.95) 3px,
 	 rgba(56,189,248,0.25) 6px,
	 transparent 8px);

  box-shadow:
	 0 0 6px rgba(56,189,248,0.7),
	 0 0 12px rgba(56,189,248,0.25);

  transform: translate(
	calc(var(--scan-x,0px) - 2.5px),
 	calc(var(--scan-y,0px) - 2.5px));
}	

nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid var(--border);
  background:rgba(17,24,39,0.7);
  backdrop-filter: blur(6px);
  border-radius: 14px;
  margin-bottom: 28px;
}

nav a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
  padding: 8px 10px;
  border-radius: 10px;
  transition: .12s ease, background .12s ease, color .12s ease;
}
nav a::after{
  content:"";
  display:block;
  height:2px;
  width:0;
  background: var(--accent);
  transition:width .25s ease;
  margin-top:4px;
}
nav a:hover {
  background: rgba(56,189,248,0.12);
  transform: translateY(-1px);
  color: #ffffff;
}
 
nav a:hover::after, nav a.active::after{
  width: 100%;
}

nav a.active {
  background: rgba(56,189,248,0.18);
  color: #ffffff;
  box-shadow: 0 0 10px rgba(56,189,248,0.35);
}

h1 {
  display: inline-block;
  font-family:"inter", sans-serif;
  font-size: 48px;
  font-weight:800;
  letter-spacing: 1px;
  margin:0 0  12px 0;
  background: linear-gradient(90deg, #06b6d4 0%, #3b82f6 25%, #06b6d4 50%, #22c55e 75%, #16a34a 85%, #06b6d4 100%);
  background-size: 300% 100%;
  background-position: 0% 50%;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: nameGlow 5s ease-in-out infinite alternate;
}
@keyframes nameGlow{
 0%{
background-position:0% 50%;
}
 100%{
background-position:100% 50%;
 }
}
h2 {
  font-family:"inter", sans-serif;
  color:var(--muted);
  margin:0 0 16px;
  font-weight:600;
}
.quick-facts{
 display:flex;
 gap:18px;
 flex-wrap:wrap;
 margin:10px 0 18px 0;
 font-size:14px;
 color:var(--muted);
}
.quick-facts span{
  background:rgba(56,189,248,0.08);
  border:1px solid rgba(56,189,248,0.25);
  padding:4px 10px;
  border-radius:8px;
}
 .status{
  display:flex;
  align-items:center;
  gap:6px;
  color:var(--accent);
  font-weight:500;
  margin:8px 0 14px 0;
}
 .status-dot{
  display:inline-block;
  width:8px;
  height:8px;
  border-radius:50%;
  background:#22c55e;
  box-shadow:0 0 6px #22c55e;
  animation:statusPulse 2s infinite;
}
.status{
  transition:color .2s ease;
}

.status-dot{
  transition:transform .2s ease, box-shadow .2s ease;
}
.status:hover{
  color:#4ade80;
  text-shadow: 0 0 6px rgba(134,239,172,1),
               0 0 12px rgba(34,197,94,0.9),
 	       0 0 20px rgba(34,197,94,0.7);
}
.status:hover .status-dot{
  transform:scale(1.2);
  box-shadow:0 0 12px #22c55e, 0 0 22px #22c55e;
}


@keyframes statusPulse{
0%{
  transform:scale(1);
  box-shadow:0 0 4px #22c55e;
  opacity:1.2;
}
50%{
  transform:scale(1.4);
  box-shadow:0 0 10px #22c55e;
  opacity:2.2;
}
100%{
  transform:scale(1);
  box-shadow:0 0 4px #22c55e;
  opacity:1.2;
 }
}

h3 {
  font-family:"inter", sans-serif;
  color:#6bdcff;
  font-weight:500;
  font-size:19px;
  margin-top:40px;
  margin-bottom:14px;
}

h4 {
  color:#22c55e;
  font-family:"inter",sans-serif;
  font-weight:450;
  font-size:18px;
  margin-top:40px;
  margin-bottom:14px;
}

p{ margin:12px 0;
}
.easter-letter{
  font-weight:500;
  text-shadow:0 0 8px #22c55e,0 0 16px rgba(56,189,248,0.7);
  cursor:pointer;
}
.easter-hit{
 color:#22c55e !important;
 text-shadow:0 0 14px #22c55e;
 transition:all 0.2s ease;
}
 .praktikums-hinweis{
  color:var(--muted);
  font-weight:500;
  margin-top:14px; 
}

hr {
  border:0;
  height:1px;
  background:#334155;
  margin:26px 0;
}

ul {
  padding-left: 22px;

}

li {
  margin-bottom: 8px;
}

.card{
  background:linear-gradient(
   180deg,
   rgba(17,24,39,0.94),
   rgba(11,18,32,0.94)
  );
  border:1px solid rgba(45,212,191,0.15);
  border-radius:18px;
  padding:20px 22px;
  margin:18px 0;
  box-shadow:0 10px 30px rgba(0,0,0,0.25),
   0 0 0 1px rgba(45,212,191,0.05) inset;
  transition:all 0.25s ease;
}
.sql-card{
	margin:16px;
	padding:20px 16px;
	border-radius:16px;
	background:rgba(8,12,24,0.88);
	border:1px solid rgba(80,150,255,0.18);
	box-shadow:0 10px 30px rgba(0,0,0,0.35);
	overflow:visible;
}
.card h3{
  margin-bottom:12px;
  color:#2dd4bf;
  font-size:18px;
}

.card h4{
  text-align:center;
  color:#22c55e;
  width:100%;
  margin-top:12px;
}

.card p{
  margin-bottom:14px;
  color:#cbd5e1;
}

.card ul{
  padding-left:18px;
  margin:0;
}

.card li{
  margin-bottom:8px;
  color:#94a3b8;
}

.card:hover{
  transform:translateY(-4px);
  border-color:rgba(45,212,191,0.4);
  box-shadow:0 15px 40px rgba(0,0,0,0.35),
   0 0 25px rgba(45,212,191,0.15);
}
.card:hover h3{
  color:#38bdf8;
}
.projects-page .card h3{
  color:#2dd4bf;
  margin-bottom:10px;
}
.projects-page .card p{
  color:#cbd5e1;
  margin-bottom:12px;
}
.projects-page .card ul{
  padding-left:18px;
  margin:0;
}
.projects-page .card li{
  color:#94a3b8;
  margin-bottom:6px;
}

.muted{
  color:var(--muted);
}

pre {
  background-color: #0b1020;
  padding: 18px;
  border-radius: 14px;
  overflow-x: auto;
  border: 1px solid #1f2a44;
  font-family: Consolas, Monaco, 'Courier New', monospace;
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}
code {
  color: #cbd5e1;
}
.kw {color: #38bdf8; font-weight:700;}
.fn {color: #a78bfa;}
.str {color: #34d399;}
.cm {color: #64748b; font-style: italic;}
.num {color: #fbbf24;}

.skill-header{
 display: flex;
 justify-content: space-between;
 font-size: 14px;
 margin-bottom: 6px;
}
.skill-header span:last-child {
 color: var(--muted);
}
.skill-percent {
 min-width: 45px;
 text-align: right;
 font-variant-numeric:tabular-nums;
}
.skill{
  margin-bottom: 18px;
  transition: transform 0.2s ease;
}
.skill-name {
  margin-bottom: 6px; 
  font-weight:600;
}
.skill-bar {
  background: #1e293b;
  border-radius: 10px;
  height: 10px;
}
.skill-fill {
  display: block;
  height: 100%;
  width:0%; 
  transition: width 1.2s ease;
  box-shadow: 0 0 8px rgba(80,150,255,0.4);
  position: relative;
  overflow: hidden;
}
.skill-fill::after{
 content:"";
 position:absolute;
 top:0;
 left:-100%;
 width:100%;
 height:100%;
 z-index: 2;
 pointer-events:none;
 background:linear-gradient(120deg,
 transparent, rgba(255,255,255,0.4),
 transparent
 );
 animation:skillShimmer 2.5s infinite;
} 
.skill-fill.hardware {
 background: linear-gradient(90deg, #3b82f6, #2563eb);
 box-shadow: 0 0 8px rgba(59,130,246,0.7), 0 0 16px rgba(59,130,246,0.5);
}
.skill:hover .skill-fill.hardware {
  box-shadow: 0 0 22px rgba(34,197,94,0.95);
  transform: scaleX(1.02);
  transform-origin: left center;
}
.skill-fill.software {
 background: linear-gradient(90deg, #22c55e, #16a34a);
 box-shadow: 0 0 8px rgba(34,197,94,0.7), 0 0 16px rgba(34,197,94,0.5);
}
.skill:hover .skill-fill.software {
  box-shadow: 0 0 22px rgba(34,197,94,0.95);
  transform: scaleX(1.02);
  transform-origin: left center;
}
.skill.reveal {
 opacity:0;
 transform:translateY(14px);
 transition:
  opacity 600ms cubic-bezier(.2,.8,.2,1);
  transform 600ms cubic-bezier(.2,.8,.2,1);
}

.skill.reveal.is-visible {
 opacity:1;
 transform:translateY(0);
}
a{
color:var(--accent);
}
.sql-cv {
  background:#0f172a;
  padding: 30px;
  border-radius:12px;
  font-family:monospace;
  border:1px solid rgba(56,189,248,0.18);
  box-shadow:0 10px 30px rgba(0,0,0,0.28);
}
.sql {
  color:#e5e7eb;
  margin-top:20px;
  font-family:monospace;
  padding:20px;
  border-radius:8px;
  line-height:1.7;
  background:rgba(2,6,23,0.45);
  border:1px solid rgba(56,189,248,0.08);
  white-space:pre-wrap;
}
.sql-keyword {
  color: #38bdf8;
  font-weight: 700;
  text-shadow: 0 0 6px rgba(56,189,248,0.35);
}

.sql-table {
  color: #22c55e;
  font-weight: 600;
  text-shadow: 0 0 6px rgba(34,197,94,0.35);
}

.sql-string {
  color: #fbbf24;
  font-weight: 600;
  text-shadow: 0 0 6px rgba(251,191,36,0.35);
}

.sql-comment {
  color: #94a3b8;
  font-style: italic;
  opacity: 0.85;
}
}
.sql-result {
  color:#e5e7eb;
  margin:18px 0 28px;
  padding:16px 18px;
  background:rgba(2,6,23,0.35);
  border:1px solid rgba(34,197,94,0.22);
  border-radius:8px;
  display:inline-block; 
  font-family:monospace;
  white-space:pre;
  box-sizing:border-box;
  text-align:left;
}
.sql-result pre{
 margin:0;
 font-family:monospace;
 color:#e5e7eb;
}
.sql::before {
  content:">";
  color:#22c55e;
  font-weight:700;
}
.typewriter {
  white-space:pre-wrap;
  border-right:2px solid #22c55e;
  min-height:3.5em;
  opacity:0;
  transition:opacity 0.2s ease;
}
.typewriter.is-visible{
  opacity:1;
}
.typewriter.typing {
  animation:cursorBlink 0.8s step-end infinite;
}

@keyframes cursorBlink {
  50%{
border-color:transparent;
 }
}

 .projects{
  display:grid;
  gap:20px;
  margin-top:20px;
}
.skills-overview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.skills-overview .card {
  margin: 0;
  display: flex;
  flex-direction: column;
}

.skills-overview .card h3 {
  margin-top: 0;
}

.skills-overview .skill:first-of-type {
  margin-top: auto;
  padding-top: 18px;
}

.skills-overview .skill-bar {
  overflow: hidden;
}
 @media (min-width:900px){
  .projects{
   grid-template-columns: 1fr 1fr;
  }
 }

.badge-grid {
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin-top: 12px;
}
.badge{
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  background: rgba(17,24,39,0.85);
  border-radius: 14px;
  padding: 18px 18px 18px 20px;
  transition: all .2s ease;
}
.badge-hover {
 transform: translateY(-4px);
 box-shadow: 0 14px 30px rgba(0,0,0,0.35);
}
.badge-title {
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 6px;
  color: #ffffff;
}
.badge-text {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}
}

@media (max-width: 700px){
 .badge-grid{grid-template-columns:1fr;}
}
.badge.hardware {
 border-left: 4px solid #3b82f6;
}
.badge.software {
 border-left: 4px solid #22c55e;
}
.badge.workflow {
 border-left: 4px solid #06b6d4;
}
.section-card {
 border: 1px solid var(--border);
 background: rgba(17,24,39,0.75);
 border-radius: 18px;
 padding: 24px;
 margin-bottom: 28px;
}

#software {
 margin-top: 140px;
}

 html {
  scroll-behavior: smooth;
}

@keyframes skillShimmer {
 0%{left:-100%;
 }
 100%{left:120%;
 }
}

@media(max-width: 768px){

 body{
  overflow-x:auto;
}
 nav{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  justify-content:center;
}
.card, .cv{
  margin:16px;
  padding:20px 16px;
  border-radius:16px;
}
 h1{
  font-size:28px;
}
 h2{
  font-size:22px;
}
 h3{
  font-size:18px;
}
 p, li{
  font-size:15px;
  line-height:1.6;
}
.actions{
  flex-direction:column;
  gap:10px;
}
.btn{
  width:100%;
  text-align:center;
}
.projects-page .card{
  width:100%;
  margin:14px 0;
}
.projects-page ul{
  padding-left:18px;
}
.project-grid{
grid-template-columns:1fr;
}
.skill-grid, .skills{
 grid-template-columns:1fr;
}
.skill-box, .card.skills-section{
  width:100%;
  box-sizing:border-box;
}
.skill-header{
  flex-direction:column;
  align-items:flex-start;
  gap:4px;
}
.skill-percent{
  align-self:flex-end;
}
.card{
  overflow:visible;
}
.sql-cv{
  white-space:pre;
}
.sql-scroll{
   width:100%;
   max-width:100%;
   overflow-x:auto;
   overflow-y:hidden;
   touch-action:pan-x;
  -webkit-overflow-scrolling:touch;
 }
	.sql-content{
		margin-left:0;
		margin-right:0;
		vertical-align:top;
}
 .sql-result{
	 white-space:pre;
	 min-width:1400px;
	 font-family:monospace
	 overflow-x:auto;
	 display:block;
	 padding:12px 14px;
 }
  .sql-result,
  .sql.typewriter,
  .sql-result pre{
	font-size:13px;
	line-height:1.5;
  }
  .sql-card{
	  margin:10px 0;
  }
.skills-overview {
  grid-template-columns: 1fr;
 }

.skills-overview .card {
  margin: 0;
 }
}
 


