/* Allgemeine Stile */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  background-color: #fafafa;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
}

/* Global "APRIL SCHERZ" Stempel unten rechts, diagonal */
body::after {
  content: "April Scherz";
  position: fixed;
  right: 1.25rem;
  bottom: 4.5rem;
  z-index: 9999;
  font-family: Impact, "Arial Black", system-ui, sans-serif;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: #b50000;
  text-transform: uppercase;
  font-size: 3.2rem;
  border: 7px solid rgba(181, 0, 0, 0.85);
  padding: 0.55em 1.1em;
  transform: rotate(-18deg);
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
  background: rgba(255, 240, 240, 0.7);
  mix-blend-mode: multiply;
  pointer-events: none;
  user-select: none;
}

/* Responsive Skalierung des Stempels */
@media (max-width: 1024px) {
  body::after {
    font-size: 2.2rem;
    border-width: 5px;
    padding: 0.45em 0.9em;
    bottom: 3.5rem;
    transform: rotate(-18deg) scale(0.95);
  }
}

@media (max-width: 768px) {
  body::after {
    font-size: 2.1rem;
    border-width: 4px;
    padding: 0.42em 0.85em;
    right: 0.75rem;
    bottom: 2.5rem;
    transform: rotate(-18deg) scale(1.05);
  }
}

@media (max-width: 480px) {
  body::after {
    font-size: 1.5rem;
    border-width: 3px;
    padding: 0.35em 0.7em;
    right: 0.5rem;
    bottom: 1.5rem;
    transform: rotate(-18deg) scale(1.15);
  }
}

.container {
  width: 100%;
  max-width: 1200px; /* Angepasst auf dieselbe Breite wie main */
  margin: 0 auto;
}

/* Globale Box-Sizing-Einstellung */
*, *::before, *::after {
  box-sizing: border-box;
}

/* Grundeinstellung für Bilder und Videos, um horizontales Scrollen zu verhindern */
img, video {
  max-width: 100%;
  height: auto;
}

/* Kopfzeile */
header {
  background-color: #fff;
  border-bottom: 1px solid #ddd;
}

.top-bar {
  background-color: #f4f4f4;
  padding: 0.5em 1em;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9em;
}

.weather {
  color: #333;
}

.top-nav a {
  margin-left: 1em;
  text-decoration: none;
  color: #333;
}

.main-header {
  padding: 1em;
  text-align: center;
}

.main-header h1 {
  margin: 0;
  font-size: 3em;
  color: #000;
  font-family: "Times New Roman", Times, serif;
  font-weight: 900;
  letter-spacing: -1px;
  text-transform: uppercase;
  border-bottom: 2px solid #000;
  border-top: 2px solid #000;
  padding: 0.1em 0;
  text-shadow: 1px 1px 0 rgba(0,0,0,0.1);
}

.main-nav {
  margin-top: 0.5em;
}

.main-nav a {
  margin: 0 0.8em;
  text-decoration: none;
  color: #007bff;
  font-weight: bold;
}

.main-nav a:hover {
  text-decoration: underline;
}

.main-nav a.active, .top-nav a.active {
  color: #0056b3;
  font-weight: bold;
  text-decoration: underline;
}

/* Hauptbereich */
main {
  display: flex;
  flex-wrap: wrap;
  padding: 1em;
  max-width: 1200px;
  margin: 0 auto;
  flex: 1;
  overflow-x: hidden;
}

article {
  flex: 3;
  margin-right: 1em;
  background: white;
  padding: 1.5em;
  box-shadow: 0 0 5px rgba(0,0,0,0.1);
  font-family: "Georgia", serif;
  line-height: 1.5;
}

article h2 {
  font-size: 1.8em;
  margin-bottom: 0.2em;
  font-weight: 700;
  line-height: 1.2;
}

article h3 {
  font-size: 1.2em;
  font-weight: normal;
  margin-top: 0;
  margin-bottom: 1em;
  color: #444;
}

article h4 {
  font-size: 1.1em;
  font-weight: 700;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}

article p {
  margin-bottom: 1em;
  text-align: justify;
  hyphens: auto;
}

