/* ============================================================
   TAGESGELDZINSEN.AT - Styles
   ============================================================ */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #fafcfb;
  color: #1a2e35;
  line-height: 1.6;
}

/* Focus Styles */
:focus-visible {
  outline: 3px solid #0d6a4e;
  outline-offset: 3px;
}

/* Skip Link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  background: #0d6a4e;
  color: white;
  padding: 16px 32px;
  border-radius: 0 0 12px 12px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  z-index: 9999;
  transition: top 0.3s ease;
}
.skip-link:focus { top: 0; }

/* Animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}
.animate-in { animation: fadeUp 0.7s ease-out forwards; }
.delay-1 { animation-delay: 0.1s; opacity: 0; }
.delay-2 { animation-delay: 0.2s; opacity: 0; }
.delay-3 { animation-delay: 0.3s; opacity: 0; }

/* Container */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* ============================================================
   HEADER
   ============================================================ */
.header {
  background: #fff;
  border-bottom: 1px solid #e5ebe8;
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 72px;
}

/* Logo */
.logo {
  display: flex;
  align-items: baseline;
  text-decoration: none;
  user-select: none;
}
.logo-tagesgeld {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 22px;
  color: #1a2e35;
  letter-spacing: -0.5px;
}
.logo-zinsen {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 22px;
  color: #0d6a4e;
  letter-spacing: -0.5px;
}
.logo-at {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 16px;
  color: #8a9a9f;
  margin-left: 2px;
}

/* Navigation */
.desktop-nav {
  display: none;
  gap: 8px;
}
.nav-link {
  background: none;
  border: none;
  color: #5a6d75;
  font-size: 16px;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}
