/*
Theme Name: Dein Reisedeal
Theme URI: https://www.dein-reisedeal.de
Author: Dein Reisedeal
Author URI: https://www.dein-reisedeal.de
Description: Modernes Pauschalreisen-Theme mit Deals, Newsletter und handverlesenem Design. Passend zu dein-reisedeal.de.
Version: 1.0
Requires at least: 5.0
Tested up to: 6.5
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dein-reisedeal
*/

:root {
  --navy: #0d1d3d;
  --navy-dark: #070f24;
  --ivory: #fbf8f3;
  --cream: #f3ecde;
  --mint: #36d399;
  --mint-dark: #1fa876;
  --yellow: #ffd23f;
  --orange: #ff6b35;
  --coral: #ff4d6d;
  --pink: #ffc4d6;
  --ink: #0d1d3d;
  --muted: #6b7285;
  --line: #e8e2d4;
  --white: #ffffff;
  --shadow-sm: 0 6px 18px rgba(13, 29, 61, 0.08);
  --shadow: 0 18px 48px rgba(13, 29, 61, 0.14);
  --shadow-pop: 8px 8px 0 var(--navy);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-weight: 400;
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  color: var(--navy);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.025em;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 32px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mint-dark);
  margin-bottom: 20px;
}
.eyebrow::before {
  content: '';
  width: 10px; height: 10px;
  background: var(--mint);
  border-radius: 50%;
  display: inline-block;
}

/* ===== TOP BAR ===== */
.topbar {
  background: var(--navy);
  color: rgba(255,255,255,0.85);
  font-size: 13px;
  padding: 10px 0;
  font-weight: 500;
}
.topbar .container {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
}
.topbar a { color: var(--yellow); font-weight: 600; }
.topbar-right { display: flex; gap: 22px; }
.topbar-right a { color: #fff; }

/* ===== HEADER ===== */
.site-header {
  background: var(--ivory);
  border-bottom: 2px solid var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 0; gap: 24px;
}
.logo {
  display: flex; align-items: center; gap: 12px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700; font-size: 22px;
  color: var(--navy);
  letter-spacing: -0.02em;
}
.logo svg { width: 46px; height: 46px; }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-text small {
  font-family: 'Inter', sans-serif;
  color: var(--mint-dark);
  font-size: 10px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.15em;
  margin-top: 4px;
}

.main-nav ul { list-style: none; display: flex; gap: 32px; }
.main-nav a {
  font-size: 15px; font-weight: 500;
  color: var(--ink); padding: 6px 0;
  position: relative; transition: color 0.2s;
}
.main-nav a:hover { color: var(--orange); }
.main-nav a::after {
  content: '';
  position: absolute; left: 0; bottom: -2px;
  width: 0; height: 3px;
  background: var(--yellow);
  transition: width 0.3s;
}
.main-nav a:hover::after { width: 100%; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600; font-size: 15px;
  cursor: pointer; border: 2px solid var(--navy);
  letter-spacing: -0.01em;
  border-radius: 999px;
  transition: all 0.2s ease;
}
.btn-primary {
  background: var(--navy); color: var(--ivory);
}
.btn-primary:hover {
  background: var(--orange); border-color: var(--orange);
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--navy);
}
.btn-yellow {
  background: var(--yellow); color: var(--navy);
  border-color: var(--navy);
}
.btn-yellow:hover {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--navy);
}
.btn-ghost {
  background: transparent; color: var(--navy);
}
.btn-ghost:hover {
  background: var(--navy); color: var(--ivory);
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--yellow);
}

