/* ============================================================
   Villa Weiss – Boutique Hotel am Attersee
   Modernes Boutique-Design
   Schriften: Cormorant Garamond (Headlines) + Jost (Text/UI)
   Alle Schriften lokal gehostet (datenschutzfreundlich)
   ============================================================ */

/* ---------- Fonts (lokal) ---------- */
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('fonts/cormorant-garamond-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('fonts/cormorant-garamond-400-italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('fonts/cormorant-garamond-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Jost';
  src: url('fonts/jost-300.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Jost';
  src: url('fonts/jost-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Jost';
  src: url('fonts/jost-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* ---------- Design Tokens ---------- */
:root {
  --primary-color: #26343f;
  --secondary-color: #8b7355;
  --accent-color: #c8a24a;
  --accent-soft: #e9dcc0;
  --light-bg: #f7f4ee;
  --white: #ffffff;
  --text-dark: #2a2f35;
  --text-light: #5d6670;
  --border-color: #e6e0d5;
  --font-headline: 'Cormorant Garamond', 'Georgia', serif;
  --font-body: 'Jost', 'Segoe UI', 'Helvetica Neue', sans-serif;
  --shadow-soft: 0 12px 34px rgba(38, 52, 63, 0.10);
  --shadow-hover: 0 18px 44px rgba(38, 52, 63, 0.16);
  --transition: 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.02rem;
  color: var(--text-dark);
  line-height: 1.75;
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--accent-color);
  color: var(--primary-color);
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headline);
  font-weight: 500;
  letter-spacing: 0.01em;
  margin-bottom: 1rem;
  color: var(--primary-color);
  line-height: 1.15;
}

h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
}

h2 {
  font-size: clamp(1.9rem, 3.5vw, 2.7rem);
}

h3 {
  font-size: 1.55rem;
}

h4 {
  font-size: 1.25rem;
}

p {
  margin-bottom: 1rem;
  color: var(--text-light);
}

a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--accent-color);
}

em, .italic {
  font-family: var(--font-headline);
  font-style: italic;
}

/* Kleine goldene Zeile über Überschriften (Boutique-Look) */
.eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent-color);
  margin-bottom: 0.9rem;
}

/* ---------- Header & Navigation ---------- */
header {
  background-color: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 var(--border-color), 0 4px 18px rgba(0, 0, 0, 0.04);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-family: var(--font-headline);
  font-size: 1.7rem;
  font-weight: 500;
  color: var(--primary-color);
  letter-spacing: 0.06em;
  text-decoration: none;
}

.logo:hover {
  color: var(--primary-color);
}

.logo img {
  height: 52px;
  width: auto;
  display: block;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2.2rem;
}

nav a {
  color: var(--text-dark);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding-bottom: 0.3rem;
  position: relative;
  transition: color var(--transition);
}

nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--accent-color);
  transition: width var(--transition);
}

nav a:hover,
nav a.active {
  color: var(--primary-color);
}

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

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--primary-color);
  padding: 0.4rem;
  line-height: 1;
}

/* ---------- Hero Section ---------- */
.hero {
  position: relative;
  height: 78vh;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: var(--primary-color);
}

.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Dezenter Verlauf statt schwerer Box – Text bleibt gut lesbar */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
    rgba(38, 52, 63, 0.35) 0%,
    rgba(38, 52, 63, 0.15) 45%,
    rgba(38, 52, 63, 0.55) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  text-align: center;
  color: var(--white);
  z-index: 2;
  padding: 2rem;
  max-width: 900px;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2.8rem, 7vw, 4.6rem);
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-bottom: 0.6rem;
  text-shadow: 0 2px 22px rgba(0, 0, 0, 0.35);
}

.hero p {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  max-width: 700px;
  margin: 0 auto;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.4);
}

.hero-content .eyebrow {
  color: var(--accent-soft);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}

