/* =========================================================
   Base Variables & Global Reset
========================================================= */
:root {
  --color-bg: #f9f5f0;
  --color-bg-alt: #ffffff;
  --color-primary: #b46b5c;
  --color-primary-soft: #f3d4c9;
  --color-text: #1f1f1f;
  --color-muted: #6b6b6b;
  --color-border: #e2d7cf;

  --shadow-soft: 0 10px 30px rgba(0,0,0,0.06);

  --radius-lg: 16px;
  --radius-xl: 24px;

  --max-width: 1040px;

  --transition-fast: 0.2s ease-out;
}

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

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
}


/* =========================================================
   Typography
========================================================= */
.nowrap {
  white-space: nowrap;
}

.phone-spaced {
  letter-spacing: 0.06em;
  font-weight: 600;
  display: inline-block;
}


/* =========================================================
   Images
========================================================= */
img {
  display: block;
  max-width: 100%;
  border-radius: var(--radius-xl);
}


/* =========================================================
   Layout Helpers
========================================================= */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0;
}

.section {
  padding: 2.5rem 0;
}

.section-light {
  background: rgba(255, 255, 255, 0.7);
}

.two-columns {
  display: grid;
  gap: 1.75rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.divider {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 2rem 0;
}


/* =========================================================
   Sticky Footer Layout
========================================================= */
.site-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}


/* =========================================================
   Header & Navigation
========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(249, 245, 240, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  gap: 1.5rem;
}

.logo img {
  height: 70px;
  max-width: none;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  font-size: 0.95rem;
}

.nav-link {
  text-decoration: none;
  color: var(--color-muted);
  padding-bottom: 0.1rem;
  border-bottom: 2px solid transparent;
  transition: color var(--transition-fast), border-color var(--transition-fast);
}

.nav-link:hover {
  color: var(--color-text);
}

.nav-link.is-active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}


/* =========================================================
   Logo + Tagline
========================================================= */
.logo-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo-tagline {
  font-size: 1.1rem;
  line-height: 1.2;
  font-weight: 600;
  color: var(--color-text);
  white-space: nowrap;
}

.logo-tagline span {
  font-weight: 400;
  font-size: 1rem;
  opacity: 0.8;
}


/* =========================================================
   Hero Section
========================================================= */
.hero {
  padding: 3rem 0 2.5rem;
}

.hero-inner {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.6fr);
  align-items: center;
}

.hero-text h1 {
  font-size: clamp(2.1rem, 3vw, 2.7rem);
  line-height: 1.1;
  margin: 0.2rem 0 0.75rem;
}

.hero-text p {
  margin: 0 0 1.5rem;
}

.eyebrow {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-primary);
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}


/* =========================================================
   Buttons
========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition:
    background var(--transition-fast),
    color var(--transition-fast),
    box-shadow var(--transition-fast),
    border-color var(--transition-fast),
    transform var(--transition-fast);
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.12);
}

.btn-ghost {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}

.btn-ghost:hover {
  background: #fff;
  border-color: var(--color-primary-soft);
}


/* =========================================================
   Hero Aside
========================================================= */
.hero-aside {
  background: var(--color-bg-alt);
  padding: 1.6rem 1.5rem;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--color-border);
}

.hero-aside h2 {
  margin: 0;
  font-size: 1.2rem;
}

.hero-list {
  margin: 0.75rem 0 0;
  padding-left: 1.1rem;
  font-size: 0.95rem;
}


/* =========================================================
   Intro Block
========================================================= */
.intro-grid {
  display: grid;
  grid-template-columns: 2fr 1.3fr;
  gap: 2.5rem;
  align-items: center;
}

.intro-image img {
  width: 100%;
  object-fit: cover;
  box-shadow: var(--shadow-soft);
  max-width: 90%;
}


/* =========================================================
   About Page
========================================================= */
@media (min-width: 801px) {
  .about-img-right {
    justify-self: center;
  }
}


/* =========================================================
   Referenzen
========================================================= */
.references-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  margin-top: 1.5rem;
}

.reference-card {
  background: var(--color-bg-alt);
  padding: 1.4rem 1.6rem;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--color-border);
}

.reference-text {
  margin: 0 0 1rem;
  font-style: italic;
}

.reference-author {
  margin: 0;
  font-weight: 600;
  color: var(--color-primary);
}


/* =========================================================
   Footer
========================================================= */
.site-footer {
  border-top: 1px solid var(--color-border);
  background: #fff;
  padding: 1.25rem 0 1.75rem;
  margin-top: 2rem;
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  align-items: center;
}

.footer-nav,
.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer-nav a,
.footer-meta a {
  color: var(--color-muted);
  text-decoration: none;
}

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


/* =========================================================
   Messaging Icons
========================================================= */
.messaging-links {
  display: flex;
  gap: 0.75rem;
  margin: 0.4rem 0 1rem;
}

.msg-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-lg);
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-soft);
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast),
    border-color var(--transition-fast);
}

.msg-icon:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 35px rgba(0,0,0,0.10);
  border-color: var(--color-primary-soft);
}

.msg-icon img {
  width: 22px;
  height: 22px;
}


/* =========================================================
   Decorative Ivy
========================================================= */
.ivy {
  position: fixed;
  pointer-events: none;
  z-index: 11;
  opacity: 0.9;
}

.ivy-topleft {
  top: 0;
  left: 0;
  width: 24vw;
  aspect-ratio: 1 / 1.4;
  background-image: url("../img/ivy-topleft.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: top left;
}

@media (max-width: 700px) {
  .ivy-topleft {
    width: 210px;
    opacity: 0.15;
    top: -20px;
    left: -10px;
  }
}

.ivy-topright {
  top: 0;
  right: 0;
  width: 18vw;
  aspect-ratio: 1 / 1.4;
  background-image: url("../img/ivy-topright.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: top right;
}

@media (max-width: 700px) {
  .ivy-topright {
    width: 140px;
    opacity: 0.15;
    top: -20px;
    right: -10px;
  }
}

.autumn-leaves {
  max-width: 300px;
  margin: 4rem auto 0;
  opacity: 0.9;
}

.spring-branch {
  display: block;
  margin: -1rem auto 0;
  width: 260px;
  opacity: 1;
  pointer-events: none;
  position: relative;
  transform: translateY(84px);
  z-index: -1;
}

@media (max-width: 700px) {
  .spring-branch {
    width: 260px;
    opacity: 0.8;
    margin-top: -1rem;
  }
}


/* =========================================================
   Responsive Adjustments
========================================================= */

@media (max-width: 800px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .main-nav {
    justify-content: flex-start;
  }

  .hero-inner,
  .two-columns {
    grid-template-columns: 1fr;
  }

  .intro-grid {
    grid-template-columns: 1fr;
  }

  .intro-image {
    order: -1;
  }

  .container {
    padding: 0 1rem;
  }
}

@media (max-width: 700px) {
  .logo-wrap {
    flex-direction: column;
    gap: 0.25rem;
  }

  .logo-tagline {
    font-size: 1rem;
    white-space: normal;
  }

  .logo-tagline span {
    font-size: 0.95rem;
  }

  .header-inner {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .logo {
    display: block;
    margin: 0 auto;
    text-align: center;
  }

  .logo img {
    display: block;
    margin: 0 auto;
  }
}

@media (max-width: 500px) {
  .main-nav {
    gap: 0.4rem 0.6rem !important;
    font-size: 0.82rem !important;
    padding: 0 0.75rem;
  }

  .nav-link {
    padding-bottom: 0.05rem;
  }

  .hero {
    padding-top: 2rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
}
