/* ============================================
   NOMAD VERGLEICH – Stylesheet
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Outfit:wght@300;400;500;600;700&display=swap');

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --deep: #0d2b2e;
  --teal: #1a535c;
  --mint: #4ecdc4;
  --coral: #ff6b6b;
  --sand: #faf8f5;
  --cream: #f0ece4;
  --text: #2c3e50;
  --text-light: #5a6c7d;
  --white: #ffffff;
  --shadow: 0 2px 20px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.10);
  --radius: 12px;
  --radius-lg: 20px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Outfit', sans-serif;
  font-weight: 400;
  color: var(--text);
  background: var(--sand);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'DM Serif Display', serif;
  font-weight: 400;
  line-height: 1.25;
  color: var(--deep);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); margin-bottom: 0.6em; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); margin-bottom: 0.4em; }

a { color: var(--teal); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--mint); }

img { max-width: 100%; height: auto; }

/* --- Layout --- */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Navigation --- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  padding: 0 24px;
}

.nav-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.nav-logo {
  font-family: 'DM Serif Display', serif;
  font-size: 1.4rem;
  color: var(--deep);
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-logo span {
  color: var(--mint);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 32px;
}

.nav-links a {
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  position: relative;
  padding: 4px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--mint);
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--deep);
  margin: 6px 0;
  transition: 0.3s;
}

/* --- Hero Section --- */
.hero {
  padding: 80px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -80px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(78,205,196,0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-badge {
  display: inline-block;
  background: var(--cream);
  color: var(--teal);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 8px 20px;
  border-radius: 50px;
  margin-bottom: 24px;
}

.hero h1 {
  max-width: 700px;
  margin: 0 auto 20px;
}

.hero p {
  max-width: 560px;
  margin: 0 auto 36px;
  color: var(--text-light);
  font-size: 1.1rem;
  line-height: 1.75;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.25s ease;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--coral);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(255,107,107,0.3);
}

.btn-primary:hover {
  background: #ff5252;
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(255,107,107,0.4);
}

.btn-secondary {
  background: var(--white);
  color: var(--teal);
  border: 2px solid var(--cream);
}

.btn-secondary:hover {
  border-color: var(--mint);
  color: var(--teal);
  transform: translateY(-2px);
}

/* --- Section Styling --- */
.section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header p {
  color: var(--text-light);
  max-width: 520px;
  margin: 0 auto;
  font-size: 1.05rem;
}

.section-alt {
  background: var(--white);
}

/* --- Country Cards --- */
.country-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.country-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  border: 1px solid rgba(0,0,0,0.04);
  text-decoration: none;
  display: block;
}

.section-alt .country-card {
  background: var(--sand);
}

.country-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  color: var(--text);
}

.country-flag {
  font-size: 2.8rem;
  margin-bottom: 16px;
  display: block;
}

.country-card h3 {
  margin-bottom: 12px;
}

.country-card p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 20px;
}

.country-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  background: var(--cream);
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 50px;
  letter-spacing: 0.02em;
}

.tag-good { background: #e8f8f5; color: #1a8a6e; }
.tag-warn { background: #fef3e2; color: #c27a1a; }
.tag-info { background: #eef2ff; color: #4a5cb5; }

/* --- Comparison Table --- */
.comparison-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 -24px;
  padding: 0 24px;
}

.comparison-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  min-width: 700px;
}

.comparison-table thead {
  background: var(--deep);
  color: var(--white);
}

.comparison-table th {
  padding: 18px 20px;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-align: left;
}

.comparison-table td {
  padding: 18px 20px;
  border-bottom: 1px solid var(--cream);
  font-size: 0.95rem;
}

.comparison-table tbody tr:last-child td {
  border-bottom: none;
}

.comparison-table tbody tr:hover {
  background: rgba(78,205,196,0.04);
}

.table-highlight {
  background: rgba(78,205,196,0.08) !important;
  font-weight: 600;
}

.rating {
  color: var(--coral);
  font-weight: 600;
  letter-spacing: 1px;
}

/* --- Tool Cards --- */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.tool-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0,0,0,0.04);
  transition: all 0.3s ease;
}

.section-alt .tool-card {
  background: var(--sand);
}

.tool-card:hover {
  box-shadow: var(--shadow-lg);
}

.tool-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.tool-name {
  font-family: 'DM Serif Display', serif;
  font-size: 1.3rem;
  color: var(--deep);
}

.tool-price {
  background: var(--cream);
  color: var(--teal);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 6px 14px;
  border-radius: 50px;
}

