/* ========================================
   PENSION RIEL – Modern Warm Stylesheet
   ======================================== */

/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }

/* VARIABLES */
:root {
  --color-bg: #faf7f2;
  --color-bg-alt: #f0e9dc;
  --color-text: #2b2418;
  --color-text-soft: #5a4f3d;
  --color-primary: #8b6f47;       /* Holz-Braun */
  --color-primary-dark: #6b5436;
  --color-accent: #c9a875;        /* Warmes Beige-Gold */
  --color-white: #ffffff;
  --color-border: #e3d9c6;
  --shadow-sm: 0 2px 8px rgba(43, 36, 24, 0.08);
  --shadow-md: 0 8px 24px rgba(43, 36, 24, 0.12);
  --shadow-lg: 0 16px 48px rgba(43, 36, 24, 0.16);
  --radius: 12px;
  --radius-lg: 20px;
  --container: 1200px;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* BASE */
body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  font-size: 16px;
}

h1, h2, h3 { font-family: var(--font-heading); line-height: 1.2; color: var(--color-text); }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 700; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); font-weight: 700; margin-bottom: 1rem; }
h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: 0.5rem; }
p { margin-bottom: 1rem; color: var(--color-text-soft); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 1.5rem; }

.eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

/* BUTTONS */
.btn {
  display: inline-block;
  padding: 0.9rem 1.75rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.25s ease;
  border: 2px solid transparent;
  text-align: center;
  cursor: pointer;
}
.btn-primary { background: var(--color-primary); color: var(--color-white); }
.btn-primary:hover { background: var(--color-primary-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline { border-color: var(--color-white); color: var(--color-white); }
.btn-outline:hover { background: var(--color-white); color: var(--color-primary); }
.btn-small { padding: 0.55rem 1.1rem; font-size: 0.85rem; background: var(--color-primary); color: var(--color-white); border-radius: 50px; }
.btn-small:hover { background: var(--color-primary-dark); }
.btn-nav { background: var(--color-primary); color: var(--color-white) !important; padding: 0.5rem 1.2rem; border-radius: 50px; }
.btn-nav:hover { background: var(--color-primary-dark); }

/* HEADER */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.5rem;
}
.logo { display: flex; align-items: center; gap: 0.75rem; }
.logo-mark {
  width: 42px; height: 42px;
  background: var(--color-primary); color: var(--color-white);
  display: grid; place-items: center;
  border-radius: 50%;
  font-family: var(--font-heading); font-weight: 700;
  font-size: 1.1rem;
}
.logo-text { font-family: var(--font-heading); font-size: 1.35rem; font-weight: 700; color: var(--color-text); }

.main-nav ul { display: flex; gap: 2rem; align-items: center; }
.main-nav a {
  font-weight: 500; font-size: 0.95rem;
  color: var(--color-text);
  transition: color 0.2s;
  position: relative;
}
.main-nav a:not(.btn-nav):hover { color: var(--color-primary); }
.main-nav a:not(.btn-nav)::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 2px; background: var(--color-primary);
  transition: width 0.25s;
}
.main-nav a:not(.btn-nav):hover::after { width: 100%; }

/* MOBILE NAV TOGGLE */
.nav-toggle {
  display: none;
  flex-direction: column; justify-content: space-between;
  width: 28px; height: 22px;
  z-index: 1100;
}
.nav-toggle span {
  display: block;
  width: 100%; height: 3px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all 0.3s ease;
}
.nav-toggle.active span:nth-child(1) { transform: translateY(9.5px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-9.5px) rotate(-45deg); }

/* HERO */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex; align-items: center;
  background:
    linear-gradient(135deg, rgba(43, 36, 24, 0.78) 0%, rgba(107, 84, 54, 0.62) 60%, rgba(43, 36, 24, 0.45) 100%),
    url('../images/hero.jpg') center/cover no-repeat,
    linear-gradient(135deg, #8b6f47 0%, #c9a875 50%, #d4b896 100%);
  background-size: cover;
  background-position: center;
  color: var(--color-white);
  padding: 5rem 0;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(255,255,255,0.05) 0%, transparent 50%);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 2; max-width: 800px; }
