@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/cg-500.woff2") format("woff2");
}

@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/cg-600.woff2") format("woff2");
}

@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/cg-italic-500.woff2") format("woff2");
}

:root {
  --color-bg: #faf6f0;
  --color-bg-alt: #f3e7da;
  --color-primary: #8c3b3b;
  --color-primary-dark: #5e2626;
  --color-accent: #c9a04a;
  --color-accent-light: #e3c98f;
  --color-text: #3a2e2c;
  --color-text-light: #6b5c58;
  --font-heading: "Cormorant Garamond", Georgia, "Iowan Old Style", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(94, 38, 38, 0.10);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
}

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

a { color: var(--color-primary); }

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-primary-dark);
  margin-top: 0;
}

h1 { font-size: 3.2rem; line-height: 1.15; letter-spacing: 0.01em; }
h2 { font-size: 2.3rem; margin-bottom: 0.6rem; }
h3 { font-size: 1.35rem; }

.section-lead {
  color: var(--color-text-light);
  max-width: 640px;
  margin-bottom: 2rem;
}

/* Ornament divider under section headings */
.ornament {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 1.6rem;
  color: var(--color-accent);
}

.ornament::before,
.ornament::after {
  content: "";
  height: 1px;
  width: 56px;
  background: var(--color-accent);
  opacity: 0.6;
}

.ornament span { font-size: 1.1rem; }

/* Header */
.site-header {
  background: rgba(250, 246, 240, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #e8dbcb;
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--color-primary-dark);
}

.brand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: var(--color-accent-light);
  font-size: 1.15rem;
  box-shadow: var(--shadow);
}

.brand-text {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 600;
  line-height: 1.1;
}

.brand-text em {
  font-style: normal;
  color: var(--color-accent);
  display: block;
  font-family: var(--font-body);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-top: 2px;
}

.main-nav { display: flex; gap: 26px; flex-wrap: wrap; }

.main-nav a {
  text-decoration: none;
  color: var(--color-text);
  font-size: 0.95rem;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.main-nav a:hover {
  color: var(--color-primary);
  border-bottom-color: var(--color-accent);
}

/* Hero with photo */
.hero {
  position: relative;
  color: #fff;
  padding: 130px 0 150px;
  background: var(--color-primary-dark);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(64, 24, 24, 0.55), rgba(64, 24, 24, 0.65)),
    url("/img/hero-weinberg.jpg") center 40% / cover no-repeat;
  z-index: 0;
}

.hero > .container,
.hero .hero-wave { position: relative; z-index: 1; }

.hero-inner { max-width: 720px; }

.hero h1 { color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,0.35); }

.hero-kicker {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-accent-light);
  margin-bottom: 1rem;
}

.hero-sub {
  font-size: 1.2rem;
  color: #f6ead9;
  margin-bottom: 2.2rem;
  text-shadow: 0 1px 8px rgba(0,0,0,0.4);
}

/* wave at hero bottom */
.hero-wave {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  display: block;
  width: 100%;
  height: 60px;
}

.btn {
  display: inline-block;
  background: var(--color-accent);
  color: var(--color-primary-dark);
  text-decoration: none;
  padding: 15px 32px;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 18px rgba(0,0,0,0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.3); }

.btn-outline {
  background: transparent;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  box-shadow: none;
  margin-top: 16px;
}

.btn-outline:hover { box-shadow: none; background: rgba(140, 59, 59, 0.06); }

/* Sections */
.section { padding: 84px 0; }
.section-alt { background: var(--color-bg-alt); }

/* About section: text + photo side by side */
.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 48px;
  align-items: center;
}

.about-photo {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transform: rotate(1.5deg);
}

.about-photo img { display: block; width: 100%; height: auto; }

.about-photo figcaption {
  font-size: 0.8rem;
  color: var(--color-text-light);
  text-align: center;
  padding: 8px;
  background: #fff;
}

/* Service cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 26px;
  margin-top: 36px;
}

.card {
  background: #fff;
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow);
  border-top: 3px solid var(--color-accent);
  transition: transform 0.2s ease;
}

.card:hover { transform: translateY(-4px); }

.card-icon { font-size: 1.8rem; margin-bottom: 10px; display: block; }

.card h3 { color: var(--color-primary); margin-bottom: 8px; }
.card p { color: var(--color-text-light); margin: 0; font-size: 0.96rem; }

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 26px;
  margin-top: 36px;
}

.gallery figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #fff;
}

.gallery img {
  display: block;
  width: 100%;
  height: 260px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.gallery figcaption {
  padding: 12px 16px;
  font-size: 0.92rem;
  color: var(--color-text-light);
}

/* Opening hours */
.hours-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 36px 40px;
  max-width: 560px;
}

.hours { width: 100%; border-collapse: collapse; }

.hours th, .hours td {
  text-align: left;
  padding: 13px 0;
  border-bottom: 1px solid #eee2d2;
  font-weight: normal;
}

.hours tr:last-child th, .hours tr:last-child td { border-bottom: none; }

.hours th { color: var(--color-primary-dark); width: 45%; font-weight: 600; }

