/* ==========================================================
   PFARRAMT OBEREUERHEIM — GLOBAL STYLE SHEET
   ========================================================== */

/* ----------------------------------------------------------
   1. ROOT VARIABLES
   ---------------------------------------------------------- */
:root {
  /* Core palette */
  --brown: #633b33;
  --brown-dark: #4a2b24;
  --light-bg: #f7f6f4;
  --text: #222;
  --accent: #9b6151;

  /* Sizing */
  --container-width: 1200px;

  /* Fonts */
  --font-sans: "General Sans", "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Fraunces", "Georgia", serif;

  /* Transitions */
  --transition: all 0.3s ease;
  --transition-fast: all 0.25s ease;
}

/* ----------------------------------------------------------
   2. BASE STYLES
   ---------------------------------------------------------- */
@import url("https://fonts.googleapis.com/css2?family=Fraunces:wght@400;600;700&display=swap");
@import url("https://api.fontshare.com/v2/css?f[]=general-sans@400,500,600,700&display=swap");

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  background: var(--light-bg);
  color: var(--text);
  line-height: 1.6;
}

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

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

/* ----------------------------------------------------------
   3. TYPOGRAPHY
   ---------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  color: var(--accent);
  margin-top: 0;
}

p {
  margin: 0 0 1.2rem 0;
}

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

a:hover {
  text-decoration: underline;
}

/* ----------------------------------------------------------
   4. LAYOUT HELPERS
   ---------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1rem;
}

.spacer {
  height: 6rem;
  width: 100%;
}

/* ----------------------------------------------------------
   6. HERO SECTION
   ---------------------------------------------------------- */
.hero {
  position: relative;
  height: 85vh;
  color: #fff;
  text-align: center;
  overflow: hidden;
}

.hero-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  animation: fadeZoom var(--interval) infinite;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    rgba(0, 0, 0, 0.65) 0%,
    rgba(0, 0, 0, 0.35) 45%,
    rgba(0, 0, 0, 0.8) 100%
  );
  z-index: 0;
}

.hero-overlay {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 14vh;
}

.hero-box {
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 2.5rem 2rem;
  width: min(90%, 700px);
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  animation: fadeInUp 0.9s ease both;
}

.hero h1 {
  font-family: var(--font-serif);
  color: #fff;
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 0.9rem;
  line-height: 1.25;
  text-shadow: 0 3px 8px rgba(0, 0, 0, 0.6);
  word-wrap: break-word;
}

.hero p {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 400;
  color: #fff;
  margin-bottom: 2rem;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
  overflow-wrap: break-word;
}

.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.6rem;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
  transition: var(--transition-fast);
  font-family: var(--font-sans);
  white-space: nowrap;
}

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

.btn.primary:hover {
  background: #7b4b3e;
}

.btn.secondary {
  border: 2px solid var(--accent);
  color: #fff;
}

.btn.secondary:hover {
  background: var(--accent);
  color: #fff;
}

/* ----------------------------------------------------------
   7. INFO CARD GRID
   ---------------------------------------------------------- */
.info-section {
  background: var(--light-bg);
  padding: 5rem 1rem;
  text-align: center;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--accent);
}

.section-subtitle {
  font-size: 1.1rem;
  color: #555;
  margin: 0 auto 3rem;
  max-width: 700px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.info-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  background: #ffffff;
  border-radius: 10px;
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  text-decoration: none;
  color: var(--text);
  transition: var(--transition-fast);
  min-height: 260px;
  cursor: pointer;
}

.info-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  background: #faf9f7;
}

.info-card .icon {
  color: var(--accent);
  margin-bottom: 0.8rem;
  transition: var(--transition-fast);
}

.info-card:hover .icon {
  transform: scale(1.1);
  color: var(--brown);
}

.info-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  font-family: var(--font-serif);
  color: var(--accent);
  margin: 0.6rem 0 0.4rem;
}

.info-card p {
  font-size: 0.95rem;
  color: #333;
  line-height: 1.5;
  margin: 0;
  max-width: 240px;
}

/* ----------------------------------------------------------
   8. ABOUT SECTION
   ---------------------------------------------------------- */
.about-section {
  padding: 4rem 0;
  background-color: #fff;
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.about-text h2 {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.about-text p {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  color: #333;
}

/* ----------------------------------------------------------
   9. FOOTER
   ---------------------------------------------------------- */
.footer {
  background: var(--brown);
  color: #fff;
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
}

.footer a {
  color: #fff;
  text-decoration: none;
  transition: var(--transition);
}

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

/* ----------------------------------------------------------
   10. ANIMATIONS
   ---------------------------------------------------------- */
@keyframes fadeZoom {
  0% { opacity: 0; transform: scale(1) translate(0, 0); }
  5% { opacity: 1; transform: scale(1) translate(0, 0); }
  45% { opacity: 1; transform: scale(1.06) translate(-1.5%, -1%); }
  50% { opacity: 0; transform: scale(1.12) translate(1%, 1%); }
  100% { opacity: 0; transform: scale(1) translate(0, 0); }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ----------------------------------------------------------
   11. RESPONSIVE ADJUSTMENTS
   ---------------------------------------------------------- */
@media (max-width: 900px) {
  .header-inner {
    flex-direction: column;
    text-align: center;
  }

  .nav-menu {
    flex-wrap: wrap;
    gap: 1.2rem;
    justify-content: center;
  }

  .hero {
    height: 70vh;
  }

  .hero-overlay {
    padding-top: 10vh;
  }

  .hero-box {
    padding: 2rem 1.5rem;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .info-card {
    padding: 1.8rem 1.2rem;
  }

  .info-card h3 {
    font-size: 1.1rem;
  }

  .section-title {
    font-size: 1.75rem;
  }
}

@media (max-width: 600px) {
  .hero h1 {
    font-size: 1.8rem;
  }

  .section-title {
    font-size: 1.5rem;
  }
}