/* News Loading Styles */
.news-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  text-align: center;
  grid-column: 1 / -1;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--background-light);
  border-top: 3px solid var(--button-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 16px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.news-loading p {
  color: var(--text-secondary);
  font-size: var(--font-base);
}

/* News Error Styles */
.news-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  text-align: center;
  grid-column: 1 / -1;
}

.news-error i {
  font-size: 48px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.news-error p {
  color: var(--text-secondary);
  font-size: var(--font-base);
  margin-bottom: 24px;
  max-width: 400px;
}

.retry-button {
  background: var(--button-color);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: var(--font-sm);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.retry-button:hover {
  background: var(--button-hover-color);
}

/* Plus Button für Sheet-News - Style */
.news-expand-button {
  position: absolute;
  bottom: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  background: #f5f5f7;
  border: 1px solid #e8e8ed;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 10;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.news-expand-button:hover {
  background: #e8e8ed;
  transform: scale(1.1);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
}

.news-expand-button i {
  font-size: 20px;
  color: #1d1d1f;
  font-weight: 300;
}

/* Featured News Plus Button - auch 44x44px */
.featured-news .news-expand-button {
  bottom: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
}

.featured-news .news-expand-button i {
  font-size: 20px;
}

/* News Meta Enhancements */
.news-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  font-size: var(--font-sm);
  color: var(--text-secondary);
}

.news-author {
  font-weight: 500;
}

.news-summary {
  font-size: var(--font-sm);
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 8px 0 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Read Time Badge */
.read-time {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 6px 12px;
  border-radius: 16px;
  font-size: var(--font-xs);
  font-weight: 500;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.news-image {
  position: relative;
}

/* Tags */
.news-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.tag {
  background: #f5f5f7;
  color: #1d1d1f;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 500;
  border: 1px solid #e8e8ed;
  white-space: nowrap;
  display: inline-block;
}

/* News Sheet (Modal) Styles */
.news-sheet-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.25);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  padding: 40px 20px;
}

.news-sheet-overlay.active {
  opacity: 1;
  visibility: visible;
}

.news-sheet {
  background: white;
  border-radius: 16px;
  width: 100%;
  max-width: 700px;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 0 0 1px rgba(0, 0, 0, 0.1);
  transform: scale(0.9) translateY(20px);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  -webkit-overflow-scrolling: touch;
}

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

.news-sheet-header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 20px 20px 0;
  z-index: 10;
  border-bottom: none;
}

.news-sheet-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  border: none;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 11;
  transition: all 0.3s ease;
}

.news-sheet-close:hover {
  background: rgba(0, 0, 0, 0.1);
}

.news-sheet-close::before {
  content: "";
  width: 14px;
  height: 14px;
  background-image: url('../../account/shared/xmark.svg');
  background-size: 14px 14px;
  background-repeat: no-repeat;
  background-position: center;
  display: block;
}

.news-sheet-content {
  overflow: visible;
  max-height: none;
}

.news-sheet-body {
  padding: 0 40px 40px;
}

.news-sheet-body .news-category {
  display: inline-flex;
  align-items: center;
  background: rgba(0, 113, 227, 0.1);
  color: #0071e3;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  gap: 8px;
}

.news-sheet-body .news-category::before {
  content: "●";
  font-size: 8px;
  color: #0071e3;
}

.news-date-inline {
  font-size: 14px;
  color: #86868b;
  margin-bottom: 20px;
  font-weight: 400;
}

.news-sheet-body h1 {
  font-family: var(--font-family-heading);
  font-size: 32px;
  font-weight: 700;
  color: #1d1d1f;
  line-height: 1.2;
  margin-bottom: 24px;
  letter-spacing: -0.5px;
}

.news-share-buttons {
  display: flex;
  gap: 12px;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid #f5f5f7;
}

.share-button {
  width: 44px;
  height: 44px;
  border: 1px solid #e5e5e7;
  background: #f9f9f9;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.share-button:hover {
  background: #e5e5e7;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.share-button i {
  font-size: 18px;
  color: #1d1d1f;
}

