:root {
  --color-bg: #ffffff;
  --color-text: #1a1a1a;
  --color-text-secondary: #555555;
  --color-divider: #e6e6e6;

  --color-accent-primary: #8d0b76;
  --color-accent-secondary: #af549f;
  --color-accent-soft: #f3e6f1;
}

body {
  margin: 0;
  padding: 0 32px;       
  background-color: var(--color-accent-primary); /* #8d0b76 */
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Inter", sans-serif;
  color: var(--color-text);
}

h1, h2, h3 {
  color: var(--color-text);
  margin-top: 0;
}

h2 {
  border-bottom: 2px solid var(--color-accent-primary);
  display: inline-block;
  padding-bottom: 0.2rem;
}

a {
  color: var(--color-accent-primary);
  text-decoration: none;
}

a:hover {
  color: var(--color-accent-secondary);
  text-decoration: underline;
}

.card {
  background-color: var(--color-accent-soft);
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

.icon {
  color: var(--color-accent-primary);
}

.page {
  background-color: var(--color-bg);
  max-width: 1100px;
  margin: 40px auto;              
  padding: 48px 56px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.18);
  border-radius: 4px;
}

.intro {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: start;
  margin-bottom: 64px;
}

.intro-image {
  justify-self: end;
  margin-right: -12px;
  margin-top: 65px;
}

.profile-photo {
  max-width: 220px;  
  height: auto;
}

.banner img{
  width: 100%;
  height: auto;
  display: block;
}

.page .banner{
  margin: -1.8rem -2rem 0.75rem -2rem;
}

.icon-nav{
  display: flex;
  justify-content: space-between;
  margin-top: -16px;
  gap: 18px;
  margin-bottom: 28px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--color-divider);
}

.nav-item{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--color-text-secondary);
  padding: 15px 14px 12px;
  border-radius: 6px;
  transition: transform 160ms ease, background-color 160ms ease;
}

.nav-icon{
  width: 64px;     /* passe gerne an: 56–72 */
  height: 64px;
  display: block;
  border-radius: 18px; /* passend zu deinen PNGs */
  opacity: 0.85;
  transition: transform 160ms ease, filter 160ms ease, opacity 160ms ease, box-shadow 160ms ease;
}

.nav-label{
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.2px;
}

/* Hover: “klickbar” */
.nav-item:hover{
  background: rgba(141, 11, 118, 0.06); /* sehr soft lila */
  transform: translateY(-1px);
}
.nav-item:hover .nav-icon{
  opacity: 1;
  filter: brightness(1.08) saturate(1.05);
  box-shadow: 0 10px 22px rgba(0,0,0,0.10);
  transform: translateY(-2px);
}
.nav-item:hover .nav-label{
  color: var(--color-accent-primary);
}

/* Active: “du bist hier” */
.nav-item.active{
  background: rgba(141, 11, 118, 0.10);
}
.nav-item.active .nav-icon{
  opacity: 1;
  box-shadow: 0 0 0 3px rgba(141, 11, 118, 0.25);
}
.nav-item.active .nav-label{
  color: var(--color-accent-primary);
}


.intro-text {
  text-align: justify;
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
  hyphens: auto;
  line-height: 1.5;
}

/* Section divider (horizontal line like navigation) */
.section-divider {
  border: none;
  height: 1px;
  background-color: #d8d8d8;
  margin: 48px 0 40px 0;
}

/* Info section layout */
.info-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  max-width: 1100px;
  padding-top: 4px;
}

/* Headings */
.info-section h2 {
  margin-top: 0;
  margin-bottom: 16px;
  font-size: 1.3rem;
}

/* Research list */
.research-list {
  list-style: none;
  padding-left: 0;
}

.research-list li {
  margin-bottom: 12px;
  line-height: 1.5;
}

.contact-list {
  list-style: none;
  padding-left: 0;
}

.contact-list li {
  margin-bottom: 10px;
}

.contact-list a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid #bbb;
}

.contact-list a:hover {
  border-bottom-color: #6b1f6f; /* dein Lila */
}

.section-divider {
  margin: 12px 0 16px 0;  /* vorher war das zu großzügig */
}

.info-section h2 {
  margin-top: 0;
}

.research-list li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 12px;
  line-height: 1.5;
}

.research-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0.05em;
  color: #6b1f6f;
  font-weight: bold;
}

