body {
  margin: 0;
  padding: 0;
  background-color: #000;
  color: #fff;
  font-family: Arial, sans-serif;
}

html {
  /* Modern fix: Reserves space for the scrollbar without showing it if not needed */
  scrollbar-gutter: stable;
}

/* Navigation */
.nav {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 5%;
}

.nav a {
  color: #fff;
  text-decoration: none;
  margin-right: 1rem;
}

a {
  text-decoration: none;
}

.nav a:hover {
  text-decoration: underline;
}

.logo {
  font-size: 2.5rem;
  font-weight: bold;
}

/* Main container */
.content {
  display: flex;
  flex-direction: column;
  align-items: center;
  /*padding: 40px 20px;*/
  width: 90%;
  max-width: 1000px;
  margin: 0 auto;
}

/*.content > * {*/
/*  width: 100%;*/
/*}*/


/* Mobile nav tweaks */
@media (max-width: 1000px) {
  .nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav a {
    margin-left: 0;
    margin-top: 10px;
  }

  .logo {
    font-size: 2rem;
  }
}

.blog-entry-container {
  /*width: 1000px;*/
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem;
  border: 1px solid #ccc;
  border-radius: 12px;
  /*width: 1000px;*/
  background-color: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  margin-bottom: 2em;
}
.blog-entry-link {
  width: 100%;
}
.blog-entry-date {
  font-size: 0.9rem;
  color: #666;
  margin: 1rem 1rem 0 1rem;
}
.blog-entry-title {
  font-size: 1.2rem;
  color: black;
  margin: 1rem 1rem 0 1rem;
}
.blog-entry-author {
  font-size: 0.9rem;
  color: #666;
  margin: 1rem 1rem 1rem 1rem;
}
.blog-entry-text {
  font-size: 0.9rem;
  color: black;
  margin: 0rem 1rem 1rem 1rem;
}
/*.blog-entry-text-fullsize {*/
/*  font-size: 0.9rem;*/
/*  color: black;*/
/*  margin: 0rem 1rem 1rem 1rem;*/
/*}*/
.blog-entry-subtitle {
  font-size: 1rem;
  color: black;
  margin: 1rem 1rem 0 1rem;
  font-weight: bold;
}
.contact-image {
   width: 200px;
  height: 200px;
  background-size: cover;
  background-position: center;
  border-radius: 50%;
  margin: 0 1rem 0 0;

}
.contact-title {
  color: white;
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 1rem;
}
.contact-name{
  color: white;
  font-size: 1rem;
  margin: 0.2rem;

}
.contact-email {
  font-size: 1rem;
}
.seperator-image {
  width: 100%;
  height: 5px;
  background-size: cover;
  background-position: center;
  margin: 0.2rem 0 0.2rem 0;
  border-radius: 2px;
}


/* Fixed height, full width, center-cropped */
.blog-entry-image {
  width: 100%;
  height: 200px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 8px;
}

/* Update the main image style to work as an <img> tag */
.blog-entry-image-full-size {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px; /* Keeps round edges in normal view */
  /*cursor: zoom-in;    !* Shows user it is clickable *!*/
  transition: transform 0.2s ease;
}
.blog-entry-image-full-size:hover {
  transform: scale(1.01); /* Subtle hover effect */
}
.blog-entry-text p {
  text-align: justify;
  hyphens: auto; /* Wichtig für den Blocksatz, um große Lücken zu vermeiden */
}
.image-container {
  position: relative;
  width: 100%;
  /* Optional: falls du Abstände brauchst, aber gap im parent regelt das meist */
}

/* Der Fotografen-Nachweis */
.image-credit {
  position: absolute;
  bottom: 8px;
  right: 8px;
  color: #fff;
  font-size: 0.7rem;
  font-family: Arial, sans-serif; /* Konsistent mit Body */
  padding: 4px 8px;
  border-radius: 4px;
  pointer-events: none; /* Klicks gehen durch */
}

/* The Background Overlay */
.modal {
  display: flex; /* Flex centers the image */
  align-items: center;
  justify-content: center;
  position: fixed;
  z-index: 9999; /* Sit on top of everything */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85); /* Dark dimmed background */

  /* Animation states (Hidden by default) */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  backdrop-filter: blur(5px); /* Blurs the background website slightly */
}

/* The Active State (When open) */
.modal.active {
  opacity: 1;
  visibility: visible;
}

/* The Image inside the Modal */
.modal-content {
  max-width: 90%;
  max-height: 90%;
  border-radius: 12px; /* ROUND EDGES in fullscreen mode */
  box-shadow: 0 5px 30px rgba(0,0,0,0.5);
  /*cursor: zoom-out;*/

  /* Zoom Animation */
  transform: scale(0.8);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Bouncy pop effect */
}

/* When active, scale to normal size */
.modal.active .modal-content {
  transform: scale(1);
}