.hero h1 { color: var(--color-white); margin-bottom: 1.25rem; }
.hero .accent { color: var(--color-accent); }
.hero-sub { font-size: clamp(1rem, 2vw, 1.2rem); color: rgba(255,255,255,0.92); margin-bottom: 2rem; max-width: 600px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 3rem; }
.hero-quick {
  display: flex; flex-wrap: wrap; gap: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.25);
}
.hero-quick div { display: flex; flex-direction: column; }
.hero-quick strong { font-family: var(--font-heading); font-size: 2rem; font-weight: 700; color: var(--color-accent); }
.hero-quick span { font-size: 0.9rem; color: rgba(255,255,255,0.85); }

/* SECTIONS */
.section { padding: 5rem 0; }
.section-alt { background: var(--color-bg-alt); }
.section-head { text-align: center; max-width: 700px; margin: 0 auto 3rem; }
.section-head p { font-size: 1.05rem; }

/* GRID 2 */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

/* CHECK LIST */
.check-list { margin-top: 1.5rem; }
.check-list li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 0.75rem;
  color: var(--color-text);
}
.check-list li::before {
  content: '✓';
  position: absolute; left: 0; top: 0;
  width: 22px; height: 22px;
  background: var(--color-primary); color: var(--color-white);
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 0.75rem; font-weight: 700;
}

/* IMAGE PLACEHOLDER */
.image-placeholder, .card-img {
  aspect-ratio: 4/3;
  background:
    linear-gradient(135deg, var(--color-accent) 0%, var(--color-primary) 100%);
  border-radius: var(--radius-lg);
  display: grid; place-items: center;
  color: var(--color-white);
  font-weight: 500; font-size: 0.95rem;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}
.image-placeholder::before, .card-img::before {
  content: '';
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(45deg, transparent 0 20px, rgba(255,255,255,0.05) 20px 40px);
}
.image-placeholder span, .card-img span {
  position: relative; z-index: 1;
  padding: 0.5rem 1rem;
  background: rgba(0,0,0,0.25);
  border-radius: 6px;
}

/* CARDS (Rooms) */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.cards-4 {
  /* 4 Zimmer: auf Desktop 4er-Raster, auf Tablet 2x2, auf Mobil 1 Spalte */
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 1100px) {
  .cards-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .cards-4 { grid-template-columns: 1fr; }
}

/* Echtes Bild in Card */
.card-img-real {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--color-bg-alt);
}
.card-img-real img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.card:hover .card-img-real img { transform: scale(1.06); }

.card-badge {
  position: absolute;
  top: 12px; left: 12px;
  background: rgba(43, 36, 24, 0.85);
  color: var(--color-white);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  padding: 5px 12px;
  border-radius: 50px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* Gerundetes Bild für Über-uns */
.rounded-img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card-img { border-radius: 0; aspect-ratio: 16/10; }
.card-body { padding: 1.75rem; display: flex; flex-direction: column; flex: 1; }
.card-features { margin: 1rem 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.card-features li {
  background: var(--color-bg-alt);
  padding: 0.3rem 0.75rem;
  border-radius: 50px;
  font-size: 0.8rem;
  color: var(--color-text-soft);
}
.card-footer {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.price { font-size: 0.85rem; color: var(--color-text-soft); }
.price strong { font-family: var(--font-heading); font-size: 1.4rem; color: var(--color-primary); display: inline; }
.price small { font-size: 0.75rem; }

.rooms-note {
  text-align: center;
  margin-top: 3rem;
  padding: 1.5rem;
  background: var(--color-white);
  border-radius: var(--radius);
  border-left: 4px solid var(--color-primary);
}

/* FEATURES */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}
.feature {
  background: var(--color-white);
  padding: 2rem 1.5rem;
  border-radius: var(--radius);
  text-align: center;
  transition: transform 0.25s, box-shadow 0.25s;
  border: 1px solid var(--color-border);
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--color-accent); }
.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.feature h3 { margin-bottom: 0.5rem; }
.feature p { font-size: 0.9rem; margin: 0; }

/* NEWS */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.news-item {
  background: var(--color-white);
  padding: 2rem;
  border-radius: var(--radius);
  border-top: 4px solid var(--color-primary);
  box-shadow: var(--shadow-sm);
}
.news-item h3 { color: var(--color-primary); margin-bottom: 0.75rem; }
.news-item p { font-size: 0.95rem; margin: 0; }

/* CONTACT */
.contact-list { margin: 1.5rem 0 2rem; }
.contact-list li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--color-border);
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1rem;
  align-items: start;
}
.contact-list li:last-child { border-bottom: none; }
.contact-list strong { color: var(--color-primary); font-weight: 600; }
.contact-list a { color: var(--color-text); transition: color 0.2s; }
.contact-list a:hover { color: var(--color-primary); }
address { font-style: normal; color: var(--color-text-soft); }