/* Initial-Effekt nur für echte Artikel-Inhalte, nicht für Service-Seiten */
.article-content[data-article-type="news"] > p:first-of-type:first-letter {
  float: left;
  font-size: 3.5em;
  line-height: 0.8;
  padding-right: 0.1em;
  padding-top: 0.1em;
  font-weight: bold;
}

/* Alte Initial-Stile entfernen oder deaktivieren */
article p:first-of-type:first-letter,
.article-content > p:first-of-type:first-letter {
  float: none;
  font-size: inherit;
  line-height: inherit;
  padding: 0;
  font-weight: inherit;
}

/* Sicherstellen, dass kein anderes Element außer Artikel diesen Effekt hat */
aside p:first-letter,
footer p:first-letter,
.side-item p:first-letter,
.ad-container p:first-letter,
.form-group p:first-letter,
.abo-box p:first-letter,
.tv-container > p:first-letter,
.newsletter-form p:first-letter,
.info-box p:first-letter,
.why-subscribe p:first-letter,
.tab-content p:first-letter,
.benefit-box p:first-letter,
.partner-item p:first-letter,
.reporter-box p:first-letter,
.how-it-works p:first-letter,
.job-item p:first-letter,
.login-form p:first-letter,
.login-container p:first-letter {
  float: none;
  font-size: inherit;
  line-height: inherit;
  padding: 0;
  font-weight: inherit;
}

.article-content {
  column-count: 2;
  column-gap: 2em;
  column-rule: 1px solid #eee;
  width: 100%;
  overflow-x: hidden;
}

figure {
  margin: 0 0 1.5em 0;
  break-inside: avoid;
  column-span: all;
}

figure img {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  filter: grayscale(10%);
}

figcaption {
  font-size: 0.8em;
  color: #666;
  text-align: right;
  margin-top: 0.3em;
  font-style: italic;
  font-family: Arial, sans-serif;
}

aside {
  flex: 1;
  background-color: #f4f4f4;
  padding: 1em;
  box-shadow: inset 0 0 5px rgba(0,0,0,0.05);
}

aside ul {
  list-style: none;
  padding: 0;
}

aside li {
  margin-bottom: 1.5em;
}

aside a {
  text-decoration: none;
  color: #000;
  display: block;
}

aside a:hover {
  text-decoration: underline;
  color: #333;
}

/* Werbung Stile */
.ad-container {
  background-color: #f9f9f9;
  padding: 0.5em;
  margin-bottom: 1em;
  text-align: center;
  border: 1px solid #eee;
}

.ad-container img {
  max-width: 100%;
  height: auto;
}

.ad-label {
  font-size: 0.7em;
  color: #999;
  text-transform: uppercase;
  margin-bottom: 0.3em;
}

.orange-ad {
  display: block;
  margin-bottom: 2em;
}

.metzgerei-ad {
  display: block;
  margin-top: 2em;
}

.top-ad {
  display: none;
}

.bottom-ad {
  display: none;
}

/* Fußzeile */
footer {
  background-color: #333;
  color: #fff;
  text-align: center;
  padding: 1em 0;
  margin-top: auto;
  width: 100%;
}

/* TV-Seite Stile */
.tv-container {
  background-color: #f5f5f5;
  padding: 2em;
  border-radius: 4px;
  margin-bottom: 2em;
  width: 100%;
}

.livestream-container {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  overflow: hidden;
  margin-bottom: 1.5em;
  background-color: #000;
  border-radius: 4px;
}

.livestream-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-container {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  overflow: hidden;
  margin-bottom: 1.5em;
  background-color: #000;
  border-radius: 4px;
}

.video-container video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.info-box {
  background-color: #e8f4ff;
  padding: 0.8em;
  border-left: 4px solid #007bff;
  margin: 1em 0;
  font-size: 0.85em;
  opacity: 0.85;
  color: #333;
}

.info-box p {
  margin: 0.5em 0;
}

.program-guide {
  background-color: white;
  padding: 1.5em;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.program-day {
  margin-bottom: 2em;
}

.program-day h4 {
  border-bottom: 1px solid #eee;
  padding-bottom: 0.5em;
  margin-bottom: 1em;
  color: #007bff;
}

.program-item {
  margin-bottom: 1em;
  padding-bottom: 1em;
  border-bottom: 1px dotted #eee;
  display: flex;
}

.program-time {
  font-weight: bold;
  min-width: 100px;
}

.program-title {
  flex-grow: 1;
}

.program-channel {
  color: #666;
  font-style: italic;
  min-width: 80px;
  text-align: right;
}

.channel-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 1em;
  margin-bottom: 2em;
}