.hours .closed { color: var(--color-text-light); font-style: italic; }

.hint { color: var(--color-text-light); margin-top: 20px; font-style: italic; }

/* Quote banner */
.quote-banner {
  position: relative;
  color: #fff;
  padding: 90px 0;
  background:
    linear-gradient(rgba(64, 24, 24, 0.6), rgba(64, 24, 24, 0.6)),
    url("/img/weinstrasse.jpg") center 55% / cover no-repeat;
  text-align: center;
}

.quote-banner blockquote {
  font-family: var(--font-heading);
  font-size: 1.9rem;
  font-style: italic;
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.4;
  text-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

.quote-banner cite {
  display: block;
  margin-top: 18px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-style: normal;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent-light);
}

/* Testimonials */
.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 26px;
  margin-top: 36px;
}

.testimonial {
  background: #fff;
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow);
  position: relative;
}

.testimonial::before {
  content: "\201E";
  position: absolute;
  top: -6px;
  left: 18px;
  font-family: var(--font-heading);
  font-size: 4.5rem;
  color: var(--color-accent-light);
  line-height: 1;
}

.testimonial .stars {
  color: var(--color-accent);
  font-size: 1.15rem;
  letter-spacing: 3px;
  margin: 0 0 10px;
}

.testimonial blockquote {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--color-text);
  line-height: 1.5;
}

.review-cta {
  text-align: center;
  margin-top: 44px;
}

.review-cta p { color: var(--color-text-light); margin-bottom: 4px; }

/* Contact */
.kontakt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: start;
}

.kontakt-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 36px 40px;
}

.kontakt-card p { margin: 0 0 16px; }

.kontakt-phone {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none;
}

.maps-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 20px 0 8px;
}

.btn-maps {
  background: var(--color-primary);
  color: #fff;
  padding: 12px 22px;
  font-size: 0.95rem;
  box-shadow: var(--shadow);
}

.btn-maps:hover { background: var(--color-primary-dark); }

.photo-placeholder {
  background: #fff;
  border: 2px dashed #d8c4ac;
  border-radius: var(--radius);
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-light);
  text-align: center;
  padding: 24px;
}

@media (max-width: 760px) {
  .kontakt-grid, .about-grid { grid-template-columns: 1fr; }
  .hero { padding: 90px 0 110px; }
  h1 { font-size: 2.3rem; }
  h2 { font-size: 1.9rem; }
  .quote-banner blockquote { font-size: 1.4rem; }
  .hours-card, .kontakt-card { padding: 28px 24px; }
}

/* Footer */
.site-footer {
  background: var(--color-primary-dark);
  color: #f3e3d3;
  padding: 34px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-inner p { margin: 0; }

.footer-inner nav a {
  color: #f3e3d3;
  margin-left: 20px;
  text-decoration: none;
}

.footer-inner nav a:hover { text-decoration: underline; }

/* Animations (activated by animations.js, skipped with prefers-reduced-motion) */
@media (prefers-reduced-motion: no-preference) {

  /* Hero entrance on page load */
  .hero-kicker, .hero h1, .hero-sub, .hero .btn {
    animation: hero-rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
  }
  .hero h1 { animation-delay: 0.15s; }
  .hero-sub { animation-delay: 0.3s; }
  .hero .btn { animation-delay: 0.45s; }

  @keyframes hero-rise {
    from { opacity: 0; transform: translateY(22px); }
    to { opacity: 1; transform: translateY(0); }
  }

  /* Slow Ken Burns drift on the hero photo */
  .hero::before {
    animation: hero-zoom 22s ease-out both;
  }

  @keyframes hero-zoom {
    from { transform: scale(1.12); }
    to { transform: scale(1); }
  }

  /* Gentle pulse on the phone button to invite tapping */
  .hero .btn {
    animation: hero-rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.45s both,
               btn-pulse 3.2s ease-in-out 2.2s 3;
  }

  @keyframes btn-pulse {
    0%, 100% { box-shadow: 0 4px 18px rgba(0,0,0,0.25); }
    50% { box-shadow: 0 4px 18px rgba(0,0,0,0.25), 0 0 0 10px rgba(201, 160, 74, 0.18); }
  }

  /* Scissors icon snips once on hover */
  .brand:hover .brand-icon { animation: snip 0.5s ease-in-out; }

  @keyframes snip {
    0%, 100% { transform: rotate(0deg); }
    30% { transform: rotate(-16deg); }
    60% { transform: rotate(8deg); }
  }
}

/* Scroll reveal (classes applied by animations.js only) */
.anim-enabled .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: 0ms;
}

.anim-enabled .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* keep card hover lift working alongside reveal transition */
.anim-enabled .card.reveal.is-visible { transition: transform 0.2s ease; }

/* Simple sub-pages (Impressum, Datenschutz) */
.legal-page .container { max-width: 760px; padding: 64px 24px; }
.legal-page h2 { margin-top: 2rem; font-size: 1.5rem; }
.legal-page a.back { display: inline-block; margin-bottom: 24px; text-decoration: none; }
.legal-page .credits { font-size: 0.9rem; color: var(--color-text-light); }
