/* ═══════════════════════════════════════════════════════════════════════════
   MURPHYS GOLFGESETZE – Static Site Stylesheet
   Comic-Strip / Pop-Art Design
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  --green: #2D6A2F;
  --yellow: #F4D03F;
  --blue: #1E88E5;
  --red: #B71C1C;
  --cream: #fef9e7;
  --black: #111;
  --shadow: 4px 4px 0 #111;
  --shadow-sm: 2px 2px 0 #111;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Comic Neue', cursive, sans-serif;
  background: var(--cream);
  color: var(--black);
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.text-red { color: var(--red); }

/* ─── Halftone Background ──────────────────────────────────────────────── */
.hero-section, .chapter-nav-section {
  background-image: radial-gradient(circle, rgba(0,0,0,0.05) 1px, transparent 1px);
  background-size: 12px 12px;
}

/* ─── Navbar ───────────────────────────────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--green);
  border-bottom: 4px solid var(--black);
  box-shadow: 0 4px 0 var(--black);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  gap: 0.5rem;
}

.nav-brand {
  font-family: 'Bangers', cursive;
  color: white;
  font-size: 1.5rem;
  letter-spacing: 0.05em;
  text-decoration: none;
  white-space: nowrap;
}

.nav-buttons {
  display: none;
  gap: 0.25rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
}

.nav-btn {
  font-family: 'Oswald', sans-serif;
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  border: 2px solid var(--black);
  border-radius: 4px;
  background: rgba(255,255,255,0.2);
  color: white;
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
}
.nav-btn:hover { background: rgba(255,255,255,0.4); }
.nav-btn.active { background: var(--yellow); color: black; box-shadow: var(--shadow-sm); }
.nav-btn-highlight {
  background: var(--yellow) !important;
  color: black !important;
  font-weight: bold;
  border-color: var(--yellow);
  box-shadow: var(--shadow-sm);
}
.nav-btn-blue {
  background: var(--blue) !important;
  color: white !important;
  font-weight: bold;
  border-color: var(--blue);
  box-shadow: var(--shadow-sm);
}

.hamburger {
  display: block;
  font-size: 2rem;
  color: white;
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Bangers', cursive;
}

.mobile-menu {
  display: none;
  background: #1B5E20;
  border-top: 2px solid var(--black);
  padding: 1rem;
  flex-direction: column;
  gap: 0.5rem;
}
.mobile-menu.open { display: flex; }

.mobile-nav-btn {
  font-family: 'Oswald', sans-serif;
  font-size: 0.9rem;
  color: white;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  padding: 0.25rem 0;
  text-decoration: none;
  display: block;
}
.mobile-nav-btn:hover { color: var(--yellow); }
.mobile-nav-btn.highlight { color: var(--yellow); font-weight: bold; }
.mobile-nav-btn.blue { color: var(--blue); font-weight: bold; }

@media (min-width: 768px) {
  .nav-buttons { display: flex; }
  .hamburger { display: none; }
}

/* ─── Hero ─────────────────────────────────────────────────────────────── */
.hero-section {
  background-color: var(--cream);
  border-bottom: 4px solid var(--black);
  padding: 2rem 0;
  overflow: hidden;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  background: var(--yellow);
  border: 3px solid var(--black);
  padding: 0.25rem 1rem;
  font-family: 'Oswald', sans-serif;
  font-size: 0.85rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  box-shadow: 3px 3px 0 var(--black);
  margin-bottom: 1rem;
}

.hero-text h1 {
  font-family: 'Bangers', cursive;
  font-size: 4rem;
  line-height: 1;
  color: var(--black);
  text-shadow: 4px 4px 0 var(--green);
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-family: 'Oswald', sans-serif;
  font-size: 1.2rem;
  color: #555;
  max-width: 500px;
  margin: 0 auto 1.5rem;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.hero-image img {
  max-width: 400px;
  width: 100%;
  height: auto;
  border: 4px solid var(--black);
  box-shadow: 6px 6px 0 var(--black);
  transform: rotate(2deg);
}

@media (min-width: 768px) {
  .hero-inner {
    flex-direction: row;
    text-align: left;
  }
  .hero-text { flex: 1; }
  .hero-text h1 { font-size: 5rem; }
  .hero-subtitle { margin: 0 0 1.5rem; }
  .hero-buttons { justify-content: flex-start; }
  .hero-image img { max-width: 500px; }
}

@media (min-width: 1024px) {
  .hero-text h1 { font-size: 6rem; }
}

/* ─── Buttons ──────────────────────────────────────────────────────────── */
.btn {
  font-family: 'Oswald', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.6rem 1.5rem;
  border: 3px solid var(--black);
  border-radius: 4px;
  cursor: pointer;
  transition: transform 0.1s, box-shadow 0.1s;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  display: inline-block;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--black); }
