:root {
  --red: #E8300A;
  --bg: #F0EDE8;
  --bg-alt: #E8E4DE;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Open Sans', sans-serif;
  --margin-x: 10%;
  --col-gap: 6%;
}

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

html, body {
  background: var(--bg);
  font-family: var(--font-body);
  color: var(--red);
  overflow-x: hidden;
  scroll-behavior: smooth;
}

nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  background: var(--bg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 5%;
  animation: fadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

nav ul {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

nav a {
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  text-decoration: none;
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1px;
  background: var(--red);
  transition: width 0.3s ease;
}
nav a:hover::after { width: 100%; }

nav.menu-open {
  transition: height 0.45s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.3s ease;
  background-color: var(--bg-alt);
}

.hero {
  padding-top: 15vh;
  padding-bottom: 10vh;
  background: var(--bg);
}

.big-line {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  font-style: normal;
  color: var(--red);
  line-height: 0.88;
  white-space: nowrap;
  letter-spacing: -0.01em;
  padding: 0 var(--margin-x);
}

.line-one {
  position: relative;
  z-index: 10;
  animation: fadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.line-two {
  position: relative;
  z-index: 1;
  animation: fadeUp 0.9s 0.12s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-body { position: relative; }

.photo-col {
  position: absolute;
  right: var(--margin-x);
  width: 44%;
  z-index: 5;
  animation: fadeUp 0.9s 0.25s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.photo-col img { width: 100%; height: auto; display: block; }

.bio-text {
  position: relative;
  z-index: 3;
  width: 46%;
  padding: 4vh var(--margin-x) 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  animation: fadeUp 0.9s 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.bio-text p {
  font-size: clamp(0.9rem, 1.15vw, 1.08rem);
  line-height: 1.85;
  color: var(--red);
  margin-bottom: 1.5em;
  text-align: justify;
}
.bio-text p:last-child { margin-bottom: 0; }

.section-title {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--red);
  font-size: clamp(2rem, 5vw, 4rem);
  letter-spacing: -0.01em;
  line-height: 1;
  margin-bottom: 6vh;
}

.text-btn {
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  text-decoration: none;
  position: relative;
}
.text-btn::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1px;
  background: var(--red);
  transition: width 0.3s ease;
}
.text-btn:hover::after { width: 100%; }

.latest-artwork {
  background: var(--bg-alt);
  padding: 8vh var(--margin-x);
}

.artwork-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--col-gap);
  align-items: start;
}

.artwork-image { width: 100%; max-width: 85vw; }
.artwork-image img { width: auto; height: 85vh; display: block; }
.artwork-info { display: flex; flex-direction: column; padding-top: 0.5rem; }

.artwork-info .artwork-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.5rem, 2.8vw, 2.6rem);
  letter-spacing: -0.01em;
  color: var(--red);
  line-height: 1.2;
  margin-bottom: 1.8vh;
  letter-spacing: 0.01em;
}

.artwork-info .artwork-desc {
  font-size: clamp(0.8rem, 1vw, 0.95rem);
  line-height: 1.8;
  color: var(--red);
  opacity: 0.85;
  margin-bottom: 2.5vh;
}

.artwork-info .artwork-label {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  opacity: 0.6;
}

.artwork-more { margin-top: 7vh; text-align: center; }

.process { background: var(--bg); padding: 8vh var(--margin-x); }

.process-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--col-gap);
  align-items: start;
}

.process-text { display: flex; flex-direction: column; gap: 2.2vh; }

.process-text .process-intro {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.3rem, 2.2vw, 2rem);
  line-height: 1.3;
  color: var(--red);
  letter-spacing: -0.01em;
  margin-bottom: 1vh;
}

.process-text p {
  font-size: clamp(0.8rem, 1vw, 0.95rem);
  line-height: 1.85;
  color: var(--red);
  opacity: 0.85;
}

.process-steps {
  margin-top: 4vh;
  display: flex;
  flex-direction: column;
  gap: 2.5vh;
  border-top: 1px solid rgba(232, 48, 10, 0.2);
  padding-top: 3vh;
}

.process-step {
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 1rem;
  align-items: baseline;
}