.tool-card p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 20px;
}

.tool-pros {
  list-style: none;
  margin-bottom: 20px;
}

.tool-pros li {
  padding: 4px 0;
  font-size: 0.92rem;
  color: var(--text);
}

.tool-pros li::before {
  content: '✓ ';
  color: var(--mint);
  font-weight: 700;
}

.tool-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--coral);
  font-weight: 600;
  font-size: 0.92rem;
}

.tool-link:hover {
  color: #ff5252;
}

.tool-link::after {
  content: '→';
  transition: transform 0.2s;
}

.tool-link:hover::after {
  transform: translateX(4px);
}

/* --- Country Detail Page --- */
.country-hero {
  padding: 60px 0 40px;
  text-align: center;
}

.country-hero .country-flag {
  font-size: 4rem;
  margin-bottom: 16px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin: 40px 0;
}

.info-box {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
  box-shadow: var(--shadow);
}

.section-alt .info-box {
  background: var(--sand);
}

.info-box-label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-light);
  margin-bottom: 8px;
}

.info-box-value {
  font-family: 'DM Serif Display', serif;
  font-size: 1.6rem;
  color: var(--deep);
}

.info-box-value.good { color: #1a8a6e; }
.info-box-value.warn { color: #c27a1a; }

.content-block {
  max-width: 820px;
  margin: 0 auto;
  padding: 40px 0;
}

.content-block h2 {
  margin-top: 48px;
  margin-bottom: 16px;
  padding-top: 32px;
  border-top: 1px solid var(--cream);
}

.content-block h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.content-block p {
  margin-bottom: 16px;
  color: var(--text);
  line-height: 1.8;
}

.content-block ul {
  margin: 16px 0;
  padding-left: 24px;
}

.content-block li {
  margin-bottom: 8px;
  line-height: 1.7;
}

/* --- Pro/Con Boxes --- */
.procon-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 32px 0;
}

.procon-box {
  border-radius: var(--radius);
  padding: 24px;
}

.procon-box.pro {
  background: #e8f8f5;
  border: 1px solid #b2ece0;
}

.procon-box.con {
  background: #fef3e2;
  border: 1px solid #f5ddb5;
}

.procon-box h4 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.procon-box.pro h4 { color: #1a8a6e; }
.procon-box.con h4 { color: #c27a1a; }

.procon-box ul {
  list-style: none;
  padding: 0;
}

.procon-box li {
  padding: 5px 0;
  font-size: 0.93rem;
  line-height: 1.6;
}

.procon-box.pro li::before { content: '✓ '; color: #1a8a6e; font-weight: 700; }
.procon-box.con li::before { content: '✗ '; color: #c27a1a; font-weight: 700; }

/* --- Affiliate CTA Box --- */
.cta-box {
  background: linear-gradient(135deg, var(--teal), var(--deep));
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  text-align: center;
  margin: 48px 0;
}

.cta-box h3 {
  color: var(--white);
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.cta-box p {
  color: rgba(255,255,255,0.8);
  margin-bottom: 24px;
  font-size: 1rem;
}

.cta-box .btn-primary {
  background: var(--coral);
}

/* --- Footer --- */
.footer {
  background: var(--deep);
  color: rgba(255,255,255,0.6);
  padding: 48px 0 32px;
  font-size: 0.9rem;
}

.footer-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: start;
  flex-wrap: wrap;
  gap: 40px;
}

.footer-brand {
  font-family: 'DM Serif Display', serif;
  font-size: 1.2rem;
  color: var(--white);
  margin-bottom: 8px;
}

.footer-brand span { color: var(--mint); }

.footer-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-links a {
  color: rgba(255,255,255,0.6);
  font-size: 0.88rem;
}

.footer-links a:hover {
  color: var(--mint);
}

.footer-bottom {
  max-width: 1140px;
  margin: 32px auto 0;
  padding: 24px 24px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.82rem;
  text-align: center;
}

.footer-bottom p {
  margin-bottom: 4px;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 24px;
    gap: 16px;
    box-shadow: var(--shadow-lg);
  }
  
  .hero { padding: 48px 0 36px; }
  .section { padding: 48px 0; }
  
  .country-grid { grid-template-columns: 1fr; }
  .tool-grid { grid-template-columns: 1fr; }
  .procon-grid { grid-template-columns: 1fr; }
  
  .info-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-inner {
    flex-direction: column;
    gap: 24px;
  }
}

@media (max-width: 480px) {
  body { font-size: 16px; }
  .info-grid { grid-template-columns: 1fr; }
}
