/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Helvetica", Arial, sans-serif;
  line-height: 1.6;
  color: #2a3132;
  background-color: #ffffff;
}

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

/* GDPR Notice */
.gdpr-notice {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  background: #2a3132;
  color: white;
  padding: 0.75rem;
  border-radius: 8px;
  font-size: 0.875rem;
  max-width: 300px;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(42, 49, 50, 0.3);
  display: none;
}

.gdpr-notice a {
  color: #90afc5;
  text-decoration: underline;
}

.gdpr-notice button {
  background: #763626;
  color: white;
  border: none;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  margin-left: 0.5rem;
  cursor: pointer;
  font-size: 0.75rem;
}

.gdpr-notice button:hover {
  background: #8b4530;
}

/* Header */
.header {
  background: #2a3132;
  color: white;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(42, 49, 50, 0.3);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
}

.logo h1 {
  font-size: 1.5rem;
  font-weight: bold;
}

.logo span {
  color: #90afc5;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-menu a {
  color: white;
  text-decoration: none;
  transition: color 0.3s ease;
  font-weight: 500;
}

.nav-menu a:hover {
  color: #90afc5;
}

/* Calculator Section */
.calculator-section {
  padding: 3rem 0;
  background: linear-gradient(135deg, #90afc5 0%, #ffffff 100%);
}

.calculator-section h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
  color: #2a3132;
}

.calculator-card {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 8px 32px rgba(42, 49, 50, 0.1);
  max-width: 500px;
  margin: 0 auto;
  text-align: center;
}

.date-display,
.result-display {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 8px;
  border-left: 4px solid #763626;
}

.date-display p,
.result-display p {
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: #2a3132;
}

.date-display span,
.result-display span {
  font-size: 1.25rem;
  color: #763626;
  font-weight: bold;
}

.countdown {
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.countdown span {
  color: #763626;
  font-weight: bold;
  font-size: 1.5rem;
}

.calc-btn {
  background: #763626;
  color: white;
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s ease;
  font-weight: bold;
}

.calc-btn:hover {
  background: #8b4530;
}

/* Article Section */
.article-section {
  padding: 4rem 0;
  background: white;
}

.main-article {
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
}

.main-article h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #2a3132;
  line-height: 1.2;
}

.main-article h3 {
  font-size: 1.75rem;
  margin: 2rem 0 1rem 0;
  color: #2a3132;
  border-bottom: 2px solid #90afc5;
  padding-bottom: 0.5rem;
}

.main-article h4 {
  font-size: 1.25rem;
  margin: 1.5rem 0 0.75rem 0;
  color: #763626;
}

.article-meta {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
  font-size: 0.9rem;
  color: #666;
  border-bottom: 1px solid #eee;
  padding-bottom: 1rem;
}

.highlight-box {
  background: linear-gradient(135deg, #90afc5, #a8bdd1);
  color: white;
  padding: 1.5rem;
  border-radius: 8px;
  margin: 2rem 0;
  border-left: 4px solid #763626;
}

.warning-box {
  background: #fff5f5;
  border: 1px solid #fed7d7;
  border-left: 4px solid #763626;
  padding: 1.5rem;
  border-radius: 8px;
  margin: 2rem 0;
}

.warning-box h4 {
  color: #763626;
  margin-bottom: 1rem;
}

blockquote {
  border-left: 4px solid #90afc5;
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: #555;
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 0 8px 8px 0;
}

.data-table {
  margin: 2rem 0;
  overflow-x: auto;
}

.data-table h4 {
  margin-bottom: 1rem;
  color: #2a3132;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(42, 49, 50, 0.1);
}

th,
td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid #eee;
}

th {
  background: #2a3132;
  color: white;
  font-weight: bold;
}

tr:hover {
  background: #f8f9fa;
}

.main-article a {
  color: #763626;
  text-decoration: underline;
  font-weight: 500;
}

.main-article a:hover {
  color: #8b4530;
}

.main-article ul,
.main-article ol {
  margin: 1rem 0 1rem 2rem;
}

.main-article li {
  margin-bottom: 0.5rem;
}

.sources {
  background: #f8f9fa;
  padding: 2rem;
  border-radius: 8px;
  margin-top: 3rem;
  border-top: 3px solid #763626;
}

.sources h4 {
  color: #2a3132;
  margin-bottom: 1rem;
}

.sources ol {
  margin-left: 1rem;
}

.sources li {
  margin-bottom: 1rem;
  line-height: 1.6;
}

.sources a {
  color: #763626;
  word-break: break-all;
}

/* Footer */
.footer {
  background: #2a3132;
  color: white;
  padding: 3rem 0 1rem 0;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
  margin-bottom: 1rem;
  color: #90afc5;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: white;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: #90afc5;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #444;
  color: #ccc;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: #763626;
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  display: none;
  z-index: 1000;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(118, 54, 38, 0.3);
}

.back-to-top:hover {
  background: #8b4530;
  transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #2a3132;
    flex-direction: column;
    padding: 1rem;
    box-shadow: 0 4px 12px rgba(42, 49, 50, 0.3);
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-menu li {
    margin-bottom: 1rem;
  }

  .calculator-section h2 {
    font-size: 1.75rem;
  }

  .calculator-card {
    margin: 0 1rem;
    padding: 1.5rem;
  }

  .main-article h2 {
    font-size: 2rem;
  }

  .main-article h3 {
    font-size: 1.5rem;
  }

  .article-meta {
    flex-direction: column;
    gap: 0.5rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .back-to-top {
    bottom: 1rem;
    right: 1rem;
    width: 45px;
    height: 45px;
  }

  .gdpr-notice {
    left: 0.5rem;
    right: 0.5rem;
    max-width: none;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 0.75rem;
  }

  .calculator-section {
    padding: 2rem 0;
  }

  .calculator-card {
    margin: 0 0.5rem;
    padding: 1rem;
  }

  .main-article {
    padding: 0 0.5rem;
  }

  .main-article h2 {
    font-size: 1.75rem;
  }

  table {
    font-size: 0.875rem;
  }

  th,
  td {
    padding: 0.75rem 0.5rem;
  }
}

/* Performance Optimizations */
.nav-menu a,
.calc-btn,
.back-to-top,
.footer-section a {
  will-change: transform;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus styles for accessibility */
button:focus,
a:focus {
  outline: 2px solid #90afc5;
  outline-offset: 2px;
}

/* Print styles */
@media print {
  .header,
  .footer,
  .back-to-top,
  .gdpr-notice {
    display: none;
  }

  .main-article {
    max-width: none;
  }
}