.process-step .step-num {
  font-family: var(--font-display);
  font-size: clamp(0.9rem, 1.2vw, 1.1rem);
  color: var(--red);
  opacity: 0.4;
}

.process-step .step-label {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 600;
}

.process-image { width: 100%; }
.process-image img { width: 100%; height: auto; display: block; }

.services {
  background: var(--bg-alt);
  padding: 8vh var(--margin-x);
  max-height: 75vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.services .section-title { margin-bottom: 5vh; }

.services-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--col-gap);
}

.service-card {
  border-top: 1px solid rgba(232, 48, 10, 0.25);
  padding-top: 3vh;
  display: flex;
  flex-direction: column;
  gap: 2vh;
}

.service-icon { width: 36px; height: 36px; opacity: 0.75; flex-shrink: 0; }

.service-card .service-name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.5rem, 2.8vw, 2.6rem);
  letter-spacing: -0.01em;
  line-height: 1.1;
  color: var(--red);
}

.service-card .service-desc {
  font-size: clamp(0.78rem, 0.95vw, 0.9rem);
  line-height: 1.8;
  color: var(--red);
  opacity: 0.8;
  max-width: 38ch;
}

.service-card .service-cta { margin-top: auto; padding-top: 1vh; }

.contact {
  background: var(--bg);
  padding: 8vh var(--margin-x);
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--col-gap);
  align-items: start;
}

.contact-intro {
  display: flex;
  flex-direction: column;
  gap: 2.5vh;
  padding-top: 0.5rem;
}

.contact-intro .contact-lead {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.3rem, 2.2vw, 2rem);
  line-height: 1.35;
  color: var(--red);
  letter-spacing: -0.01em;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 2.8vh;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5%;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.form-field label {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  opacity: 1;
}

.form-field input,
.form-field select,
.form-field textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(232, 48, 10, 0.35);
  padding: 0.6rem 0;
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--red);
  outline: none;
  width: 100%;
  transition: border-color 0.25s ease;
  appearance: none;
  -webkit-appearance: none;
  border-radius: 0;
}

.form-field select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23E8300A' stroke-width='1.2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.2rem center;
  padding-right: 1.5rem;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--red);
  opacity: 0.45;
}

.form-field select option {
  background: var(--bg);
  color: var(--red);
}

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

.form-field textarea {
  resize: vertical;
  min-height: 120px;
}

.form-submit {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  padding-top: 1vh;
}

.privacy-note {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--red);
  opacity: 0.45;
}

.submit-btn {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--red);
  border: none;
  padding: 0.85rem 2.2rem;
  cursor: pointer;
  transition: opacity 0.2s ease;
  flex-shrink: 0;
}

.submit-btn:hover { opacity: 0.85; }

footer {
  background: var(--bg-alt);
  border-top: 1px solid rgba(232, 48, 10, 0.1);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 3.5vh 5%;
}

.footer-copy {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  opacity: 0.5;
}

.footer-links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.footer-btn {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  opacity: 0.5;
  position: relative;
  transition: opacity 0.2s ease;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  padding: 0;
}

.footer-btn::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1px;
  background: var(--red);
  transition: width 0.3s ease;
}

.footer-btn:hover,
.footer-btn[aria-expanded="true"] {
  opacity: 1;
}

.footer-btn:hover::after,
.footer-btn[aria-expanded="true"]::after {
  width: 100%;
}

.legal-panel {
  overflow: hidden;
  height: 0;
  opacity: 0;
  padding: 0 5%;
  transition: height 0.45s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.3s ease;
}

.legal-panel-inner {
  border-top: 1px solid rgba(232, 48, 10, 0.15);
  padding-top: 4vh;
  padding-bottom: 5vh;
}

/* Both panels stay in the DOM; JS toggles .is-active to show the active one */
.legal-content {
  display: none;
}

.legal-content.is-active {
  display: block;
}

.impressum-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--col-gap);
}

.impressum-col {
  display: flex;
  flex-direction: column;
  gap: 3vh;
}

.impressum-heading {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.4rem, 2.5vw, 2.2rem);
  letter-spacing: -0.01em;
  line-height: 1;
  color: var(--red);
}