.burger { display: none; background: none; border: none; cursor: pointer; font-size: 26px; color: var(--navy); }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 680px;
  background: url('https://images.unsplash.com/photo-1507525428034-b723cf961d3e?w=2000&q=85') center/cover;
  color: var(--ivory);
  display: flex; align-items: center;
  padding: 80px 0 160px;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(13,29,61,0.85) 0%, rgba(13,29,61,0.3) 50%, rgba(54,211,153,0.35) 100%);
}
.hero::after {
  content: '';
  position: absolute;
  top: 10%; right: -80px;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(255,210,63,0.5), transparent 70%);
  border-radius: 50%;
  filter: blur(20px);
}
.hero-content { position: relative; max-width: 820px; z-index: 2; }
.hero .eyebrow { color: var(--yellow); }
.hero .eyebrow::before { background: var(--yellow); }
.hero h1 {
  color: var(--ivory);
  font-size: clamp(44px, 7vw, 88px);
  font-weight: 700;
  margin-bottom: 24px;
  letter-spacing: -0.03em;
  line-height: 1;
}
.hero h1 .highlight {
  background: var(--yellow); color: var(--navy);
  padding: 0 14px; display: inline-block;
  transform: rotate(-1.5deg);
  border-radius: 4px;
  box-shadow: 4px 4px 0 rgba(0,0,0,0.2);
}
.hero h1 .wavy {
  color: var(--mint);
  font-style: italic;
}
.hero p {
  font-size: 19px; line-height: 1.65;
  max-width: 600px;
  color: rgba(255,255,255,0.92);
  font-weight: 400;
  margin-bottom: 36px;
}
.hero-tags {
  display: flex; gap: 10px; flex-wrap: wrap;
  margin-bottom: 36px;
}
.hero-tag {
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.3);
  padding: 8px 18px; border-radius: 999px;
  font-size: 13px; font-weight: 500;
  color: #fff;
}

/* ===== SEARCH BAR ===== */
.search-bar {
  position: relative;
  max-width: 1200px;
  margin: -80px auto 0;
  background: var(--white);
  border: 3px solid var(--navy);
  border-radius: 20px;
  padding: 8px;
  display: grid;
  grid-template-columns: 1.3fr 1.2fr 1fr auto;
  gap: 0;
  box-shadow: 10px 10px 0 var(--yellow);
  z-index: 10;
}
.search-field {
  display: flex; flex-direction: column;
  padding: 16px 22px;
  border-right: 1px solid var(--line);
  min-width: 0;
}
.search-field:last-of-type { border-right: none; }
.search-field label {
  font-size: 10px; font-weight: 700;
  color: var(--orange);
  text-transform: uppercase; letter-spacing: 0.2em;
  margin-bottom: 6px;
}
.search-field input, .search-field select {
  border: none; outline: none;
  font-size: 15px; font-weight: 500;
  color: var(--ink); background: transparent;
  font-family: 'Inter', sans-serif;
  width: 100%; padding: 0;
  cursor: pointer;
}
.search-bar .btn {
  margin: 0; padding: 0 36px;
  border-radius: 14px;
  align-self: stretch;
  border: none;
  background: var(--orange); color: #fff;
}
.search-bar .btn:hover { background: var(--coral); transform: none; box-shadow: none; }

/* ===== SECTIONS ===== */
section { padding: 110px 0; position: relative; }
.section-head {
  max-width: 720px; margin: 0 auto 64px;
  text-align: center;
}
.section-head h2 {
  font-size: clamp(36px, 5vw, 62px);
  margin-bottom: 18px;
  letter-spacing: -0.03em;
}
.section-head h2 .highlight {
  background: var(--yellow); padding: 0 12px;
  display: inline-block; transform: rotate(-1deg);
  border-radius: 6px;
}
.section-head h2 .mint { color: var(--mint-dark); font-style: italic; }
.section-head p {
  color: var(--muted); font-size: 18px;
  font-weight: 400; line-height: 1.7;
}

