*{
    margin:0;
    padding:0;
    font-family: sans-serif;
}

html{
    background:#2d3a43;
}

body{
    background-image: linear-gradient(to right, rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(to bottom, rgba(255, 255, 255, .04) 1px, transparent 1px);
    background-size: 36px 36px;
    animation: grid-move 10s linear infinite;
}

#action_bar{
    color:#fff;
    text-decoration: none;
    font-size: 18px;
    display: block;
    text-align: center;
    background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
background-size: 400% 400%;
animation: gradient 15s ease infinite;
padding: 0.5em 1em;
}

header{
    max-width: 720px;
    margin: 0 auto;
    padding:1.5em 1em;
    display: flex;
    justify-content: space-between; /* Elemente werden an die äußeren Enden verteilt */
    align-items: center; /* Vertikale Zentrierung (optional) */
}

#logo{
    color:#fff;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
}

nav{
    color:#fff;
    font-size: 18px;
}

nav a{
    color:#fff;
    text-decoration: none;
    font-size: 18px;
    padding: 0 5px;
}

main{
    max-width: 720px;
    margin: 0 auto;
    color:#fff;
    padding: 0 1em;
}

footer{
    max-width: 720px;
    margin: 0 auto;
    padding:1.5em 1em;
    color:#fff;
    display: flex;
    justify-content: space-between; /* Elemente werden an die äußeren Enden verteilt */
    align-items: center; /* Vertikale Zentrierung (optional) */
}

footer a{
    color:#fff;
    text-decoration: none;
    padding: 0 5px;
}

#profilepic{
    border-radius: 50%;

}




section{
margin: 4em 0;
}

#blog ul, #projects ul, ul.formatted-list{
    display:flex;
    flex-direction: column;
    gap: 1em;
    list-style: none;
    margin-left: 0;
}

#blog ul, #projects ul, ul.formatted-list li{
    transition: opacity 0.5s ease, max-height 0.6s ease;
}

#blog ul li a, #projects ul li a, ul.formatted-list li a{
    display:block;
    padding: 1em;
    border: 1px solid gray;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s;
}

#blog ul li a.special, #projects ul li a.special, ul.formatted-list li a.special{

    border: 1px solid #fff;
    background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
}

#blog ul li a:hover, #projects ul li a:hover, ul.formatted-list li a:hover{
    background-color: rgba(0,0,0,0.2);
}



h1{
    font-size: 1.5rem;
    line-height: 2rem;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
}

p{
    margin: 9px 0;
    font-size: 18px;
    line-height: 1.6em;
}

a{
    color:#fff;
}

ul{
    list-style: none;
}

.icon-list {
  list-style: none;
  padding-left: 0;
  margin-top: 1rem;
}

.icon-list li {
  margin-bottom: 0.75rem;
  font-size: 1.4em;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}


button.toggle-button {
    text-align: center;
    margin: 20px auto;
    display: block;
    min-width: 250px;
    width: 25%;
    line-height: 30px;
    background: rgba(0, 0, 0, 0);
    border: 1px solid gray;
    border-radius: 5px;
    cursor: pointer;
    color: #fff;
    font-weight: 600;
    transition: all 0.3s;
}

button.toggle-button:hover {
    background: rgba(0,0,0,0.2);
}


.flex{
    display: flex !important;
    gap: 1em;
    align-items: center;
}

.flex-space-bot{
    display: flex;
    justify-content: space-between; /* Elemente werden an die äußeren Enden verteilt */
}

.flex-space-bot > *{
    align-self: flex-end;
}


@keyframes grid-move {
0% {
background-position: 0 0
}

to {
background-position: 36px 36px
}
}

@keyframes gradient {
0% {
background-position: 0% 50%;
}
50% {
background-position: 100% 50%;
}
100% {
background-position: 0% 50%;
}
}



@media (min-width: 768px) {
  .vita-text {
    column-count: 2;
    column-gap: 2rem;
  }
}

.vita-summary-icons {
  list-style: none;
  padding-left: 0;
  margin-top: 1rem;
}
.vita-summary-icons li {
  margin-bottom: 0.5rem;
  font-size: 1.2em;
}

.fun-fact-box {
  background: #161616;;
  border-left: 4px solid #ff4081;
  padding: 1rem;
  margin: 2rem 0;
  font-style: italic;
}


.fade-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}


.fun-fact-box {
  animation: funfact-bounce 0.8s ease forwards;
}

@keyframes funfact-bounce {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  60% {
    opacity: 1;
    transform: translateY(-5px) scale(1.02);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}


.intro-lead{
    font-size: 1.4em;
}


.tool-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin: 2rem 0;
  justify-content: center;
}

.tool-gallery svg {
  width: 100%;
  height: auto;
  transition: transform 0.2s ease, opacity 0.2s ease;
  opacity: 0.8;
}

.tool-gallery svg:hover {
  transform: scale(1.1);
  opacity: 1;
}

.main-tools svg {
  width: 82px;
}

.secondary-tools svg {
  width: 50px;
  opacity: 0.8;
}

.secondary-tools svg:hover {
  opacity: 1;
}


.contact-hint {
  background: #161616;
  padding: 3rem 2rem;
  border-top: 2px solid #ff4081;
  text-align: center;
}

.contact-hint a {
  color: #ff4081;
  text-decoration: none;
  font-weight: bold;
}

.contact-hint a:hover {
  text-decoration: underline;
}



.hero-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.hero-text {
  flex: 1 1 300px;
}

.hero-image img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 50%;
  background: #111;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