.contact-map iframe {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.map-link { margin-top: 0.75rem; text-align: center; font-size: 0.9rem; }
.map-link a { color: var(--color-primary); font-weight: 500; }
.map-link a:hover { text-decoration: underline; }

/* FOOTER */
.site-footer { background: #1f1a12; color: #c9bfa9; padding: 4rem 0 0; }
.footer-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2.5rem;
  padding-bottom: 3rem;
}
.footer-col h3 { color: var(--color-white); font-family: var(--font-heading); margin-bottom: 1rem; font-size: 1.15rem; }
.footer-col p, .footer-col li { color: #c9bfa9; font-size: 0.9rem; line-height: 1.8; }
.footer-col a { color: #c9bfa9; transition: color 0.2s; }
.footer-col a:hover { color: var(--color-accent); }
.footer-col ul li { margin-bottom: 0.25rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1.5rem 0;
  text-align: center;
}
.footer-bottom p { color: #8a7e66; margin: 0; font-size: 0.85rem; }

/* ========================================
   RESPONSIVE / MOBILE
   ======================================== */
@media (max-width: 900px) {
  .grid-2 { grid-template-columns: 1fr; gap: 2.5rem; }
  .section { padding: 4rem 0; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .main-nav {
    position: fixed;
    top: 0; right: -100%;
    width: 80%; max-width: 360px;
    height: 100vh;
    background: var(--color-white);
    box-shadow: var(--shadow-lg);
    padding: 6rem 2rem 2rem;
    transition: right 0.3s ease;
  }
  .main-nav.active { right: 0; }
  .main-nav ul {
    flex-direction: column;
    gap: 1.5rem;
    align-items: flex-start;
  }
  .main-nav a { font-size: 1.1rem; }
  .btn-nav { width: 100%; text-align: center; }

  .hero { min-height: 70vh; padding: 4rem 0; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }
  .hero-quick { gap: 1.5rem; justify-content: space-between; }
  .hero-quick strong { font-size: 1.5rem; }

  .contact-list li { grid-template-columns: 1fr; gap: 0.25rem; }

  .footer-inner { gap: 2rem; text-align: left; }
}

@media (max-width: 480px) {
  .container { padding: 0 1rem; }
  .section { padding: 3rem 0; }
  .logo-text { font-size: 1.1rem; }
  .logo-mark { width: 36px; height: 36px; font-size: 0.95rem; }
  .hero-quick { gap: 1rem; }
  .card-body { padding: 1.25rem; }
  .card-footer { flex-direction: column; align-items: stretch; text-align: center; }
}

/* Body scroll lock when mobile menu open */
body.nav-open { overflow: hidden; }

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}

/* Print */
@media print {
  .site-header, .nav-toggle, .hero-cta, .site-footer { display: none; }
  body { background: white; color: black; }
}