/* Ticker Band */
.ticker {
  background: var(--mint);
  color: var(--navy);
  padding: 18px 0;
  border-top: 2px solid var(--navy);
  border-bottom: 2px solid var(--navy);
  overflow: hidden;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.01em;
}
.ticker-track {
  display: flex; gap: 60px;
  white-space: nowrap;
  animation: ticker 35s linear infinite;
  width: max-content;
}
.ticker span::before {
  content: '\2708\FE0E';
  color: var(--orange);
  margin-right: 16px;
}
@keyframes ticker {
  to { transform: translateX(-50%); }
}

/* ===== DEAL CARDS ===== */
.deals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}
.deal-card {
  background: var(--white);
  border: 2px solid var(--navy);
  border-radius: 18px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex; flex-direction: column;
}
.deal-card:hover {
  transform: translate(-4px, -4px);
  box-shadow: 8px 8px 0 var(--navy);
}
.deal-img {
  position: relative;
  height: 240px;
  background-size: cover; background-position: center;
  border-bottom: 2px solid var(--navy);
}
.deal-badge {
  position: absolute;
  top: 16px; left: 16px;
  background: var(--yellow);
  color: var(--navy);
  padding: 8px 14px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px; font-weight: 700;
  letter-spacing: -0.01em;
  border: 2px solid var(--navy);
  border-radius: 8px;
  transform: rotate(-4deg);
}
.deal-badge.hot { background: var(--orange); color: #fff; }
.deal-badge.new { background: var(--mint); }
.deal-badge.pink { background: var(--pink); }
.deal-fav {
  position: absolute;
  top: 16px; right: 16px;
  width: 40px; height: 40px;
  background: #fff; border: 2px solid var(--navy);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 16px;
  color: var(--coral);
  transition: all 0.2s;
}
.deal-fav:hover { background: var(--coral); color: #fff; transform: scale(1.1); }
.deal-body { padding: 24px 26px; display: flex; flex-direction: column; flex-grow: 1; }
.deal-location {
  color: var(--muted);
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 6px;
  display: flex; align-items: center; gap: 6px;
}
.deal-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px; font-weight: 700;
  line-height: 1.2;
  margin-bottom: 14px;
  color: var(--navy);
  letter-spacing: -0.015em;
}
.deal-meta {
  display: flex; gap: 8px; flex-wrap: wrap;
  font-size: 12px;
  margin-bottom: 20px;
  font-weight: 500;
}
.deal-meta span {
  background: var(--cream);
  padding: 5px 12px;
  border-radius: 999px;
  color: var(--navy);
}
.deal-meta .rating {
  background: var(--yellow);
}
.deal-footer {
  margin-top: auto;
  display: flex; justify-content: space-between; align-items: flex-end;
  padding-top: 18px;
  border-top: 1px dashed var(--line);
}
.deal-price small {
  display: block; color: var(--muted);
  font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.15em;
  margin-bottom: 2px;
}
.deal-price .price {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 32px; font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
}
.deal-price .old {
  text-decoration: line-through;
  color: var(--muted);
  font-size: 14px; margin-right: 6px;
  font-weight: 500;
}
.deal-cta {
  background: var(--navy); color: var(--ivory);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13px; font-weight: 600;
  transition: all 0.2s;
  border: 2px solid var(--navy);
}
.deal-cta:hover {
  background: var(--yellow); color: var(--navy);
}

.section-cta { text-align: center; margin-top: 56px; }

/* ===== DESTINATIONS ===== */
.dest-section { background: var(--cream); border-top: 2px solid var(--navy); border-bottom: 2px solid var(--navy); }
.dest-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  grid-template-rows: 250px 250px;
  gap: 18px;
}
.dest-card {
  position: relative;
  border: 2px solid var(--navy);
  border-radius: 18px;
  overflow: hidden;
  background-size: cover; background-position: center;
  cursor: pointer;
  transition: transform 0.3s;
}
.dest-card:hover { transform: translate(-3px, -3px); box-shadow: 6px 6px 0 var(--navy); }
.dest-card::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(13,29,61,0.85) 0%, transparent 55%);
}
.dest-card:nth-child(1) { grid-row: span 2; }
.dest-info {
  position: absolute;
  bottom: 22px; left: 22px; right: 22px;
  color: var(--ivory); z-index: 1;
}
.dest-info h3 {
  color: var(--ivory);
  font-size: 28px; margin-bottom: 4px;
  font-weight: 700; letter-spacing: -0.02em;
}
.dest-info small {
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--yellow);
  display: inline-block;
  background: rgba(13,29,61,0.6);
  padding: 4px 10px; border-radius: 999px;
  margin-top: 6px;
}

