/* ── DESIGN TOKENS (extracted from original site CSS) ── */
:root {
  --color-body-bg:    #828E78;
  --color-page-bg:    #FFFBF5;
  --color-text:       #495139;
  --color-heading:    #10222B;
  --color-title:      #656e5e;
  --color-accent:     #95AB63;
  --color-border:     rgba(149, 171, 99, 0.4);
  --color-nav-active: #10222B;
  --font:             'Playfair Display', serif;
  --page-width:       1050px;
  --header-height:    130px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }

body {
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.4;
  background-color: var(--color-body-bg);
  color: var(--color-text);
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font);
  font-weight: 400;
  color: var(--color-heading);
  margin-bottom: .7em;
}

p { margin-bottom: 1em; }

/* ── PAGE WRAPPER ── */
.page-wrapper {
  width: var(--page-width);
  margin: 0 auto;
  background-color: var(--color-page-bg);
  box-shadow: 0 0 7px #999;
  padding-bottom: 40px;
  min-height: 100vh;
}

/* ── FIXED HEADER ── */
.head-wrapper {
  position: fixed;
  width: var(--page-width);
  top: 0;
  z-index: 800;
  background-color: var(--color-page-bg);
  box-shadow: 0 -7px 7px #999;
}

.head-elements {
  display: flex;
  align-items: stretch;
  height: 90px;
  border-bottom: 1px solid var(--color-border);
}

.toggle-nav {
  width: 150px;
  flex-shrink: 0;
}

.title-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  white-space: nowrap;
}

.title-wrapper h1 {
  font-family: var(--font);
  font-size: 1.75rem;
  font-weight: 400;
  color: var(--color-title);
  margin: 0;
  text-overflow: ellipsis;
  overflow: hidden;
}

.logo-wrapper {
  width: 150px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-right: 10px;
}

.logo-wrapper img {
  max-width: 110px;
  max-height: 80px;
  object-fit: contain;
}

/* ── NAVIGATION ── */
.nav-wrapper {
  background-color: var(--color-page-bg);
  border-bottom: 1px solid var(--color-border);
  text-align: center;
}

.nav-wrapper ul {
  display: inline-flex;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-wrapper ul li {
  border-bottom: 3px solid transparent;
  transition: border-color .4s;
}

.nav-wrapper ul li:hover,
.nav-wrapper ul li.active {
  border-bottom: 3px solid var(--color-nav-active);
}

.nav-wrapper ul li a {
  display: block;
  color: var(--color-text);
  font-family: var(--font);
  font-size: 1rem;
  text-decoration: none;
  text-transform: uppercase;
  padding: .5em .9em;
  transition: color .4s;
}

/* ── SPACER for fixed header ── */
.spacer {
  height: var(--header-height);
}

/* ── KEYVISUAL / HERO ── */
.keyvisual {
  height: 400px;
  width: 100%;
  background-image: url('images/Schuth_01.jpg');
  background-size: cover;
  background-position: 53% 63%;
  background-repeat: no-repeat;
}

/* ── MAIN CONTENT ── */
.main-wrapper {
  padding: 0 25px 30px 25px;
  background-color: var(--color-page-bg);
}

.content-main {
  display: inline-block;
  vertical-align: top;
  width: 720px;
  padding-top: 20px;
}

/* ── SECTION HEADING (subtitle style from original) ── */
.section-heading {
  font-family: var(--font);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--color-heading);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 1rem;
  margin-top: .5rem;
}

/* ── HOME PAGE ── */
.home-layout {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  padding-top: 20px;
}

.home-photo {
  flex: 0 0 38.2%;
}

.home-photo img {
  width: 100%;
  display: block;
}

.home-text {
  flex: 1;
}

.content-main .ueber-mich-heading {
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--color-title);
  margin-bottom: .7em;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.content-main .body-text {
  color: var(--color-heading);
  line-height: 1.6;
  margin-bottom: 1em;
}

/* ── CONTENT WIDE (Gartenpläne, Galerie) ── */
.content-main.wide {
  width: 100%;
}

/* ── PLANS GRID ── */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

.plan-card {
  border: 1px solid #ccc;
  background: #fff;
}

.plan-card img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  background: #fff;
  cursor: pointer;
}

