/* =========================================================
   msclub.de — Main Stylesheet
   ========================================================= */

/* --- Custom Properties --- */
:root {
  /* Maritime Farbpalette */
  --color-primary:       #0b2e4e;  /* Dunkel-Marineblau */
  --color-primary-dark:  #071d33;  /* Noch dunkler für Kontrast */
  --color-secondary:     #1a5c8a;  /* Ozeanblau */
  --color-accent:        #c9a84c;  /* Maritimes Gold */
  --color-accent-light:  #e8d28a;  /* Helles Gold */
  --color-accent-dark:   #a07c2e;  /* Dunkles Gold für Hover */
  --color-text:          #1a1a2e;
  --color-text-light:    #4a5568;
  --color-bg:            #f4f6f9;
  --color-bg-card:       #ffffff;
  --color-bg-dark:       #0b2e4e;
  --color-border:        #d1dce8;
  --color-border-gold:   #c9a84c40;
  --color-success:       #2a7a4a;

  --font-sans:  'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-serif: Georgia, 'Times New Roman', serif;

  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  16px;

  --shadow-sm:  0 1px 3px rgba(0,0,0,.08);
  --shadow-md:  0 4px 12px rgba(0,0,0,.12);
  --shadow-lg:  0 8px 32px rgba(0,0,0,.15);

  --max-width:  1200px;
  --gutter:     clamp(16px, 4vw, 32px);
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--color-secondary); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { list-style: none; }

/* --- Layout --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Mobile-first: immer 1 Spalte */
.grid-2,
.grid-3,
.grid-4 { display: grid; grid-template-columns: 1fr; gap: 16px; }

/* Querformat / kleines Tablet (≥ 600px) → 2 Spalten */
@media (min-width: 600px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}

/* Tablet / Desktop (≥ 900px) → volle Spaltenanzahl */
@media (min-width: 900px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .grid-4 { grid-template-columns: repeat(4, 1fr); gap: 20px; }
}

/* Inhalt + Sidebar Layout (2fr 1fr) */
.layout-sidebar {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: start;
}
@media (min-width: 900px) {
  .layout-sidebar { grid-template-columns: 2fr 1fr; gap: 40px; }
}

/* Formular: 2 Spalten nebeneinander */
.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 600px) {
  .form-row { grid-template-columns: 1fr 1fr; }
}

/* Footer Transparenz-Grid */
.footer-legal-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 600px) {
  .footer-legal-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
}

/* --- Header / Navigation --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-primary-dark);
  color: #fff;
  border-bottom: 2px solid var(--color-accent);
  box-shadow: 0 2px 16px rgba(0,0,0,.35);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.logo img,
.logo svg {
  height: 52px;
  width: auto;
}

.main-nav {
  display: flex;
  gap: 2px;
  align-items: center;
}

.main-nav a {
  color: rgba(255,255,255,.8);
  padding: 8px 15px;
  border-radius: var(--radius-sm);
  font-size: .88rem;
  font-weight: 500;
  letter-spacing: .02em;
  transition: background .18s, color .18s;
}

.main-nav a:hover,
.main-nav a.active {
  background: rgba(255,255,255,.1);
  color: #fff;
  text-decoration: none;
}

.nav-cta {
  background: var(--color-accent) !important;
  color: var(--color-primary-dark) !important;
  font-weight: 700 !important;
  border-radius: var(--radius-sm) !important;
  margin-left: 8px;
}

.nav-cta:hover {
  background: var(--color-accent-light) !important;
  text-decoration: none;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: #fff;
  font-size: 1.5rem;
}

/* --- Breadcrumb --- */
.breadcrumb {
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  padding: 10px 0;
  font-size: .85rem;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.breadcrumb li + li::before {
  content: '›';
  color: var(--color-text-light);
  margin-right: 6px;
}

.breadcrumb a { color: var(--color-text-light); }
.breadcrumb li:last-child a { color: var(--color-text); font-weight: 500; }

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  background: var(--color-primary-dark);
  color: #fff;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, #071d33 0%, #0b2e4e 55%, #1a5c8a 100%);
  opacity: .95;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('/assets/images/hero-bg.svg');
  background-size: cover;
  background-position: center 30%;
  opacity: .18;
  mix-blend-mode: luminosity;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.hero h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -.02em;
}

.hero h1 em {
  font-style: normal;
  color: var(--color-accent);
}

.hero p {
  font-size: 1.1rem;
  opacity: .85;
  margin-bottom: 28px;
  max-width: 560px;
  line-height: 1.7;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
  text-decoration: none;
  border: none;
}

.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); text-decoration: none; }

.btn-primary {
  background: var(--color-accent);
  color: var(--color-primary-dark);
  border: 2px solid var(--color-accent);
  letter-spacing: .03em;
}
.btn-primary:hover { background: var(--color-accent-light); border-color: var(--color-accent-light); }

.btn-secondary {
  background: rgba(255,255,255,.12);
  color: #fff;
  border: 2px solid rgba(201,168,76,.5);
}
.btn-secondary:hover { background: rgba(201,168,76,.15); border-color: var(--color-accent); }

