/* ============================================
   cg-grafik — Stylesheet
   Christine Glesner | Aquarelle & Auftragsmalerei
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garant:ital,wght@0,300;0,400;0,500;1,300;1,400&family=Jost:wght@300;400;500&display=swap');

/* ---- Reset & Base ---- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --white:       #FFFFFF;
  --warm-white:  #F7F6F3;
  --text:        #1A1A18;
  --text-light:  #7A7A78;
  --accent:      #6B5C48;
  --accent-light:#C4B49A;
  --border:      #E4E2DC;
  --font-display: 'Cormorant Garant', Georgia, serif;
  --font-body:    'Jost', Helvetica, sans-serif;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background-color: var(--white);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

/* ---- Header & Navigation ---- */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(6px);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: lowercase;
  color: var(--text);
}

.logo span {
  color: var(--accent);
}

nav {
  display: flex;
  gap: 36px;
  align-items: center;
}

nav a {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-light);
  transition: color 0.25s ease;
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.25s ease;
}

nav a:hover,
nav a.active {
  color: var(--text);
}

nav a:hover::after,
nav a.active::after {
  width: 100%;
}

/* ---- Page Container ---- */
.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ---- Hero (Startseite) ---- */
.hero {
  min-height: 88vh;
  display: flex;
  align-items: center;
  padding: 80px 40px;
  max-width: 1200px;
  margin: 0 auto;
  gap: 80px;
}

.hero-text {
  flex: 1;
  animation: fadeUp 0.9s ease both;
}

.hero-text .eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  font-weight: 400;
}

.hero-text h1 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5vw, 4.8rem);
  font-weight: 300;
  line-height: 1.12;
  margin-bottom: 28px;
  color: var(--text);
}

.hero-text h1 em {
  font-style: italic;
  color: var(--accent);
}

.hero-text p {
  font-size: 1rem;
  color: var(--text-light);
  max-width: 420px;
  margin-bottom: 40px;
  line-height: 1.8;
}

.hero-image {
  flex: 1.1;
  animation: fadeIn 1.1s ease 0.2s both;
}

.hero-image .img-placeholder {
  width: 100%;
  aspect-ratio: 4/5;
  background: var(--warm-white);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 14px 32px;
  border: 1px solid var(--text);
  color: var(--text);
  transition: all 0.25s ease;
  cursor: pointer;
  background: transparent;
}

.btn:hover {
  background: var(--text);
  color: var(--white);
}

.btn-accent {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-accent:hover {
  background: var(--accent);
  color: var(--white);
}

.btn-filled {
  background: var(--text);
  color: var(--white);
}

.btn-filled:hover {
  background: var(--accent);
  border-color: var(--accent);
}

/* ---- Section Headings ---- */
.section-header {
  padding: 70px 0 50px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 60px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.section-header h2,
.section-header h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 300;
  line-height: 1.1;
}

.section-header .count {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 6px;
}

/* ---- Gallery Grid ---- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-bottom: 80px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: var(--warm-white);
}

.gallery-item .img-placeholder {
  width: 100%;
  aspect-ratio: 3/4;
  background: var(--warm-white);
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 16px;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--text-light);
  text-transform: uppercase;
  transition: transform 0.5s ease;
}

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

.gallery-item img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}

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

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px 20px 20px;
  background: linear-gradient(to top, rgba(26,26,24,0.72) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay .title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: #fff;
  font-weight: 300;
  line-height: 1.3;
}

.gallery-overlay .meta {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 4px;
}

/* ---- Intro Strip (Startseite) ---- */
.intro-strip {
  background: var(--warm-white);
  padding: 45px 40px;
  margin: 0;
}

.intro-strip-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1px 1fr 1px 1fr;
  gap: 0;
  align-items: center;
}

.intro-item {
  padding: 0 50px;
  text-align: center;
}

.intro-item:first-child {
  padding-left: 0;
}

.intro-item:last-child {
  padding-right: 0;
}

.intro-divider {
  width: 1px;
  height: 60px;
  background: var(--border);
}

.intro-item .label {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}

.intro-item p {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--text);
  line-height: 1.4;
}

/* ---- Auftragsmalerei ---- */
.commission-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  padding: 70px 0 80px;
  align-items: start;
}

.commission-text h1,
.commission-text h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 300;
  line-height: 1.2;
  margin-bottom: 28px;
}

.commission-text p {
  color: var(--text-light);
  margin-bottom: 18px;
  font-size: 0.98rem;
}

.commission-text .highlight {
  color: var(--text);
  font-weight: 400;
}

.commission-list {
  margin: 32px 0;
  list-style: none;
}

.commission-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--text);
}

.commission-list li::before {
  content: '';
  display: block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.commission-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
}

.commission-images .img-placeholder {
  aspect-ratio: 3/4;
  background: var(--warm-white);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  color: var(--text-light);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.commission-images .img-placeholder.tall {
  grid-row: span 2;
  aspect-ratio: auto;
}

/* ---- Kontakt ---- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 100px;
  padding: 70px 0 80px;
  align-items: start;
}

.contact-info h1,
.contact-info h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 300;
  line-height: 1.2;
  margin-bottom: 28px;
}

.contact-info p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 14px;
  line-height: 1.8;
}

.contact-info .info-block {
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.contact-info .info-block .label {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.contact-info .info-block p {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* ---- Form ---- */
.contact-form {
  padding: 50px;
  background: var(--warm-white);
  border: 1px solid var(--border);
}

.form-group {
  margin-bottom: 28px;
}

.form-group label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 10px;
  font-weight: 400;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--border);
  background: transparent;
  padding: 10px 0;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s ease;
  border-radius: 0;
  -webkit-appearance: none;
}