/* ---------- Main Content ---------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4.5rem 2rem;
}

.section {
  margin-bottom: 5.5rem;
}

.section:last-child {
  margin-bottom: 0;
}

.section-intro {
  max-width: 800px;
  margin: 0 auto 3.5rem;
  text-align: center;
}

.section-intro p {
  font-size: 1.05rem;
}

/* ---------- Grid Layouts ---------- */
.grid {
  display: grid;
  gap: 2rem;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* ---------- Cards ----------
   Flexbox-Spalte: Buttons sitzen in jeder Karte
   einer Reihe auf exakt gleicher Höhe. */
.card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

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

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

.card-content {
  padding: 1.8rem 1.6rem 1.7rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card h3 {
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.card-content p {
  flex: 1;
}

/* ---------- Image Gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.gallery img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 4px;
  transition: transform var(--transition);
}

.gallery img:hover {
  transform: scale(1.03);
}

/* ---------- Buttons ----------
   Einheitliche Position & Größe auf allen Seiten.
   - .btn            Standard-Button (dunkel, wird gold bei Hover)
   - .btn-primary    Goldener Haupt-Button
   - .btn-outline    Transparenter Button (z. B. auf dunklen Flächen)
   - .btn-group      Mehrere Buttons nebeneinander, umbrechend
   - .section-cta    Zentrierter Aktionsbereich unter einer Sektion */
.btn {
  display: inline-block;
  padding: 0.95rem 2.3rem;
  background-color: var(--primary-color);
  color: var(--white);
  border: 1px solid var(--primary-color);
  border-radius: 2px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.3;
  cursor: pointer;
  transition: background-color var(--transition), color var(--transition),
              border-color var(--transition), transform 0.2s ease;
}

.btn:hover {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  color: var(--primary-color);
  transform: translateY(-2px);
}

.btn:focus-visible {
  outline: 2px solid var(--accent-color);
  outline-offset: 3px;
}

.btn-primary {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  color: var(--primary-color);
}

.btn-primary:hover {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--white);
}

.btn-outline {
  background-color: transparent;
  border-color: var(--white);
  color: var(--white);
}

.btn-outline:hover {
  background-color: var(--white);
  border-color: var(--white);
  color: var(--primary-color);
}

/* Buttons in Cards: immer bündig am Kartenende */
.card-content .btn {
  margin-top: auto;
  align-self: flex-start;
}

/* Mehrere Buttons nebeneinander (zentriert, mobil umbrechend) */
.btn-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

/* Zentrierter Aktionsbereich unterhalb einer Sektion */
.section-cta {
  text-align: center;
  margin-top: 2.5rem;
}

/* ---------- Contact Form ---------- */
.contact-form {
  max-width: 600px;
  margin: 2rem auto;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 2px;
  font-size: 1rem;
  font-family: var(--font-body);
  font-weight: 300;
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(200, 162, 74, 0.15);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

/* ---------- Info Boxes ---------- */
.info-box {
  background: var(--light-bg);
  padding: 2.2rem;
  border-left: 3px solid var(--accent-color);
  border-radius: 2px;
  margin: 2rem 0;
}

.info-box h3 {
  color: var(--secondary-color);
}

/* ---------- Footer ---------- */
footer {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 3.5rem 2rem 1.5rem;
  margin-top: 4rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  color: var(--accent-color);
  margin-bottom: 1rem;
  font-size: 1.35rem;
}

.footer-section p,
.footer-section a {
  color: rgba(247, 244, 238, 0.85);
  margin-bottom: 0.5rem;
  display: block;
  font-size: 0.95rem;
}

.footer-section a:hover {
  color: var(--accent-color);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(247, 244, 238, 0.6);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
}

.footer-bottom p {
  color: inherit;
}

/* ---------- Responsive Design ---------- */
@media (max-width: 968px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    display: none;
  }

  nav.active {
    display: block;
  }

  nav ul {
    flex-direction: column;
    gap: 0;
  }

  nav li {
    border-bottom: 1px solid var(--border-color);
  }

  nav a {
    display: block;
    padding: 1rem 2rem;
  }

  nav a::after {
    display: none;
  }

  .hero {
    height: 62vh;
    min-height: 420px;
  }

  .hero p {
    letter-spacing: 0.22em;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .container {
    padding: 3rem 1.5rem;
  }

  /* Buttons auf dem Handy: volle Breite, gut tippbar */
  .btn-group {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-group .btn {
    width: 100%;
  }

  .card-content .btn {
    align-self: stretch;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .header-container {
    padding: 0.9rem 1.4rem;
  }

  .logo {
    font-size: 1.4rem;
  }

  .logo img {
    height: 42px;
  }

  .hero {
    min-height: 380px;
  }
}

/* ---------- Reduzierte Bewegung (Barrierefreiheit) ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