.channel-button {
  padding: 0.5em 1em;
  background-color: #f0f0f0;
  border: 1px solid #ddd;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s;
}

.channel-button:hover, .channel-button.active {
  background-color: #007bff;
  color: white;
  border-color: #007bff;
}

/* Abonnieren-Seite Stile */
.abo-container {
  margin-bottom: 3em;
}

.abo-box {
  background-color: white;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  padding: 1.5em;
  margin-bottom: 1.5em;
  position: relative;
  border-top: 4px solid #007bff;
  width: 100%;
}

.abo-popular {
  position: absolute;
  top: 0;
  right: 0;
  background-color: #ff6b6b;
  color: white;
  font-size: 0.8em;
  padding: 0.3em 1em;
  border-radius: 0 0 0 4px;
  font-weight: bold;
}

.abo-title {
  font-size: 1.3em;
  margin-bottom: 0.5em;
  color: #333;
}

.abo-price {
  font-size: 1.8em;
  font-weight: bold;
  color: #007bff;
  margin-bottom: 0.5em;
}

.abo-period {
  display: block;
  font-size: 0.5em;
  color: #666;
  font-weight: normal;
}

.abo-features {
  margin: 1.5em 0;
  padding: 0;
  list-style: none;
}

.abo-features li {
  margin-bottom: 0.5em;
  padding-left: 1.5em;
  position: relative;
}

.abo-features li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #007bff;
  font-weight: bold;
}

.abo-button {
  display: inline-block;
  background-color: #007bff;
  color: white;
  padding: 0.7em 1.5em;
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
  transition: background-color 0.3s;
  width: 100%;
  text-align: center;
  box-sizing: border-box;
}

.abo-button:hover {
  background-color: #0056b3;
}

.abo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5em;
  margin: 2em 0;
  width: 100%;
}

.newsletter-form {
  background-color: #f8f9fa;
  border-radius: 4px;
  padding: 2em;
  margin-bottom: 3em;
  border-left: 4px solid #28a745;
  width: 100%;
  overflow-x: hidden;
}

.form-group {
  margin-bottom: 1.5em;
}

.form-group label {
  display: block;
  margin-bottom: 0.5em;
  font-weight: bold;
  color: #333;
}

.form-group input, .form-group select {
  width: 100%;
  padding: 0.8em;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1em;
}

.checkbox-group {
  margin-bottom: 1em;
}

.checkbox-group input {
  margin-right: 0.5em;
}

.submit-btn {
  display: inline-block;
  background-color: #28a745;
  color: white;
  padding: 0.8em 1.5em;
  text-decoration: none;
  border: none;
  border-radius: 4px;
  font-weight: bold;
  font-size: 1em;
  cursor: pointer;
  transition: background-color 0.3s;
}

.submit-btn:hover {
  background-color: #218838;
}

.col-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5em;
}

.why-subscribe {
  background-color: #f0f7ff;
  border-radius: 4px;
  padding: 2em;
  margin-bottom: 2em;
}

.why-subscribe h4 {
  margin-top: 0;
  color: #007bff;
}

.why-subscribe ul {
  padding-left: 1.5em;
  margin-bottom: 0;
}

.why-subscribe li {
  margin-bottom: 0.5em;
}

.tab-container {
  margin-bottom: 2em;
}

.tabs {
  display: flex;
  border-bottom: 1px solid #ddd;
  margin-bottom: 2em;
  flex-wrap: wrap;
}

.tab {
  padding: 0.8em 1.2em;
  cursor: pointer;
  font-weight: bold;
  background-color: #f5f5f5;
  border: 1px solid #ddd;
  border-bottom: none;
  margin-right: 5px;
  margin-bottom: 5px;
  border-radius: 4px 4px 0 0;
  font-size: 0.95em;
}

