/* ===== Design Tokens (Aktualisiert) ===== */
:root {
  --pot-maxw: 1200px;
  --pot-gap: 24px;
  --pot-radius: 20px;
  --pot-radius-sm: 12px;
  --pot-shadow: 0 16px 40px rgba(0,0,0,0.12);
  --pot-shadow-soft: 0 8px 24px rgba(0,0,0,0.08);
  --pot-shadow-hover: 0 24px 48px rgba(0,0,0,0.16);
  --pot-text: #0f172a;
  --pot-text-light: #64748b;
  --pot-surface: #ffffff;
  --pot-accent: #07387B; 
  --pot-accent-light: color-mix(in srgb, var(--pot-accent) 16%, transparent);
  --pot-bg: #f8fafc;
  --pot-bg-gradient: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  --pot-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Globale Verbesserungen ===== */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  line-height: 1.6;
}

/* ===== Page Base (Aktualisiert) ===== */
.pot-archive { 
  padding: 48px 20px; 
  background: var(--pot-bg-gradient);
  min-height: 100vh;
}

.pot-archive__header { 
  max-width: var(--pot-maxw); 
  margin: 0 auto 32px; 
  text-align: center;
}

.pot-archive__title {
  margin: 0 0 16px; 
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800; 
  letter-spacing: -0.5px; 
  color: var(--pot-text);
  background: linear-gradient(135deg, var(--pot-text) 0%, var(--pot-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.pot-archive__desc { 
  color: var(--pot-text-light); 
  font-size: 1.15rem; 
  line-height: 1.7;
  max-width: 800px;
  margin: 0 auto;
}

.pot-section { 
  max-width: var(--pot-maxw); 
  margin: 48px auto 0; 
  position: relative;
}

/* ===== Headings (Aktualisiert) ===== */
.pot-section__head { 
  display: flex; 
  align-items: center; 
  gap: 16px; 
  margin-bottom: 24px; 
}

.pot-h2 { 
  margin: 0; 
  font-size: clamp(1.75rem, 3vw, 2.25rem); 
  font-weight: 800; 
  color: var(--pot-text); 
  letter-spacing: -0.25px;
  position: relative;
}

.pot-h2__bar {
  flex: 1; 
  height: 4px; 
  border-radius: 999px;
  background: linear-gradient(90deg, var(--pot-accent), color-mix(in srgb, var(--pot-accent) 30%, transparent));
  opacity: 0.8;
}

/* ===== Latest 4 Cards (Modernisiert) ===== */
.pot-cards { 
  display: grid; 
  gap: var(--pot-gap); 
  grid-template-columns: repeat(1, minmax(0, 1fr)); 
}

@media (min-width: 640px) { 
  .pot-cards { grid-template-columns: repeat(2, 1fr); } 
}

@media (min-width: 1024px) { 
  .pot-cards { grid-template-columns: repeat(4, 1fr); } 
}

.pot-card {
  background: var(--pot-surface); 
  border-radius: var(--pot-radius);
  box-shadow: var(--pot-shadow-soft); 
  overflow: hidden; 
  display: flex; 
  flex-direction: column;
  transition: var(--pot-transition);
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.pot-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--pot-accent), color-mix(in srgb, var(--pot-accent) 70%, transparent));
  border-radius: var(--pot-radius) var(--pot-radius) 0 0;
}

.pot-card:hover { 
  transform: translateY(-8px); 
  box-shadow: var(--pot-shadow-hover);
}

.pot-card__media, .pot-card__ph { 
  aspect-ratio: 16/9; 
  background: #f1f5f9; 
  display: block; 
  position: relative;
  overflow: hidden;
}

.pot-card__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.02) 100%);
}

.pot-card__media img { 
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
  display: block; 
  transition: var(--pot-transition);
}

.pot-card:hover .pot-card__media img {
  transform: scale(1.05);
}

.pot-card__body { 
  padding: 20px; 
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.pot-card__title { 
  margin: 0 0 12px; 
  font-weight: 800; 
  font-size: 1.2rem; 
  line-height: 1.3; 
}

.pot-card__title a { 
  color: var(--pot-text); 
  text-decoration: none; 
  transition: var(--pot-transition);
  position: relative;
}

.pot-card__title a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--pot-accent);
  transition: var(--pot-transition);
}

