/* ── presse.css ── Styles für die Pressemitteilungen-Seite ── */

.page-header {
  padding-top: 130px;
  padding-bottom: 40px;
  text-align: center;
}

.page-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(48px, 8vw, 96px);
  line-height: 0.92;
  letter-spacing: 5px;
  color: #fff;
  text-shadow: 0 4px 30px rgba(0,0,0,0.8);
  margin-top: 10px;
}

.presse-main {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px 28px 110px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* ── Presse-Kärtchen ── */
.presse-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.presse-card {
  width: 100%;
  cursor: default;
}

.presse-card-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.presse-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.presse-date {
  color: rgba(255,255,255,0.45);
}

.mono {
  font-family: 'Share Tech Mono', monospace;
  font-size: 12px;
  letter-spacing: 3px;
}

/* Badge-Typen */
.presse-badge {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 13px;
  letter-spacing: 2px;
  padding: 3px 14px;
  border-radius: 100px;
  background: rgba(255,140,0,0.15);
  color: var(--orange);
  border: 1px solid rgba(255,140,0,0.4);
}

.presse-badge--info {
  background: rgba(0,140,255,0.12);
  color: #4db8ff;
  border-color: rgba(0,140,255,0.35);
}

.presse-badge--warn {
  background: rgba(255,51,68,0.12);
  color: #ff4d5e;
  border-color: rgba(255,51,68,0.35);
}

.presse-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 32px;
  letter-spacing: 3px;
  color: #fff;
  line-height: 1.1;
}

.presse-text {
  font-family: 'Rajdhani', sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
  /* Truncation 2 lines (~1.5 lines look) */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── News Modal Overlay ── */
.news-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(15px);
  z-index: 3000;
  display: flex;
  align-items: flex-start; /* Start at top for scrolling */
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 40px 20px;
  overflow-y: auto; /* Scroll here instead of modal */
}

.news-overlay.active {
  opacity: 1;
  pointer-events: all;
}

body.modal-open {
  overflow: hidden !important;
}

.news-modal {
  width: 100%;
  max-width: 800px;
  background: #161618;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  position: relative;
  transform: translateY(30px) scale(0.98);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 30px 60px rgba(0,0,0,0.5);
  overflow: hidden;
  margin-bottom: 40px;
  padding: 0 !important; /* Override .tile padding */
}

.news-overlay.active .news-modal {
  transform: translateY(0) scale(1);
}

.news-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.news-modal-close:hover {
  background: var(--orange);
  color: #000;
  transform: rotate(90deg);
}

.news-modal-image {
  width: 100%;
  height: 400px;
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  position: relative;
  z-index: 2;
}

.news-modal-body {
  padding: 50px;
  display: flex;
  flex-direction: column;
  gap: 30px;
  position: relative;
  z-index: 2;
}

.news-modal-body .presse-title {
  font-size: 42px;
  line-height: 1;
}

.presse-content-full {
  font-family: 'Rajdhani', sans-serif;
  font-size: 19px;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  line-height: 1.8;
  white-space: pre-wrap;
}

.presse-footer {
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.07);
  margin-top: 4px;
}

.presse-sig {
  font-family: 'Share Tech Mono', monospace;
  font-size: 12px;
  letter-spacing: 2px;
  color: rgba(255,140,0,0.5);
}

@media (max-width: 640px) {
  .page-header { padding-top: 100px; }
  .presse-main { padding: 20px 16px 80px; }
  .presse-title { font-size: 26px; }
  .news-modal-body { padding: 24px; }
  .news-modal-image { height: 200px; }
}