.intro p:last-of-type {
  margin-bottom: 15px;
}

.intro {
  padding-bottom: 15px;
  margin-bottom: 15px;
}

/* ===== Publications ===== */

.page-header {
  margin: 22px 0 18px;
}

.page-subtitle {
  margin-top: 6px;
  max-width: 70ch;
  opacity: 0.9;
}

.pub-years {
  margin-top: 18px;
  display: grid;
  gap: 0px;
}

.pub-year-title {
  margin: 18px 0 12px;
  font-size: 1.25rem;
  letter-spacing: 0.3px;
}

.pub-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 18px;
  padding: 14px;
  border-radius: 16px;
  border: 2px solid var(--color-accent);
  background: rgba(255, 255, 255, 0.35);

  align-items: start;   /* <<< DAS ist der Schlüssel */
}

.pub-thumb {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.12);
  background: rgba(255,255,255,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pub-thumb img {
  width: 100%;
  height: auto;
  display: block;
}


.pub-thumb--placeholder {
  font-size: 0.95rem;
  opacity: 0.75;
}

.pub-citation {
  margin: 0;
  line-height: 1.45;
  text-align: justify;
  hyphens: auto;
}

.pub-title {
  font-weight: 700;
}

.pub-venue {
  opacity: 0.95;
}

.pub-link {
  margin-left: 8px;
  font-weight: 600;
  text-decoration: none;
}

.pub-link:hover {
  text-decoration: underline;
}

.pub-summary {
  margin: 10px 0 10px;
  line-height: 1.55;
  max-width: 85ch;
  text-align: justify;
  hyphens: auto;
}

 
.pub-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 10px;
}

.pub-button {
  display: inline-block;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.14);
  background: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.pub-button:hover {
  filter: brightness(0.98);
}

.pub-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.pub-tag {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  background: #f3e6f1;
  border: 1px solid #d6b4d0;
  font-size: 0.92rem;
  line-height: 1;
}


@media (max-width: 720px) {
  .pub-card {
    grid-template-columns: 1fr;
  }
  .pub-thumb {
    max-width: 420px;
  }
}

.site-footer {
  margin-top: 80px;
  padding: 24px 0;
  text-align: center;
  font-size: 0.9rem;
  color: #efe9f7;
}

.site-footer a {
  color: inherit;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.legal-separator {
  border: none;
  border-top: 1px solid #ddd;
  margin: 40px 0;
}

.cv-actions {
  display: flex;
  gap: 12px;
  margin: 18px 0 10px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.12);
  text-decoration: none;
  font-weight: 600;
}

.btn.primary {
  border-color: transparent;
}

.meta {
  margin-top: 6px;
  opacity: 0.8;
}


.btn.primary {
  background-color: #8b1d6b;
  color: #fff;
  border: 1px solid #8b1d6b;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.12);
}

.cv-follow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
}

.follow-label {
  font-size: 0.85rem;
  opacity: 0.8;
  margin-right: 4px;
}

.follow-icon {
  width: 28px;          /* ↓ kleiner */
  height: 28px;         /* ↓ kleiner */
  border-radius: 50%;
  background-color: #8d0b76;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.follow-icon svg {
  width: 14px;          /* ↓ Icon selbst kleiner */
  height: 14px;
  fill: #ffffff;
}

.follow-icon:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.18);
}

.counter {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.counter-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-color);
  line-height: 1;
}

.counter-label {
  font-size: 0.95rem;
  color: #555;
}

/* Unified section headings */
.info-section h2,
.sheet h2 {
  margin-top: 0;
  margin-bottom: 16px;
  font-size: 1.3rem;
}

/* Image cards (Awards) */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.card {
  margin: 0;
}

.card-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  border: 1px solid #d8d8d8;
}

.card-caption {
  margin-top: 10px;
  font-size: 0.95rem;
  line-height: 1.4;
  color: #333;
}

/* Certificates grid */
.expand summary {
  cursor: pointer;
  font-weight: 600;
  margin-bottom: 16px;
}

.thumb-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.thumb {
  margin: 0;
}

.thumb img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  border: 1px solid #d8d8d8;
}

.thumb figcaption {
  margin-top: 8px;
  font-size: 0.85rem;
  color: #444;
  line-height: 1.3;
}

/* Responsive */
@media (max-width: 900px) {
  .card-grid { grid-template-columns: 1fr; }
  .thumb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