/* ── GALLERY GRID (3 columns like original) ── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  margin-top: 1.5rem;
}

.gallery-item {
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s;
  display: block;
}

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

/* ── LIGHTBOX ── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.88);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 90vw;
  max-height: 88vh;
  box-shadow: 0 8px 40px rgba(0,0,0,.5);
}
.lightbox-close {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
  opacity: .8;
}
.lightbox-close:hover { opacity: 1; }
.lightbox-prev, .lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  font-size: 3.5rem;
  background: none;
  border: none;
  cursor: pointer;
  opacity: .65;
  padding: 0 1.25rem;
  user-select: none;
  line-height: 1;
}
.lightbox-prev { left: 0; }
.lightbox-next { right: 0; }
.lightbox-prev:hover, .lightbox-next:hover { opacity: 1; }

/* ── KONTAKT PAGE ── */
.kontakt-logo-block {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.kontakt-logo-block img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  flex-shrink: 0;
}

.kontakt-logo-block .firm-name {
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-heading);
  display: block;
  margin-bottom: .25rem;
}

.kontakt-logo-block .firm-title {
  color: var(--color-text);
  font-size: .95rem;
}

.kontakt-table {
  border-collapse: collapse;
  margin-bottom: 2rem;
}

.kontakt-table td {
  padding: .35rem .75rem .35rem 0;
  color: var(--color-text);
  vertical-align: top;
  font-size: .95rem;
}

.kontakt-table td:first-child {
  white-space: nowrap;
  padding-right: 1.5rem;
  color: var(--color-text);
}

.kontakt-table a {
  color: var(--color-text);
}

.email-btn {
  display: block;
  width: fit-content;
  margin: 0 auto 2rem;
  padding: 10px 28px;
  background-color: rgba(73, 81, 57, 0.08);
  border: 1px solid rgba(73, 81, 57, 0.35);
  color: var(--color-text);
  font-family: var(--font);
  font-size: 1rem;
  cursor: pointer;
  border-radius: 2px;
  box-shadow: 0 3px 3px -2px rgba(73, 81, 57, 0.5);
  text-decoration: none;
  transition: border .2s;
}

.email-btn:hover {
  border: 1px solid rgba(73, 81, 57, 0.8);
  text-decoration: none;
}

.kontakt-tagline {
  color: var(--color-text);
  font-size: .95rem;
}

/* ── SCROLL-TO-TOP ── */
.scrollup {
  position: fixed;
  bottom: -100px;
  right: 25px;
  z-index: 100;
  transition: bottom .5s;
}

.scrollup.visible {
  bottom: -10px;
}

.scrollup a {
  display: block;
  border-radius: 50px 50px 0 0;
  padding: 8px 20px;
  background-color: var(--color-page-bg);
  border: 1px solid var(--color-accent);
  color: var(--color-text);
  font-size: 1.8rem;
  text-decoration: none;
  line-height: 1;
  box-shadow: 0 0 5px #fff;
  transition: padding .3s, box-shadow .3s;
}

.scrollup:hover a {
  padding: 14px 20px;
  box-shadow: 0 0 10px #ddd;
}

/* ── FOOTER ── */
.footer-wrapper {
  text-align: center;
  padding: 20px 0;
  border-top: 1px solid var(--color-border);
}

.footer-wrapper a {
  color: var(--color-text);
  font-family: var(--font);
  text-transform: uppercase;
  padding: 0 .4rem;
  font-size: .9rem;
}

/* ── LEGAL PAGES ── */
.legal-content h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-heading);
  margin-top: 1.6em;
  margin-bottom: .4em;
}

.legal-content ul {
  padding-left: 1.4rem;
  margin-bottom: 1em;
}

.legal-content ul li {
  margin-bottom: .3em;
  line-height: 1.5;
}

.legal-content p strong {
  color: var(--color-heading);
}

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
  :root { --page-width: 100%; }
  .head-wrapper { width: 100%; }
  .content-main { width: 100%; }
}

@media (max-width: 768px) {
  .head-elements { height: 70px; }
  :root { --header-height: 110px; }
  .title-wrapper h1 { font-size: 1.1rem; }
  .logo-wrapper { width: 80px; }
  .logo-wrapper img { max-width: 65px; }
  .toggle-nav { width: 40px; }
  .keyvisual { height: 200px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .plans-grid { grid-template-columns: 1fr; }
  .nav-wrapper ul { flex-wrap: wrap; justify-content: center; }
  .home-layout { flex-direction: column; }
  .home-photo { flex: none; width: 60%; margin: 0 auto 1rem; }
}

@media (max-width: 480px) {
  .title-wrapper h1 { font-size: .9rem; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