.btn:active { transform: translate(1px, 1px); box-shadow: 1px 1px 0 var(--black); }
.btn-primary { background: var(--green); color: white; }
.btn-secondary { background: white; color: var(--black); }

/* ─── Gesetz des Tages ─────────────────────────────────────────────────── */
.gesetz-des-tages-section {
  background: var(--yellow);
  border-bottom: 4px solid var(--black);
  padding: 2rem 0;
}

.gdt-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.gdt-badge {
  font-family: 'Bangers', cursive;
  font-size: 1.8rem;
  background: var(--black);
  color: var(--yellow);
  padding: 0.3rem 1rem;
  border: 3px solid var(--black);
}

.gdt-date {
  font-family: 'Oswald', sans-serif;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.gdt-countdown {
  font-family: 'Oswald', sans-serif;
  font-size: 0.9rem;
  background: white;
  border: 2px solid var(--black);
  padding: 0.2rem 0.8rem;
  margin-left: auto;
}

.gdt-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.gdt-card {
  background: white;
  border: 4px solid var(--black);
  box-shadow: 6px 6px 0 var(--black);
  padding: 2rem;
}

.gdt-chapter-badge {
  display: inline-block;
  font-family: 'Oswald', sans-serif;
  font-size: 0.8rem;
  font-weight: bold;
  background: var(--green);
  color: white;
  padding: 0.2rem 0.6rem;
  border: 2px solid var(--black);
  margin-bottom: 0.75rem;
}

.gdt-name {
  font-family: 'Bangers', cursive;
  font-size: 2.5rem;
  line-height: 1.1;
  margin-bottom: 0.75rem;
}

.gdt-text {
  font-family: 'Comic Neue', cursive;
  font-size: 1.2rem;
  line-height: 1.5;
}

@media (min-width: 768px) {
  .gdt-content { flex-direction: row; }
  .gdt-card { flex: 1; }
}

/* ─── Chapter Navigation ───────────────────────────────────────────────── */
.chapter-nav-section {
  background: var(--black);
  padding: 2rem 0;
}

.chapter-nav-heading {
  font-family: 'Bangers', cursive;
  color: var(--yellow);
  font-size: 2rem;
  text-align: center;
  margin-bottom: 1.5rem;
}

.chapter-nav-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
}

.chapter-nav-card {
  border: 3px solid white;
  padding: 1rem;
  text-align: left;
  cursor: pointer;
  transition: transform 0.15s;
  box-shadow: var(--shadow-sm);
}
.chapter-nav-card:hover { transform: scale(1.03); }

.chapter-nav-emoji { font-size: 2.5rem; margin-bottom: 0.3rem; }
.chapter-nav-title { font-family: 'Bangers', cursive; font-size: 1.1rem; }
.chapter-nav-count { font-family: 'Oswald', sans-serif; font-size: 0.75rem; opacity: 0.8; }

/* ─── Chapter Sections ─────────────────────────────────────────────────── */
.chapter-section {
  padding: 3rem 0;
  border-bottom: 4px solid var(--black);
}

.chapter-header {
  border-bottom: 4px solid var(--black);
  padding: 2rem 0;
  margin-bottom: 2rem;
}

.chapter-header-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.chapter-emoji { font-size: 4rem; margin-bottom: 0.5rem; }
.chapter-title {
  font-family: 'Bangers', cursive;
  font-size: 3rem;
  line-height: 1.1;
  text-shadow: 3px 3px 0 rgba(0,0,0,0.3);
}
.chapter-subtitle {
  font-family: 'Oswald', sans-serif;
  font-size: 1rem;
  opacity: 0.9;
  margin-top: 0.5rem;
}

.chapter-header-img img {
  width: 250px;
  height: 250px;
  object-fit: contain;
  border: 4px solid var(--black);
  box-shadow: var(--shadow);
  background: white;
}

