/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:       #F9F7F4;
  --surface:  #FFFFFF;
  --border:   #E4DDD4;
  --accent:   #7A6A55;
  --accent2:  #5C4E3C;
  --text:     #2C2420;
  --text2:    #6B5D52;
  --heading:  #1A1210;
  --max:      1200px;
  --radius:   4px;
  --shadow:   0 2px 12px rgba(0,0,0,.08);
}

html { scroll-behavior: smooth; }

body {
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
}

h1, h2, h3, h4 {
  font-family: Georgia, 'Times New Roman', serif;
  color: var(--heading);
  line-height: 1.3;
}

h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: 1rem; }
h3 { font-size: 1.2rem; margin-bottom: .5rem; }

p { margin-bottom: 1rem; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent2); text-decoration: underline; }

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

/* ===== NAVIGATION ===== */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}

.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: .9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-logo {
  font-family: Georgia, serif;
  font-size: 1.1rem;
  color: var(--heading);
  font-weight: normal;
  white-space: nowrap;
}
.site-logo span { color: var(--accent); }
.site-logo:hover { text-decoration: none; color: var(--heading); }

nav ul {
  list-style: none;
  display: flex;
  gap: .2rem;
  flex-wrap: wrap;
}

/* stylelint-disable-next-line no-descending-specificity */
nav a {
  color: var(--text2);
  font-size: .9rem;
  padding: .35rem .7rem;
  border-radius: var(--radius);
  transition: background .15s, color .15s;
}
nav a:hover, nav a.active {
  background: var(--bg);
  color: var(--accent2);
  text-decoration: none;
}

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .4rem .6rem;
  cursor: pointer;
  color: var(--text);
  font-size: 1.2rem;
}

@media (max-width: 640px) {
  .nav-toggle { display: block; }
  nav ul {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: .5rem 1.5rem 1rem;
    gap: 0;
  }
  nav ul.open { display: flex; }
  nav a { font-size: 1rem; padding: .5rem 0; }
  .site-header { position: relative; }
}

/* ===== LAYOUT HELPERS ===== */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.page-title {
  border-bottom: 2px solid var(--border);
  padding-bottom: 1rem;
  margin-bottom: 2.5rem;
  color: var(--heading);
}

.page-title p {
  font-size: 1.05rem;
  color: var(--text2);
  margin-top: .5rem;
  font-family: system-ui, sans-serif;
  font-weight: normal;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  background: var(--heading);
  overflow: hidden;
  min-height: 480px;
  display: flex;
  align-items: flex-end;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  opacity: .75;
}

.hero-text {
  position: relative;
  z-index: 2;
  padding: 3rem 1.5rem;
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
  color: #fff;
}

.hero-text h1 {
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,.5);
  margin-bottom: .5rem;
}

.hero-text p {
  color: rgba(255,255,255,.85);
  font-size: 1.1rem;
  max-width: 560px;
  text-shadow: 0 1px 4px rgba(0,0,0,.4);
}

/* ===== HOME SECTIONS ===== */
.home-intro {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

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

.home-intro-text h2 { margin-bottom: 1rem; }

.home-highlights {
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.highlights-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.highlights-inner h2 { margin-bottom: 2rem; }

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.highlight-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg);
  transition: box-shadow .2s;
}
.highlight-card:hover { box-shadow: var(--shadow); }

.highlight-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.highlight-card-body {
  padding: 1rem;
}
.highlight-card-body h3 { font-size: 1rem; margin-bottom: .3rem; }
.highlight-card-body p { font-size: .88rem; color: var(--text2); margin: 0; }

/* ===== GALLERY ===== */
.filter-bar {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.filter-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: .35rem .9rem;
  font-size: .88rem;
  cursor: pointer;
  color: var(--text2);
  transition: all .15s;
}
.filter-btn:hover, .filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}

.gallery-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow .2s, transform .2s;
}
.gallery-item:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.gallery-item-thumb {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  background: #f0ece6;
  padding: 4px;
}

.gallery-item-label {
  padding: .5rem .7rem;
  font-size: .8rem;
  color: var(--text2);
}
.gallery-item-label strong {
  display: block;
  color: var(--text);
  font-size: .82rem;
}

.gallery-empty {
  grid-column: 1/-1;
  text-align: center;
  padding: 3rem;
  color: var(--text2);
}

/* ===== LIGHTBOX ===== */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0,0,0,.88);
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.lightbox.open { display: flex; }

.lightbox-inner {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius);
}

.lightbox-caption {
  color: rgba(255,255,255,.85);
  font-size: .9rem;
  margin-top: .75rem;
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: -2.5rem;
  right: 0;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.8rem;
  cursor: pointer;
  line-height: 1;
  padding: .25rem .5rem;
  opacity: .8;
}
.lightbox-close:hover { opacity: 1; }

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,.15);
  border: none;
  color: #fff;
  font-size: 2rem;
  padding: .5rem .8rem;
  cursor: pointer;
  border-radius: var(--radius);
  transition: background .15s;
}
.lightbox-nav:hover { background: rgba(255,255,255,.3); }
.lightbox-prev { left: -3.5rem; }
.lightbox-next { right: -3.5rem; }