/* Container */
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;

  /* CRITICAL CHANGE: */
  align-items: flex-start; /* Aligns rows to the left edge of this container */

  /* OPTIONAL: Ensure the block itself doesn't stretch too wide */
  max-width: 100%;
}

/* Rows (Icon + Text) */
.contact-row {
  display: flex;
  align-items: center;
  gap: 15px; /* Fixed space between icon and text */

  color: #fff;
  font-size: 1rem;
  text-decoration: none;
  text-align: left;
}

/* Hover effect for the email link */
a.contact-row:hover {
  text-decoration: underline;
  opacity: 0.8;
}

/* Apply consistent size to both SVGs and Images */
.contact-row svg,
.contact-row img {
  width: 24px;
  height: 24px;
  min-width: 24px;
  object-fit: contain;
  display: block;
}

.icon-white {
  filter: brightness(0) invert(1);
}
.contact-wrapper {
  display: flex;
  flex-direction: row;
}

.cv-section-container {
  display: flex;
  flex-direction: column;

}
.cv-stage {
}
.cv-section {
    display: flex;
  flex-direction: column;
/*  !*width: 1000px;*!*/
  border: 1px solid #ccc;
  border-radius: 12px;
  background-color: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  margin-bottom: 2em;
  /*width: 1000px;*/
  padding: 1rem;
  gap: 0.5rem;
}

.cv-section-title {
  font-size: 1.2rem;
  color: black;
  margin: 1rem 1rem 0 1rem;
}
.cv-teach-title,
.cv-proj-title,
.cv-conf-title,
.cv-work-title,
.cv-field-title,
.cv-pub-title,
.cv-stage-title {
  font-size: 1.2rem;
  color: black;
  margin: 0rem 1rem 0 1rem;
}
.cv-teach-details,
.cv-proj-details,
.cv-conf-details,
.cv-work-details,
.cv-pub-details,
.cv-field-details,
.cv-stage-details {
  display: flex;
  flex-direction: row;
}
.cv-pub-authors {
  font-size: 0.9rem;
  color: black;
  margin: 0.2rem 1rem 0.2rem 1rem;
}
.cv-teach-date,
.cv-proj-date,
.cv-conf-date,
.cv-work-date,
.cv-field-date,
.cv-pub-date,
.cv-stage-date {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  font-size: 0.9rem;
  color: #666;
  margin: 0rem 0rem 0 1rem;
}
.cv-stage-date {
    min-width: 125px;
}
.cv-field-date {
  min-width: 175px;
}
.cv-pub-date {
  min-width: 40px;
}
.cv-work-date {
  min-width: 125px;
}
.cv-date-seperator {
  margin: 0 0.5rem 0 0.5rem;
}
.cv-teach-location,
.cv-proj-location,
.cv-conf-location,
.cv-work-location,
.cv-field-location,
.cv-pub-location,
.cv-stage-location {
  font-size: 0.9rem;
  color: #666;
  margin: 0rem 0rem 0 1rem;
}
.cv-teach-description,
.cv-proj-description,
.cv-conf-description,
.cv-work-description,
.cv-field-description,
.cv-pub-description,
.cv-stage-description {
  font-size: 0.9rem;
  color: black;
  margin: 0rem 1rem 0rem 1rem;
}

.home-title-image {
  border-radius: 12px 12px 0 0;
  width: 100%;
  height: 250px;
  background-size: cover;   /* Ensures image covers the box without stretching */
  background-position: center;
  background-repeat: no-repeat;
  /*background-position: 50% -100px;*/
  position: relative; /* This creates the coordinate system for the child */
  /*margin-bottom: 80px; !* IMPORTANT: Add margin so the hanging picture doesn't cover text below *!*/
}
.home-box {
  border-radius: 0 0 12px 12px ;
  width: 100%;
  height: 350px;
  background-color: white;
  display: flex;
  flex-direction: column;
  color: black;
}

/* 2. The Floating Profile Picture */
.home-profile-pic {
  width: 150px;
  height: 150px;
  border-radius: 50%;

  background-size: cover;
  background-position: center;

  border: 5px solid #fff; /* White border separates it from background */
  box-shadow: 0 4px 10px rgba(0,0,0,0.2); /* Shadow for 3D effect */

  /* POSITIONING LOGIC */
  position: absolute;
  bottom: 0; /* Anchor to the bottom line */

  /* CENTER HORIZONTALLY (Default) */
  left: 80%;

  /* -50% X: Centers it horizontally based on the left point
     +50% Y: Moves it DOWN half its height so it straddles the line
  */
  transform: translate(-50%, 60%);

  z-index: 10; /* Ensures it sits on top of everything */
}

.home-name {
  margin: 4rem 0 0 4rem;
  font-size: 1.5rem;
}
.home-job {
  margin: 0.3rem 0 0 4rem;
  font-size: 0.8rem;
}