/* ============================================
   Malerhaus – Warm · Einladend · Modern
   ============================================ */

:root {
  --cream: #faf8f4;
  --warm: #f3efe8;
  --sand: #e8e2d6;
  --white: #ffffff;
  --text: #2d2a26;
  --text-soft: #6b6560;
  --accent: #8b6f47;
  --accent-hover: #74593a;
  --accent-light: rgba(139, 111, 71, 0.08);
  --green: #5a7a64;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --r: 12px;
  --r-lg: 20px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

a { color: var(--accent); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: var(--accent-hover); }

/* ========== Header ========== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(250, 248, 244, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

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

.logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text);
  font-style: italic;
}
.logo:hover { color: var(--accent); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  width: 22px; height: 2px;
  background: var(--text);
  transition: 0.25s var(--ease);
  border-radius: 2px;
}

.nav-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: 2.5rem; align-items: center;
}
.nav-list a {
  color: var(--text-soft);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-list a:hover { color: var(--accent); }
.nav-cta {
  background: var(--accent) !important;
  color: var(--white) !important;
  padding: 0.55rem 1.2rem;
  border-radius: var(--r);
  font-weight: 600 !important;
}
.nav-cta:hover {
  background: var(--accent-hover) !important;
}

/* ========== Nav Overlay (mobile) ========== */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.3);
  z-index: 98;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.nav-overlay.is-visible {
  display: block;
  opacity: 1;
}

/* ========== Header scroll state ========== */
.header.is-scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

/* ========== Buttons ========== */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.9rem 1.75rem;
  border-radius: var(--r);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.25s var(--ease);
  text-align: center;
  background: var(--accent);
  color: var(--white);
}
.btn:hover {
  background: var(--accent-hover);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(139, 111, 71, 0.2);
}
.btn--outline {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}
.btn--outline:hover {
  background: var(--accent);
  color: var(--white);
}

.link-arrow {
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.95rem;
}
.link-arrow:hover { gap: 0.5rem; }

/* ========== Hero ========== */
.hero {
  padding-top: 72px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  min-height: 92vh;
  align-items: center;
  gap: 3rem;
  max-width: 1300px;
  margin: 0 auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

.hero-img {
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.12);
  animation: heroImgIn 1s var(--ease) both;
}
.hero-img img {
  width: 100%;
  height: 75vh;
  object-fit: cover;
  transition: transform 6s var(--ease);
}
.hero-img:hover img {
  transform: scale(1.03);
}

.hero-content {
  padding: 2rem 0;
  animation: heroTextIn 1s 0.2s var(--ease) both;
}