@media (max-width: 600px) {
  .lightbox-prev { left: .3rem; }
  .lightbox-next { right: .3rem; }
}

/* ===== PROJEKTE ===== */
.project-list { display: flex; flex-direction: column; gap: 3rem; }

.project-item {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
  align-items: start;
  border-bottom: 1px solid var(--border);
  padding-bottom: 3rem;
}
.project-item:last-child { border-bottom: none; }

@media (max-width: 640px) {
  .project-item { grid-template-columns: 1fr; }
}

.project-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius);
  background: #e8e4de;
}

.project-meta {
  font-size: .85rem;
  color: var(--text2);
  margin-bottom: .5rem;
  font-style: italic;
}

/* ===== BIOGRAFIE ===== */
.bio-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  align-items: start;
}
@media (max-width: 768px) {
  .bio-grid { grid-template-columns: 1fr; }
}

.cv-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}
.cv-table tr { border-bottom: 1px solid var(--border); }
.cv-table tr:last-child { border-bottom: none; }
.cv-table td {
  padding: .6rem .4rem;
  vertical-align: top;
  font-size: .92rem;
}
.cv-table td:first-child {
  width: 4.5rem;
  color: var(--accent);
  font-weight: 600;
  white-space: nowrap;
}

.bio-portrait {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

/* ===== PRESSE ===== */
.presse-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.presse-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  transition: box-shadow .2s;
}
.presse-card:hover { box-shadow: var(--shadow); }
.presse-card h3 { font-size: 1rem; margin-bottom: .3rem; }
.presse-card .meta { font-size: .82rem; color: var(--text2); margin-bottom: .75rem; }
/* stylelint-disable-next-line no-descending-specificity */
.presse-card a {
  font-size: .88rem;
  display: inline-flex;
  align-items: center;
  gap: .3rem;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.video-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.video-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.video-card-body { padding: 1rem; }
.video-card-body h3 { margin-bottom: .3rem; font-size: 1rem; }
.video-card-body p { font-size: .88rem; color: var(--text2); margin-bottom: .75rem; }

/* ===== KONTAKT ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
@media (max-width: 640px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
}
.contact-block h3 { margin-bottom: 1rem; }
.contact-block p { font-size: .95rem; margin-bottom: .5rem; }
/* stylelint-disable-next-line no-descending-specificity */
.contact-block a { word-break: break-all; }

.impressum-block {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  font-size: .88rem;
  color: var(--text2);
}
.impressum-block h2 { font-size: 1.2rem; margin-bottom: 1rem; }

/* ===== VERFÜGBARE WERKE ===== */
.verkauf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.vk-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
}
.vk-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }

.vk-img-wrap {
  position: relative;
  cursor: pointer;
}

.vk-thumb {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  background: #f0ece6;
}

.vk-badge {
  position: absolute;
  top: .6rem;
  right: .6rem;
  background: var(--accent);
  color: #fff;
  font-size: .75rem;
  padding: .2rem .55rem;
  border-radius: 20px;
  letter-spacing: .02em;
}

.vk-body {
  padding: 1rem 1.1rem 1.2rem;
}

.vk-nr {
  font-family: Georgia, serif;
  font-size: 1rem;
  color: var(--heading);
  margin-bottom: .2rem;
}

.vk-material {
  font-size: .85rem;
  color: var(--text2);
  margin-bottom: .9rem;
}

.vk-btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: .4rem .9rem;
  border-radius: var(--radius);
  font-size: .85rem;
  transition: background .15s;
}
.vk-btn:hover { background: var(--accent2); text-decoration: none; color: #fff; }

.verkauf-cta {
  text-align: center;
  margin-top: 1.2rem;
  margin-bottom: 2rem;
}
.btn-kontakt {
  display: inline-block;
  background: #8B5E3C;
  color: #fff;
  padding: .9rem 2.4rem;
  border: none;
  border-radius: var(--radius);
  font-size: 1.1rem;
  cursor: pointer;
  transition: background .15s;
}
.btn-kontakt:hover { background: #6B4428; color: #fff; }

@media (max-width: 640px) {
  .verkauf-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 400px) {
  .verkauf-grid { grid-template-columns: 1fr; }
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--heading);
  color: rgba(255,255,255,.6);
  text-align: center;
  padding: 2rem 1.5rem;
  font-size: .85rem;
  margin-top: 4rem;
}
/* stylelint-disable-next-line no-descending-specificity */
.site-footer a { color: rgba(255,255,255,.7); }
.site-footer a:hover { color: #fff; }