.impressum-block {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.impressum-label {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 600;
  font-family: var(--font-body);
}

.impressum-block p,
.impressum-block a {
  font-size: clamp(0.78rem, 0.95vw, 0.88rem);
  line-height: 1.8;
  color: var(--red);
  opacity: 0.75;
}

.impressum-block a {
  text-decoration: none;
  position: relative;
}

.impressum-block a::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0;
  width: 0; height: 1px;
  background: var(--red);
  transition: width 0.3s ease;
}

.impressum-block a:hover::after { width: 100%; }

.address-img {
  height: 4em;
  width: auto;
  max-width: 100%;
  display: block;
  object-fit: contain;
  object-position: left top;
}

.email-img {
  height: 1.1em;
  width: auto;
  max-width: 100%;
  display: block;
  object-fit: contain;
  object-position: left top;
}

.datenschutz-col {
  display: flex;
  flex-direction: column;
  gap: 3vh;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.nav-hamburger {
  display: none;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 198;
  background: var(--bg);
  overflow: hidden;
  height: 0;
  opacity: 0;
  transition: height 0.45s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.3s ease;
  background-color: var(--bg-alt);
  border-bottom: 1px solid rgba(232, 48, 10, 0.35);
}

.mobile-menu.is-open {
  opacity: 1;
}

.mobile-menu-inner {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 22px 6%;
  padding-top: 60px;
}

.mobile-menu-link {
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  text-decoration: none;
  position: relative;
}

.mobile-menu-link::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1px;
  background: var(--red);
  transition: width 0.3s ease;
}

/* Renders as a pipe separator on desktop, line break on mobile via JS */
.mobile-break {
  display: inline;
  margin: 0 5px;
}

.mobile-menu-link:hover::after,
.mobile-menu-link.active::after { width: 100%; }

@media (max-width: 1100px) {

  :root {
    --margin-x: 6%;
    --col-gap: 0px;
  }

  nav {
    padding: 16px 6%;
  }

  .nav-links {
    display: none;
  }

  .nav-hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    width: 24px;
    flex-shrink: 0;
  }

  .nav-hamburger span {
    display: block;
    width: 100%;
    height: 1px;
    background: var(--red);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.2s ease;
    transform-origin: center;
  }

  .nav-hamburger[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(3.5px) rotate(45deg);
  }
  .nav-hamburger[aria-expanded="true"] span:nth-child(2) {
    transform: translateY(-3.5px) rotate(-45deg);
  }

  .mobile-menu {
    display: block;
  }

  .hero {
    min-height: 85vh;
    padding-top: 14vh;
    padding-bottom: 8vh;
  }

  .photo-col {
    width: 60%;
  }

  .bio-text {
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    padding: 4vh var(--margin-x) 0;
    justify-content: flex-start;
  }

  .bio-text p {
    font-size: clamp(0.85rem, 3.5vw, 0.95rem);
    text-align: justify;
  }

  .artwork-row {
    grid-template-columns: 1fr;
  }

  .artwork-image {
    max-width: 100%;
  }

  .artwork-image img {
    width: 100%;
    height: auto;
    max-height: 85vh;
    object-fit: contain;
    object-position: left top;
  }

  .artwork-info {
    padding-top: 3vh;
  }

  .process-row {
    grid-template-columns: 1fr;
    gap: 6vh;
  }

  .process-image img {
    max-height: 90vh;
    object-fit: contain;
    object-position: left top;
  }

  .services {
    max-height: none;
  }

  .services-row {
    grid-template-columns: 1fr;
    gap: 5vh;
  }

  .service-card .service-desc {
    max-width: none;
  }

  .contact-inner {
    grid-template-columns: 1fr;
    gap: 5vh;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 2.8vh;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 2.5vh;
  }

  .footer-copy {
    width: 100%;
    border-bottom: 1px solid rgba(232, 48, 10, 0.1);
    padding-bottom: 1.5vh;
    display: block;
  }

  .footer-links {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.4rem;
  }

  .footer-btn {
    text-align: left;
  }

  .footer-links .footer-btn:last-child {
    text-align: right;
  }

  .legal-panel {
    padding-left: 6% !important;
    padding-right: 6% !important;
  }

  .impressum-inner {
    grid-template-columns: 1fr;
    gap: 6vh;
  }

  .mobile-break {
    display: block;
    height: 0;
    overflow: hidden;
    content: "";
  }
}