@keyframes heroImgIn {
  from { opacity: 0; transform: translateY(30px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes heroTextIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-badge {
  display: inline-block;
  background: var(--accent-light);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 1.25rem;
  color: var(--text);
}
.hero h1 em {
  font-style: italic;
  color: var(--accent);
}

.hero p {
  color: var(--text-soft);
  font-size: 1.1rem;
  margin: 0 0 2rem;
  max-width: 420px;
}

.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ========== Highlights Bar ========== */
.highlights {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 1000px;
  margin: -2rem auto 0;
  position: relative;
  z-index: 2;
  background: var(--white);
  border-radius: var(--r-lg);
  box-shadow: 0 8px 40px rgba(0,0,0,0.06);
  overflow: hidden;
}

.highlight {
  padding: 1.75rem 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  border-right: 1px solid var(--sand);
}
.highlight:last-child { border-right: none; }

.hl-icon {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
  color: var(--accent);
}

.highlight strong {
  font-size: 0.95rem;
  color: var(--text);
}
.highlight span:last-child {
  font-size: 0.85rem;
  color: var(--text-soft);
}

/* ========== Sections ========== */
.section {
  padding: 6rem 2rem;
}
.section--warm {
  background: var(--warm);
}

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

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.section-label--center {
  display: block;
  text-align: center;
}

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 3rem;
  text-align: center;
  color: var(--text);
}

/* ========== Geschichte ========== */
.story-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.story-img {
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.story-img.is-visible { opacity: 1; transform: none; }
.story-img img { width: 100%; height: 450px; object-fit: cover; }

.story-text {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.8s 0.15s var(--ease), transform 0.8s 0.15s var(--ease);
}
.story-text.is-visible { opacity: 1; transform: none; }

.story-text h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 1.5rem;
}

.story-text p {
  color: var(--text-soft);
  margin: 0 0 1rem;
}
.story-text p:last-child { margin-bottom: 0; }
.story-text em { color: var(--accent); font-style: italic; }

/* ========== Wohnungen ========== */
.apt {
  max-width: 1100px;
  margin: 0 auto 5rem;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3.5rem;
  align-items: center;
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.apt.is-visible { opacity: 1; transform: none; }
.apt:last-child { margin-bottom: 0; }

.apt--flip .apt-gallery { order: 2; }
.apt--flip .apt-info { order: 1; }

.apt-gallery {
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}

/* Gallery */
.gallery {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--sand);
}

.gallery-track {
  display: flex;
  height: 100%;
  transition: transform 0.5s var(--ease);
}
.gallery-track img {
  width: 100%; min-width: 100%; height: 100%;
  object-fit: cover; flex-shrink: 0;
  transition: transform 0.4s var(--ease);
}
.gallery:hover .gallery-track img {
  transform: scale(1.02);
}

.gal-btn {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  color: var(--white);
  background: rgba(0,0,0,0.25);
  border: none; border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s;
  z-index: 2;
}
.gal-btn:hover { background: rgba(0,0,0,0.5); }
.gal-prev { left: 12px; }
.gal-next { right: 12px; }

.gal-dots {
  position: absolute;
  bottom: 14px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 6px; z-index: 2;
}
.gal-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  border: none; padding: 0; cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.gal-dot.is-active {
  background: var(--white);
  transform: scale(1.3);
}

.apt-info { padding: 1rem 0; }

.apt-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.apt-info h3 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 0 1rem;
}

.apt-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}
.apt-features span {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  background: var(--accent-light);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 500;
  border-radius: 999px;
}

.apt-info p {
  color: var(--text-soft);
  margin: 0 0 1.5rem;
  line-height: 1.7;
}

/* ========== Erleben ========== */
.erleben-grid {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.erleben-card {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease), box-shadow 0.3s var(--ease);
}
.erleben-card.is-visible {
  opacity: 1;
  transform: none;
}
.erleben-card.is-visible:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.08);
}

.erleben-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 0 0 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--sand);
}

.erleben-card ul {
  list-style: none; margin: 0; padding: 0;
}
.erleben-card li { margin-bottom: 0.4rem; }
.erleben-card a {
  color: var(--text-soft);
  font-size: 0.95rem;
  transition: color 0.2s;
}
.erleben-card a:hover { color: var(--accent); }

/* ========== Anfahrt ========== */
.anfahrt {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 3rem;
  align-items: start;
}

.anfahrt-details {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.anfahrt-item strong {
  display: block;
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 0.15rem;
}
.anfahrt-item p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.95rem;
}

.anfahrt-addr {
  margin-top: 0.5rem;
  font-weight: 600;
  color: var(--text);
}

.anfahrt-map {
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
  aspect-ratio: 16/10;
  min-height: 260px;
}
.anfahrt-map iframe {
  width: 100%; height: 100%; border: 0;
}

/* ========== Kontakt ========== */
.kontakt {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: start;
  max-width: 900px;
  margin: 0 auto;
}

.kontakt-text {
  background: var(--warm);
  padding: 2rem;
  border-radius: var(--r-lg);
}
.kontakt-text p { margin: 0 0 0.75rem; color: var(--text-soft); }
.kontakt-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text) !important;
  margin-bottom: 0.5rem !important;
}

