/* === EVENTS SECTION === */
.events-section {
  padding: 2rem 0;
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.event-card {
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .05);
}

.event-meta {
  opacity: .8;
  margin: .25rem 0 .5rem;
}

/* === CARET & ARROW STYLES === */
.with-caret {
  position: relative;
  padding-right: 1.75rem !important;
}

.with-caret::after {
  content: '▾';
  position: absolute;
  right: .75rem;
  top: 50%;
  transform: translateY(-50%);
  opacity: .8;
  font-size: .9em;
}

.with-arrow {
  position: relative;
  padding-right: 1.4rem !important;
}

.with-arrow::after {
  content: '›';
  position: absolute;
  right: .65rem;
  top: 50%;
  transform: translateY(-50%);
  opacity: .9;
}

/* === TOAST NOTIFICATIONS === */
.toast-stack {
  position: fixed;
  right: 18px;
  top: 18px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  min-width: 280px;
  max-width: 360px;
  padding: .8rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .12);
  color: #e6edf3;
  background: rgba(12, 20, 44, .92);
  box-shadow: 0 14px 40px rgba(0, 0, 0, .35);
  display: flex;
  gap: .75rem;
  align-items: flex-start;
}

.toast .icon {
  font-weight: 900;
  line-height: 1.1;
  margin-top: .05rem;
}

.toast.success {
  background: rgba(15, 44, 28, .92);
}

.toast.error {
  background: rgba(44, 18, 18, .92);
}

.toast h4 {
  margin: .1rem 0 .25rem 0;
  font-size: 1rem;
}

.toast p {
  margin: 0;
  opacity: .9;
  font-size: .92rem;
}

/* === NAVIGATION STYLES === */
.nav a, nav a {
  position: relative;
  text-decoration: none !important;
}

.nav a::before, .nav a::after,
nav a::before, nav a::after {
  content: none !important;
}

.nav a:hover::after, nav a:hover::after {
  content: '';
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 6px;
  height: 2px;
  background: #42b0ff;
  border-radius: 2px;
  opacity: .95;
}

.nav a.active::after, nav a.active::after {
  display: none !important;
}

/* Bewerben Button with left caret */
#applyBtn {
  padding-left: 1.8rem !important;
}

#applyBtn.with-caret::before {
  content: '\25BC';
  position: absolute;
  left: .75rem;
  top: 50%;
  transform: translateY(-52%);
  font-size: .8em;
  opacity: .95;
  pointer-events: none;
}

/* === BUTTON TEXT UNDERLINE SYSTEM === */
:root {
  --pzg-accent-1: #42b0ff;
  --pzg-accent-2: #7a5cff;
  --pzg-bar-h: 4px;
  --pzg-bar-gap: 6px;
  --pzg-bar-pad-x: 6px;
  --pzg-anim: 220ms;
}

header .nav a, .nav a, .nav-link,
.btn, a.btn, button.btn {
  position: relative;
  border-radius: 12px;
  box-shadow: 0 0 0 1px rgba(66, 176, 255, .30) inset, 0 0 10px rgba(66, 176, 255, .16);
  padding-bottom: calc(var(--pzg-bar-gap) + var(--pzg-bar-h) + 4px);
}

header .nav a .nav-label,
.btn .btn-label, a.btn .btn-label, button.btn .btn-label {
  position: relative;
  display: inline-block;
  line-height: 1.15;
}

header .nav a .nav-label::after,
.btn .btn-label::after, a.btn .btn-label::after, button.btn .btn-label::after {
  content: '';
  position: absolute;
  left: var(--pzg-bar-pad-x);
  right: var(--pzg-bar-pad-x);
  bottom: calc(-1 * var(--pzg-bar-gap));
  height: var(--pzg-bar-h);
  border-radius: var(--pzg-bar-h);
  background: linear-gradient(90deg, var(--pzg-accent-1), var(--pzg-accent-2));
  transform: scaleX(0.1);
  transform-origin: center;
  opacity: 0;
  transition: transform var(--pzg-anim) ease, opacity var(--pzg-anim) ease;
  pointer-events: none;
}

header .nav a:hover .nav-label::after,
.btn:hover .btn-label::after, a.btn:hover .btn-label::after, button.btn:hover .btn-label::after {
  transform: scaleX(1);
  opacity: .98;
}

header .nav a.active .nav-label::after {
  transform: scaleX(1);
  opacity: 1;
}