/* ===== FEATURES ===== */
.features-section { background: var(--navy); color: var(--ivory); border-top: 2px solid var(--navy); }
.features-section .section-head h2 { color: var(--ivory); }
.features-section .section-head p { color: rgba(255,255,255,0.75); }
.features-section .eyebrow { color: var(--yellow); }
.features-section .eyebrow::before { background: var(--yellow); }

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}
.feature {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 32px 26px;
  border-radius: 18px;
  transition: all 0.3s;
}
.feature:hover {
  background: var(--yellow); color: var(--navy);
  transform: translate(-3px, -3px);
  box-shadow: 6px 6px 0 var(--mint);
}
.feature:hover h3, .feature:hover p { color: var(--navy); }
.feature-emoji {
  font-size: 42px;
  margin-bottom: 20px;
  display: block;
}
.feature h3 {
  color: var(--ivory);
  font-size: 20px;
  margin-bottom: 10px;
  font-weight: 600;
}
.feature p {
  color: rgba(255,255,255,0.75);
  font-size: 15px;
  line-height: 1.7;
  transition: color 0.3s;
}

/* ===== TESTIMONIALS ===== */
.testimonials-section { background: var(--ivory); }
.testi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.testi-card {
  background: #fff;
  border: 2px solid var(--navy);
  border-radius: 18px;
  padding: 30px;
  transition: all 0.3s;
}
.testi-card:nth-child(1) { background: var(--yellow); }
.testi-card:nth-child(2) { background: var(--pink); }
.testi-card:nth-child(3) { background: var(--mint); }
.testi-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 8px 8px 0 var(--navy);
}
.testi-stars {
  color: var(--navy);
  font-size: 18px;
  margin-bottom: 14px;
  letter-spacing: 2px;
}
.testi-text {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  line-height: 1.5;
  margin-bottom: 20px;
  color: var(--navy);
  font-weight: 500;
  letter-spacing: -0.01em;
}
.testi-author {
  display: flex; align-items: center; gap: 12px;
  padding-top: 16px;
  border-top: 2px dashed rgba(13,29,61,0.25);
}
.testi-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--navy); color: var(--yellow);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
}
.testi-author strong {
  display: block; font-size: 15px; color: var(--navy); font-weight: 600;
}
.testi-author small {
  font-size: 12px; color: var(--navy); opacity: 0.75; font-weight: 500;
}