/* Checkbox vom allgemeinen Input-Stil ausnehmen */
.form-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  border: 2px solid var(--accent);
  border-radius: 3px;
  background: transparent;
  padding: 0;
  cursor: pointer;
  -webkit-appearance: checkbox;
  appearance: checkbox;
  accent-color: var(--accent);
  flex-shrink: 0;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-bottom-color: var(--accent);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
  padding-top: 12px;
}

.form-group select option {
  background: var(--white);
  color: var(--text);
}

.form-note {
  font-size: 0.75rem;
  color: var(--text-light);
  margin-top: 20px;
  line-height: 1.6;
}

.form-note a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---- Impressum / Datenschutz ---- */
.legal-content {
  max-width: 720px;
  padding: 70px 0 100px;
}

.legal-content h1 {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 300;
  margin-bottom: 50px;
}

.legal-content h2 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 40px;
  margin-bottom: 14px;
  font-weight: 400;
}

.legal-content p, .legal-content address {
  font-size: 0.92rem;
  color: var(--text-light);
  line-height: 1.8;
  font-style: normal;
  margin-bottom: 10px;
}

/* ---- Footer ---- */
footer {
  border-top: 1px solid var(--border);
  padding: 36px 40px;
  margin-top: 0;
}

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

.footer-inner .logo {
  font-size: 1.1rem;
}

.footer-links {
  display: flex;
  gap: 28px;
}

.footer-links a {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-light);
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--text);
}

.footer-copy {
  font-size: 0.72rem;
  color: var(--text-light);
  letter-spacing: 0.06em;
}

/* ---- Animations ---- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.fade-in {
  animation: fadeIn 0.8s ease both;
}

/* ---- Lightbox ---- */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(26, 26, 24, 1);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.lightbox.open {
  display: flex;
}

.lightbox-inner {
  display: flex;
  gap: 50px;
  align-items: flex-start;
  max-width: 1100px;
  width: 100%;
}

.lightbox-img {
  flex: 1.4;
}

.lightbox-img img {
  width: 100%;
  max-height: 85vh;
  object-fit: contain;
}

/* Portrait-Bilder in Lightbox: kleinere Anzeige (Desktop) */
.lightbox.portrait .lightbox-inner {
  max-width: 1000px;
}

.lightbox.portrait .lightbox-img {
  flex: 1.2;
}

.lightbox.portrait .lightbox-img img {
  max-height: 80vh;
}

.lightbox-info {
  flex: 0.8;
  padding-top: 10px;
  color: #fff;
}

.lightbox-info .eyebrow {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 14px;
}

.lightbox-info h3 {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 300;
  margin-bottom: 16px;
  line-height: 1.2;
}

.lightbox-info p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.7;
  margin-bottom: 12px;
}

.lightbox-info .price {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--accent-light);
  margin-top: 24px;
  margin-bottom: 24px;
}

.lightbox-close {
  position: absolute;
  top: 28px;
  right: 36px;
  color: rgba(255,255,255,0.5);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  background: none;
  border: none;
  font-family: var(--font-body);
  transition: color 0.2s;
}

.lightbox-close:hover {
  color: #fff;
}

/* ---- Responsive ---- */
@media (max-width: 960px) {
  .hero {
    flex-direction: column-reverse;
    min-height: auto;
    padding: 60px 24px;
    gap: 40px;
  }
  .hero-image { width: 100%; }
  .intro-strip { padding: 20px 16px; }
  .intro-strip-inner {
    grid-template-columns: 1fr 1px 1fr 1px 1fr;
    gap: 0;
  }
  .intro-divider { height: 36px; }
  .intro-item { padding: 0 6px; text-align: center; }
  .intro-item .label { margin-bottom: 4px; font-size: 0.6rem; letter-spacing: 0.1em; }
  .intro-item p { font-size: 0.8rem; line-height: 1.2; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .commission-layout { grid-template-columns: 1fr; gap: 50px; }
  .contact-layout { grid-template-columns: 1fr; gap: 50px; }
  .lightbox-inner { flex-direction: column; gap: 24px; }
}

/* HAMBURGER-MENÜ – nur auf Mobilgeräten sichtbar */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 200;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle span:nth-child(1) { background: #4CAF50; } /* Grün */
.nav-toggle span:nth-child(2) { background: #9B59B6; } /* Lila */
.nav-toggle span:nth-child(3) { background: #1ABC9C; } /* Türkis */

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 640px) {
  .nav-toggle { display: flex; }

  nav {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--warm-white);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 8px 24px 20px;
  }

  nav.open {
    display: flex;
  }

  nav a {
    width: 100%;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.78rem;
  }

  nav a:last-child {
    border-bottom: none;
  }

  header {
    position: relative;
  }

  .header-inner { padding: 0 24px; }
  .page { padding: 0 24px; }
  .gallery-grid { grid-template-columns: 1fr; }
  .contact-form { padding: 32px 24px; }
  .footer-inner { flex-direction: column; gap: 20px; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; }
}