.news-sheet-image {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 32px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  background: #f5f5f7;
  aspect-ratio: 16/10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.news-sheet-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.news-sheet-image.no-image {
  background: linear-gradient(135deg, #f5f5f7 0%, #e5e5e7 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.news-sheet-image.no-image::before {
  content: "📰";
  font-size: 48px;
  opacity: 0.3;
}

.news-content-text {
  font-family: var(--font-family-body);
  font-size: 18px;
  line-height: 1.6;
  color: #1d1d1f;
  letter-spacing: -0.2px;
}

.news-content-text p {
  margin-bottom: 20px;
}

.news-content-text p:last-child {
  margin-bottom: 0;
}

.news-content-text strong {
  font-weight: 600;
}

.news-content-text a {
  color: #0071e3;
  text-decoration: none;
}

.news-content-text a:hover {
  text-decoration: underline;
}

/* Text Controls */
.news-text-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 40px;
  margin-bottom: 16px;
  padding: 0 24px;
  background: #f5f5f7;
  border-radius: 12px;
  height: 95px;
  border-bottom: none;
}

.text-size-control {
  display: flex;
  align-items: center;
}

.text-size-label {
  font-size: 19px;
  color: #1d1d1f;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}

.text-size-label::before {
  content: "Aa";
  font-size: 19px;
  color: #1d1d1f;
  font-weight: 700;
}

.text-size-buttons {
  display: flex;
  gap: 8px;
}

.text-size-button {
  width: 32px;
  height: 32px;
  border: 1px solid #e5e5e7;
  background: white;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
  color: #1d1d1f;
}

.text-size-button:hover {
  background: #f5f5f7;
  border-color: #d1d1d6;
}

.copy-text-button {
  background: #0071e3;
  color: white;
  border: none;
  padding: 0;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 145px;
  height: 36px;
}

.copy-text-button:hover {
  background: #0077ed;
}

.copy-text-button i {
  font-size: 14px;
  font-weight: 700;
}

/* Press Contacts Section */
.press-contacts-section {
  margin-top: 16px;
  border-top: none;
  padding: 0;
}

.press-contacts-toggle {
  width: 100%;
  background: #f5f5f7;
  border: none;
  padding: 0 24px;
  text-align: left;
  font-size: 19px;
  font-weight: 700;
  color: #1d1d1f;
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
  border-radius: 12px;
  height: 95px;
  display: flex;
  align-items: center;
}

.press-contacts-toggle::after {
  content: "";
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  content: "\f078"; /* fa-chevron-down */
  font-size: 19px;
  color: #1d1d1f;
  transition: transform 0.3s ease;
}

.press-contacts-toggle.expanded::after {
  transform: translateY(-50%) rotate(180deg);
}

.press-contacts-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: #f5f5f7;
  border-radius: 0 0 12px 12px;
  margin-top: -12px;
  padding: 0 24px;
}

.press-contacts-content.show {
  max-height: 200px;
  padding: 20px 24px;
}

.press-contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: 40px;
  margin-top: 8px;
  align-items: start;
}

.press-contacts-divider {
  width: 1px;
  height: 100%;
  background-color: #d1d1d6;
  min-height: 80px;
}

.press-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.press-contact h3 {
  font-size: 19px;
  font-weight: 700;
  color: #1d1d1f;
  margin: 0;
}

.press-contact a {
  color: #0071e3;
  text-decoration: none;
  font-size: 16px;
  font-weight: 400;
}

.press-contact a:hover {
  text-decoration: underline;
}

.press-contact p {
  color: #1d1d1f;
  font-size: 16px;
  font-weight: 400;
  margin: 0;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .news-sheet-overlay {
    padding: 20px 15px;
  }

  .news-sheet {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 12px;
  }

  .news-sheet-body {
    padding: 0 24px 32px;
  }

  .news-sheet-body h1 {
    font-size: 28px;
    margin-bottom: 20px;
  }

  .news-sheet-image {
    border-radius: 8px;
    margin-bottom: 24px;
  }

  .news-content-text {
    font-size: 16px;
  }

  .press-contacts-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .press-contacts-divider {
    display: none;
  }
}

@media (max-width: 480px) {
  .news-sheet-body {
    padding: 0 20px 24px;
  }

  .news-sheet-body h1 {
    font-size: 24px;
  }

  .news-content-text {
    font-size: 15px;
  }

  .news-sheet-image {
    margin-bottom: 20px;
    border-radius: 6px;
  }
}

/* Featured News verbessertes Layout */
.news-grid .featured-news {
  grid-column: 1 / -1;
}

.news-grid .featured-news .news-content {
  padding: 32px;
}

.news-grid .featured-news .news-title {
  font-size: 32px;
  margin-bottom: 16px;
}

/* Category Filter Buttons (wenn du sie hinzufügen möchtest) */
.category-filters {
  display: flex;
  gap: 12px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.category-filter {
  background: var(--card-background);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: var(--font-sm);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.category-filter:hover,
.category-filter.active {
  background: var(--button-color);
  color: white;
  border-color: var(--button-color);
}

/* Search Integration */
.search-results-info {
  margin-bottom: 24px;
  padding: 16px;
  background: var(--background-light);
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: var(--font-sm);
}

.search-results-clear {
  color: var(--button-color);
  text-decoration: none;
  font-weight: 500;
  margin-left: 8px;
}

.search-results-clear:hover {
  text-decoration: underline;
} 