.pot-card__title a:hover { 
  color: var(--pot-accent); 
}

.pot-card__title a:hover::after {
  width: 100%;
}

.pot-card__excerpt { 
  margin: 0 0 16px; 
  color: var(--pot-text-light); 
  font-size: 1rem; 
  line-height: 1.6; 
  flex-grow: 1;
}

.pot-card__more {
  align-self: flex-start; 
  background: var(--pot-accent); 
  color: #fff; 
  text-decoration: none;
  font-weight: 700; 
  border-radius: var(--pot-radius-sm); 
  padding: 10px 18px; 
  display: inline-flex; 
  gap: 8px;
  align-items: center;
  transition: var(--pot-transition);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.pot-card__more::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: var(--pot-transition);
  z-index: -1;
}

.pot-card__more:hover { 
  transform: translateY(-2px);
  box-shadow: 0 6px 16px color-mix(in srgb, var(--pot-accent) 40%, transparent);
}

.pot-card__more:hover::before {
  left: 100%;
}

/* ===== Simple Card (Aktualisiert) ===== */
.pot-card--simple {
  background: var(--pot-surface);
  border-radius: var(--pot-radius);
  box-shadow: var(--pot-shadow-soft);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--pot-transition);
  border: 1px solid rgba(255, 255, 255, 0.8);
  position: relative;
  overflow: hidden;
}

.pot-card--simple::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--pot-accent), color-mix(in srgb, var(--pot-accent) 70%, transparent));
  border-radius: var(--pot-radius) var(--pot-radius) 0 0;
}

.pot-card--simple:hover {
  transform: translateY(-8px);
  box-shadow: var(--pot-shadow-hover);
}

.pot-card--simple .pot-card__title {
  margin: 0 0 12px;
  font-weight: 800;
  font-size: 1.25rem;
}

.pot-card--simple .pot-card__excerpt {
  margin: 0 0 20px;
  color: var(--pot-text-light);
  font-size: 1rem;
  line-height: 1.6;
}

.pot-card--simple .pot-card__more {
  align-self: flex-start;
  background: var(--pot-accent);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  border-radius: var(--pot-radius-sm);
  padding: 10px 18px;
  transition: var(--pot-transition);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.pot-card--simple .pot-card__more::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: var(--pot-transition);
  z-index: -1;
}

.pot-card--simple .pot-card__more:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px color-mix(in srgb, var(--pot-accent) 40%, transparent);
}

.pot-card--simple .pot-card__more:hover::before {
  left: 100%;
}

/* ===== Full List (Modernisiert) ===== */
.pot-list { 
  list-style: none; 
  margin: 0; 
  padding: 0; 
  border-radius: var(--pot-radius); 
  overflow: hidden;
  background: var(--pot-surface);
  box-shadow: var(--pot-shadow-soft);
}

.pot-list__item {
  background: var(--pot-surface); 
  padding: 20px 24px; 
  border-bottom: 1px solid #f1f5f9;
  display: flex; 
  flex-wrap: wrap; 
  align-items: center; 
  gap: 12px; 
  transition: var(--pot-transition);
  position: relative;
}

.pot-list__item:last-child { 
  border-bottom: none; 
}

.pot-list__item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--pot-accent);
  opacity: 0;
  transition: var(--pot-transition);
}

