:root {
  --bg: #f3f1eb;
  --bg-alt: #e4e9df;
  --text: #2f3a2f;
  --accent: #6b8f71;
}

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

html {
  scroll-behavior: smooth;
  font-family: system-ui, -apple-system, sans-serif;
}

body {
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(243, 241, 235, 0.9);
  backdrop-filter: blur(6px);
  z-index: 100;
}

nav ul {
  display: flex;
  justify-content: center;
  gap: 2rem;
  list-style: none;
  padding: 1rem;
}

nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
}

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

/* Sections */
.section {
  min-height: auto;
  display: block;
  padding: 2rem 1.5rem;
}

.section.alt {
  background: var(--bg-alt);
}

/* Landscape showcase section */
.landscape-showcase {
  background: var(--bg-alt);
  padding: 1.5rem;
}

.landscape-grid {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.landscape-item {
  text-align: center;
}

.landscape-photo {
  height: 320px;
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.landscape-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease;
}

.landscape-item h3 {
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  margin-bottom: 0;
  color: var(--text);
}

.landscape-item-link {
  text-decoration: none;
  color: inherit;
  display: block;
  transition: all 0.2s ease;
}

.landscape-item-link:hover .landscape-photo img {
  transform: scale(1.03);
}

.landscape-item-link:hover h3 {
  color: var(--accent);
}

.content {
  max-width: 720px;
  margin: 0 auto;
}

h1, h2 {
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
  font-size: clamp(1.3rem, 3vw, 1.8rem);
}

p {
  margin-bottom: 1.2rem;
}

ul {
  padding-left: 1.2rem;
}

li {
  margin-bottom: 0.4rem;
}

.impressum-content {
  max-width: 720px !important;
}

/* Mobile */
@media (max-width: 600px) {
  nav ul {
    gap: 1rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 880px) {
  .landscape-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .landscape-photo {
    height: 240px;
  }
}

/* Header hero image */
.site-header {
  height: 380px;
  background: url('Header.jpg') center / cover no-repeat;
  background-position: center 30%;
  display: flex;
  align-items: flex-end;
}

.site-header-inner {
  width: 100%;
  background: linear-gradient(transparent, rgba(0,0,0,0.45));
  color: #f3f1eb;
  padding: 2rem 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

/* Ensure main content isn't hidden under the fixed nav */
main {
  margin-top: 4.5rem;
}

/* Layout: main content + sidebar */
.layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  grid-template-rows: auto 1fr;
  grid-template-areas:
    "project sidebar"
    "main    sidebar";
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem;
}

/* Place project in the left column and sidebar in the right column; main content flows below */
.layout > .project {
  grid-area: project;
  padding: 2rem 1.5rem 1rem;
}
.main-content {
  grid-area: main;
}
.sidebar {
  grid-area: sidebar;
  align-self: start;
}

.main-content {
  min-width: 0;
}

.section-photo {
  height: 340px;
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.section-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.section-photo.focus-top img {
  /* Shift image further to the left and anchor at top so right-side subject is cropped out */
  object-position: 15% top;
}

.section-photo.focus-center img {
  object-position: center;
}

.sidebar {
  align-self: start;
}

.sidebar-inner {
  position: sticky;
  top: 5.25rem; /* below fixed nav */
  background: rgba(255,255,255,0.85);
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.sidebar h4 {
  margin-bottom: 0.5rem;
  text-align: left;
}

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

.map-block {
  margin-bottom: 1rem;
}

.map-block.map-link {
  text-align: left;
}

.map-block.map-image {
  text-align: center;
}

.map-thumb {
  width: 100%;
  max-width: 260px;
  height: auto;
  border-radius: 6px;
  display: inline-block;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.map-credit {
  font-size: 0.8rem;
  margin-top: 0.35rem;
}

@media (max-width: 880px) {
  .layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    grid-template-areas:
      "project"
      "main"
      "sidebar";
    padding: 0.75rem;
  }
  .sidebar-inner {
    position: relative;
    top: 0;
    margin-bottom: 1.5rem;
  }
  .section-photo {
    height: 200px;
  }

  .section-photo.focus-top img {
    object-position: 10% top;
  }
}

/* Footer */
.site-footer {
  padding: 2rem 1.5rem;
  text-align: left;
  background: rgba(243, 241, 235, 0.6);
}

.site-footer .content {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-footer a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
}

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