.nav-link:hover { background: #f0f5f3; }
.nav-link.active { color: #0d6a4e; background: #e6f4ef; }

.mobile-menu-btn {
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  color: #1a2e35;
  display: flex;
}
.mobile-nav {
  display: none;
  background: #fff;
  border-top: 1px solid #e5ebe8;
  padding: 8px 20px 16px;
}
.mobile-nav.open { display: block; }
.mobile-nav-link {
  display: block;
  width: 100%;
  text-align: left;
  padding: 16px 0;
  color: #1a2e35;
  background: none;
  border: none;
  border-bottom: 1px solid #f0f4f2;
  font-size: 18px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: linear-gradient(180deg, #fff 0%, #f0f5f3 100%);
  padding-top: 48px;
  padding-bottom: 64px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #e6f4ef;
  color: #0d6a4e;
  padding: 10px 18px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 24px;
}
.hero-badge-dot {
  width: 8px;
  height: 8px;
  background: #0d6a4e;
  border-radius: 50%;
  animation: pulse 2s infinite;
}
.hero-title {
  font-family: 'Libre Baskerville', serif;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.15;
  color: #1a2e35;
  margin-bottom: 20px;
}
.hero-title-accent {
  color: #0d6a4e;
  display: block;
}
.hero-subtitle {
  font-size: 18px;
  line-height: 1.7;
  color: #5a6d75;
  margin-bottom: 32px;
  max-width: 560px;
}
.hero-highlight { color: #0d6a4e; font-weight: 600; }
.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #0d6a4e;
  color: #fff;
  padding: 16px 28px;
  border-radius: 12px;
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}
.btn-primary:hover {
  background: #095c43;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(13, 106, 78, 0.3);
}
.hero-trust {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #5a6d75;
  font-size: 16px;
}
.hero-card-wrap { display: none; }
.hero-card {
  background: #fff;
  border-radius: 20px;
  padding: 36px;
  text-align: center;
  box-shadow: 0 8px 40px rgba(13, 106, 78, 0.1);
  border: 1px solid #e5ebe8;
}
.hero-card-label {
  font-size: 13px;
  font-weight: 600;
  color: #5a6d75;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}
.hero-card-rate {
  font-family: 'Libre Baskerville', serif;
  font-size: 72px;
  font-weight: 700;
  color: #0d6a4e;
  line-height: 1;
}
.hero-card-rate-small { font-size: 36px; }
.hero-card-sub { font-size: 16px; color: #5a6d75; margin-top: 4px; }
.hero-card-info {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #e6f4ef;
  color: #0d6a4e;
  padding: 12px 20px;
  border-radius: 10px;
  margin-top: 24px;
  font-size: 15px;
  font-weight: 500;
}

/* ============================================================
   STATS
   ============================================================ */
.stats-section {
  background: #fff;
  border-top: 1px solid #e5ebe8;
  border-bottom: 1px solid #e5ebe8;
  padding: 32px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.stat-item { text-align: center; }
.stat-value {
  font-family: 'Libre Baskerville', serif;
  font-size: 28px;
  font-weight: 700;
  color: #0d6a4e;
}
.stat-label { font-size: 15px; color: #5a6d75; margin-top: 4px; }

/* ============================================================
   COMPARISON SECTION
   ============================================================ */
.comparison-section {
  padding: 64px 0 80px;
}
.section-header { text-align: center; margin-bottom: 40px; }
.section-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #0d6a4e;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}
.section-title {
  font-family: 'Libre Baskerville', serif;
  font-size: 28px;
  font-weight: 700;
  color: #1a2e35;
  margin-bottom: 16px;
}
.section-subtitle { font-size: 18px; color: #5a6d75; max-width: 500px; margin: 0 auto; }

/* Filter */
.filter-card {
  background: #fff;
  border: 1px solid #e5ebe8;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
}
.filter-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
.filter-group { display: flex; flex-direction: column; gap: 10px; }
.filter-label {
  font-size: 13px;
  font-weight: 600;
  color: #5a6d75;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.input-wrap { position: relative; }
.input-prefix {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #8a9a9f;
  font-size: 18px;
  font-weight: 600;
}
.input {
  width: 100%;
  padding: 16px 16px 16px 44px;
  font-size: 18px;
  font-weight: 600;
  color: #1a2e35;
  background: #f5f8f7;
  border: 2px solid #e5ebe8;
  border-radius: 12px;
  font-family: inherit;
}
.input:focus { border-color: #0d6a4e; outline: none; }
.slider {
  width: 100%;
  margin-top: 8px;
  accent-color: #0d6a4e;
  height: 6px;
}
.select-wrap { position: relative; }
.select {
  width: 100%;
  padding: 16px;
  padding-right: 48px;
  font-size: 16px;
  color: #1a2e35;
  background: #f5f8f7;
  border: 2px solid #e5ebe8;
  border-radius: 12px;
  font-family: inherit;
  appearance: none;
  cursor: pointer;
}
.select:focus { border-color: #0d6a4e; outline: none; }
.select-icon {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #5a6d75;
}
.checkbox-group { display: flex; gap: 24px; flex-wrap: wrap; }
.checkbox-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}
.checkbox-hidden { position: absolute; opacity: 0; width: 0; height: 0; }
.checkbox-box {
  width: 24px;
  height: 24px;
  border: 2px solid #c8ddd5;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: #fff;
  transition: all 0.2s;
}
.checkbox-hidden:checked + .checkbox-box {
  background: #0d6a4e;
  border-color: #0d6a4e;
}
.checkbox-text { font-size: 16px; color: #5a6d75; }
.results-info { margin-bottom: 20px; font-size: 16px; color: #5a6d75; }

/* ============================================================
   BANK CARDS
   ============================================================ */
.bank-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.bank-card {
  background: #fff;
  border: 1px solid #e5ebe8;
  border-radius: 20px;
  padding: 24px;
  transition: all 0.3s ease;
}
.bank-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(13, 106, 78, 0.12);
}
.bank-card.top {
  border-color: #0d6a4e;
  box-shadow: 0 8px 32px rgba(13, 106, 78, 0.1);
}
.top-badge {
  display: inline-block;
  background: #0d6a4e;
  color: #fff;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}
.bank-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid #f0f4f2;
  gap: 16px;
}
.bank-info { display: flex; align-items: center; gap: 14px; flex: 1; min-width: 0; }
.bank-logo {
  width: 52px;
  height: 52px;
  background: #fff;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 8px;
  border: 1px solid #e5ebe8;
  overflow: hidden;
}
.bank-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.bank-logo-fallback {
  width: 52px;
  height: 52px;
  background: #f0f5f3;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Libre Baskerville', serif;
  font-weight: 700;
  font-size: 18px;
  color: #0d6a4e;
  flex-shrink: 0;
}
.bank-name {
  font-family: 'Libre Baskerville', serif;
  font-size: 18px;
  font-weight: 700;
  color: #1a2e35;
  margin-bottom: 4px;
}
.bank-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.bank-country { font-size: 15px; color: #5a6d75; }
.tax-badge {
  background: #e6f4ef;
  color: #0d6a4e;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
}
.rate-block { text-align: right; flex-shrink: 0; }
.rate-value {
  font-family: 'Libre Baskerville', serif;
  font-size: 32px;
  font-weight: 700;
  color: #0d6a4e;
  line-height: 1;
}
.rate-pa { font-size: 15px; color: #5a6d75; }
.rate-action { font-size: 13px; color: #b8860b; font-weight: 600; margin-top: 4px; }
.bank-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 20px;
}
.bank-details {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.detail-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #f5f8f7;
}
.detail-label { font-size: 15px; color: #8a9a9f; }
.detail-value { font-size: 15px; font-weight: 500; color: #1a2e35; text-align: right; }
.earnings-card {
  background: #f5f8f7;
  border-radius: 14px;
  padding: 20px;
}
.earnings-title {
  font-size: 13px;
  font-weight: 600;
  color: #5a6d75;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}
.earnings-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 15px;
  color: #5a6d75;
}
.earnings-val { color: #1a2e35; font-weight: 500; }
.earnings-neg { color: #c75a3a; font-weight: 500; }
.earnings-total {
  display: flex;
  justify-content: space-between;
  padding-top: 14px;
  margin-top: 6px;
  border-top: 2px solid #e5ebe8;
  font-size: 17px;
  font-weight: 600;
}
.earnings-netto { color: #0d6a4e; }
.bank-footer {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid #f0f4f2;
}
.tag-list { display: flex; gap: 8px; flex-wrap: wrap; }
.tag {
  background: #f5f8f7;
  color: #5a6d75;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 14px;
}
.bank-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #0d6a4e;
  color: #fff;
  padding: 16px 24px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}
.bank-cta:hover {
  background: #095c43;
  transform: translateY(-2px);
}
.disclaimer {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-top: 32px;
  padding: 20px;
  background: #fef9f0;
  border: 1px solid #f5e6c8;
  border-radius: 14px;
  font-size: 15px;
  color: #8a6d3a;
  line-height: 1.6;
}

/* ============================================================
   LEGAL PAGES (Impressum, Datenschutz)
   ============================================================ */
.legal-section {
  padding: 48px 0 80px;
  background: #fafcfb;
}
.legal-content {
  max-width: 800px;
  margin: 0 auto;
  background: #fff;
  border-radius: 20px;
  padding: 32px 24px;
  border: 1px solid #e5ebe8;
}
.legal-title {
  font-family: 'Libre Baskerville', serif;
  font-size: 32px;
  font-weight: 700;
  color: #1a2e35;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid #e5ebe8;
}
.legal-block { margin-bottom: 32px; }
.legal-heading {
  font-family: 'Libre Baskerville', serif;
  font-size: 20px;
  font-weight: 700;
  color: #1a2e35;
  margin-bottom: 12px;
}
.legal-subheading {
  font-size: 17px;
  font-weight: 600;
  color: #1a2e35;
  margin-top: 20px;
  margin-bottom: 8px;
}
.legal-text { font-size: 16px; line-height: 1.8; color: #5a6d75; margin-bottom: 12px; }
.legal-link { color: #0d6a4e; text-decoration: underline; word-break: break-all; }
.legal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 20px;
}
.legal-list {
  margin: 16px 0;
  padding-left: 24px;
  color: #5a6d75;
  font-size: 16px;
  line-height: 1.8;
}
.legal-list li {
  margin-bottom: 8px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: #1a2e35;
  color: #a8b8bc;
  padding-top: 48px;
  padding-bottom: 24px;
  margin-top: auto;
}
.footer-main {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-logo {
  display: flex;
  align-items: baseline;
  margin-bottom: 16px;
}
.footer-logo .logo-tagesgeld { color: #fff; }
.footer-logo .logo-zinsen { color: #22c997; }
.footer-tagline { font-size: 16px; color: #8a9a9f; max-width: 300px; line-height: 1.6; }
.footer-nav { display: grid; grid-template-columns: 1fr; gap: 32px; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col-title {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}
.footer-link {
  background: none;
  border: none;
  padding: 0;
  color: #8a9a9f;
  font-size: 16px;
  text-decoration: none;
  cursor: pointer;
  text-align: left;
  transition: color 0.2s;
}
.footer-link:hover { color: #22c997; }
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  font-size: 14px;
  color: #6a7a7f;
}
.footer-disclaimer { margin-top: 8px; font-size: 13px; color: #5a6a6f; }

/* ============================================================
   RESPONSIVE - Tablet
   ============================================================ */
@media (min-width: 640px) {
  .container { padding-left: 32px; padding-right: 32px; }
  .hero-title { font-size: 44px; }
  .filter-grid { grid-template-columns: 1fr 1fr; }
  .legal-content { padding: 48px; }
}

/* ============================================================
   RESPONSIVE - Desktop
   ============================================================ */
@media (min-width: 1024px) {
  .container { padding-left: 40px; padding-right: 40px; }
  .desktop-nav { display: flex; }
  .mobile-menu-btn { display: none; }
  .hero-title { font-size: 56px; }
  .hero-grid { grid-template-columns: 1fr 400px; gap: 64px; align-items: center; }
  .hero-card-wrap { display: block; }
  .hero-buttons { flex-direction: row; }
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .filter-grid { grid-template-columns: 200px 200px 1fr; }
  .bank-grid { grid-template-columns: repeat(2, 1fr); }
  .bank-details { grid-template-columns: repeat(2, 1fr); }
  .bank-footer { flex-direction: row; justify-content: space-between; align-items: center; }
  .footer-main { flex-direction: row; justify-content: space-between; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