/* ===== NEWSLETTER ===== */
.newsletter-wrap {
  background: var(--orange);
  border-top: 2px solid var(--navy);
  border-bottom: 2px solid var(--navy);
  position: relative;
  overflow: hidden;
  padding: 100px 0;
}
.newsletter-wrap::before,
.newsletter-wrap::after {
  content: '';
  position: absolute; border-radius: 50%;
}
.newsletter-wrap::before {
  width: 260px; height: 260px;
  background: var(--yellow);
  top: -80px; left: -80px;
  opacity: 0.35;
}
.newsletter-wrap::after {
  width: 340px; height: 340px;
  background: var(--coral);
  bottom: -160px; right: -100px;
  opacity: 0.5;
}
.newsletter-inner {
  max-width: 720px; margin: 0 auto;
  text-align: center;
  padding: 0 32px;
  position: relative; z-index: 2;
}
.newsletter-inner h2 {
  color: var(--ivory);
  font-size: clamp(34px, 4.5vw, 54px);
  margin-bottom: 16px;
}
.newsletter-inner h2 .highlight {
  background: var(--navy); color: var(--yellow);
  padding: 0 14px; display: inline-block;
  transform: rotate(-2deg);
  border-radius: 6px;
}
.newsletter-inner p {
  font-size: 18px;
  color: rgba(255,255,255,0.95);
  font-weight: 500;
  margin-bottom: 32px;
}
.newsletter-form {
  display: flex;
  max-width: 560px; margin: 0 auto;
  background: #fff;
  border: 2px solid var(--navy);
  border-radius: 999px;
  padding: 6px;
  box-shadow: 6px 6px 0 var(--navy);
}
.newsletter-form input {
  flex-grow: 1; border: none; outline: none;
  padding: 0 22px; font-size: 15px;
  color: var(--ink); background: transparent;
  font-family: inherit; font-weight: 500;
}
.newsletter-form button {
  background: var(--navy); color: var(--yellow);
  border: none; padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700; cursor: pointer;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px; letter-spacing: -0.01em;
  transition: all 0.2s;
}
.newsletter-form button:hover { background: var(--mint-dark); color: #fff; }
.newsletter-note {
  font-size: 13px;
  color: rgba(255,255,255,0.9);
  margin-top: 18px;
  font-weight: 500;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--navy); color: rgba(255,255,255,0.7);
  padding: 72px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.site-footer h4 {
  color: var(--yellow);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px; font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.site-footer ul { list-style: none; }
.site-footer ul li { margin-bottom: 10px; }
.site-footer ul a {
  color: rgba(255,255,255,0.65);
  font-size: 14px; transition: color 0.2s;
}
.site-footer ul a:hover { color: var(--mint); }
.footer-about p {
  font-size: 14px; margin: 18px 0 22px;
  line-height: 1.75;
  color: rgba(255,255,255,0.7);
  max-width: 340px;
}
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 40px; height: 40px;
  border: 2px solid rgba(255,255,255,0.25);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700;
  color: rgba(255,255,255,0.8);
  transition: all 0.2s;
}
.footer-social a:hover { background: var(--yellow); color: var(--navy); border-color: var(--yellow); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 28px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
  font-size: 13px;
  color: rgba(255,255,255,0.55);
}
.footer-legal { display: flex; gap: 24px; }
.footer-legal a:hover { color: var(--yellow); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
  .search-bar { grid-template-columns: 1fr 1fr auto; }
  .search-field:nth-child(3) { display: none; }
}
@media (max-width: 900px) {
  .container { padding: 0 24px; }
  .dest-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 220px 220px 220px; }
  .dest-card:nth-child(1) { grid-column: span 2; grid-row: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  section { padding: 80px 0; }
  .hero { min-height: 540px; padding: 60px 0 120px; }
}
@media (max-width: 700px) {
  .main-nav { display: none; }
  .burger { display: block; }
  .main-nav.open {
    display: block;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--ivory); border-bottom: 2px solid var(--navy);
  }
  .main-nav.open ul { flex-direction: column; padding: 20px; gap: 14px; }
  .header-inner > .btn { display: none; }
  .search-bar {
    grid-template-columns: 1fr;
    margin: -50px 16px 0;
  }
  .search-field { border-right: none; border-bottom: 1px solid var(--line); }
  .search-field:nth-child(3) { display: flex; }
  .search-bar .btn { padding: 18px; margin-top: 0; border-radius: 14px; }
  .dest-grid { grid-template-columns: 1fr; grid-template-rows: repeat(5, 220px); }
  .dest-card:nth-child(1) { grid-column: auto; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .section-head { margin-bottom: 48px; }
  .ticker { font-size: 16px; }
}

/* ===== WordPress Admin Bar Fix ===== */
body.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) {
  body.admin-bar .site-header { top: 46px; }
}