.pot-list__item:hover { 
  background: color-mix(in srgb, var(--pot-accent) 4%, #fff);
}

.pot-list__item:hover::before {
  opacity: 1;
}

.pot-list__link { 
  font-weight: 700; 
  color: var(--pot-text); 
  text-decoration: none; 
  flex: 1 1 auto; 
  transition: var(--pot-transition);
  display: flex;
  align-items: center;
  gap: 12px;
}

.pot-list__link::before {
  content: '→';
  color: var(--pot-accent);
  font-weight: 800;
  transition: var(--pot-transition);
}

.pot-list__link:hover { 
  color: var(--pot-accent); 
}

.pot-list__link:hover::before {
  transform: translateX(4px);
}

.pot-list__excerpt { 
  color: var(--pot-text-light); 
  font-size: 0.95rem; 
  flex: 1 1 100%; 
  margin-left: 28px;
  line-height: 1.6;
}

/* ===== Tips Section (Modernisiert) ===== */
.pot-tipps__box {
  background: linear-gradient(135deg, #fff 0%, #f8fafc 100%) padding-box,
              linear-gradient(135deg, color-mix(in srgb, var(--pot-accent) 20%, transparent) 0%, color-mix(in srgb, var(--pot-accent) 8%, transparent) 100%) border-box;
  border: 2px solid transparent;
  border-radius: var(--pot-radius); 
  padding: 32px; 
  box-shadow: var(--pot-shadow-soft);
  position: relative;
  overflow: hidden;
}

.pot-tipps__box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 100%;
  background: linear-gradient(to bottom, var(--pot-accent), color-mix(in srgb, var(--pot-accent) 70%, transparent));
}

.pot-tipps__box p { 
  margin: 0 0 1em; 
  line-height: 1.7; 
  font-size: 1.05rem;
}

.pot-tipps__box ul { 
  margin: 0.5em 0 1em 1.5em; 
}

.pot-tipps__box li { 
  margin: 0.5em 0; 
  position: relative;
}

.pot-tipps__box li::before {
  content: '•';
  color: var(--pot-accent);
  font-weight: bold;
  display: inline-block;
  width: 1em;
  margin-left: -1em;
}

/* ===== Why / Studienlage / Video (Modernisiert) ===== */
.pot-why__grid { 
  display: grid; 
  gap: var(--pot-gap); 
  grid-template-columns: 1fr; 
  align-items: start; 
}

@media (min-width: 900px) { 
  .pot-why__grid { 
    grid-template-columns: 1.4fr 0.6fr; 
  } 
}

.pot-why__box {
  background: var(--pot-surface); 
  border-radius: var(--pot-radius); 
  padding: 32px; 
  box-shadow: var(--pot-shadow-soft);
  border-left: 4px solid var(--pot-accent);
}

.pot-why__box p { 
  margin: 0 0 1em; 
  line-height: 1.7; 
  font-size: 1.05rem;
}

.card {
  background: var(--pot-surface); 
  border-radius: var(--pot-radius); 
  box-shadow: var(--pot-shadow-soft);
  overflow: hidden; 
  border: 1px solid #f1f5f9;
  margin-bottom: var(--pot-gap);
  transition: var(--pot-transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--pot-shadow);
}

.card__head {
  padding: 18px 24px; 
  background: linear-gradient(135deg, color-mix(in srgb, var(--pot-accent) 10%, #fff 90%), color-mix(in srgb, var(--pot-accent) 5%, #fff 95%));
  border-bottom: 1px solid color-mix(in srgb, var(--pot-accent) 15%, #f1f5f9 85%);
  font-weight: 800; 
  color: var(--pot-text);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.card__head::before {
  content: '';
  width: 16px;
  height: 16px;
  background: var(--pot-accent);
  border-radius: 50%;
  display: inline-block;
}

.card__body { 
  padding: 24px; 
}

.pot-video__wrap { 
  position: relative; 
  width: 100%; 
  aspect-ratio: 16/9; 
  background: #000; 
  border-radius: var(--pot-radius-sm); 
  overflow: hidden; 
  border: 1px solid #f1f5f9; 
}

.pot-video__wrap iframe, .pot-video__wrap video { 
  position: absolute; 
  inset: 0; 
  width: 100%; 
  height: 100%; 
  border: 0; 
}

/* ===== Utilities (Aktualisiert) ===== */
.pot-rich a { 
  color: var(--pot-accent); 
  font-weight: 600;
  text-decoration: none;
  transition: var(--pot-transition);
  position: relative;
}

.pot-rich a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--pot-accent);
  transition: var(--pot-transition);
}

.pot-rich a:hover { 
  color: var(--pot-accent);
}

.pot-rich a:hover::after {
  width: 100%;
}

.pot-empty { 
  color: var(--pot-text-light); 
  text-align: center;
  padding: 40px;
  font-style: italic;
}

/* ===== Animationen ===== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.pot-section {
  animation: fadeIn 0.6s ease-out forwards;
}

.pot-card {
  animation: fadeIn 0.6s ease-out forwards;
}

.pot-card:nth-child(1) { animation-delay: 0.1s; }
.pot-card:nth-child(2) { animation-delay: 0.2s; }
.pot-card:nth-child(3) { animation-delay: 0.3s; }
.pot-card:nth-child(4) { animation-delay: 0.4s; }

/* ===== Responsive Anpassungen ===== */
@media (max-width: 768px) {
  .pot-archive {
    padding: 32px 16px;
  }
  
  .pot-section__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .pot-h2__bar {
    width: 60px;
    height: 4px;
  }
  
  .pot-tipps__box,
  .pot-why__box,
  .card__body {
    padding: 24px 20px;
  }
  
  .pot-list__item {
    padding: 16px 20px;
  }
}/* ===== Meta über der Liste ===== */
.pot-list__meta{
  display:flex; align-items:center; gap:12px; margin-bottom:12px;
}
.pot-chip{
  display:inline-flex; align-items:center; gap:8px;
  padding:8px 12px; border-radius:999px;
  background: color-mix(in srgb, var(--pot-accent) 12%, #fff);
  color: var(--pot-text); font-weight:700; box-shadow: var(--pot-shadow-soft);
  border: 1px solid color-mix(in srgb, var(--pot-accent) 20%, #eef2f7);
}
.pot-chip::before{
  content:''; width:8px; height:8px; border-radius:50%; background:var(--pot-accent);
}
.pot-hint{ color: var(--pot-text-light); font-size:.95rem; }

/* ===== Scroll-Wrapper für die Liste ===== */
.pot-listwrap{
  position:relative; border-radius: var(--pot-radius);
}
.pot-listwrap.is-scroll{
  max-height: clamp(360px, 52vh, 560px);
  overflow: auto;
  scroll-behavior: smooth;
  /* hübsche dünne Scrollbar */
  scrollbar-width: thin;                   /* Firefox */
  scrollbar-color: var(--pot-accent) #e9eef6;
  border: 1px solid #f1f5f9;
  box-shadow: var(--pot-shadow-soft);
  background: var(--pot-surface);
}

/* WebKit-Scrollbar */
.pot-listwrap.is-scroll::-webkit-scrollbar{ width: 10px; }
.pot-listwrap.is-scroll::-webkit-scrollbar-track{
  background: #e9eef6; border-radius: 999px;
}
.pot-listwrap.is-scroll::-webkit-scrollbar-thumb{
  background: color-mix(in srgb, var(--pot-accent) 70%, #fff);
  border-radius: 999px;
  border: 2px solid #e9eef6;
}
.pot-listwrap.is-scroll::-webkit-scrollbar-thumb:hover{
  background: color-mix(in srgb, var(--pot-accent) 85%, #fff);
}

/* sanfte Fades oben/unten bei Scroll */
.pot-listwrap.is-scroll::before,
.pot-listwrap.is-scroll::after{
  content:''; position: sticky; left:0; right:0; height:24px; z-index: 2; display:block;
}
.pot-listwrap.is-scroll::before{
  top: 0;
  background: linear-gradient(to bottom, rgba(248,250,252,1), rgba(248,250,252,0));
  opacity: 1;
}
.pot-listwrap.is-scroll::after{
  bottom: 0;
  background: linear-gradient(to top, rgba(248,250,252,1), rgba(248,250,252,0));
  opacity: 1;
}

/* beim Erreichen der Ränder Fades ausblenden */
.pot-listwrap.is-scroll.at-top::before{ opacity: 0; }
.pot-listwrap.is-scroll.at-bottom::after{ opacity: 0; }

/* Liste selbst ohne doppelten Rahmen, weil im Wrapper schon Border/Shadow */
.pot-listwrap.is-scroll .pot-list{
  box-shadow:none; border-radius:0; background:transparent;
}

/* Kleinere Abstände in der Listendarstellung für kompaktere Scrolls */
.pot-listwrap.is-scroll .pot-list__item{ padding: 16px 20px; }
.pot-listwrap.is-scroll .pot-list__excerpt{ margin-left: 28px; }

/* Responsive Finetuning */
@media (max-width: 768px){
  .pot-listwrap.is-scroll{ max-height: clamp(280px, 50vh, 420px); }
}