header .nav a:focus-visible,
.btn:focus-visible, a.btn:focus-visible, button.btn:focus-visible {
  outline: 2px solid var(--pzg-accent-1);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --pzg-anim: 0ms;
  }
}

/* === EVENTS TABLE POLISH === */
:root {
  --pzg-c-row: rgba(255, 255, 255, 0.04);
  --pzg-c-row-hover: rgba(255, 255, 255, 0.12);
  --pzg-c-head: rgba(66, 176, 255, 0.09);
  --pzg-c-line: rgba(66, 176, 255, 0.18);
  --pzg-radius: 16px;
}

.pzg-events-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 16px;
  margin: 10px 0 36px;
}

.pzg-events-table thead th {
  padding: 14px 18px;
  background: var(--pzg-c-head);
  border: 1px solid var(--pzg-c-line);
  font-weight: 700;
  letter-spacing: .02em;
}

.pzg-events-table thead th:first-child {
  border-top-left-radius: var(--pzg-radius);
  border-bottom-left-radius: var(--pzg-radius);
}

.pzg-events-table thead th:last-child {
  border-top-right-radius: var(--pzg-radius);
  border-bottom-right-radius: var(--pzg-radius);
}

.pzg-events-table tbody td {
  padding: 16px 20px;
  background: var(--pzg-c-row);
  border-top: 1px solid var(--pzg-c-line);
  border-bottom: 1px solid var(--pzg-c-line);
  vertical-align: middle;
}

.pzg-events-table tbody td:first-child {
  border-left: 1px solid var(--pzg-c-line);
  border-top-left-radius: var(--pzg-radius);
  border-bottom-left-radius: var(--pzg-radius);
}

.pzg-events-table tbody td:last-child {
  border-right: 1px solid var(--pzg-c-line);
  border-top-right-radius: var(--pzg-radius);
  border-bottom-right-radius: var(--pzg-radius);
}

.pzg-events-table tbody tr:hover td {
  background: var(--pzg-c-row-hover);
  transition: background .18s ease;
}

.pzg-events-table tbody tr {
  transition: transform .12s ease;
}

.pzg-events-table tbody tr:hover {
  transform: translateY(-1px);
}

.pzg-events-table tbody td:last-child a,
.pzg-events-table tbody td:last-child .card {
  display: block;
  border-radius: 14px;
  padding: 14px 16px;
  background: linear-gradient(180deg, rgba(66, 176, 255, 0.45) 0%, rgba(0, 170, 140, 0.34) 100%);
  border: 1px solid rgba(66, 176, 255, 0.28);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  transition: transform .12s ease, box-shadow .18s ease, background .18s ease;
}

.pzg-events-table tbody td:last-child a:hover,
.pzg-events-table tbody td:last-child .card:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.32);
  background: linear-gradient(180deg, rgba(66, 176, 255, 0.55) 0%, rgba(0, 170, 140, 0.42) 100%);
}

/* Mobile responsive */
@media (max-width: 720px) {
  .pzg-events-table thead {
    display: none;
  }
  
  .pzg-events-table,
  .pzg-events-table tbody,
  .pzg-events-table tr,
  .pzg-events-table td {
    display: block;
    width: 100%;
  }
  
  .pzg-events-table tbody td {
    border-radius: 12px !important;
    border-left: 1px solid var(--pzg-c-line);
    border-right: 1px solid var(--pzg-c-line);
  }
  
  .pzg-events-table tbody td + td {
    margin-top: 10px;
  }
}

/* === UTILITY OVERRIDES === */
.toast-stack, .toast-container {
  display: none !important;
}

/* === TEAM CARDS STYLING === */
.teams .grid.four,
.section.teams .grid.four {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 1.25rem !important;
}

.teams .card,
.section.teams .card {
  width: 100%;
  max-width: 100%;
}

.team-card {
  position: relative;
  padding-top: 3.5rem;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.team-card .team-name {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  margin: 0;
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, var(--pzg-accent-1) 0%, var(--pzg-accent-2) 100%);
  border-radius: 12px 12px 0 0;
  text-align: center;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
  min-height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-card p {
  margin-top: 0.5rem;
  flex: 1;
  line-height: 1.6;
}

@media (max-width: 1100px) {
  .teams .grid.four,
  .section.teams .grid.four {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 640px) {
  .teams .grid.four,
  .section.teams .grid.four {
    grid-template-columns: 1fr !important;
  }
}