@media (min-width: 768px) {
  .chapter-header-inner { flex-direction: row; }
  .chapter-header-text { flex: 1; }
}

/* ─── Law Cards ────────────────────────────────────────────────────────── */
.laws-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.law-card {
  background: white;
  border: 3px solid var(--black);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  transition: transform 0.15s;
}
.law-card:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--black); }

.law-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.law-number {
  font-family: 'Oswald', sans-serif;
  font-size: 0.75rem;
  font-weight: bold;
  background: var(--green);
  color: white;
  padding: 0.15rem 0.5rem;
  border: 2px solid var(--black);
}

.law-emoji { font-size: 1.5rem; }

.law-name {
  font-family: 'Bangers', cursive;
  font-size: 1.5rem;
  color: var(--green);
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.law-text {
  font-family: 'Comic Neue', cursive;
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 0.5rem;
}

.law-zusatz {
  font-family: 'Oswald', sans-serif;
  font-size: 0.85rem;
  color: #666;
  font-style: italic;
  margin-bottom: 0.5rem;
}

.law-video {
  margin-top: 0.75rem;
}
.law-video video {
  width: 100%;
  max-height: 200px;
  border: 2px solid var(--black);
  background: black;
}

/* ─── Law Actions (Comments + Rating) ──────────────────────────────────── */
.law-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 2px dashed #ddd;
}

.btn-comments {
  font-family: 'Oswald', sans-serif;
  font-size: 0.8rem;
  color: #666;
  background: none;
  border: none;
  cursor: pointer;
}
.btn-comments:hover { color: var(--green); }

.star-rating {
  display: flex;
  align-items: center;
  gap: 0.1rem;
}
.star {
  font-size: 1.3rem;
  color: #ddd;
  cursor: pointer;
  transition: color 0.15s;
}
.star:hover, .star.active { color: var(--yellow); }
.star.filled { color: var(--yellow); }
.rating-avg {
  font-family: 'Oswald', sans-serif;
  font-size: 0.75rem;
  color: #999;
  margin-left: 0.3rem;
}

/* ─── Comments Section ─────────────────────────────────────────────────── */
.comments-section {
  margin-top: 1rem;
  border-top: 2px dashed #ddd;
  padding-top: 1rem;
}

.comment-item {
  background: var(--cream);
  border: 2px solid var(--black);
  padding: 0.75rem;
  margin-bottom: 0.5rem;
  box-shadow: var(--shadow-sm);
}
.comment-author {
  font-family: 'Oswald', sans-serif;
  font-weight: bold;
  color: var(--green);
  font-size: 0.85rem;
}
.comment-date {
  font-family: 'Oswald', sans-serif;
  font-size: 0.7rem;
  color: #999;
}
.comment-text {
  font-family: 'Comic Neue', cursive;
  font-size: 0.9rem;
  margin-top: 0.3rem;
}

.comment-form {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.comment-form input, .comment-form textarea {
  font-family: 'Comic Neue', cursive;
  padding: 0.5rem;
  border: 2px solid var(--black);
  font-size: 0.9rem;
}
.comment-form textarea { min-height: 60px; resize: vertical; }
.comment-form button {
  align-self: flex-start;
}

/* ─── Newsletter ───────────────────────────────────────────────────────── */
.newsletter-section {
  background: var(--green);
  color: white;
  padding: 3rem 0;
  text-align: center;
  border-bottom: 4px solid var(--black);
}
.newsletter-title {
  font-family: 'Bangers', cursive;
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}
.newsletter-text {
  font-family: 'Oswald', sans-serif;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  opacity: 0.9;
}
.newsletter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  max-width: 500px;
  margin: 0 auto;
}
.newsletter-input {
  flex: 1;
  min-width: 200px;
  padding: 0.6rem 1rem;
  border: 3px solid var(--black);
  font-family: 'Comic Neue', cursive;
  font-size: 1rem;
}

/* ─── Footer ───────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--cream);
  padding: 2rem 0;
  border-top: 4px solid var(--black);
}
.footer-inner {
  text-align: center;
}
.footer-copy {
  font-family: 'Oswald', sans-serif;
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 1rem;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}
.footer-links a {
  font-family: 'Oswald', sans-serif;
  font-size: 0.85rem;
  color: var(--green);
  text-decoration: none;
}
.footer-links a:hover { text-decoration: underline; }