.button {
  padding: 0.75rem 1.25rem;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  border: 2px solid transparent;
  font-weight: bold;
  background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
  transition: background-color 0.2s ease;
  background-size: 400% 400%;
  animation: gradient 15s ease infinite;
}

.button:hover {
  background:transparent;
  
  border: 2px solid #ffffff;
}

@media (max-width: 700px) {
  .hero-content {
    flex-direction: column-reverse;;
    align-items: center;
    text-align: center;
  }

  .hero-buttons {
  justify-content: center; /* zentriert die Buttons in der Zeile */
}

  .hero-image img {
    width: 150px;
    height: 150px;
  }
}


.latest-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 1.5rem;
}

.latest-item {
  flex: 1 1 300px;
  background: #1a1a1a;
  padding: 1.5rem;
  border-radius: 8px;
  border-left: 4px solid #ff4081;
}

.latest-item h3 {
  margin-top: 0;
}

.latest-item a {
  color: #ff4081;
  font-weight: bold;
  text-decoration: none;
}

.latest-item a:hover {
  text-decoration: underline;
}





.project-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.project-card {
  background: #111;
  border-radius: 10px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.proj-icon {
  width: 42px;
  height: 42px;
  border-radius: 6px;
  object-fit: cover;
  background: #222;
  border: 1px solid #333;
}

.card-desc {
  font-size: 0.85rem;
  color: #aaa;
  margin: 0.25rem 0 0 0;
}

.card-meta {
  font-size: 0.85rem;
  color: #ccc;
  display: flex;
  justify-content: space-between;
  margin-top: 1rem;
}

.tag {
  margin-left: auto;
  font-size: 0.7rem;
  font-weight: bold;
  padding: 0.35rem 0.7rem;
  border-radius: 20px;
  white-space: nowrap;
  color: #fff;
}

.tag.active    { background: #0a84ff; }
.tag.new       { background: #f0a202; }
.tag.sold      { background: #2ecc71; }
.tag.planning  { background: #777; }

.project-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.4);
  transition: all 0.2s ease;
}


.hero img {
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  border-radius: 100%;
}







.youtube-wrapper {
  position: relative;
  width: 100%;
  max-width: 640px;
  margin: 1em 0;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
}

.youtube-placeholder {
  width: 100%;
  height: 100%;
  position: relative;
  cursor: pointer;
}

.youtube-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.youtube-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.5rem;
  background: #ff4081;
  color: white;
  border: none;
  padding: 0.75rem 1.25rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
}

.youtube-play:hover {
  background: #e0306f;
}




/* BLOG */
.blog-card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

@media (min-width: 600px) {
  .blog-card-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.blog-card {
  display: block;
  background: #111;
  border: 1px solid #333;
  padding: 1.25rem;
  border-radius: 0.75rem;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

.blog-card .link-button {
  margin: 1em 0;
}

.blog-card:hover {
  background: #1b1b1b;
  border-color: #555;
}

.blog-card h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.2rem;
}

.blog-card .teaser {
  font-size: 0.95rem;
  color: #ccc;
  margin-bottom: 0.5rem;
}

.blog-card .date {
  font-size: 0.8rem;
  color: #888;
}

.reading-time {
  background: #eee;
  padding: 0.2em 0.5em;
  border-radius: 0.5em;
  font-size: 0.8em;
}

.back-to-blog {
  display: inline-block;
  margin-bottom: 1rem;
  color: #ccc;
  text-decoration: none;
  transition: color 0.2s ease;
}
.back-to-blog:hover {
  color: white;
}



/*BLOG ENDE */

/*BLOG SINGLE */
.blog-article {
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 1rem;
  line-height: 1.8;
  font-size: 1.05rem;
}

.article-header {
  margin-bottom: 2.5rem;
}

.article-header .meta {
  font-size: 0.85rem;
  color: #999;
  margin-bottom: 0.25rem;
}

.article-header h1 {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}

.article-header .subtitle {
  font-size: 1.3rem;
  color: #777;
  margin-top: -0.5rem;
}

.article-content h2, .article-content h3 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.article-content p {
  margin-bottom: 1.4rem;
}

.article-content blockquote {
  border-left: 4px solid #ccc;
  padding-left: 1rem;
  color: #666;
  font-style: italic;
  margin: 1.5rem 0;
}

.article-content pre {
  background-color: #1e1e1e;
  color: #f8f8f2;
  padding: 1rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin: 2rem 0;
  font-family: 'Courier New', Courier, monospace;
}

.article-header {
  text-align: center;
  margin-bottom: 4rem;
  padding: 2rem 1rem;
}

.article-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.article-subtitle {
  font-size: 1.25rem;
  color: #ccc;
  margin-bottom: 1rem;
}

.article-meta {
  font-size: 0.875rem;
  color: #888;
}

.article-navigation.styled-nav {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-columns {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}

.nav-block {
  max-width: 48%;
  display: flex;
  flex-direction: column;
}

.nav-label {
  font-size: 0.875rem;
  color: #999;
  margin-bottom: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.nav-link {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: #ff4081;
}

.back-button {
  display: inline-block;
  margin-bottom: 2rem;
  padding: 0.5em 1em;
  background: transparent;
  border: 1px solid #ccc;
  border-radius: 0.5rem;
  color: inherit;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.back-button:hover {
  background: rgba(255,255,255,0.05);
  border-color: #fff;
}



/*BLOG SINGLE ENDE */


.skiplink {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skiplink:focus {
  left: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  padding: 0.5rem;
  background: black;
  color: white;
  z-index: 999;
}


.blog-more-button {
  text-align: center;
  margin-top: 2rem;
}