.tab.active {
  background-color: white;
  border-bottom: 1px solid white;
  margin-bottom: -1px;
  color: #007bff;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* Aboplus-Seite Stile */
.price-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2em 0;
  background-color: white;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  border-radius: 4px;
  overflow: hidden;
}

.price-table th {
  background-color: #007bff;
  color: white;
  text-align: left;
  padding: 1em;
  font-weight: 600;
}

.price-table td {
  padding: 1em;
  border-bottom: 1px solid #eee;
}

.price-table tr:last-child td {
  border-bottom: none;
}

.price-table tr:nth-child(even) {
  background-color: #f9f9f9;
}

.price-table .price {
  font-weight: bold;
  color: #007bff;
}

.benefits-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5em;
  margin: 2em 0;
}

.benefit-item {
  background-color: white;
  border-radius: 4px;
  padding: 1.5em;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
}

.benefit-icon {
  font-size: 2em;
  margin-bottom: 0.5em;
  color: #007bff;
}

.faq-item {
  margin-bottom: 1.5em;
}

.faq-question {
  font-weight: bold;
  margin-bottom: 0.5em;
  color: #333;
}

.faq-answer {
  color: #666;
}

/* Login-Seite Stile */
.login-container {
  max-width: 400px;
  margin: 2em auto;
  background-color: white;
  padding: 2em;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.login-form {
  margin-top: 1.5em;
}

.login-form .form-group {
  margin-bottom: 1.2em;
}

.login-form .form-group label {
  display: block;
  margin-bottom: 0.5em;
  font-weight: bold;
}

.login-form .form-group input {
  width: 100%;
  padding: 0.8em;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.login-btn {
  display: inline-block;
  background-color: #007bff;
  color: white;
  padding: 0.8em 1.5em;
  text-decoration: none;
  border: none;
  border-radius: 4px;
  font-weight: bold;
  font-size: 1em;
  cursor: pointer;
  transition: background-color 0.3s;
  width: 100%;
}

.login-btn:hover {
  background-color: #0056b3;
}

.login-footer {
  margin-top: 1.5em;
  text-align: center;
  font-size: 0.9em;
}

.login-footer a {
  color: #007bff;
  text-decoration: none;
}

.login-footer a:hover {
  text-decoration: underline;
}

/* SO-Reporter Stile */
.reporter-form {
  background-color: #f8f9fa;
  border-radius: 4px;
  padding: 2em;
  margin-bottom: 2em;
  border-left: 4px solid #007bff;
}

.steps-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1em;
  margin: 2em 0;
}

.step-item {
  background-color: white;
  border-radius: 4px;
  padding: 1.5em;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  text-align: center;
}

.step-number {
  display: inline-block;
  width: 30px;
  height: 30px;
  background-color: #007bff;
  color: white;
  border-radius: 50%;
  line-height: 30px;
  font-weight: bold;
  margin-bottom: 1em;
}

/* Jobs-Seite Stile */
.jobs-container {
  margin-bottom: 2em;
}

.job-item {
  background-color: white;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  padding: 1.5em;
  margin-bottom: 1.5em;
  border-left: 4px solid #007bff;
}

.job-title {
  font-size: 1.3em;
  margin-bottom: 0.5em;
  color: #333;
}

.job-meta {
  color: #666;
  font-size: 0.9em;
  margin-bottom: 1em;
}

.job-description {
  margin-bottom: 1.5em;
}

.job-button {
  display: inline-block;
  background-color: #007bff;
  color: white;
  padding: 0.7em 1.5em;
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
  transition: background-color 0.3s;
}

.job-button:hover {
  background-color: #0056b3;
}

/* Dezenter, moderner Button-Stil für den Starkeeper-Link im Aprilscherz-Absatz */
.article-content a[href*="starkeeper.ch"] {
  display: inline-block;
  color: #222;
  background: #f0f7ff;
  font-weight: bold;
  text-decoration: none;
  border-radius: 0.5em;
  padding: 0.45em 1.3em;
  margin-top: 0.5em;
  margin-bottom: 0.5em;
  border: 1.5px solid #007bff;
  box-shadow: 0 2px 8px rgba(0,123,255,0.06);
  transition: background 0.18s, box-shadow 0.18s, border-color 0.18s, color 0.18s, transform 0.12s;
  font-size: 1em;
  letter-spacing: 0.01em;
}

.article-content a[href*="starkeeper.ch"]:hover,
.article-content a[href*="starkeeper.ch"]:focus {
  background: #e6f0fa;
  color: #0056b3;
  border-color: #0056b3;
  box-shadow: 0 4px 16px rgba(0,123,255,0.13);
  transform: translateY(-1px) scale(1.03);
  text-decoration: none;
  outline: none;
}

/* Responsive */
@media (max-width: 768px) {
  main {
    flex-direction: column;
    width: 100%;
    padding: 0 10px;
  }

  article {
    margin-right: 0;
    margin-bottom: 1em;
  }
  
  .article-content {
    column-count: 1;
    column-gap: 0;
    column-rule: none;
    width: 100%;
    overflow-x: hidden;
  }
  
  article h2 {
    font-size: 1.6em;
  }
  
  article h3 {
    font-size: 1.1em;
  }
  
  figure {
    margin-bottom: 1em;
  }
  
  .side-item img {
    width: 100%;
    object-fit: contain;
  }
  
  .orange-ad {
    display: none;
  }
  
  .metzgerei-ad {
    display: none;
  }
  
  .top-ad {
    display: block;
    margin-bottom: 1em;
  }
  
  .bottom-ad {
    display: block;
    margin-top: 2em;
  }
  
  .abo-grid {
    grid-template-columns: 1fr;
  }
  
  .col-2 {
    grid-template-columns: 1fr;
  }
  
  .tab {
    padding: 0.6em 1em;
    font-size: 0.9em;
  }
  
  .why-subscribe, 
  .newsletter-form,
  .abo-box {
    padding: 1em;
  }
  
  .checkbox-group label {
    word-break: break-word;
  }
  
  .top-bar, .main-header {
    width: 100%;
    padding: 0 10px;
  }
  
  .top-nav, .main-nav {
    flex-wrap: wrap;
  }
  
  .top-nav a, .main-nav a {
    padding: 0.5em 0.7em;
    font-size: 0.9em;
  }
  
  aside {
    padding: 0 10px;
    width: 100%;
  }
  
  .ad-container img {
    max-width: 100%;
  }
  
  footer {
    padding: 10px;
    width: 100%;
    text-align: center;
  }
  
  .tv-container {
    padding: 1em;
  }
  
  .info-box {
    padding: 0.6em;
    font-size: 0.8em;
  }
  
  .benefits-list {
    grid-template-columns: 1fr;
  }
  
  .login-container {
    width: 95%;
    max-width: 100%;
    padding: 1.2em;
  }
  
  .reporter-form {
    padding: 1.2em;
  }
  
  .steps-container {
    grid-template-columns: 1fr;
  }
  
  .benefits-grid {
    grid-template-columns: 1fr !important;
  }
  
  .partners-grid {
    grid-template-columns: 1fr 1fr !important;
  }
}

/* Weitere Anpassungen für sehr kleine Bildschirme */
@media (max-width: 480px) {
  h2, h3, h4 {
    word-wrap: break-word;
    font-size: 1.2em;
  }
  
  .tab {
    padding: 0.5em 0.8em;
    font-size: 0.85em;
  }
  
  .abo-title {
    font-size: 1.1em;
  }
  
  .abo-price {
    font-size: 1.5em;
  }
  
  .abo-features li {
    padding-left: 1.2em;
    word-break: break-word;
  }
  
  .top-nav a, .main-nav a {
    padding: 0.4em 0.5em;
    font-size: 0.8em;
  }
  
  h1 {
    font-size: 1.5em;
  }
  
  .weather {
    font-size: 0.9em;
  }
  
  main {
    padding: 0 5px;
  }
  
  .tv-container {
    padding: 0.8em;
  }
  
  .info-box {
    padding: 0.5em;
    font-size: 0.75em;
    margin: 0.5em 0;
  }
  
  .login-container {
    padding: 1em;
  }
  
  .reporter-form {
    padding: 1em;
  }
  
  .step-item {
    padding: 0.8em !important;
  }
  
  .benefit-box {
    padding: 1em !important;
  }
  
  .partners-grid {
    grid-template-columns: 1fr !important;
  }
}