.btn-outline {
  background: transparent;
  color: var(--color-secondary);
  border: 2px solid var(--color-secondary);
}
.btn-outline:hover { background: var(--color-secondary); color: #fff; }

/* --- Cards --- */
.card {
  background: var(--color-bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow .2s, transform .2s, border-color .2s;
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--color-accent);
}

.card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-body {
  padding: 20px;
}

.card-body h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--color-primary);
}

.card-body p {
  font-size: .9rem;
  color: var(--color-text-light);
  margin-bottom: 16px;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: .78rem;
  font-weight: 600;
}

.badge-blue    { background: #e8f4fd; color: var(--color-secondary); }
.badge-green   { background: #e8f7ee; color: var(--color-success); }
.badge-gold    { background: #fef5e5; color: #b07d0a; }
.badge-gray    { background: #f0f0f5; color: var(--color-text-light); }

/* --- Sections --- */
.section { padding: 72px 0; }
.section-alt { background: #e9eef5; }

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

.section-header h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--color-primary-dark);
  margin-bottom: 10px;
  letter-spacing: -.02em;
}

.section-header h2::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: var(--color-accent);
  margin: 12px auto 0;
  border-radius: 2px;
}

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

.section-link {
  text-align: center;
  margin-top: 36px;
}

/* --- Price Display --- */
.price-from {
  font-size: .8rem;
  color: var(--color-text-light);
}

.price-amount {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-primary);
}

.price-amount span { font-size: .85rem; font-weight: 400; color: var(--color-text-light); }

/* --- Star Rating --- */
.stars { color: var(--color-accent); letter-spacing: 2px; }

/* --- Search Bar (Homepage) --- */
.search-bar {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
  margin-top: 32px;
}

.search-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 160px;
}

.search-field label {
  font-size: .8rem;
  font-weight: 600;
  color: var(--color-text-light);
  text-transform: uppercase;
  letter-spacing: .05em;
}

.search-field select,
.search-field input {
  padding: 10px 12px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: .95rem;
  color: var(--color-text);
  background: #fff;
}

.search-field select:focus,
.search-field input:focus {
  outline: none;
  border-color: var(--color-secondary);
}

/* --- Footer --- */
.site-footer {
  background: var(--color-primary-dark);
  color: rgba(255,255,255,.8);
  padding: 56px 0 24px;
  border-top: 3px solid var(--color-accent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 40px;
}
@media (min-width: 600px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (min-width: 900px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
}

.footer-brand p {
  font-size: .9rem;
  margin-top: 12px;
  max-width: 300px;
  opacity: .8;
}

.footer-col h4 {
  color: #fff;
  font-size: .9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 14px;
}

.footer-col ul li { margin-bottom: 8px; }
.footer-col a { color: rgba(255,255,255,.7); font-size: .9rem; }
.footer-col a:hover { color: #fff; text-decoration: none; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .82rem;
  opacity: .6;
  flex-wrap: wrap;
  gap: 12px;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .main-nav { display: none; flex-direction: column; position: absolute; top: 70px; left: 0; right: 0; background: var(--color-primary-dark); padding: 12px; border-top: 1px solid rgba(255,255,255,.1); }
  .main-nav.open { display: flex; }
  .nav-toggle { display: block; }
  .search-bar { flex-direction: column; }
  .search-field { min-width: 100%; }
}

/* --- Formular --- */
.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field label {
  font-size: .85rem;
  font-weight: 600;
  color: var(--color-primary-dark);
  letter-spacing: .01em;
}

.form-field input,
.form-field select,
.form-field textarea {
  padding: 11px 14px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: .95rem;
  font-family: var(--font-sans);
  color: var(--color-text);
  background: #fff;
  transition: border-color .18s, box-shadow .18s;
  width: 100%;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(201,168,76,.18);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: #aab0bc;
}

.form-field textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

/* --- Legal Pages (Impressum / Datenschutz) --- */
.legal-content h1 { font-size: clamp(1.5rem,3vw,2rem); font-weight: 800; color: var(--color-primary-dark); margin-bottom: 28px; padding-bottom: 12px; border-bottom: 3px solid var(--color-accent); }
.legal-content h2 { font-size: 1.15rem; font-weight: 700; color: var(--color-primary-dark); margin: 36px 0 10px; }
.legal-content h3 { font-size: 1rem; font-weight: 700; color: var(--color-secondary); margin: 24px 0 8px; }
.legal-content h4 { font-size: .95rem; font-weight: 700; color: var(--color-text); margin: 18px 0 6px; }
.legal-content p  { color: var(--color-text-light); line-height: 1.85; margin-bottom: 14px; }
.legal-content ul { margin: 10px 0 14px 20px; list-style: disc; }
.legal-content ul li { color: var(--color-text-light); line-height: 1.8; margin-bottom: 6px; }
.legal-content a { color: var(--color-secondary); word-break: break-all; }

/* --- Utilities --- */
.text-center { text-align: center; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
