/*
Theme Name: Vermietung Ferienobjekte
Author: Für René Grötzsch
Description: One-Page-Theme – Galerie, Preisrechner, PayPal, Belegungsplan.
Version: 1.3.2
Text Domain: vermietung-ferienobjekte
*/

body {
  margin: 0;
  font-family: system-ui, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: #222;
}

a {
  color: #0a7;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

header.site-header {
  position: sticky;
  top: 0;
  background: #fff;
  border-bottom: 1px solid #eee;
  z-index: 10;
}

header .bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
}

.brand {
  font-weight: 700;
}

.section {
  padding: 56px 0;
}

.card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 18px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.badge {
  display: inline-block;
  background: #e9fff7;
  color: #057;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid #c6f7e9;
  font-size: 12px;
}

.btn {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 8px;
  border: 1px solid #0a7;
  background: #0a7;
  color: #fff;
  font-weight: 700;
}

.btn.alt {
  background: #fff;
  color: #0a7;
}

/* === HERO: Bildgröße und Textlesbarkeit === */
.hero {
  display: grid;
  align-items: center;
  min-height: 56vh;
  background: linear-gradient(180deg, #f6fffb, #fff);
}

.hero.bg {
  min-height: 64vh;
  background-size: cover;
  background-position: center;
}

.hero-text, .wp-block-cover__inner-container {
  color: #fff !important;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
  position: relative;
  z-index: 2;
}

.wp-block-cover {
  position: relative;
}

.wp-block-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  z-index: 1;
  pointer-events: none;
}

/* === NAVIGATION === */
.site-header {
  position: relative;
  z-index: 10;
}

.site-nav {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
  pointer-events: auto !important;
  background: rgba(255, 255, 255, 0.95);
  padding: 10px 16px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.site-nav .menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.site-nav .menu a {
  color: #00897B;
  text-decoration: none;
  font-weight: 500;
}

.site-nav .menu a:hover {
  text-decoration: underline;
}

/* Für horizontale Menüs */
.site-nav .menu.horizontal {
  flex-direction: row;
  gap: 14px;
}

/* === BUTTONS & LINKS === */
.btn, a.btn {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid #00897B;
  background: #00897B;
  color: #fff !important;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.05s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  background: #007a6e;
  transform: translateY(-1px);
}

.btn--ghost {
  background: #fff;
  color: #00897B !important;
  border-color: #00897B;
}

.btn--ghost:hover {
  background: #e9fbf6;
}

.site-nav .current-menu-item a {
  border-bottom: 2px solid #009879;
  color: #009879 !important;
}

.wp-block-cover {
  min-height: 400px !important;
  max-height: 460px;
  overflow: hidden;
}

.wp-block-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.paypal-button-container,
.paypal-button {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}

/* === Preisrechner === */
.card label {
  font-size: .9rem;
  color: #6b7a80;
}

.card input[type="date"],
.card input[type="number"],
.card select {
  width: 100%;
  height: 40px;
  padding: 0 10px;
  border: 1px solid #e6eef0;
  border-radius: 10px;
  outline: none;
  background: #fff;
  transition: box-shadow 0.15s, border-color 0.15s;
}

.card input:focus,
.card select:focus {
  border-color: #00897B;
  box-shadow: 0 0 0 3px rgba(0, 137, 123, 0.15);
}

/* === MOBILE LAYOUT === */
@media (max-width: 768px) {
  .site-nav ul {
    flex-direction: column;
    background: rgba(255, 255, 255, 0.98);
    position: absolute;
    top: 60px;
    right: 10px;
    border: 1px solid #ccc;
    padding: 12px;
    border-radius: 10px;
    display: none;
  }

  .site-nav ul.open {
    display: flex;
  }

  .menu-toggle {
    display: inline-block;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 6px;
    background: #009879;
    color: #fff;
    font-size: 0.9rem;
  }
}