.kontakt-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.kontakt-form input,
.kontakt-form textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--sand);
  border-radius: var(--r);
  background: var(--white);
  transition: border-color 0.2s;
}
.kontakt-form input:focus,
.kontakt-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.kontakt-form textarea { min-height: 120px; resize: vertical; }
.kontakt-form .btn { align-self: flex-start; }

/* ========== Footer ========== */
.footer {
  background: var(--warm);
  padding: 3rem 2rem;
  border-top: 1px solid var(--sand);
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}
.footer-logo {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  display: inline-block;
  margin-bottom: 1rem;
}
.footer-logo:hover { color: var(--accent); }

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
}
.footer-links a { color: var(--text-soft); font-size: 0.9rem; }
.footer-links a:hover { color: var(--accent); }

.footer-copy {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-soft);
}

/* ========== Inner Pages ========== */
.page-content {
  padding: calc(72px + 4rem) 2rem 4rem;
  max-width: 720px;
  margin: 0 auto;
}
.page-content h1 {
  font-family: var(--font-display);
  font-size: 2rem; margin: 0 0 2rem;
}
.page-content h2 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin: 2.5rem 0 0.75rem;
}
.page-content h3 {
  font-size: 1.05rem; font-weight: 600;
  margin: 1.5rem 0 0.5rem;
}
.page-content p, .page-content ul {
  color: var(--text-soft); margin: 0 0 1rem;
}
.page-content ul { padding-left: 1.25rem; }

/* ========== Danke-Seite ========== */
.danke {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(72px + 3rem) 2rem 3rem;
}

.danke-card {
  text-align: center;
  max-width: 520px;
  animation: heroTextIn 0.8s var(--ease) both;
}

.danke-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--accent-light);
  color: var(--accent);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2rem;
}

.danke-card h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 1.25rem;
}
.danke-card h1 em {
  font-style: italic;
  color: var(--accent);
}

.danke-card p {
  color: var(--text-soft);
  font-size: 1.05rem;
  margin: 0 0 1rem;
}

.danke-small {
  font-size: 0.9rem !important;
  margin-bottom: 2rem !important;
}

/* ========== Responsive ========== */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 80px; }
  .hero-img img { height: 50vh; }
  .story-grid { grid-template-columns: 1fr; gap: 2rem; }
  .story-img img { height: 320px; }
  .apt { grid-template-columns: 1fr; gap: 2rem; }
  .apt--flip .apt-gallery { order: 0; }
  .apt--flip .apt-info { order: 0; }
  .erleben-grid { grid-template-columns: 1fr; }
  .anfahrt { grid-template-columns: 1fr; }
  .kontakt { grid-template-columns: 1fr; }
  .highlights { grid-template-columns: repeat(2, 1fr); margin-top: 0; }
}

@media (max-width: 700px) {
  .nav-toggle { display: flex; }
  .nav {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: 280px;
    background: var(--cream);
    padding: calc(60px + 2rem) 2rem 2rem;
    transform: translateX(100%);
    transition: transform 0.3s var(--ease);
    z-index: 99;
    box-shadow: -4px 0 20px rgba(0,0,0,0.08);
  }
  .nav.is-open { transform: translateX(0); }
  .nav-list { flex-direction: column; gap: 0; }
  .nav-list a { display: block; padding: 0.8rem 0; font-size: 1.1rem; }
  .nav-cta { display: inline-block !important; margin-top: 0.5rem; text-align: center; }

  .nav-toggle.is-active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .nav-toggle.is-active span:nth-child(2) { opacity: 0; }
  .nav-toggle.is-active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

  .hero { padding: 80px 1.25rem 2rem; gap: 2rem; }
  .hero h1 { font-size: 2rem; }
  .hero-img img { height: 40vh; }
  .section { padding: 4rem 1.25rem; }
  .highlights { grid-template-columns: 1fr 1fr; border-radius: var(--r); margin: 1rem 1.25rem 0; }
  .highlight { padding: 1.25rem 1rem; }
}
